* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a4480;
    --primary-dark: #0d2137;
    --primary-light: #2d5a9e;
    --accent: #ff9933;
    --accent-soft: rgba(255, 153, 51, 0.14);
    --sidebar-bg: #0d2137;
    --sidebar-bg-2: #0a1a2c;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: rgba(255, 153, 51, 0.12);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-text: #94a3b8;
    --sidebar-text-bright: #f1f5f9;
    --sidebar-width: 260px;
    --topbar-height: 56px;
    --bg: #f0f2f5;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #4a5568;
    --border: #cbd5e0;
    --danger: #b91c1c;
    --success: #138808;
    --shadow: 0 2px 8px rgba(13, 33, 55, 0.06);
    --shadow-lg: 0 4px 16px rgba(13, 33, 55, 0.1);
    --radius-lg: 4px;
    --radius-md: 4px;
}

body {
    font-family: 'Noto Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.icon-svg,
.app-topbar svg,
.sidebar svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
    flex-shrink: 0;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(135deg, #0b1220 0%, #162447 48%, #3b5bdb 100%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-top: 16px;
}

.auth-header p {
    color: var(--text-muted);
    margin-top: 6px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    box-shadow: none;
}

.brand-icon.large {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 10px 24px rgba(59, 91, 219, 0.2);
}

.brand-logo.large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 6px;
}

.brand-mark .brand-logo {
    width: 44px;
    height: 44px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
    font-family: inherit;
}

.form-93 input[type="text"],
.form-93 input[type="email"],
.form-93 input[type="tel"],
.form-93 textarea,
.form-93 select {
    text-transform: uppercase;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-forgot-link {
    margin: -6px 0 0;
    text-align: right;
    font-size: 0.88rem;
}

.mfs100-login-panel {
    margin-top: 24px;
}

.mfs100-login-panel[hidden] {
    display: none !important;
}

.mfs100-login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
}

.mfs100-login-divider::before,
.mfs100-login-divider::after {
    content: '';
    height: 1px;
    background: var(--border);
    flex: 1;
}

.mfs100-login-divider span {
    white-space: nowrap;
}

.mfs100-login-button {
    min-height: 48px;
    border: 1px solid var(--border);
    background: #e8eef5;
    color: var(--primary-dark);
}

.mfs100-login-button:hover {
    border-color: var(--primary);
    background: #dce6f2;
}

.mfs100-login-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.mfs100-status {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.84rem;
    line-height: 1.45;
}

.mfs100-status[hidden] {
    display: none !important;
}

.mfs100-status.is-loading {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.mfs100-status.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.mfs100-status.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.mfs100-login-help {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.mfs100-login-help a {
    font-weight: 600;
}

.profile-mfs100-card {
    border-top: 3px solid var(--primary);
}

.profile-mfs100-form {
    display: grid;
    gap: 14px;
}

.profile-mfs100-form .btn,
.profile-mfs100-remove-form .btn {
    width: 100%;
}

.profile-mfs100-remove-form {
    margin-top: 10px;
}

.mfs100-enrollment-status {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
}

.mfs100-enrollment-status strong {
    font-size: 0.92rem;
}

.mfs100-enrollment-status small {
    color: #15803d;
}

.mfs100-device-status {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
}

.mfs100-device-status.is-l1 {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.mfs100-driver-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 10px;
    font-size: 0.78rem;
}

.mfs100-driver-links a {
    font-weight: 600;
}

.mfs100-capture-support {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

/* Official Gazette document maker */
.gazette-maker-page {
    min-width: 0;
}

.gazette-maker-page .page-header {
    align-items: center;
}

.gazette-maker-actions,
.gazette-form-actions,
.gazette-recent-head,
.gazette-recent-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gazette-maker-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.gazette-preview-card {
    min-width: 0;
    padding: 18px;
    overflow: hidden;
}

.gazette-sheet-wrap {
    width: 100%;
    overflow: auto;
    padding: 12px;
    background: #d9dee5;
    border: 1px solid var(--border);
}

.gazette-sheet {
    position: relative;
    width: 210mm;
    height: 297mm;
    margin: 0 auto;
    overflow: hidden;
    background: #fff url('../images/gazette-india-template.png') center / 100% 100% no-repeat;
    color: #000;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.24);
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    line-height: 1.25;
}

.gazette-cg-code {
    position: absolute;
    top: 15mm;
    right: 20mm;
    text-align: right;
    font-size: 10pt;
    font-weight: 700;
}

.gazette-authority-block {
    position: absolute;
    top: 84mm;
    left: 50%;
    width: 90mm;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.25;
}

.gazette-authority-block strong,
.gazette-authority-block span {
    font-size: 11pt;
}

.gazette-authority-block b {
    font-size: 12pt;
}

.gazette-rule {
    position: absolute;
    left: 20mm;
    right: 20mm;
    display: grid;
    gap: 1.2mm;
}

.gazette-rule span {
    display: block;
    height: 0;
    border-top: 0.35mm solid #000;
}

.gazette-rule-one {
    top: 101mm;
}

.gazette-rule-two {
    top: 115mm;
}

.gazette-rule-three {
    top: 129mm;
}

.gazette-date-line {
    position: absolute;
    left: 20mm;
    right: 20mm;
    font-weight: 400;
    white-space: nowrap;
}

.gazette-date-hindi {
    top: 103mm;
    font-size: 12pt;
}

.gazette-date-english {
    top: 110mm;
    font-size: 11.5pt;
}

.gazette-compilation-note {
    position: absolute;
    top: 118mm;
    left: 20mm;
    right: 20mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10.5pt;
}

.gazette-part-heading {
    position: absolute;
    top: 132mm;
    left: 20mm;
    right: 20mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 10pt;
    font-weight: 700;
    line-height: 1.25;
}

.gazette-legal-notice {
    position: absolute;
    top: 158mm;
    left: 20mm;
    width: 100mm;
    min-height: 62mm;
    padding: 3mm;
    border: 0.8mm solid #000;
    font-size: 9.5pt;
    line-height: 1.3;
    text-align: justify;
}

.gazette-legal-notice > strong {
    display: block;
    margin-bottom: 3mm;
    text-align: center;
}

.gazette-legal-notice p {
    margin: 0;
}

.gazette-legal-notice > span {
    display: block;
    margin-top: 3mm;
    text-align: right;
}

.gazette-change-title {
    position: absolute;
    top: 226mm;
    left: 20mm;
    width: 100mm;
    text-align: center;
    font-size: 11pt;
    font-weight: 700;
}

.gazette-official-slot {
    position: absolute;
    overflow: hidden;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.32;
    text-align: justify;
}

.gazette-slot-one {
    top: 158mm;
    left: 125mm;
    right: 20mm;
    height: 64mm;
}

.gazette-slot-two {
    top: 235mm;
    left: 20mm;
    width: 100mm;
    height: 51mm;
}

.gazette-slot-three {
    top: 235mm;
    left: 125mm;
    right: 20mm;
    height: 51mm;
}

.gazette-notice {
    position: relative;
}

.gazette-notice-photo {
    float: right;
    width: 18mm;
    height: 22mm;
    margin: 0 0 2mm 3mm;
    object-fit: cover;
    border: 0.25mm solid #555;
}

.gazette-notice-body p {
    margin: 0 0 3mm;
}

.gazette-name {
    font-weight: 700;
    text-transform: uppercase;
}

.gazette-notice-sign {
    text-align: right;
}

.gazette-notice-sign-hint {
    font-size: 9.5pt;
    font-weight: 400;
}

.gazette-official-slot.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.25mm dashed rgba(100, 116, 139, 0.35);
}

.gazette-empty-hint {
    color: #94a3b8;
    font: 10pt "Noto Sans", sans-serif;
}

.gazette-bottom-info {
    position: absolute;
    bottom: 5mm;
    left: 20mm;
    right: 20mm;
    display: flex;
    justify-content: space-between;
    font-size: 10.5pt;
}

.gazette-page-meta {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: center;
}

.gazette-form-card {
    position: sticky;
    top: calc(var(--topbar-height) + 18px);
    padding: 20px;
}

.gazette-form-card h2 {
    margin-bottom: 14px;
}

.gazette-notice-form {
    display: grid;
    gap: 12px;
}

.gazette-notice-form .form-group {
    margin: 0;
}

.gazette-header-settings {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.gazette-header-settings summary {
    cursor: pointer;
    font-weight: 700;
}

.gazette-header-settings .form-group:first-of-type {
    margin-top: 12px;
}

.gazette-draft-preview {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.gazette-draft-box {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: "Times New Roman", Times, serif;
}

.gazette-draft-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font: 600 0.72rem "Noto Sans", sans-serif;
}

.gazette-recent-card {
    margin-top: 22px;
}

.gazette-recent-head {
    justify-content: space-between;
    margin-bottom: 14px;
}

.gazette-recent-list {
    display: grid;
    gap: 12px;
}

.gazette-recent-item {
    display: grid;
    grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1.4fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.gazette-recent-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}

.gazette-recent-notice {
    max-height: 135px;
    overflow: auto;
    font-family: "Times New Roman", Times, serif;
    font-size: 0.86rem;
}

@media (max-width: 1280px) {
    .gazette-maker-layout {
        grid-template-columns: 1fr;
    }

    .gazette-form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .gazette-maker-page .page-header {
        align-items: flex-start;
    }

    .gazette-maker-actions .btn {
        flex: 1 1 120px;
    }

    .gazette-preview-card {
        padding: 8px;
    }

    .gazette-sheet-wrap {
        padding: 6px;
    }

    .gazette-recent-item {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    .sidebar,
    .sidebar-overlay,
    .app-topbar,
    .page-header,
    .gazette-form-card,
    .gazette-recent-card,
    .gazette-page-meta {
        display: none !important;
    }

    .app-layout,
    .main-wrapper,
    .main-content,
    .gazette-maker-layout,
    .gazette-preview-card,
    .gazette-sheet-wrap {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .gazette-sheet {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .gazette-official-slot.is-empty {
        border: 0;
    }

    .gazette-official-slot.is-empty .gazette-empty-hint {
        display: none;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

/* Gazette PDF reference layout: 14 notices in two columns */
.gazette-sheet {
    width: 210mm;
    height: 297mm;
    padding: 10mm 9mm 8mm;
    background: #fff;
    font-family: "Times New Roman", Times, serif;
    font-size: 10.7pt;
    line-height: 1.25;
}

.gazette-sheet-header {
    height: 11mm;
}

.gazette-header-row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: end;
    gap: 5mm;
    padding: 0 0 1.4mm;
    font-size: 11pt;
    font-weight: 700;
    line-height: 1;
}

.gazette-header-part {
    text-align: left;
}

.gazette-header-center {
    text-align: center;
    white-space: nowrap;
}

.gazette-header-page {
    text-align: right;
}

.gazette-header-rules {
    display: grid;
    gap: 0.7mm;
}

.gazette-header-rules span:first-child {
    border-top: 0.35mm solid #000;
}

.gazette-header-rules span:last-child {
    border-top: 0.8mm solid #000;
}

.gazette-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-template-rows: repeat(7, minmax(0, 1fr));
    column-gap: 5.5mm;
    height: calc(100% - 11mm);
    padding-top: 5.5mm;
}

.gazette-columns > .gazette-notice {
    min-width: 0;
    overflow: hidden;
    break-inside: avoid;
    text-align: justify;
}

.gazette-columns > .gazette-notice:nth-child(odd) {
    grid-column: 1;
}

.gazette-columns > .gazette-notice:nth-child(even) {
    grid-column: 2;
}

.gazette-columns > .gazette-notice:nth-child(1),
.gazette-columns > .gazette-notice:nth-child(2) {
    grid-row: 1;
}

.gazette-columns > .gazette-notice:nth-child(3),
.gazette-columns > .gazette-notice:nth-child(4) {
    grid-row: 2;
}

.gazette-columns > .gazette-notice:nth-child(5),
.gazette-columns > .gazette-notice:nth-child(6) {
    grid-row: 3;
}

.gazette-columns > .gazette-notice:nth-child(7),
.gazette-columns > .gazette-notice:nth-child(8) {
    grid-row: 4;
}

.gazette-columns > .gazette-notice:nth-child(9),
.gazette-columns > .gazette-notice:nth-child(10) {
    grid-row: 5;
}

.gazette-columns > .gazette-notice:nth-child(11),
.gazette-columns > .gazette-notice:nth-child(12) {
    grid-row: 6;
}

.gazette-columns > .gazette-notice:nth-child(13),
.gazette-columns > .gazette-notice:nth-child(14) {
    grid-row: 7;
}

.gazette-columns .gazette-notice-body {
    height: 100%;
    font-size: 8.2pt;
    line-height: 1.08;
}

.gazette-columns .gazette-notice-body p {
    margin: 0 0 0.8mm;
}

.gazette-columns .gazette-notice-sign {
    margin-top: 0.3mm;
    text-align: right;
}

.gazette-columns .gazette-notice-sign .gazette-name {
    display: block;
    margin-bottom: 0.2mm;
}

.gazette-columns .gazette-notice-sign-hint {
    display: block;
    font-size: 7.2pt;
    line-height: 1;
    white-space: nowrap;
}

.gazette-columns .gazette-notice-photo {
    display: none;
}

.gazette-columns > .gazette-empty-hint {
    grid-column: 1 / -1;
    align-self: start;
    justify-self: center;
    margin-top: 20mm;
}

@media print {
    .gazette-sheet {
        padding: 10mm 9mm 8mm !important;
        background: #fff !important;
    }
}

.mfs100-privacy-note {
    display: block;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.auth-card-forgot {
    max-width: 460px;
}

.auth-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
}

.auth-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    color: var(--text-muted);
}

.auth-step-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eef2ff;
    color: #64748b;
    border: 2px solid #dbeafe;
}

.auth-step-label {
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-step.is-active .auth-step-index {
    background: linear-gradient(135deg, var(--primary) 0%, #5c7cfa 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(59, 91, 219, 0.28);
}

.auth-step.is-active {
    color: var(--text);
}

.auth-step.is-complete .auth-step-index {
    background: #ecfdf5;
    color: #059669;
    border-color: #bbf7d0;
}

.auth-step.is-complete {
    color: #059669;
}

.auth-otp-input {
    letter-spacing: 0.35em;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-inline-actions {
    margin-top: -6px;
}

.auth-verification-methods {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.auth-verification-methods legend {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-verification-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-verification-option:hover,
.auth-verification-option:has(input:checked) {
    border-color: var(--primary);
    background: #eef5ff;
    box-shadow: 0 0 0 3px rgba(26, 68, 128, 0.09);
}

.auth-verification-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth-verification-option input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--primary);
}

.auth-verification-option span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auth-verification-option strong {
    color: var(--text);
    font-size: 0.92rem;
}

.auth-verification-option small {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.auth-fingerprint-reset {
    text-align: center;
}

.auth-fingerprint-reset h2 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 1.08rem;
}

.auth-fingerprint-reset > p:not(.mfs100-status) {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-fingerprint-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    background: #e8f0fb;
    color: var(--primary);
    font-size: 2rem;
}

.auth-fingerprint-reset .mfs100-status {
    margin-top: 12px;
    text-align: left;
}

.auth-fingerprint-reset .form-hint {
    display: block;
    margin-top: 12px;
}

.btn-link {
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    padding-top: 8px;
    padding-bottom: 8px;
}

.btn-link:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* App Layout */
.app-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: clip;
}

.main-wrapper {
    flex: none;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 18%),
        linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
    color: var(--sidebar-text-bright);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 12px 0 40px rgba(2, 6, 23, 0.18);
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 55%, transparent 100%);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 26px 22px 22px;
    border-bottom: 1px solid var(--sidebar-border);
    position: relative;
    flex-shrink: 0;
}

.brand-mark {
    position: relative;
    flex-shrink: 0;
}

.brand-mark::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(59, 91, 219, 0.2));
    z-index: 0;
    opacity: 0.65;
}

.brand-mark .brand-icon {
    position: relative;
    z-index: 1;
}

.brand-copy h2 {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-copy p {
    font-size: 0.76rem;
    color: var(--sidebar-text);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.nav-section-label {
    padding: 14px 12px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-weight: 600;
    font-size: 0.94rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-bright);
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--accent), 0 8px 24px rgba(15, 23, 42, 0.18);
}

.nav-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover .nav-icon-wrap,
.nav-item.active .nav-icon-wrap {
    background: rgba(59, 91, 219, 0.22);
    color: #fff;
}

.nav-text,
.nav-label {
    flex: 1;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-toggle {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.nav-label {
    flex: 1;
}

.submenu-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    opacity: 0.7;
    flex-shrink: 0;
    margin-right: 4px;
}

.nav-group.open .submenu-arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.nav-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    margin-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-group.open .nav-submenu {
    display: flex;
}

.nav-subitem {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-subitem:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-subitem.active {
    background: rgba(59, 91, 219, 0.22);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--accent);
}

.sidebar-footer {
    padding: 16px 14px 18px;
    border-top: 1px solid var(--sidebar-border);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sidebar-border);
}

.user-info {
    min-width: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c7cfa 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.user-avatar-admin {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info small {
    color: var(--sidebar-text);
    font-size: 0.68rem;
    line-height: 1.35;
    word-break: break-word;
    margin-top: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    background: rgba(220, 38, 38, 0.12);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.22);
    color: #fff;
    transform: translateY(-1px);
}

.logout-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.logout-icon svg {
    width: 18px;
    height: 18px;
}

/* App Topbar */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--topbar-height);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    flex-wrap: nowrap;
}

.app-topbar-left,
.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.app-topbar-right {
    flex-shrink: 0;
}

.app-topbar-heading {
    min-width: 0;
}

.topbar-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.app-topbar-heading h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-date-chip,
.topbar-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-shrink: 0;
    max-width: 100%;
}

