:root {
    --primary: #1a5276;
    --primary-dark: #154360;
    --sidebar-width: 260px;
    --bottom-nav-height: 64px;
    --topbar-height: 56px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Sans Tamil', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    margin: 0;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Layout */
.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1040;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav { list-style: none; padding: 1rem 0; margin: 0; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--primary);
}
.sidebar-nav li a i { font-size: 1.1rem; width: 20px; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0.5rem 1rem; }

.main-content {
    flex: 1;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .main-content { margin-left: var(--sidebar-width); }
}

.topbar {
    background: #fff;
    padding: 0.75rem 1rem;
    height: var(--topbar-height);
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.content-area {
    flex: 1;
    padding: 1rem;
    padding-bottom: calc(var(--bottom-nav-height) + 1rem);
}

@media (min-width: 992px) {
    .content-area { padding-bottom: 1rem; }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-height);
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.65rem;
    padding: 0.25rem;
    min-width: 56px;
}

.bottom-nav a i { font-size: 1.25rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--primary); font-weight: 600; }

/* Stat Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.stat-value { font-size: 1.25rem; font-weight: 700; color: #2c3e50; }
.stat-label { font-size: 0.75rem; color: #6c757d; }

/* Member Cards (Mobile Directory) */
.member-cards { display: flex; flex-direction: column; gap: 0.75rem; }

.member-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.15s;
}

.member-card:active { transform: scale(0.98); }

.card-avatar img, .profile-avatar img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.avatar-placeholder-lg {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
}

.card-body-content { flex: 1; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; color: #6c757d; }
.card-meta span i { margin-right: 0.25rem; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }

/* Auth Page */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #2980b9 100%);
    padding: 1rem;
}

.auth-page .osa-hero-section {
    padding: 0 0 0.5rem;
    margin-bottom: 0.25rem;
}