.topbar-date-chip svg {
    color: var(--primary);
}

.topbar-date-chip span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.topbar-user-chip {
    border-radius: 18px;
    padding: 8px 14px 8px 8px;
}

.topbar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c7cfa 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.topbar-user-meta {
    min-width: 0;
}

.topbar-user-meta strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-user-meta small {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.hamburger-btn:hover,
.hamburger-btn:focus {
    background: #e2e8f0;
    outline: none;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

body.sidebar-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.sidebar-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

body.sidebar-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-close-btn {
    display: none;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 28px 32px 36px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.page-header h1 {
    display: none;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 500;
}

.date-badge {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.5rem;
    color: var(--text);
}

.stat-value.small {
    font-size: 1rem;
    word-break: break-all;
}

.content-card {
    background: var(--card);
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.action-item {
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s, transform 0.1s;
}

.action-item:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.action-item.danger {
    color: var(--danger);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row span {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pan-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-93 {
    max-width: 100%;
}

.form-section {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.form-section-header h2 {
    font-size: 1.15rem;
    margin: 0;
}

.form-part-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.form-subsection {
    margin-bottom: 22px;
}

.form-subsection:last-child {
    margin-bottom: 0;
}

.form-subsection h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: -6px 0 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-group-sm {
    max-width: 280px;
}

.address-block,
.contact-block {
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
    margin-top: 8px;
}

.address-block-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-card,
.checkbox-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.radio-card:has(input:checked),
.checkbox-card:has(input:checked) {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.radio-card input,
.checkbox-card input {
    accent-color: var(--primary);
}

.verification-block {
    padding: 18px;
    background: var(--bg);
    border-radius: 10px;
}

.declaration-text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text);
}

.inline-input {
    border: none;
    border-bottom: 1px solid var(--text);
    background: transparent;
    padding: 2px 6px;
    font-size: 0.9rem;
    min-width: 140px;
}

.auto-filled {
    background: #f8fafc;
    cursor: default;
}

.auto-filled.inline-input {
    background: #f1f5f9;
}

.inline-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
    background: #fff;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding-bottom: 20px;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-sm {
    min-height: auto;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 0.8rem;
}

.required {
    color: var(--danger);
}

.ao-section-header h2 {
    color: #b91c1c;
}

.ao-filters {
    margin-bottom: 16px;
}

.ao-table-wrap {
    margin-bottom: 20px;
}

.ao-table-scroll {
    max-height: 280px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.ao-select-table {
    margin: 0;
    font-size: 0.82rem;
}

.ao-select-table thead {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

.ao-select-table th,
.ao-select-table td {
    padding: 10px 8px;
    vertical-align: middle;
}

.ao-select-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.ao-select-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

.ao-select-table tbody tr.selected {
    background: rgba(37, 99, 235, 0.12);
}

.ao-select-cell {
    width: 50px;
    text-align: center;
}

.ao-empty-message {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.ao-selected-fields {
    padding: 18px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.ao-selected-fields input[readonly] {
    background: #fff;
    cursor: default;
}

.pan-form textarea,
.pan-form select,
.pan-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.pan-form textarea:focus,
.pan-form select:focus,
.pan-form input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-table tbody tr:hover {
    background: var(--bg);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #b45309;
}

.status-badge.incomplete {
    background: #fee2e2;
    color: #b91c1c;
}

.status-badge.in-process {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge.uploaded {
    background: #d1fae5;
    color: #047857;
}

.admin-table-input,
.admin-table-textarea,
.admin-table-select {
    width: 160px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-table-select {
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

.admin-table-textarea {
    min-width: 190px;
    min-height: 96px;
    resize: vertical;
}

.admin-table-input:focus,
.admin-table-textarea:focus,
.admin-table-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}

.admin-status-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.admin-status-form .admin-table-select {
    width: 100%;
}

.admin-applications-card {
    padding: 0;
    overflow: hidden;
}

.admin-applications-table thead th:last-child,
.admin-applications-table tbody td:last-child {
    min-width: 220px;
}

.admin-applications-table .admin-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.admin-applications-table .admin-row-actions .btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    box-shadow: none;
}

.admin-applications-table .admin-download-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: #334155;
}

.admin-applications-table .admin-download-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.admin-applications-table .admin-update-btn {
    box-shadow: 0 8px 18px rgba(59, 91, 219, 0.22);
}

.admin-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fff5f5;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.admin-delete-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-1px);
}

body.admin-modal-open {
    overflow: hidden;
}

.admin-modal[hidden] {
    display: none !important;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.admin-modal-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    animation: adminModalIn 0.22s ease;
}

.admin-modal-dialog-wide {
    width: min(100%, 860px);
}

.admin-modal-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.admin-modal-form .admin-modal-body {
    flex: 1 1 auto;
}

@keyframes adminModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal-header,
.admin-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    background: #fff;
}

.admin-modal-header {
    border-bottom: 1px solid var(--border);
}

.admin-modal-footer {
    border-top: 1px solid var(--border);
    justify-content: flex-end;
    gap: 10px;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.admin-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 1.35rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-modal-close:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.admin-modal-body {
    padding: 22px;
    overflow: auto;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 120px);
}

.admin-modal-subtitle {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 0.92rem;
}

.admin-download-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-download-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.admin-download-item-label {
    font-weight: 600;
    color: #0f172a;
}

.admin-download-item .btn {
    min-width: 108px;
}

.admin-panel {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.admin-panel + .admin-panel {
    margin-top: 18px;
}

.admin-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-panel-readonly .admin-panel-head {
    border-left: 4px solid #94a3b8;
}

.admin-panel-edit .admin-panel-head {
    border-left: 4px solid var(--primary);
}

.admin-panel-head h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.admin-panel-head p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.admin-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 18px 18px;
}

.admin-detail-item {
    padding: 12px 14px;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    background: #fbfdff;
}

.admin-detail-item span {
    display: block;
    margin-bottom: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.admin-detail-item strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.admin-update-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 18px 18px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-field-full {
    grid-column: 1 / -1;
}

.admin-field label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-field small {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #64748b;
}

.admin-supporting-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #f8fbff;
}

.admin-supporting-list-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e3a8a;
}

.admin-supporting-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: #334155;
}

.admin-supporting-list-item a {
    font-weight: 600;
    white-space: nowrap;
}

.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="tel"],
.admin-field input[type="number"],
.admin-field textarea,
.admin-field select,
.admin-modal-form .admin-field input[type="text"],
.admin-modal-form .admin-field input[type="email"],
.admin-modal-form .admin-field input[type="tel"],
.admin-modal-form .admin-field input[type="number"],
.admin-modal-form .admin-field textarea,
.admin-modal-form .admin-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-field textarea {
    min-height: 118px;
    resize: vertical;
    line-height: 1.5;
}

.admin-field input[type="text"]::placeholder,
.admin-field input[type="number"]::placeholder,
.admin-field textarea::placeholder {
    color: #94a3b8;
}

.admin-field input[type="text"]:focus,
.admin-field input[type="email"]:focus,
.admin-field input[type="tel"]:focus,
.admin-field input[type="number"]:focus,
.admin-field textarea:focus,
.admin-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.12);
}

.admin-select-wrap {
    position: relative;
}

.admin-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.admin-select-wrap select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.admin-file-input {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-file-input:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.admin-file-input input[type="file"] {
    width: 100%;
    font-size: 0.84rem;
    color: #475569;
}

.admin-file-input input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c7cfa 100%);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-file-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-file-preview img {
    display: block;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
}

.admin-modal-footer .btn {
    min-width: 118px;
}

.admin-modal-footer .btn-secondary {
    background: #fff;
    border: 1px solid var(--border);
    color: #334155;
}

.admin-modal-footer .btn-secondary:hover {
    background: #f8fafc;
}

.admin-modal-dialog-confirm {
    width: min(100%, 440px);
    padding: 24px;
    text-align: center;
}

.admin-delete-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.16);
}

.admin-delete-modal-content h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #0f172a;
}

.admin-delete-modal-content p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 0.95rem;
}

.admin-delete-modal-content strong {
    color: #0f172a;
}

.admin-delete-modal-note {
    margin-top: 10px !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
}

.admin-delete-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.admin-delete-modal-actions .btn {
    min-width: 132px;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.24);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.admin-delete-modal .admin-modal-backdrop {
    background: rgba(15, 23, 42, 0.6);
}

@media (max-width: 768px) {
    .admin-details-grid,
    .admin-update-grid {
        grid-template-columns: 1fr;
    }

    .admin-applications-table .admin-row-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .admin-modal {
        padding: 12px;
    }

    .admin-modal-body,
    .admin-modal-header,
    .admin-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-delete-modal-actions {
        flex-direction: column;
    }

    .admin-delete-modal-actions .btn {
        width: 100%;
    }
}

.status-badge.approved {
    background: #dcfce7;
    color: #15803d;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.history-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.history-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.history-filter span {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.history-filter:hover {
    color: var(--primary);
    border-color: rgba(59, 91, 219, 0.25);
}

.history-filter.active {
    background: linear-gradient(135deg, var(--primary) 0%, #5c7cfa 100%);
    border-color: transparent;
    color: #fff;
}

.history-filter.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pan-history-table {
    min-width: 1080px;
}

.pan-history-table th:nth-child(6),
.pan-history-table th:nth-child(7),
.pan-history-table td:nth-child(6),
.pan-history-table td:nth-child(7) {
    min-width: 140px;
}

.pan-history-table .history-remarks-text {
    display: block;
    max-width: 260px;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
    color: var(--text);
}

.history-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nav-item-external .nav-text::after,
.nav-subitem-external::after {
    content: ' ↗';
    font-size: 0.75em;
    opacity: 0.65;
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: #e8eef5;
}

@media (max-width: 768px) {
    .pan-history-table td[data-label="Remarks"] {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .pan-history-table td[data-label="Remarks"]::before {
        margin-bottom: 2px;
    }

    .pan-history-table .history-remarks-text {
        max-width: none;
        text-align: left;
    }
}

.form-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.form-type-badge.form-93 {
    background: #dbeafe;
    color: #1d4ed8;
}

.form-type-badge.form-94 {
    background: #ede9fe;
    color: #6d28d9;
}

.form-type-badge.correction {
    background: #ffedd5;
    color: #c2410c;
}

.table-note {
    margin-top: 16px;
    margin-bottom: 0;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
}

.settings-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 26px;
    cursor: pointer;
}

.slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle input:checked + .slider {
    background: var(--primary);
}

.toggle input:checked + .slider::before {
    transform: translateX(22px);
}

.toggle input:disabled + .slider {
    opacity: 0.55;
    cursor: not-allowed;
}

.user-settings-page .settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.settings-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card-head {
    margin-bottom: 18px;
}

.settings-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.settings-card-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-item-disabled {
    opacity: 0.88;
}

.settings-account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.settings-account-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg);
}

.settings-account-row dt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.settings-account-row dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.settings-inline-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.settings-inline-link:hover {
    text-decoration: underline;
}

.settings-status-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.settings-status-active {
    background: #ecfdf5;
    color: #047857;
}

.settings-status-muted {
    background: #f8fafc;
    color: #64748b;
}

.settings-action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-action-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.settings-action-link:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.settings-action-link small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.settings-action-danger:hover {
    border-color: #fecaca;
}

.settings-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    flex-shrink: 0;
}