.auth-page .auth-container {
    width: 100%;
    max-width: 480px;
}
.auth-logo { text-align: center; color: #fff; }
.auth-card { border: none; border-radius: 16px; }

.logo-circle, .logo-circle-lg {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.logo-circle-lg { width: 72px; height: 72px; font-size: 2rem; background: var(--primary); }

/* Application Wizard & Public Landing */
.application-page,
.public-landing-page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.application-page,
.public-landing-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.application-form-section,
#applicationForm {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-body {
    max-width: 720px;
    margin: 0 auto;
}

.application-hero {
    width: 100%;
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

@media (min-width: 768px) {
    .application-hero,
    .osa-hero-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* OSA Hero Banner */
.osa-hero-section {
    width: 100%;
    padding: 0.75rem 0.75rem 0;
}

.application-hero .osa-hero-section,
.public-landing-page > .osa-hero-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.osa-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(26, 82, 118, 0.18);
    background: linear-gradient(180deg, #e8f4fc 0%, #f8fbfd 100%);
    line-height: 0;
}

.osa-hero__picture {
    display: block;
    width: 100%;
}

.osa-hero__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.osa-hero-section--compact .osa-hero__img {
    max-height: 280px;
}

@media (min-width: 768px) {
    .osa-hero-section {
        padding: 1rem 1rem 0;
    }

    .osa-hero-section--compact .osa-hero__img {
        max-height: 360px;
    }
}

@media (min-width: 992px) {
    .osa-hero {
        min-height: 400px;
        max-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .osa-hero__img {
        max-height: 500px;
        width: 100%;
        height: auto;
    }

    .osa-hero-section--compact .osa-hero {
        min-height: 280px;
        max-height: 360px;
    }

    .osa-hero-section--compact .osa-hero__img {
        max-height: 360px;
    }
}

.hero-quick-actions {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.hero-action-btn {
    min-height: 52px;
    border-radius: 12px;
}

.welcome-section {
    margin-top: 1.5rem;
    padding: 1.25rem 1rem;
    background: #f8fafb;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.welcome-title {
    font-size: 1.35rem !important;
    color: var(--primary);
}

.welcome-subtitle {
    font-size: 0.9rem !important;
    color: #6c757d;
}

.welcome-text .label-ta {
    font-size: 0.95rem;
    font-weight: 600;
    color: #34495e;
}

.welcome-text .label-en {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.section-heading {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

html {
    scroll-behavior: smooth;
}

.dob-input {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.dob-input::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

.page-indicator .label-ta {
    font-size: 1.1rem;
    color: var(--primary);
}

.page-indicator .label-en {
    font-size: 0.8rem;
    display: block;
}

.wizard-nav .btn-lg {
    min-height: 52px;
    font-size: 1rem;
    border-radius: 12px;
}

#navButtons .btn-lg {
    min-height: 52px;
}

.app-header {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: #fff;
}
.app-header .logo-circle-lg {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.app-header h4, .app-header p { color: #fff; }
.app-header .text-muted { color: rgba(255,255,255,0.8) !important; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s; }

/* Single-page scrolling form */
.application-form-scroll,
.application-form-single {
    overflow-x: hidden;
}

.application-form-single .wizard-step--always-active,
.application-form-single .wizard-step--always-active.active {
    display: block;
    animation: none;
}

.form-section-card {
    border-radius: 14px;
    overflow: hidden;
}

.form-section-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2980b9 100%);
    color: #fff;
    padding: 0.9rem 1rem;
    border: none;
}

.form-section-card-header .form-section-title .label-ta {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-section-card-header .form-section-title .label-en {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
}

.form-section-card-body {
    padding: 1rem 1rem 1.1rem;
}

.form-section-card-body .form-label .label-ta {
    font-size: 0.95rem;
    line-height: 1.35;
}

.form-section-card-body .form-label .label-en {
    font-size: 0.78rem;
    line-height: 1.3;
    margin-top: 0.15rem;
}

.payment-subheading {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.payment-subheading .label-ta {
    font-size: 0.95rem;
    font-weight: 700;
}

.form-submit-area {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.form-submit-area .btn-lg {
    min-height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.25);
}

/* Compact bank card */
.bank-compact-card .official-bank-card {
    border-radius: 14px;
}

.bank-compact-card .bank-emoji {
    font-size: 1.25rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.bank-compact-row {
    padding: 0.55rem 0;
    border-bottom: 1px solid #eef2f5;
}

.bank-compact-row:last-of-type {
    border-bottom: none;
}

.bank-compact-row--account {
    background: #f0f7fc;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
    border-bottom: none;
    margin-bottom: 0.25rem;
}

.bank-compact-row .info-label .label-ta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #5a6a7a;
}

.bank-compact-row .info-label .label-en {
    font-size: 0.72rem;
    color: #8a97a3;
}

.bank-compact-row .info-value {
    font-size: 0.95rem;
    word-break: break-word;
}

.bank-compact-row--account .account-number-value {
    font-size: 1.35rem;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.preview-filename,
.preview-filename-img {
    word-break: break-all;
    color: #495057;
}

@media (max-width: 414px) {
    .form-section-card-body {
        padding: 0.85rem 0.85rem 1rem;
    }

    .membership-options {
        gap: 0.5rem;
    }

    .upload-area {
        min-height: 120px;
        padding: 1rem 0.75rem;
    }

    .bank-compact-row--account .account-number-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .form-section-card-header {
        padding: 0.75rem 0.85rem;
    }

    .form-section-card-header .form-section-title .label-ta {
        font-size: 0.98rem;
    }

    .bilingual-btn .label-ta,
    .bilingual-btn .label-en {
        font-size: 0.85rem;
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.step-title {
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.step-dot { text-align: center; flex: 1; }
.step-dot .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #dee2e6;
    display: inline-block;
}
.step-dot.active .dot { background: var(--primary); transform: scale(1.3); }
.step-dot small { font-size: 0.6rem; color: #6c757d; display: block; margin-top: 4px; }

/* Membership Options */
.membership-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 576px) {
    .membership-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.membership-option {
    display: flex;
    min-height: 100%;
    margin: 0;
}

.membership-option input { display: none; }

.membership-option .option-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px solid #e0e6eb;
    border-radius: 14px;
    padding: 1.1rem 1rem 1rem;
    padding-top: 2.35rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    background: #fff;
    min-height: 100%;
}

.membership-option .option-card:hover {
    border-color: rgba(26, 82, 118, 0.45);
    box-shadow: 0 4px 14px rgba(26, 82, 118, 0.08);
}

.membership-option input:checked + .option-card {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(26, 82, 118, 0.07) 0%, rgba(26, 82, 118, 0.03) 100%);
    box-shadow: 0 0 0 1px var(--primary), 0 6px 18px rgba(26, 82, 118, 0.12);
}

.option-selected-badge {
    display: none;
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.2;
}

.option-selected-badge .bi {
    font-size: 0.8rem;
}

.option-selected-badge .label-ta,
.option-selected-badge .label-en {
    display: inline;
    color: #fff;
    font-weight: 600;
}

.option-selected-badge .label-en::before {
    content: ' / ';
    opacity: 0.85;
}

.membership-option input:checked + .option-card .option-selected-badge {
    display: inline-flex;
}

.option-title-block {
    margin-bottom: 0.65rem;
}

.option-title-ta {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a5276;
    line-height: 1.35;
}

.option-title-en {
    display: block;
    font-size: 0.88rem;
    color: #5a6c7d;
    margin-top: 0.15rem;
}

.option-validity-block {
    background: rgba(26, 82, 118, 0.07);
    border: 1px solid rgba(26, 82, 118, 0.12);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.85rem;
}

.option-validity-line + .option-validity-line {
    margin-top: 0.25rem;
}

.option-validity-ta {
    display: block;
    font-size: 0.92rem;
    color: #1a5276;
    line-height: 1.4;
}

.option-validity-en {
    display: block;
    font-size: 0.8rem;
    color: #5a6c7d;
    line-height: 1.35;
}

.option-meta-label {
    font-weight: 500;
    margin-right: 0.2rem;
}

.option-fee-block {
    padding-top: 0.15rem;
}

.option-fee-ta {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
}

.option-fee-en {
    font-size: 0.86rem;
    font-weight: 600;
    color: #5a6c7d;
    margin-top: 0.15rem;
}

.option-title { font-weight: 600; font-size: 1rem; }
.option-fee { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 0.25rem 0; }
.option-desc { font-size: 0.8rem; color: #6c757d; }

/* Upload */
.upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
    min-height: 140px;
}

.upload-area:hover,
.upload-area.has-file,
.upload-area.is-dragover {
    border-color: var(--primary);
    background: rgba(26, 82, 118, 0.03);
}

.upload-area.is-dragover {
    background: rgba(26, 82, 118, 0.08);
}

.upload-area-body {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.upload-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
}

.upload-preview {
    position: relative;
    z-index: 2;
    pointer-events: none;
    margin-top: 0.75rem;
}

.upload-area.has-file .upload-area-body {
    display: none;
}

.upload-thumb {
    max-height: 120px;
    max-width: 100%;
    border-radius: 8px;
}

.preview-pdf .preview-filename {
    word-break: break-all;
    color: #495057;
}

/* Review */
.review-summary .review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.review-summary .review-item strong { text-align: right; max-width: 60%; }

/* Digital Membership Card */
.digital-card {
    max-width: 380px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.card-header-section {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    color: #fff;
    padding: 1.25rem;
    text-align: center;
}

.card-body-section { padding: 1.5rem; background: #fff; }
.member-photo img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); }
.membership-no { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.qr-code { width: 120px; height: 120px; margin-top: 0.5rem; }

/* Info Rows */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}
.info-row span { color: #6c757d; }

/* Chart Cards */
.chart-card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.chart-card .card-header { background: transparent; border-bottom: 1px solid #f0f0f0; }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-lg { min-height: 48px; font-size: 1rem; }

/* Touch friendly */
.form-control, .form-select { min-height: 44px; font-size: 16px; }
.form-control-lg { min-height: 48px; }

/* Doc thumb */
.doc-thumb {
    display: flex; flex-direction: column; align-items: center;
    padding: 1rem; background: #f8f9fa; border-radius: 8px;
    text-decoration: none; color: #333;
}
.doc-thumb i { font-size: 2rem; color: var(--primary); }

/* Profile */
.member-profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Responsive tables hidden on mobile - cards used instead */
@media (max-width: 767px) {
    .page-title { font-size: 1rem; }
}

/* PWA install prompt */
.install-prompt {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 10px);
    left: 1rem; right: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

@media (min-width: 992px) {
    .install-prompt { bottom: 1rem; left: auto; right: 1rem; max-width: 360px; }
}

/* Bilingual Labels — Tamil primary, English secondary */
.bilingual-label,
.bilingual-heading,
.bilingual-text,
.bilingual-btn {
    display: block;
    line-height: 1.3;
}

.label-ta {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1a252f;
    line-height: 1.35;
}

.label-en {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.bilingual-heading .label-ta {
    font-size: 1.15rem;
}

.bilingual-heading .label-en {
    font-size: 0.85rem;
    font-weight: 500;
}

.bilingual-text:not(.bilingual-block) .label-ta,
.bilingual-text:not(.bilingual-block) .label-en {
    display: inline;
}

.bilingual-text:not(.bilingual-block) .label-en::before {
    content: ' / ';
    color: #adb5bd;
}

.bilingual-block .label-ta {
    font-size: 1.05rem;
}

.stat-label .label-ta {
    font-size: 0.8rem;
    font-weight: 700;
}

.stat-label .label-en {
    font-size: 0.65rem;
}

.sidebar-nav .label-ta {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.sidebar-nav .label-en {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
}

.bottom-nav .label-ta {
    font-size: 0.6rem;
    font-weight: 700;
    color: inherit;
}

.bottom-nav .label-en {
    display: none;
}

.bilingual-btn .label-ta {
    font-size: 1rem;
}

.bilingual-btn .label-en {
    font-size: 0.75rem;
}

.membership-option .label-ta {
    font-size: 1rem;
    font-weight: 700;
}

.membership-option .label-en {
    font-size: 0.85rem;
}

.declaration-text .label-ta {
    font-size: 0.95rem;
    font-weight: 600;
}

.declaration-text .label-en {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.review-summary .review-item .label-ta {
    font-size: 0.85rem;
    font-weight: 600;
}

.review-summary .review-item .label-en {
    font-size: 0.7rem;
}

.app-header .label-ta {
    color: #fff;
    font-size: 1.25rem;
}

.app-header .label-en {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
}

.auth-logo .label-ta {
    color: #fff;
    font-size: 1.25rem;
}

.auth-logo .label-en {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}

.card-title.bilingual-heading .label-ta {
    font-size: 1.1rem;
}

.step-dot .label-ta {
    font-size: 0.6rem;
    font-weight: 700;
    color: #495057;
}

.step-dot .label-en {
    display: none;
}

@media (min-width: 576px) {
    .step-dot .label-en {
        display: block;
        font-size: 0.55rem;
    }
}

/* Official bank intro card (Page 1) */
.sticky-bank-card {
    position: sticky;
    top: 0;
    z-index: 1020;
    padding-top: 0.25rem;
    background: linear-gradient(to bottom, #fff 85%, rgba(255,255,255,0));
}

.official-bank-card {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(26, 82, 118, 0.15);
}

.official-bank-card-header {
    background: linear-gradient(135deg, var(--primary), #2980b9);
    border: none;
    padding: 1rem 1.15rem;
}

.official-bank-card-header .label-ta {
    color: #fff;
    font-size: 1.1rem;
}

.official-bank-card-header .label-en {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
}

.official-bank-card-header .bank-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.official-bank-card .card-body {
    background: #f8fafb;
    padding: 1rem 1.15rem;
}

.info-row-bilingual {
    padding: 0.65rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.account-number-row {
    background: rgba(26, 82, 118, 0.06);
    margin: 0 -1.15rem;
    padding: 1rem 1.15rem;
    border-bottom: none;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
}

.account-number-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
    line-height: 1.2;
    word-break: break-all;
}

.copy-bank-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    border-radius: 10px;
}

.copy-bank-btn .label-ta {
    font-size: 0.85rem;
    font-weight: 600;
}

.copy-bank-btn .label-en {
    font-size: 0.7rem;
    color: #6c757d;
}

.fee-summary-item .label-ta {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a252f;
}

.fee-summary-item .label-en {
    font-size: 0.8rem;
    color: #6c757d;
}

.important-notice .label-ta {
    font-size: 0.95rem;
    font-weight: 700;
    color: #856404;
}

.important-notice .label-en {
    font-size: 0.8rem;
    color: #856404;
}

.personal-form-section {
    padding-top: 0.5rem;
}

.bank-details-card,
.payment-instructions {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    background: #f8fafb;
}

.membership-option .option-fee-ta {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.membership-option .option-fee-en {
    font-size: 0.86rem;
    font-weight: 600;
    color: #5a6c7d;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 1.25rem 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.site-footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.site-footer .label-ta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.site-footer .label-en {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

.site-footer-dev .label-ta,
.site-footer-dev .label-en {
    font-weight: 500;
}

.site-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.doc-status-card {
    background: #f8fafb;
}

.doc-status-card .badge .label-ta,
.doc-status-card .badge .label-en {
    display: inline;
    font-size: 0.75rem;
    font-weight: 600;
}

.doc-status-card .badge .label-en::before {
    content: ' / ';
}

.payment-steps-list .label-ta { font-size: 0.95rem; }
.payment-steps-list .label-en { font-size: 0.8rem; color: #6c757d; }

/* Draft restore notice */
.draft-restore-banner {
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f7ff 100%);
    border-left: 4px solid var(--primary) !important;
}

.draft-restore-banner .label-ta {
    font-size: 0.95rem;
    color: #1a5276;
}

.draft-restore-banner .label-en {
    font-size: 0.82rem;
    color: #5a6c7d;
    margin-top: 0.15rem;
}

.draft-file-hint {
    line-height: 1.4;
}

/* Application contact section */
.application-contact-card {
    background: linear-gradient(180deg, #e8f4fc 0%, #f0f8ff 100%);
    border: 1px solid rgba(26, 82, 118, 0.12) !important;
    border-radius: 14px;
}

.application-contact-card .card-body {
    padding: 1.35rem 1.15rem;
}

.application-contact-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(26, 82, 118, 0.12);
    color: var(--primary);
    font-size: 1.35rem;
}

.application-contact-title .label-ta {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a5276;
}

.application-contact-title .label-en {
    display: block;
    font-size: 0.88rem;
    color: #5a6c7d;
    margin-top: 0.2rem;
    font-weight: 500;
}

.application-contact-text .label-ta {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #2c3e50;
}

.application-contact-text .label-en {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5a6c7d;
    margin-top: 0.65rem;
}

.application-contact-role {
    font-size: 1rem;
    font-weight: 700;
    color: #1a5276;
}

.application-contact-role-en {
    font-size: 0.85rem;
    color: #5a6c7d;
    margin-top: 0.15rem;
}

.application-contact-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
}

.application-contact-phone:hover,
.application-contact-phone:focus {
    background: #154360;
    color: #fff !important;
    transform: translateY(-1px);
}

.application-contact-phone .bi {
    font-size: 1rem;
}

@media (max-width: 414px) {
    .application-contact-card .card-body {
        padding: 1.15rem 0.95rem;
    }

    .application-contact-phone {
        font-size: 1.05rem;
        width: 100%;
        max-width: 280px;
    }
}