.settings-action-icon.tone-blue { background: #dbeafe; color: #1d4ed8; }
.settings-action-icon.tone-indigo { background: #eef2ff; color: #4338ca; }
.settings-action-icon.tone-amber { background: #fef3c7; color: #b45309; }
.settings-action-icon.tone-red { background: #fee2e2; color: #b91c1c; }
.settings-action-icon.tone-teal { background: #ecfeff; color: #0891b2; }

.settings-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 960px) {
    .user-settings-page .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-account-row {
        flex-direction: column;
        gap: 4px;
    }

    .settings-account-row dd {
        text-align: left;
    }
}

@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    .sidebar {
        transform: translateX(0) !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .topbar-date-chip {
        display: none;
    }

    .topbar-user-meta small {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .hamburger-btn {
        display: flex;
    }

    .app-topbar {
        padding: 12px 16px;
        min-height: 64px;
    }

    .app-topbar-heading h1 {
        font-size: 1.08rem;
    }

    .topbar-date-chip {
        display: none;
    }

    .topbar-user-meta {
        display: none;
    }

    .topbar-user-chip {
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar {
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar-footer {
        padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-brand {
        padding: 18px 16px;
    }

    .main-content {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .date-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .content-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-item {
        padding: 14px;
    }

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 0;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .auth-wrapper {
        padding: 16px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 14px;
    }

    .btn {
        min-height: 48px;
    }

    .form-row,
    .form-row-3,
    .form-row-4 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 16px;
    }

    .form-group-sm {
        max-width: 100%;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }

    .radio-card,
    .checkbox-card {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .inline-input {
        display: block;
        width: 100%;
        margin: 6px 0;
    }

    .data-table:not(.ao-select-table) thead {
        display: none;
    }

    .data-table:not(.ao-select-table) tr {
        display: block;
        margin-bottom: 14px;
        background: var(--bg);
        border-radius: 10px;
        padding: 12px;
    }

    .data-table:not(.ao-select-table) td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
    }

    .data-table:not(.ao-select-table) td:last-child {
        border-bottom: none;
    }

    .data-table:not(.ao-select-table) td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .ao-table-scroll {
        max-height: 240px;
    }

    .ao-select-table {
        min-width: 700px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 12px;
    }

    .app-topbar {
        padding: 10px 12px;
    }

    .topbar-eyebrow {
        display: none;
    }

    .auth-card {
        padding: 24px 16px;
    }
}

/* Document upload */
.application-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.application-summary > div {
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.application-summary span,
.application-summary strong {
    display: block;
}

.application-summary span {
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pan-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.pan-form-column {
    min-width: 0;
}

.pan-form-preview {
    position: sticky;
    top: 20px;
}

.pan-form-preview-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 2px;
}

.preview-page-image {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.preview-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.preview-status[data-state="loading"] {
    color: var(--primary);
}

.preview-status[data-state="ready"] {
    color: #059669;
}

.preview-status[data-state="error"] {
    color: var(--danger);
}

.document-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.pdf-preview-panel,
.upload-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2,
.upload-panel h2 {
    margin: 0 0 14px;
}

.panel-heading h2 {
    margin-bottom: 0;
}

.pdf-preview-frame {
    display: block;
    width: 100%;
    height: 720px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}

.upload-panel small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.upload-panel .uploaded-file {
    color: var(--primary);
    font-weight: 600;
}

.uploaded-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.uploaded-preview-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.uploaded-preview-card label,
.uploaded-preview-card small {
    display: block;
}

.uploaded-preview-card img {
    display: block;
    width: 100%;
    height: 180px;
    margin: 8px 0;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.uploaded-preview-card img.signature-preview {
    height: 110px;
}

@media (max-width: 980px) {
    .pan-form-layout {
        grid-template-columns: 1fr;
    }

    .pan-form-preview {
        position: static;
    }

    .pan-form-preview-images {
        max-height: 600px;
    }

    .document-upload-grid {
        grid-template-columns: 1fr;
    }

    .pdf-preview-frame {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .application-summary {
        grid-template-columns: 1fr;
    }

    .pdf-preview-frame {
        height: 480px;
    }

    .uploaded-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* User Dashboard */
.user-dashboard .page-header {
    display: none;
}

.dashboard-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px 30px;
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-hero-copy {
    max-width: 680px;
}

.dashboard-hero-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.dashboard-hero h1 {
    display: block;
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--primary-dark);
}

.dashboard-hero-text {
    margin: 0;
    max-width: 560px;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.dashboard-hero-meta span {
    padding: 7px 12px;
    border-radius: var(--radius-md);
    background: #e8eef5;
    color: var(--text);
    border: 1px solid var(--border);
}

.dashboard-hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: #e8eef5;
    border: 1px solid var(--border);
    text-align: center;
}

.dashboard-hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.dashboard-hero-badge strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary);
}

.dashboard-hero-badge span {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}

.dashboard-stat-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard-stat-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-stat-value {
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--text);
    word-break: break-word;
}

.dashboard-stat-card.tone-blue .dashboard-stat-icon {
    background: #eef2ff;
    color: #3b5bdb;
}

.dashboard-stat-card.tone-amber .dashboard-stat-icon {
    background: #fff7ed;
    color: #d97706;
}

.dashboard-stat-card.tone-green .dashboard-stat-icon {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-stat-card.tone-red .dashboard-stat-icon {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-stat-card.tone-indigo .dashboard-stat-icon {
    background: #eef2ff;
    color: #4338ca;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 20px;
}

.dashboard-panel {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-panel-head h2 {
    margin: 0;
    font-size: 1.12rem;
}

.dashboard-panel-head p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.dashboard-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-action-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-action-card.is-highlight {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.dashboard-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.dashboard-action-icon.tone-blue { background: #eef2ff; color: #3b5bdb; }
.dashboard-action-icon.tone-purple { background: #f5f3ff; color: #7c3aed; }
.dashboard-action-icon.tone-teal { background: #ecfeff; color: #0891b2; }
.dashboard-action-icon.tone-slate { background: #f1f5f9; color: #475569; }
.dashboard-action-icon.tone-red { background: #fef2f2; color: #dc2626; }
.dashboard-action-icon.tone-indigo { background: #eef2ff; color: #4338ca; }
.dashboard-action-icon.tone-gold { background: #fffbeb; color: #b45309; }

.dashboard-action-card strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
}

.dashboard-action-card small {
    color: var(--text-muted);
    line-height: 1.4;
}

.dashboard-activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.dashboard-activity-item strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
}

.dashboard-activity-item span {
    display: block;
    font-size: 0.88rem;
    color: #334155;
}

.dashboard-activity-item small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.dashboard-empty {
    padding: 28px 16px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: #f8fafc;
}

.dashboard-empty p {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.dashboard-tip {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.dashboard-tip strong {
    display: block;
    margin-bottom: 4px;
    color: #9a3412;
}

.dashboard-tip p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #c2410c;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        flex-direction: column;
        padding: 22px;
    }

    .dashboard-hero-badge {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        text-align: left;
    }

    .dashboard-hero-avatar {
        margin-bottom: 0;
    }

    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-item {
        flex-direction: column;
    }
}

.dashboard-wallet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(253, 230, 138, 0.16);
    border: 1px solid rgba(253, 230, 138, 0.34);
    color: #fde68a;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.dashboard-wallet-link-label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.dashboard-wallet-link strong {
    color: #fde68a;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.dashboard-wallet-link:hover {
    background: rgba(253, 230, 138, 0.24);
    border-color: rgba(253, 230, 138, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-wallet-chip {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(59, 91, 219, 0.12);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar .nav-item.active .nav-wallet-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.profile-inline-link {
    margin-left: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--primary);
}

.wallet-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.wallet-balance-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.78);
}

.wallet-balance-value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.wallet-balance-copy p {
    margin: 10px 0 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.wallet-balance-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.wallet-balance-icon svg {
    width: 34px;
    height: 34px;
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    gap: 20px;
}

.wallet-pricing-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.wallet-pricing-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.wallet-pricing-list li:last-child {
    border-bottom: none;
}

.wallet-card-intro,
.wallet-note {
    margin: 0;
    font-size: 0.88rem;
}

.wallet-note {
    margin-top: 16px;
    color: var(--text-muted);
}

.wallet-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.wallet-history-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.wallet-empty {
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
}

.wallet-transactions-table {
    min-width: 680px;
}

.wallet-amount-credit {
    color: #059669;
    font-weight: 700;
}

.wallet-amount-debit {
    color: #dc2626;
    font-weight: 700;
}

.wallet-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}

.wallet-type-topup {
    background: #ecfdf5;
    color: #047857;
}

.wallet-type-deduct {
    background: #fef2f2;
    color: #b91c1c;
}

.wallet-type-refund {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-wallet-search-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-wallet-search-form .form-group {
    flex: 1 1 280px;
    margin-bottom: 0;
}

.admin-wallet-topup-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-wallet-topup-form input[type="number"],
.admin-wallet-topup-form input[type="text"] {
    min-width: 110px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.92rem;
}

.admin-wallet-table td:last-child {
    min-width: 320px;
}

.admin-wallet-services-card h2,
.admin-wallet-card h2 {
    margin: 0;
    font-size: 1.12rem;
}

.admin-service-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-service-form-actions {
    display: flex;
    align-items: flex-end;
}

.admin-service-row-actions,
.admin-wallet-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-inline-form {
    display: inline;
}

.admin-fee-summary {
    display: block;
    line-height: 1.45;
    color: var(--text-muted);
}

.admin-user-fees-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-fees-modal-dialog {
    width: min(100%, 760px);
}

.admin-fees-modal-header {
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-fees-modal-header .admin-modal-subtitle {
    margin: 4px 0 0;
    font-size: 0.86rem;
}

.admin-fees-modal-body {
    padding: 20px 22px 24px;
    background: #f8fafc;
}

.admin-fees-user-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.admin-fees-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-fees-user-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-fees-user-copy strong {
    font-size: 1rem;
    color: #0f172a;
}

.admin-fees-user-copy span {
    font-size: 0.84rem;
    color: #64748b;
    word-break: break-word;
}

.admin-fees-help-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #eff6ff;
}

.admin-fees-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #3b5bdb;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-fees-help-banner p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #1e40af;
}

.admin-user-fee-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-user-fee-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.admin-user-fee-card.is-custom {
    border-color: #c7d2fe;
    box-shadow: 0 12px 28px rgba(59, 91, 219, 0.08);
}

.admin-user-fee-card.tone-blue {
    border-top: 3px solid #3b5bdb;
}

.admin-user-fee-card.tone-purple {
    border-top: 3px solid #7c3aed;
}

.admin-user-fee-card.tone-orange {
    border-top: 3px solid #ea580c;
}

.admin-user-fee-card.tone-slate {
    border-top: 3px solid #64748b;
}

.admin-user-fee-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.admin-user-fee-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-user-fee-title-wrap strong {
    font-size: 0.98rem;
    color: #0f172a;
    line-height: 1.3;
}

.admin-user-fee-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.admin-user-fee-tag-muted {
    background: #f1f5f9;
    color: #64748b;
}

.admin-user-fee-default-pill,
.admin-user-fee-custom-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-user-fee-default-pill {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.admin-user-fee-custom-badge {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.admin-user-fee-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-user-fee-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-user-fee-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.12);
}

.admin-user-fee-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 12px;
    align-self: stretch;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-user-fee-input {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
}

.admin-user-fee-input::-webkit-outer-spin-button,
.admin-user-fee-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.admin-user-fee-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.admin-user-fee-note {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #94a3b8;
}

.admin-fees-modal-footer {
    background: #fff;
}

.admin-wallet-services-card,
.admin-services-users-card {
    padding-top: 0;
    overflow: hidden;
}

.admin-wallet-services-card .admin-panel-head,
.admin-services-users-card .admin-panel-head {
    padding: 20px 22px 0;
    border-bottom: 0;
    background: transparent;
}

.admin-service-form {
    margin: 0 22px 20px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.admin-services-table code,
.admin-services-users-table .admin-user-fees-btn {
    white-space: nowrap;
}

.admin-incomplete-card {
    padding: 22px;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.admin-incomplete-card.is-alert {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fffbf7 0%, #ffffff 100%);
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.1);
}

.admin-incomplete-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-incomplete-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.admin-incomplete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff7ed;
    color: #d97706;
    flex-shrink: 0;
}

.admin-incomplete-icon svg {
    width: 22px;
    height: 22px;
}

.admin-incomplete-head h2 {
    margin: 0;
    font-size: 1.12rem;
}

.admin-incomplete-head p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.admin-pending-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-clear-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #047857;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-incomplete-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.admin-incomplete-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
}

.admin-incomplete-empty-icon svg {
    width: 26px;
    height: 26px;
}

.admin-incomplete-empty strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.admin-incomplete-empty p {
    margin: 0;
    max-width: 360px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-incomplete-table-wrap {
    margin-bottom: 0;
}

.admin-incomplete-table td:last-child {
    min-width: 150px;
}

.admin-app-id {
    font-weight: 700;
    color: var(--primary);
}

.admin-user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-cell strong {
    font-size: 0.92rem;
}

.admin-user-cell small {
    color: var(--text-muted);
}

.admin-countdown {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-countdown-sub {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

.admin-incomplete-tip {
    margin-top: 18px;
    margin-bottom: 0;
}

/* Admin Dashboard */
.admin-dashboard .page-header {
    display: none;
}

.admin-dashboard-hero {
    background: var(--card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-left: 4px solid var(--success) !important;
    box-shadow: var(--shadow) !important;
}

.admin-role-chip {
    background: rgba(255, 153, 51, 0.15) !important;
    color: #92400e !important;
    font-weight: 700;
}

.admin-dashboard-hero-badge {
    background: #e8eef5 !important;
    border: 1px solid var(--border) !important;
}

.admin-dashboard-actions .dashboard-action-icon svg {
    width: 20px;
    height: 20px;
}

.admin-overview-card {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.admin-overview-card > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.admin-overview-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-overview-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border);
}

.admin-overview-list span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.admin-overview-list strong {
    font-size: 1rem;
    color: var(--text);
}

.admin-overview-list strong.tone-green { color: #059669; }
.admin-overview-list strong.tone-red { color: #dc2626; }
.admin-overview-list strong.tone-amber { color: #d97706; }

@media (max-width: 768px) {
    .admin-incomplete-head {
        flex-direction: column;
    }

    .admin-overview-list {
        grid-template-columns: 1fr;
    }
}

.admin-fees-help {
    margin: 0 0 16px;
    font-size: 0.88rem;
}

.wallet-custom-mark {
    color: var(--primary);
    font-weight: 700;
}

.wallet-history-card-full {
    margin-top: 0;
}

.wallet-pricing-list-large li {
    align-items: center;
    padding: 16px 0;
}

.wallet-pricing-list-large li div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-pricing-list-large li small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.wallet-pricing-list-large li span {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.user-services-page .wallet-pricing-card h2 {
    margin-top: 0;
}

.user-services-page .page-header {
    display: none;
}

.services-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%),
        linear-gradient(135deg, #312e81 0%, #4338ca 45%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 22px 50px rgba(67, 56, 202, 0.28);
}

.services-hero-copy {
    max-width: 640px;
}

.services-hero-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.services-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.services-hero-text {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.services-hero-wallet {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: right;
}

.services-hero-wallet span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.78);
}

.services-hero-wallet strong {
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.services-hero-wallet .btn-light {
    margin-top: 4px;
    background: #fff;
    color: #4338ca;
    border: none;
    text-decoration: none;
}

.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.services-summary-card {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.services-summary-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.services-summary-value {
    display: block;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.services-summary-card.tone-blue { border-top: 3px solid #3b5bdb; }
.services-summary-card.tone-purple { border-top: 3px solid #7c3aed; }
.services-summary-card.tone-gold { border-top: 3px solid #d97706; }

.services-rates-card {
    padding: 24px;
}

.services-rates-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.services-rates-head h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.services-rates-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.services-custom-mark {
    color: var(--primary);
    font-weight: 800;
}

.services-rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.services-rate-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.services-rate-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.services-rate-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.services-rate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 800;
}

.services-rate-icon.tone-blue { background: #eef2ff; color: #3b5bdb; }
.services-rate-icon.tone-purple { background: #f5f3ff; color: #7c3aed; }
.services-rate-icon.tone-teal { background: #ecfeff; color: #0891b2; }
.services-rate-icon.tone-indigo { background: #eef2ff; color: #4338ca; }

.services-rate-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.services-rate-badge.is-custom {
    background: #eef2ff;
    color: #4338ca;
}

.services-rate-body h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--text);
}

.services-rate-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.services-rate-price {
    padding-top: 4px;
}

.services-rate-price-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.services-rate-price strong {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.services-rate-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 11px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b5bdb 0%, #5c7cfa 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.services-rate-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(59, 91, 219, 0.28);
    color: #fff;
}

.services-footnote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.services-footnote svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #6366f1;
}

.services-footnote p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
}

.services-inline-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.services-inline-link:hover {
    text-decoration: underline;
}

.services-empty {
    padding: 36px 24px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    text-align: center;
    background: #f8fafc;
}

.services-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 1.2rem;
    font-weight: 800;
}

.services-empty h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.services-empty p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .services-hero {
        flex-direction: column;
    }

    .services-hero-wallet {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .services-summary-grid {
        grid-template-columns: 1fr;
    }
}

.form-fee-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(59, 91, 219, 0.06);
}

.form-fee-notice.is-insufficient {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.06);
}

.form-fee-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #3b5bdb;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.form-fee-notice.is-insufficient .form-fee-notice-icon {
    background: #dc2626;
}

.form-fee-notice-copy {
    flex: 1;
    min-width: 0;
}

.form-fee-notice-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 0.98rem;
}

.form-fee-notice-copy p {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}

.form-fee-notice-warning {
    margin-top: 8px !important;
    color: #b91c1c !important;
    font-weight: 600;
}

.form-fee-notice .btn {
    align-self: center;
    white-space: nowrap;
}

.alert-payment-success,
.alert-payment-error {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 12px;
}

.alert-payment-success strong,
.alert-payment-error strong {
    font-size: 1rem;
}

.alert-payment-success span,
.alert-payment-error span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-payment-success {
    border-color: #86efac;
    background: #ecfdf5;
    color: #065f46;
}

.alert-payment-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .form-fee-notice {
        flex-direction: column;
    }

    .form-fee-notice .btn {
        align-self: flex-start;
    }
}

@media (max-width: 900px) {
    .admin-service-form-grid,
    .admin-user-fees-grid {
        grid-template-columns: 1fr;
    }

    .admin-fees-modal-header {
        flex-direction: row;
    }

    .admin-fees-user-banner {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .wallet-balance-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pagination-summary {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pagination-btn,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pagination-btn:hover,
.pagination-page:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination-btn-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pagination-page {
    min-width: 36px;
    padding: 0;
}

.pagination-page-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

@media (max-width: 640px) {
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
    }
}

/* Wallet UPI Payment */
.wallet-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    gap: 20px;
    margin-bottom: 20px;
}

.wallet-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wallet-pay-card {
    padding: 22px;
}

.wallet-pay-head h2 {
    margin: 0 0 6px;
    font-size: 1.12rem;
}

.wallet-pay-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.wallet-pay-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.wallet-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wallet-qr-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow);
}

.wallet-qr-caption {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

.wallet-qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    padding: 20px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: #f8fafc;
    text-align: center;
}

.wallet-qr-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.wallet-qr-placeholder strong {
    display: block;
    margin-bottom: 6px;
}

.wallet-qr-placeholder p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wallet-payment-form .form-group {
    margin-bottom: 16px;
}

.wallet-screenshot-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-screenshot-preview {
    width: fit-content;
    max-width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.wallet-screenshot-preview img {
    display: block;
    max-width: 220px;
    max-height: 180px;
    border-radius: 8px;
    object-fit: contain;
}

.wallet-pay-submit {
    width: 100%;
}

.wallet-pay-note {
    margin: 12px 0 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.wallet-payment-requests-card {
    padding: 18px;
}

.wallet-payment-request-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-payment-request-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.wallet-payment-request-item strong {
    display: block;
    margin-bottom: 2px;
}

.wallet-payment-request-item span {
    display: block;
    font-size: 0.86rem;
    color: #334155;
}

.wallet-payment-request-item small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.wallet-success-overlay[hidden] {
    display: none !important;
}

.wallet-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.wallet-success-dialog {
    width: min(100%, 420px);
    padding: 32px 28px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.wallet-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
}

.wallet-success-icon svg {
    width: 36px;
    height: 36px;
}

.wallet-success-dialog h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.wallet-success-dialog p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.wallet-success-remark {
    margin-top: 12px !important;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #047857 !important;
    font-weight: 700;
}

.wallet-success-countdown {
    margin-top: 16px !important;
    font-size: 0.92rem;
}

.wallet-razorpay-card .wallet-pay-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.wallet-gateway-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.wallet-razorpay-body {
    margin-top: 20px;
}

.wallet-razorpay-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-razorpay-features article {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.wallet-razorpay-features strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.wallet-razorpay-features span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.wallet-razorpay-form {
    max-width: 420px;
}

.wallet-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.wallet-quick-amount {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.wallet-quick-amount:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.wallet-balance-card-razorpay {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
    color: #fff;
}

.wallet-balance-card-razorpay .wallet-balance-label,
.wallet-balance-card-razorpay p {
    color: rgba(255, 255, 255, 0.82);
}

.wallet-balance-card-razorpay .wallet-balance-value {
    color: #fff;
}

.wallet-balance-card-razorpay .wallet-balance-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.wallet-razorpay-info-card h2 {
    margin: 0 0 12px;
    font-size: 1.02rem;
}

.wallet-razorpay-steps {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .wallet-razorpay-features {
        grid-template-columns: 1fr;
    }
}

.admin-wallet-settings-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
    gap: 20px;
    margin-bottom: 20px;
}

.admin-wallet-qr-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-wallet-qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.admin-wallet-qr-empty {
    min-height: 180px;
}

.admin-wallet-pending-card .admin-panel-head,
.admin-wallet-qr-card .admin-panel-head,
.admin-wallet-card .admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-wallet-pending-card .admin-panel-head h2,
.admin-wallet-qr-card .admin-panel-head h2,
.admin-wallet-card .admin-panel-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.admin-wallet-pending-card .admin-panel-head p,
.admin-wallet-qr-card .admin-panel-head p,
.admin-wallet-card .admin-panel-head p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.admin-wallet-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1100px) {
    .wallet-top-grid,
    .admin-wallet-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wallet-pay-body,
    .admin-wallet-qr-body {
        grid-template-columns: 1fr;
    }
}

/* Admin payment proof gallery */
.admin-payment-proof-modal {
    padding: 24px;
}

.admin-payment-proof-gallery {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 22px 22px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
}

.admin-payment-proof-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    z-index: 2;
}

.admin-payment-proof-close:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.04);
}

.admin-payment-proof-head {
    padding-right: 44px;
    margin-bottom: 16px;
}

.admin-payment-proof-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.admin-payment-proof-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-payment-proof-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: min(62vh, 640px);
    padding: 12px;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.admin-payment-proof-frame img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(58vh, 600px);
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.admin-payment-proof-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.admin-payment-proof-meta div {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.admin-payment-proof-meta span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-payment-proof-meta strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
    word-break: break-word;
}

@media (max-width: 640px) {
    .admin-payment-proof-modal {
        padding: 12px;
    }

    .admin-payment-proof-gallery {
        width: 100%;
        padding: 18px 16px 16px;
    }

    .admin-payment-proof-meta {
        grid-template-columns: 1fr;
    }

    .admin-payment-proof-frame {
        min-height: 220px;
    }
}

/* User Profile Page */
.user-profile-page .profile-hero-card {
    margin-bottom: 20px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 91, 219, 0.08), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: var(--shadow);
}

.profile-avatar-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    flex-shrink: 0;
}

.profile-avatar-image,
.profile-avatar-fallback {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b5bdb 0%, #748ffc 100%);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.profile-avatar-copy h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.profile-avatar-copy p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.profile-user-id {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.profile-card-head {
    margin-bottom: 20px;
}

.profile-card-head h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.profile-card-head p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form .form-group,
.profile-password-form .form-group {
    margin-bottom: 16px;
}

.user-profile-page .profile-form input:not([type="file"]),
.user-profile-page .profile-form textarea,
.user-profile-page .profile-form select,
.user-profile-page .profile-password-form input,
.admin-profile-page .profile-form input:not([type="file"]),
.admin-profile-page .profile-form textarea,
.admin-profile-page .profile-form select,
.admin-profile-page .profile-password-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.user-profile-page .profile-form textarea,
.admin-profile-page .profile-form textarea {
    display: block;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.user-profile-page .profile-form input::placeholder,
.user-profile-page .profile-form textarea::placeholder,
.admin-profile-page .profile-form input::placeholder,
.admin-profile-page .profile-form textarea::placeholder {
    color: #94a3b8;
    font-family: inherit;
}

.user-profile-page .profile-form input:focus,
.user-profile-page .profile-form textarea:focus,
.user-profile-page .profile-form select:focus,
.user-profile-page .profile-password-form input:focus,
.admin-profile-page .profile-form input:focus,
.admin-profile-page .profile-form textarea:focus,
.admin-profile-page .profile-form select:focus,
.admin-profile-page .profile-password-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.profile-photo-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-photo-field {
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.profile-side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    align-self: start;
}

.profile-pin-status {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-pin-display {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: #eef2ff;
}

.profile-pin-label {
    color: #4338ca;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-pin-value {
    color: #1e1b4b;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    font-variant-numeric: tabular-nums;
}

.profile-pin-form {
    margin: 0;
}

.user-avatar-image {
    padding: 0;
    object-fit: cover;
}

@media (max-width: 960px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-side-stack {
        position: static;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .profile-avatar-block {
        flex-direction: column;
        text-align: center;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

.admin-profile-page .admin-profile-hero-card {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
}

.admin-profile-avatar-fallback {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
}

.admin-profile-role-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-profile-user-id {
    background: #fff7ed;
    color: #c2410c;
}

.user-avatar-admin-image {
    border: 2px solid rgba(245, 158, 11, 0.35);
}

.admin-users-page .admin-users-search-card,
.admin-users-page .admin-users-card {
    margin-bottom: 20px;
}

.admin-users-card .admin-panel-head {
    margin-bottom: 16px;
}

.admin-users-table th,
.admin-users-table td {
    vertical-align: middle;
}

.admin-users-table td[data-label="Address"] {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
}

.admin-user-pin-missing {
    background: #f8fafc;
    color: #94a3b8;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 0.82rem;
}

@media (max-width: 960px) {
    .admin-users-table td[data-label="Address"] {
        max-width: none;
        white-space: normal;
    }
}

.admin-user-edit-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-user-edit-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.admin-user-edit-meta-item span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-user-edit-meta-item strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-user-pin-inline {
    display: inline-flex;
    width: fit-content;
    min-width: 0;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .admin-user-edit-meta {
        grid-template-columns: 1fr;
    }
}

.devtools-guard-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
}

.devtools-guard-overlay[hidden] {
    display: none !important;
}

.devtools-guard-card {
    width: min(100%, 420px);
    padding: 28px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.devtools-guard-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.35rem;
}

.devtools-guard-card p {
    margin: 0 0 8px;
    color: #64748b;
    line-height: 1.5;
}

.devtools-guard-card .devtools-guard-dismiss {
    margin-top: 18px;
    min-width: 140px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b5bdb 0%, #5c7cfa 100%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

html.devtools-guard-active body {
    overflow: hidden;
}

.csrf-error-banner {
    position: sticky;
    top: 0;
    z-index: 99990;
    margin: 0;
    border-radius: 0;
    text-align: center;
}

.admin-notification-dialog {
    max-width: 760px;
}

.admin-notification-header {
    align-items: flex-start;
}

.admin-notification-kicker {
    margin: 0 0 6px;
    color: #c2410c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-notification-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 24px 18px;
}

.admin-notification-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.admin-notification-summary-item strong {
    font-size: 1.35rem;
    line-height: 1;
}

.admin-notification-summary-item span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-notification-summary-item.tone-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.admin-notification-summary-item.tone-warning strong {
    color: #b45309;
}

.admin-notification-summary-item.tone-teal {
    border-color: #a5f3fc;
    background: #ecfeff;
}

.admin-notification-summary-item.tone-teal strong {
    color: #0891b2;
}

.admin-notification-body {
    max-height: 420px;
    overflow: auto;
}

.admin-notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-notification-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.admin-notification-item-copy p {
    margin: 4px 0;
    color: var(--text);
    font-size: 0.92rem;
}

.admin-notification-item-copy small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-notification-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.admin-notification-item-application .admin-notification-item-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-notification-item-wallet_payment .admin-notification-item-icon {
    background: #fef3c7;
    color: #b45309;
}

.admin-notification-item-support .admin-notification-item-icon,
.admin-notification-item-support_reply .admin-notification-item-icon {
    background: #ecfeff;
    color: #0891b2;
}

.admin-notification-footer {
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .admin-notification-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-notification-item {
        grid-template-columns: auto 1fr;
    }

    .admin-notification-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.user-notification-kicker {
    color: #0891b2;
}

.user-notification-summary {
    grid-template-columns: minmax(0, 220px);
}

@media (max-width: 640px) {
    .admin-notification-summary {
        grid-template-columns: 1fr;
    }
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: auto;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.sidebar-admin .nav-toggle .nav-badge {
    margin-left: 8px;
}

.sidebar-admin .nav-subitem .nav-badge {
    margin-left: 6px;
}

.admin-panel-card {
    margin-bottom: 20px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.admin-form-span-2 {
    grid-column: 1 / -1;
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-form-section-title {
    margin: 0;
    font-size: 1.05rem;
}

.admin-form-subsection-title {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
}

.admin-website-settings-page .admin-settings-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-settings-nav-wrap {
    position: relative;
}

.admin-settings-nav {
    position: sticky;
    top: 88px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.admin-settings-nav-title {
    margin: 0 0 10px;
    padding: 0 10px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-settings-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease;
}

.admin-settings-nav-link:hover {
    background: #f1f5f9;
    color: var(--text);
}

.admin-settings-nav-link.is-active {
    background: #eef2ff;
    color: #4338ca;
}

.admin-settings-nav-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
}

.admin-settings-nav-link.is-active .admin-settings-nav-num {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

.admin-settings-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-settings-block {
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 96px;
    overflow: hidden;
}

.admin-settings-block-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.admin-settings-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.admin-settings-block-copy h2 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}

.admin-settings-block-copy p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.admin-settings-block-body {
    padding: 22px;
}

.admin-settings-block-body-plain {
    padding: 22px;
}

.admin-settings-block.tone-brand .admin-settings-block-head { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.admin-settings-block.tone-brand .admin-settings-block-num { background: #dbeafe; color: #1d4ed8; }

.admin-settings-block.tone-indigo .admin-settings-block-head { background: linear-gradient(180deg, #eef2ff 0%, #fff 100%); }
.admin-settings-block.tone-indigo .admin-settings-block-num { background: #e0e7ff; color: #4338ca; }

.admin-settings-block.tone-landing .admin-settings-block-head { background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%); }
.admin-settings-block.tone-landing .admin-settings-block-num { background: #ede9fe; color: #6d28d9; }

.admin-settings-block.tone-slate .admin-settings-block-head { background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }
.admin-settings-block.tone-slate .admin-settings-block-num { background: #e2e8f0; color: #475569; }

.admin-settings-block.tone-whatsapp .admin-settings-block-head { background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%); }
.admin-settings-block.tone-whatsapp .admin-settings-block-num { background: #d1fae5; color: #047857; }

.admin-settings-block.tone-teal .admin-settings-block-head { background: linear-gradient(180deg, #ecfeff 0%, #fff 100%); }
.admin-settings-block.tone-teal .admin-settings-block-num { background: #cffafe; color: #0e7490; }

.admin-settings-block.tone-payment .admin-settings-block-head { background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.admin-settings-block.tone-payment .admin-settings-block-num { background: #fef3c7; color: #b45309; }

.admin-settings-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}

.admin-settings-save-bar strong {
    display: block;
    margin-bottom: 4px;
}

.admin-settings-save-bar p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

@media (max-width: 1100px) {
    .admin-website-settings-page .admin-settings-layout {
        grid-template-columns: 1fr;
    }

    .admin-settings-nav {
        position: static;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-settings-nav-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .admin-settings-nav {
        grid-template-columns: 1fr;
    }

    .admin-settings-save-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.admin-search-form .btn,
.admin-search-form .btn-sm {
    min-height: 42px;
    align-self: flex-end;
}

/* Admin panel — unified inputs, selects, textareas */
.sidebar-admin ~ .main-wrapper .admin-search-form input:not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-panel-card input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-form-grid input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-form-grid textarea,
.sidebar-admin ~ .main-wrapper .admin-settings-block-body input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-settings-block-body textarea,
.sidebar-admin ~ .main-wrapper .admin-wallet-search-form input:not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-wallet-topup-form input:not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .admin-service-form-grid input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.sidebar-admin ~ .main-wrapper .admin-support-reply-form textarea,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form textarea,
.sidebar-admin ~ .main-wrapper .admin-table-input,
.sidebar-admin ~ .main-wrapper .admin-table-textarea,
.sidebar-admin ~ .main-wrapper .form-group input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.sidebar-admin ~ .main-wrapper .form-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-admin ~ .main-wrapper .admin-search-form input:not([type="hidden"]):not([type="submit"]):not([type="button"]) {
    min-width: 220px;
    flex: 1 1 220px;
}

.sidebar-admin ~ .main-wrapper .admin-support-reply-form textarea,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form textarea,
.sidebar-admin ~ .main-wrapper .admin-table-textarea,
.sidebar-admin ~ .main-wrapper .form-group textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.sidebar-admin ~ .main-wrapper .admin-table-input,
.sidebar-admin ~ .main-wrapper .admin-table-textarea {
    width: auto;
    min-width: 160px;
}

.sidebar-admin ~ .main-wrapper .admin-table-textarea {
    min-width: 190px;
}

.sidebar-admin ~ .main-wrapper .admin-search-form input::placeholder,
.sidebar-admin ~ .main-wrapper .admin-form-grid input::placeholder,
.sidebar-admin ~ .main-wrapper .admin-form-grid textarea::placeholder,
.sidebar-admin ~ .main-wrapper .admin-support-reply-form textarea::placeholder,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form textarea::placeholder,
.sidebar-admin ~ .main-wrapper .form-group input::placeholder,
.sidebar-admin ~ .main-wrapper .form-group textarea::placeholder {
    color: #94a3b8;
}

.sidebar-admin ~ .main-wrapper .admin-search-form input:focus,
.sidebar-admin ~ .main-wrapper .admin-panel-card input:focus,
.sidebar-admin ~ .main-wrapper .admin-form-grid input:focus,
.sidebar-admin ~ .main-wrapper .admin-form-grid textarea:focus,
.sidebar-admin ~ .main-wrapper .admin-settings-block-body input:focus,
.sidebar-admin ~ .main-wrapper .admin-settings-block-body textarea:focus,
.sidebar-admin ~ .main-wrapper .admin-wallet-search-form input:focus,
.sidebar-admin ~ .main-wrapper .admin-wallet-topup-form input:focus,
.sidebar-admin ~ .main-wrapper .admin-support-reply-form textarea:focus,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form textarea:focus,
.sidebar-admin ~ .main-wrapper .admin-table-input:focus,
.sidebar-admin ~ .main-wrapper .admin-table-textarea:focus,
.sidebar-admin ~ .main-wrapper .form-group input:focus,
.sidebar-admin ~ .main-wrapper .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}

.sidebar-admin ~ .main-wrapper .admin-panel-head .admin-search-form {
    margin-bottom: 0;
    flex: 0 1 auto;
}

.sidebar-admin ~ .main-wrapper .admin-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sidebar-admin ~ .main-wrapper .admin-panel-head h2 {
    margin: 0;
}

.sidebar-admin ~ .main-wrapper .admin-support-reply-form,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-admin ~ .main-wrapper .admin-support-reply-form .admin-row-actions,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.sidebar-admin ~ .main-wrapper .admin-transfer-form .form-group,
.sidebar-admin ~ .main-wrapper .admin-wallet-search-form .form-group {
    margin-bottom: 0;
}

.sidebar-admin ~ .main-wrapper .admin-transfer-form .form-group label,
.sidebar-admin ~ .main-wrapper .admin-wallet-search-form .form-group label,
.sidebar-admin ~ .main-wrapper .admin-form-grid .form-group label,
.sidebar-admin ~ .main-wrapper .admin-search-form + .table-responsive ~ .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-inline-upgrade-form,
.admin-transfer-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.admin-transfer-form .form-group {
    min-width: 160px;
    margin: 0;
}

.admin-transfer-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Admin panel selects — match inputs, fix clipping & arrow */
.sidebar-admin ~ .main-wrapper .admin-panel-card select,
.sidebar-admin ~ .main-wrapper .admin-form-grid select,
.sidebar-admin ~ .main-wrapper .admin-settings-block-body select,
.sidebar-admin ~ .main-wrapper .admin-inline-upgrade-form select,
.sidebar-admin ~ .main-wrapper .admin-transfer-form select,
.sidebar-admin ~ .main-wrapper .admin-support-reply-form select,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form select,
.sidebar-admin ~ .main-wrapper .admin-search-form select,
.sidebar-admin ~ .main-wrapper .admin-table-select,
.sidebar-admin ~ .main-wrapper .admin-table td select,
.sidebar-admin ~ .main-wrapper .form-group select,
.admin-panel-card select,
.admin-form-grid select,
.admin-inline-upgrade-form select,
.admin-transfer-form select,
.admin-support-reply-form select,
.admin-ekyc-process-form select,
.admin-search-form select {
    min-height: 42px;
    padding: 10px 40px 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    color: #0f172a;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.35;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-admin ~ .main-wrapper .admin-panel-card select:focus,
.sidebar-admin ~ .main-wrapper .admin-form-grid select:focus,
.sidebar-admin ~ .main-wrapper .admin-settings-block-body select:focus,
.sidebar-admin ~ .main-wrapper .admin-inline-upgrade-form select:focus,
.sidebar-admin ~ .main-wrapper .admin-transfer-form select:focus,
.sidebar-admin ~ .main-wrapper .admin-support-reply-form select:focus,
.sidebar-admin ~ .main-wrapper .admin-ekyc-process-form select:focus,
.sidebar-admin ~ .main-wrapper .admin-search-form select:focus,
.sidebar-admin ~ .main-wrapper .admin-table-select:focus,
.sidebar-admin ~ .main-wrapper .admin-table td select:focus,
.sidebar-admin ~ .main-wrapper .form-group select:focus,
.admin-panel-card select:focus,
.admin-form-grid select:focus,
.admin-inline-upgrade-form select:focus,
.admin-transfer-form select:focus,
.admin-support-reply-form select:focus,
.admin-ekyc-process-form select:focus,
.admin-search-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.12);
}

.admin-modal .admin-field select {
    min-height: 42px;
    padding: 10px 40px 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.admin-modal .admin-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.12);
}

.admin-inline-upgrade-form select {
    min-width: 190px;
    max-width: 240px;
    flex: 1 1 190px;
}

.admin-inline-upgrade-form .btn {
    flex-shrink: 0;
    min-height: 42px;
    padding: 10px 16px;
    align-self: flex-end;
}

.admin-transfer-form select {
    width: 100%;
}

.admin-table td .admin-inline-upgrade-form,
.admin-table td .admin-transfer-form {
    min-width: 220px;
}

.admin-table td select {
    vertical-align: middle;
}

.admin-thumb-logo {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 6px;
    object-fit: cover;
    vertical-align: middle;
}

.admin-logo-preview img {
    max-width: 120px;
    max-height: 60px;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-favicon-preview img {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
}

.admin-support-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-support-page .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-support-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-support-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-support-ticket-row:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.admin-support-ticket-row.is-active {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.admin-support-ticket-row-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-support-ticket-row-copy strong {
    font-size: 0.98rem;
}

.admin-support-ticket-row-copy span,
.admin-support-ticket-row-copy small {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.admin-support-back-link {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-support-back-link:hover {
    text-decoration: underline;
}

.admin-support-chat-page .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.admin-support-chat-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-support-chat-meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-support-chat-meta strong {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-support-chat-meta span {
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-support-closed-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .admin-support-chat-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-support-ticket-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-support-chat-meta {
        grid-template-columns: 1fr;
    }
}

.admin-support-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.admin-support-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.admin-support-meta {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-support-reply {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.admin-support-reply-form,
.admin-ekyc-process-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-ekyc-process-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.inline-form {
    display: inline;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

/* User Support Tickets */
.user-support-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 28px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(59, 91, 219, 0.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.support-hero-kicker {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.support-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
}

.support-hero-text {
    margin: 10px 0 0;
    max-width: 640px;
    color: var(--text-muted);
}

.support-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.support-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.support-summary-card {
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow);
}

.support-summary-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.support-summary-card strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.support-summary-card.tone-blue { border-color: #bfdbfe; background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); }
.support-summary-card.tone-amber { border-color: #fde68a; background: linear-gradient(180deg, #fffbeb 0%, #fff 100%); }
.support-summary-card.tone-teal { border-color: #a5f3fc; background: linear-gradient(180deg, #ecfeff 0%, #fff 100%); }
.support-summary-card.tone-slate { border-color: #e2e8f0; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); }

.support-card-head h2,
.support-detail-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.support-card-head p,
.support-detail-meta {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-form,
.support-reply-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.support-contact-note {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.86rem;
}

.support-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.support-detail-id {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.support-thread,
.admin-support-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.support-thread-item,
.admin-support-thread-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.support-thread-user,
.admin-support-thread-user {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.support-thread-admin,
.admin-support-thread-admin {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.support-thread-item header,
.admin-support-thread-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.support-thread-item header span,
.admin-support-thread-item header span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.support-thread-item p,
.admin-support-thread-item p {
    margin: 0;
    line-height: 1.55;
    white-space: pre-wrap;
}

.support-closed-note {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.support-empty {
    text-align: center;
    padding: 28px 16px;
}

.support-empty strong {
    display: block;
    margin-bottom: 6px;
}

.support-empty p {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.support-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.support-ticket-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 24px rgba(59, 91, 219, 0.08);
    transform: translateY(-1px);
}

.support-ticket-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.support-ticket-copy strong {
    color: var(--text);
}

.support-ticket-copy span,
.support-ticket-copy small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .support-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .support-summary-grid {
        grid-template-columns: 1fr;
    }

    .support-detail-head,
    .support-ticket-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* User e-KYC */
.user-ekyc-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ekyc-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
}

.ekyc-status-grid dt {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ekyc-status-grid dd {
    margin: 0;
    font-weight: 600;
}

.ekyc-status-note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ekyc-status-note-success {
    color: #059669;
}

.ekyc-admin-notes {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.ekyc-admin-notes strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.ekyc-admin-notes p {
    margin: 0;
    color: #991b1b;
    font-size: 0.9rem;
}

.ekyc-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .ekyc-status-grid,
    .ekyc-form-row {
        grid-template-columns: 1fr;
    }
}

/* User Important Links */
.user-important-links-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.important-links-summary {
    display: grid;
    grid-template-columns: minmax(0, 280px);
}

.important-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.important-link-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

.important-link-card-head h2 {
    margin: 8px 0 0;
    font-size: 1.08rem;
}

.important-link-card-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.important-link-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.important-link-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.important-link-meta dt {
    margin: 0 0 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.important-link-meta dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    word-break: break-word;
}

.important-link-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.important-links-empty {
    text-align: center;
    padding: 36px 24px;
}

.important-links-empty h2 {
    margin: 0 0 8px;
}

.important-links-empty p {
    margin: 0 0 18px;
}

@media (max-width: 900px) {
    .important-links-grid {
        grid-template-columns: 1fr;
    }

    .important-link-meta {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Important Services */
.dashboard-important-services {
    margin-bottom: 24px;
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dashboard-important-services-head h2 {
    margin: 0 0 16px;
    color: var(--primary-dark);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.dashboard-important-services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-important-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 132px;
    padding: 18px 12px;
    border-radius: var(--radius-md);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-important-service-card:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.dashboard-important-service-card.tone-blue {
    color: #1a4480;
    border-top: 3px solid #1a4480;
}
.dashboard-important-service-card.tone-green {
    color: #138808;
    border-top: 3px solid #138808;
}
.dashboard-important-service-card.tone-orange {
    color: #c2410c;
    border-top: 3px solid #ff9933;
}
.dashboard-important-service-card.tone-purple {
    color: #6d28d9;
    border-top: 3px solid #6d28d9;
}
.dashboard-important-service-card.tone-pink {
    color: #be185d;
    border-top: 3px solid #be185d;
}

.dashboard-important-service-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
}

.dashboard-important-service-icon svg {
    width: 100%;
    height: 100%;
}

.dashboard-important-service-label {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Service tool pages */
.service-tool-card {
    padding: 22px;
}

.service-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
}

.service-tool-panel h2,
.service-tool-preview h3 {
    margin: 0 0 12px;
}

.service-tool-preview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-aadhaar-frame,
.service-photo-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 16px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.service-aadhaar-frame canvas,
.service-photo-frame canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.passport-sheet-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.passport-border-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.passport-border-settings.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.passport-single-preview {
    min-height: 420px;
}

.passport-single-preview canvas {
    max-height: 520px;
}

.passport-a4-frame {
    min-height: 760px;
}

.service-preview-placeholder {
    position: absolute;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: center;
    padding: 0 20px;
}

.service-aadhaar-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
}

.service-aadhaar-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-fee-line {
    margin: 10px 0 0;
    color: #334155;
    font-size: 0.9rem;
}

.service-password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.service-aadhaar-results {
    display: grid;
    gap: 18px;
}

.service-aadhaar-result-card {
    display: grid;
    gap: 10px;
}

.service-aadhaar-result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-aadhaar-result-heading h3 {
    margin: 0;
}

.service-aadhaar-results .service-aadhaar-frame {
    min-height: 210px;
}

.service-aadhaar-status {
    min-height: 22px;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.service-aadhaar-status.is-loading {
    color: #1d4ed8;
}

.service-aadhaar-status.is-success {
    color: #15803d;
}

.service-aadhaar-status.is-error {
    color: #b91c1c;
}

.service-aadhaar-download-all {
    justify-self: start;
}

.service-aadhaar-a4-section {
    margin-top: 22px;
}

.service-aadhaar-a4-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 680px;
    margin-top: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #ffffff;
}

.service-aadhaar-pdf-preview {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}

.service-aadhaar-a4-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.voter-tool-heading,
.voter-result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.voter-tool-heading h2,
.voter-result-heading h2 {
    margin: 0 0 6px;
}

.voter-file-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
}

.voter-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-top: 20px;
}

.voter-upload-slot {
    margin: 0;
}

.voter-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.voter-preview-list {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.voter-card-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
}

.voter-side-preview {
    display: grid;
    gap: 10px;
}

.voter-card-canvas {
    max-width: 100%;
    height: auto;
}

.voter-a4-frame {
    min-height: 760px;
}

.service-upload-form {
    max-width: 560px;
}

.compress-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.compress-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.compress-upload-box {
    display: flex;
    min-height: 360px;
    padding: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 2px dashed #93c5fd;
    border-radius: 16px;
    background: #eff6ff;
    color: #475569;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.compress-upload-prompt,
.compress-upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
}

.compress-upload-preview[hidden],
.compress-upload-prompt[hidden] {
    display: none;
}

.compress-preview-card {
    display: flex;
    width: 188px;
    min-height: 238px;
    padding: 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.compress-preview-card canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.15);
}

.compress-upload-preview > strong {
    max-width: 320px;
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compress-upload-box:hover,
.compress-upload-box.is-dragging {
    border-color: #2563eb;
    background: #dbeafe;
    transform: translateY(-1px);
}

.compress-upload-box strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.compress-upload-box small {
    color: #64748b;
}

.compress-upload-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.compress-grayscale-option {
    margin-bottom: 18px;
}

.compress-file-summary {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 600;
}

.converter-upload-form {
    max-width: 760px;
    margin: 0 auto;
}

.converter-heading {
    margin-bottom: 20px;
}

.converter-heading h2 {
    margin: 0;
}

.converter-upload-box {
    min-height: 390px;
}

.converter-images-preview {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.converter-images-preview[hidden] {
    display: none;
}

.converter-image-grid {
    display: grid;
    width: min(100%, 560px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.converter-image-thumb,
.converter-image-more {
    display: flex;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.converter-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.converter-image-more {
    color: #1d4ed8;
    font-size: 1.15rem;
    font-weight: 800;
}

.converter-images-preview > strong {
    max-width: 100%;
    color: #0f172a;
}

.converter-image-icon {
    background: #7c3aed;
}

.converter-submit {
    width: 100%;
}

.converter-service-unavailable {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
}

.document-operation-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.document-operation-tabs label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    cursor: pointer;
}

.document-operation-tabs input {
    width: auto;
    accent-color: #2563eb;
}

.document-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.document-files-preview {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.document-files-preview[hidden],
.document-settings-grid > [hidden] {
    display: none;
}

.document-pdf-grid {
    display: grid;
    width: min(100%, 610px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.document-pdf-card {
    position: relative;
    display: flex;
    min-width: 0;
    padding: 9px;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.document-pdf-card canvas {
    display: block;
    max-width: 100%;
    height: auto;
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.14);
}

.document-pdf-card b {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
}

.document-pdf-card small {
    width: 100%;
    overflow: hidden;
    color: #334155;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .converter-upload-box {
        min-height: 320px;
        padding: 18px;
    }

    .converter-image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .document-settings-grid,
    .document-operation-tabs {
        grid-template-columns: 1fr;
    }

    .document-pdf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hisab-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.hisab-summary-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.hisab-summary-card span {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hisab-summary-card strong {
    font-size: 1.25rem;
}

.hisab-summary-card.tone-green { background: #f0fdf4; }
.hisab-summary-card.tone-red { background: #fef2f2; }
.hisab-summary-card.tone-blue { background: #eff6ff; }

.hisab-entry-form {
    margin-bottom: 20px;
}

.hisab-empty-row td {
    text-align: center;
    color: var(--text-muted);
}

/* Aadhaar Update biometric service */
.biometric-service-card {
    padding: 24px;
}

.biometric-service-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.biometric-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.biometric-full-field,
.biometric-address-field {
    grid-column: 1 / -1;
}

.biometric-field-pair {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.biometric-field-pair:not(.has-active-correction) .biometric-current-field {
    grid-column: 1 / -1;
}

.biometric-correction-field {
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
}

.biometric-correction-field[hidden] {
    display: none;
}

.biometric-form-fields input,
.biometric-form-fields textarea,
.biometric-form-fields select {
    width: 100%;
}

.biometric-five-capture {
    display: grid;
    gap: 18px;
}

.biometric-five-capture-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.biometric-five-capture-head h2 {
    margin: 0 0 6px;
}

.biometric-five-capture-head p {
    margin: 0;
    color: var(--text-muted);
}

.biometric-finger-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
}

.biometric-finger-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.biometric-finger-card.is-captured {
    border-color: #16a34a;
    background: #f0fdf4;
}

.biometric-finger-preview {
    position: relative;
    display: grid;
    min-height: 120px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #eef4ff;
}

.biometric-finger-preview img {
    width: 100%;
    max-height: 135px;
    object-fit: contain;
}

.biometric-finger-check {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.biometric-finger-card h3 {
    margin: 0;
    font-size: 0.95rem;
}

.biometric-finger-card small {
    color: var(--text-muted);
}

.biometric-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.biometric-table-image {
    width: 46px;
    height: 58px;
    border-radius: 6px;
    object-fit: contain;
    background: #e2e8f0;
}

.biometric-history-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.biometric-history-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.biometric-history-filter .btn.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* Admin biometric request list */
.admin-biometric-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-biometric-table {
    table-layout: fixed;
    min-width: 1040px;
}

.admin-biometric-table th:nth-child(1),
.admin-biometric-table td:nth-child(1) {
    width: 14%;
}

.admin-biometric-table th:nth-child(2),
.admin-biometric-table td:nth-child(2) {
    width: 18%;
}

.admin-biometric-table th:nth-child(3),
.admin-biometric-table td:nth-child(3) {
    width: 20%;
}

.admin-biometric-table th:nth-child(4),
.admin-biometric-table td:nth-child(4) {
    width: 21%;
}

.admin-biometric-table th:nth-child(5),
.admin-biometric-table td:nth-child(5) {
    width: 27%;
}

.admin-biometric-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.admin-biometric-table td > strong {
    display: inline-block;
    margin-bottom: 5px;
}

.admin-biometric-table td small {
    line-height: 1.65;
}

.admin-biometric-change {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 600;
}

.admin-biometric-gallery {
    display: flex;
    align-items: flex-start;
}

.admin-biometric-thumb {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: 132px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    line-height: 1.25;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-biometric-thumb:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 14px rgba(26, 68, 128, 0.14);
    transform: translateY(-1px);
}

.admin-biometric-thumb .biometric-admin-image {
    grid-column: 1 / -1;
    display: block;
    width: 118px;
    height: 145px;
    margin-bottom: 6px;
    border-radius: 5px;
    background: #f8fafc;
    object-fit: contain;
}

.admin-biometric-thumb span {
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-biometric-thumb small {
    font-size: 0.74rem;
}

.admin-biometric-device {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.76rem;
}

.admin-biometric-review-form {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 210px;
}

.admin-biometric-review-form select,
.admin-biometric-review-form textarea {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.86rem;
}

.admin-biometric-review-form textarea {
    min-height: 76px;
    resize: vertical;
    line-height: 1.35;
}

.admin-biometric-review-form select:focus,
.admin-biometric-review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 68, 128, 0.12);
}

.admin-biometric-review-form .btn {
    width: 100%;
    min-height: 38px;
}

@media (max-width: 1100px) {
    .dashboard-important-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .biometric-finger-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-important-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-tool-grid,
    .service-aadhaar-workspace,
    .hisab-summary-grid,
    .biometric-form-fields,
    .biometric-field-pair {
        grid-template-columns: 1fr;
    }

    .biometric-finger-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .biometric-five-capture-head,
    .biometric-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .biometric-submit-row .btn {
        width: 100%;
    }

    .admin-biometric-table {
        min-width: 0;
        table-layout: auto;
    }

    .admin-biometric-table th,
    .admin-biometric-table td {
        width: auto !important;
    }

    .admin-biometric-thumb {
        width: 126px;
    }

    .admin-biometric-thumb .biometric-admin-image {
        width: 112px;
        height: 138px;
    }

    .admin-biometric-review-form {
        min-width: 0;
    }

    .service-aadhaar-result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-aadhaar-download-all {
        width: 100%;
    }

    .service-aadhaar-a4-frame {
        min-height: 460px;
        padding: 10px;
    }

    .service-aadhaar-pdf-preview {
        min-height: 430px;
    }

    .service-aadhaar-a4-actions .btn {
        width: 100%;
    }

    .voter-tool-heading,
    .voter-result-heading {
        flex-direction: column;
    }

    .voter-upload-grid,
    .voter-card-preview-grid {
        grid-template-columns: 1fr;
    }

    .voter-tool-actions .btn {
        width: 100%;
    }

    .voter-a4-frame {
        min-height: 520px;
    }

    .passport-border-settings {
        grid-template-columns: 1fr;
    }

    .passport-a4-frame {
        min-height: 520px;
    }

    .compress-settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Biometric fingerprint viewer */
.biometric-view-page {
    display: grid;
    gap: 18px;
}

.biometric-view-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
}

.biometric-view-approved {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 10px;
    background: #e8f0fb;
    color: #1f4f8e;
    font-size: 1.5rem;
    font-weight: 800;
}

.biometric-view-details {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px 10px;
}

.biometric-view-details strong {
    flex-basis: 100%;
    color: #12243d;
    font-size: 1.02rem;
}

.biometric-view-details span {
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid #d7e0ec;
    border-radius: 6px;
    background: #f7f9fc;
    color: #34465e;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.biometric-view-summary .btn {
    min-width: 96px;
}

.biometric-viewer {
    --fingerprint-width: 180px;
    --fingerprint-height: 220px;
    --fingerprint-cell-width: 220px;
    --fingerprint-cell-height: 270px;
    --fingerprint-brightness: 100%;
    overflow: hidden;
    border: 1px solid #182334;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 8px 24px rgba(12, 28, 49, 0.16);
}

.biometric-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #d6dfeb;
    background: #fff;
    flex-wrap: wrap;
}

.biometric-view-zoom,
.biometric-view-presets,
.biometric-view-themes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.biometric-view-toolbar button,
.biometric-view-themes button {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #bac8da;
    border-radius: 7px;
    background: #edf2f8;
    color: #16375f;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.biometric-view-toolbar button:hover,
.biometric-view-toolbar button:focus-visible {
    border-color: #1f4f8e;
    background: #dce8f7;
}

.biometric-view-zoom button {
    width: 38px;
    padding: 0;
    font-size: 1.2rem;
}

.biometric-view-zoom strong {
    min-width: 62px;
    color: #12243d;
    text-align: center;
}

.biometric-view-stage {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    min-height: 610px;
    background: #000;
}

.biometric-view-scroll {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 30px;
}

.biometric-view-grid {
    display: grid;
    width: max-content;
    min-width: 100%;
    grid-template-columns: repeat(2, var(--fingerprint-cell-width));
    grid-auto-rows: var(--fingerprint-cell-height);
    justify-content: space-around;
    align-items: start;
    gap: 28px 52px;
}

.biometric-view-finger {
    display: flex;
    width: var(--fingerprint-cell-width);
    min-height: var(--fingerprint-cell-height);
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    color: #fff;
    text-align: center;
}

.biometric-view-finger:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
}

.biometric-view-finger canvas {
    display: block;
    width: var(--fingerprint-width);
    height: var(--fingerprint-height);
    max-width: none;
    border-top: 6px solid #ef2828;
    border-bottom: 6px solid #ef2828;
    background: #020000;
    filter: brightness(var(--fingerprint-brightness));
    image-rendering: auto;
}

.biometric-view-finger figcaption {
    font-size: 0.88rem;
    font-weight: 700;
}

.biometric-view-finger figcaption small {
    display: block;
    margin-top: 3px;
    color: #a9bbd2;
    font-size: 0.75rem;
    font-weight: 500;
}

.biometric-brightness-control {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid #1c293b;
    background: #070b12;
    color: #d8e4f2;
    font-size: 0.72rem;
    font-weight: 700;
}

.biometric-brightness-control:last-child {
    border-right: 0;
    border-left: 1px solid #1c293b;
}

.biometric-brightness-control input[type="range"] {
    width: 220px;
    height: 28px;
    margin: 92px -82px;
    transform: rotate(-90deg);
    accent-color: #1685ff;
    cursor: pointer;
}

.biometric-view-themes {
    justify-content: center;
    padding: 14px 16px;
    border-top: 1px solid #1c293b;
    background: #080b10;
    flex-wrap: wrap;
}

.biometric-view-themes button {
    min-width: 78px;
    border-color: #35465c;
    background: #151c26;
    color: #dce7f4;
}

.biometric-view-themes button:hover,
.biometric-view-themes button:focus-visible,
.biometric-view-themes button.is-active {
    border-color: #1591ff;
    background: #087ed7;
    color: #fff;
}

@media (max-width: 900px) {
    .biometric-view-summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .biometric-view-summary .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .biometric-view-stage {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .biometric-view-scroll {
        padding: 20px;
    }

    .biometric-view-grid {
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .biometric-view-summary {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .biometric-view-summary .btn {
        grid-column: auto;
        width: 100%;
    }

    .biometric-view-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .biometric-view-zoom,
    .biometric-view-presets {
        justify-content: center;
        flex-wrap: wrap;
    }

    .biometric-view-stage {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .biometric-brightness-control {
        flex-direction: row;
        padding: 9px 14px;
        border: 0;
        border-bottom: 1px solid #1c293b;
    }

    .biometric-brightness-control:last-child {
        border: 0;
        border-top: 1px solid #1c293b;
    }

    .biometric-brightness-control input[type="range"] {
        width: min(280px, 70vw);
        height: auto;
        margin: 0;
        transform: none;
    }

    .biometric-view-scroll {
        padding: 16px;
    }

    .biometric-view-grid {
        grid-template-columns: var(--fingerprint-cell-width);
        justify-content: start;
    }

    .biometric-view-finger:nth-child(5) {
        grid-column: auto;
        justify-self: auto;
    }
}
