/* ==========================================================================
   APEX PAN SERVICE - MODERN AUTHENTICATION & PORTAL STYLING
   Pixel-perfect design matching Screenshots 1, 2, 3, 4, 5
   ========================================================================== */

:root {
    --primary-blue: #0A66C2;
    --primary-blue-hover: #08539e;
    --brand-navy: #0F172A;
    --brand-navy-light: #1E293B;
    --brand-orange: #F97316;
    --brand-green: #10B981;
    --bg-page-top: #F0F6FF;
    --bg-page-bottom: #E8F2FE;
    --card-bg: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --border-focus: #3B82F6;
    --badge-blue-bg: #E0F2FE;
    --badge-blue-text: #0284C7;
    --shadow-card: 0 20px 45px -10px rgba(30, 58, 138, 0.12), 0 8px 16px -4px rgba(30, 58, 138, 0.06);
    --shadow-modal: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #F0F6FF 0%, #E8F2FE 50%, #F5F9FF 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Organic Curves / Waves */
.bg-wave-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.apex-navbar {
    position: relative;
    z-index: 20;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apex-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon-svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title-row {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-title-row .word-apex {
    color: #0A66C2;
    font-weight: 900;
}

.brand-title-row .word-pan {
    color: #F97316;
    margin-left: 4px;
    font-weight: 900;
}

.brand-title-row .word-service {
    color: #0F172A;
    margin-left: 4px;
    font-weight: 800;
}

.brand-tagline {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Desktop Nav Links */
.apex-nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.apex-nav-links a {
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    transition: color 0.15s ease;
}

.apex-nav-links a:hover {
    color: var(--primary-blue);
}

/* Header Right Actions */
.apex-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.support-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-pill-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.support-phone-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    text-decoration: none;
}

.support-phone-text:hover {
    color: var(--primary-blue);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #1E293B;
    cursor: pointer;
    padding: 6px;
}

/* ==========================================================================
   PAGE MAIN LAYOUT
   ========================================================================== */
.apex-main-layout {
    position: relative;
    z-index: 10;
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 32px 60px;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 60px;
    align-items: center;
}

/* ==========================================================================
   LEFT HERO SECTION (Welcome to Apex Pan Service)
   ========================================================================== */
.apex-hero-left {
    display: flex;
    flex-direction: column;
}

.hero-welcome-sub {
    font-size: 26px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hero-welcome-main {
    font-size: 42px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.hero-welcome-desc {
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 580px;
}

/* 8 Services Grid */
.services-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.service-card-item {
    background: #FFFFFF;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.service-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -4px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.service-card-item span {
    font-size: 12.5px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.25;
}

/* PAN Card Graphic & Handwritten Signature Row */
.pan-partner-showcase {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 36px;
    padding: 10px 0;
}

.pan-card-realistic {
    width: 260px;
    height: 162px;
    background: linear-gradient(135deg, #CFE4FA 0%, #D8ECFD 50%, #BFE1FD 100%);
    border: 1px solid #93C5FD;
    border-radius: 12px;
    padding: 10px 12px;
    position: relative;
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.25), 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.pan-card-realistic:hover {
    transform: rotate(0deg) scale(1.02);
}

.pan-realistic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30, 58, 138, 0.15);
    padding-bottom: 4px;
}

.pan-dept-text {
    font-size: 8px;
    font-weight: 800;
    color: #1E3A8A;
    line-height: 1.15;
}

.pan-dept-govt {
    font-size: 8px;
    font-weight: 800;
    color: #1E3A8A;
    text-align: right;
    line-height: 1.15;
}

.pan-realistic-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0;
}

.pan-user-photo-box {
    width: 44px;
    height: 52px;
    background: #94A3B8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F8FAFC;
    font-size: 22px;
    border: 1px solid #64748B;
}

.pan-middle-lines {
    flex: 1;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pan-line-bar {
    height: 4px;
    background: #60A5FA;
    border-radius: 2px;
    opacity: 0.6;
}

.pan-qr-box {
    width: 48px;
    height: 48px;
    background: #0F172A;
    border-radius: 4px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 32px;
}

.pan-realistic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(30, 58, 138, 0.15);
    padding-top: 4px;
}

.pan-number-stamp {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0F172A;
}

/* Handwritten Cursive Text: "Your PAN Partner Always" */
.handwritten-banner {
    display: flex;
    flex-direction: column;
    position: relative;
}

.handwritten-text {
    font-family: 'Caveat', 'Kalam', 'Dancing Script', cursive;
    font-size: 36px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.1;
    transform: rotate(-4deg);
    display: inline-block;
}

.handwritten-swoosh {
    width: 140px;
    height: 8px;
    margin-top: 2px;
    margin-left: 10px;
}

/* 3 Bottom Trust Badges */
.bottom-trust-row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item i {
    font-size: 20px;
}

.trust-item .icon-gold { color: #EAB308; }
.trust-item .icon-green { color: #10B981; }
.trust-item .icon-blue { color: #3B82F6; }

.trust-item span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* ==========================================================================
   RIGHT CARD (Login to Your Account)
   ========================================================================== */
.apex-card-right {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 36px 36px 30px;
    position: relative;
    width: 100%;
}

.card-center-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.card-title-h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-navy);
    text-align: center;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.card-subtitle-p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* Input Fields */
.form-input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94A3B8;
    pointer-events: none;
    transition: color 0.15s ease;
}

.apex-form-control {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    font-family: inherit;
    transition: all 0.2s ease;
}

.apex-form-control:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.12);
}

.apex-form-control:focus + .input-icon-left,
.form-input-group:focus-within .input-icon-left {
    color: #0A66C2;
}

.input-action-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.input-action-right:hover {
    color: #475569;
}

/* Checkmark indicator for 10-digit mobile */
.input-check-valid {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #10B981;
    font-size: 18px;
    display: none;
}

/* Row: Remember Me & Forgot Password */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0A66C2;
    border-radius: 4px;
    cursor: pointer;
}

.forgot-link-btn {
    font-size: 13.5px;
    font-weight: 600;
    color: #0A66C2;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.forgot-link-btn:hover {
    color: #08539e;
    text-decoration: underline;
}

/* Solid Blue Primary Button */
.btn-primary-blue {
    width: 100%;
    height: 48px;
    background: #0A66C2;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-primary-blue:hover {
    background: #08539e;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 102, 194, 0.38);
}

.btn-primary-blue:active {
    transform: translateY(0);
}

/* Separator OR */
.separator-or-wrap {
    display: flex;
    align-items: center;
    margin: 18px 0;
}

.separator-or-wrap::before,
.separator-or-wrap::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.separator-or-wrap span {
    padding: 0 14px;
    font-size: 11.5px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.06em;
}

/* Outline / Light Action Buttons */
.btn-action-outline {
    width: 100%;
    border: 1px solid #BFDBFE;
    background: #F0F7FF;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-outline:hover {
    background: #E0F2FE;
    border-color: #93C5FD;
}

.btn-action-main-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0A66C2;
}

.btn-action-sub-text {
    font-size: 11.5px;
    color: #64748B;
    font-weight: 500;
    margin-top: 2px;
}

/* Card Bottom Badges (100% Secure, Trusted Indian Platform, Contact Support) */
.card-security-badges-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #F1F5F9;
}

.sec-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-badge-item i {
    font-size: 18px;
}

.sec-badge-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.sec-badge-texts strong {
    font-size: 10.5px;
    font-weight: 700;
    color: #1E293B;
}

.sec-badge-texts span {
    font-size: 9.5px;
    color: #64748B;
}

/* Circular India Flag Icon */
.flag-circle-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.flag-stripe-orange { height: 33.33%; background: #FF9933; }
.flag-stripe-white {
    height: 33.33%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-chakra {
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    border: 1px solid #000080;
}
.flag-stripe-green { height: 33.34%; background: #138808; }

/* ==========================================================================
   MODAL POPUP SYSTEM (Screenshots 1, 2, 3)
   ========================================================================== */
.apex-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.apex-modal-overlay.active {
    display: flex;
}

.apex-modal-card {
    background: #FFFFFF;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 32px 30px 28px;
    box-shadow: var(--shadow-modal);
    position: relative;
    animation: modalPopUp 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopUp {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: #64748B;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

/* Modal Icon Badges */
.modal-badge-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #E0F2FE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    position: relative;
}

.modal-badge-icon-wrap i {
    font-size: 32px;
    color: #0284C7;
}

/* Phone with 3 stars badge */
.badge-phone-stars {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-stars-bubble {
    position: absolute;
    top: -4px;
    right: -10px;
    background: #0284C7;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 2px 5px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.modal-heading-h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    text-align: center;
    margin-bottom: 6px;
}

.modal-subtext-p {
    font-size: 13px;
    color: #475569;
    text-align: center;
    line-height: 1.45;
    margin-bottom: 22px;
    padding: 0 10px;
}

.modal-info-alert {
    background: #F0F7FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 12px;
    color: #0369A1;
    font-weight: 500;
}

.modal-info-alert i {
    font-size: 16px;
    color: #0284C7;
    flex-shrink: 0;
}

/* 6-Digit Individual OTP Input Boxes */
.otp-boxes-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 14px;
}

.otp-digit-box {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: inherit;
    transition: all 0.15s ease;
}

.otp-digit-box:focus {
    outline: none;
    border-color: #0A66C2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.15);
}

/* Timer and Resend Row */
.otp-timer-row {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 18px;
}

.otp-timer-row .timer-countdown {
    color: #0A66C2;
    font-weight: 700;
}

.otp-resend-row {
    text-align: center;
    font-size: 13px;
    color: #64748B;
    margin-top: 16px;
}

.otp-resend-btn {
    background: none;
    border: none;
    color: #0A66C2;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
}

.otp-resend-btn:hover {
    text-decoration: underline;
}

.otp-resend-btn:disabled {
    color: #94A3B8;
    cursor: not-allowed;
    text-decoration: none;
}

/* ==========================================================================
   SUCCESS MODAL ANIMATION
   ========================================================================== */
.success-checkmark-outer {
    width: 76px;
    height: 76px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: bounceIn 0.5s ease;
}

.success-checkmark-inner {
    width: 52px;
    height: 52px;
    background: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 24px;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MOBILE SCREEN RESPONSIVENESS (Screenshots 1, 2, 4)
   ========================================================================== */
/* ==========================================================================
   DEDICATED MOBILE SCREEN PAGES & RESPONSIVENESS (Screenshots 1, 2, 4)
   ========================================================================== */

/* Full mobile auth page container (Screenshots 1, 2, 4) */
.mobile-auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 16px 18px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Mobile top navigation link: Back to Login */
.mobile-top-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.mobile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0A66C2;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.mobile-back-link:hover {
    color: #08539e;
}

/* Mobile standalone card (Screenshot 4) */
.mobile-white-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #DCE7F5;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.08);
    padding: 28px 20px 24px;
    width: 100%;
    position: relative;
}

/* Mobile direct page body (Screenshot 2 - No heavy card) */
.mobile-clean-body {
    width: 100%;
    text-align: center;
    padding: 10px 4px 20px;
}

.mobile-clean-body .modal-badge-icon-wrap {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
}

.mobile-clean-body .modal-badge-icon-wrap i {
    font-size: 32px;
}

.mobile-clean-body .mobile-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.mobile-clean-body .mobile-page-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0 auto 26px;
    max-width: 320px;
}

/* Labels on mobile */
.mobile-field-label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

/* Mobile PAN Showcase Card (Screenshot 4) */
.mobile-pan-banner {
    background: #F8FAFC;
    border: 1.5px solid #BFDBFE;
    border-radius: 14px;
    padding: 14px 14px;
    margin: 20px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.mobile-pan-mini {
    width: 136px;
    height: 84px;
    background: linear-gradient(135deg, #CFE4FA 0%, #D8ECFD 50%, #BFE1FD 100%);
    border: 1px solid #93C5FD;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.mobile-pan-banner .handwritten-text {
    font-family: 'Caveat', cursive;
    font-size: 24px !important;
    font-weight: 700;
    color: #1E293B;
    transform: rotate(-3deg);
    line-height: 1.1;
    display: inline-block;
}

.mobile-pan-banner .handwritten-swoosh {
    width: 95px;
    height: 8px;
    margin-top: 2px;
}

/* Mobile bottom trust row - Strictly horizontal (landscape) with vertical dividers */
.mobile-trust-row,
.card-security-badges-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-top: 24px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: nowrap !important;
}

.mobile-trust-item,
.sec-badge-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.mobile-trust-item i,
.sec-badge-item i {
    font-size: 18px !important;
    flex-shrink: 0 !important;
}

.badge-shield-green {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 22px !important;
    background: #16A34A !important;
    color: #ffffff !important;
    border-radius: 4px 4px 10px 10px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
}

.badge-divider-v {
    width: 1px !important;
    height: 26px !important;
    background: #CBD5E1 !important;
    flex-shrink: 0 !important;
    margin: 0 4px !important;
}

.mobile-trust-texts,
.sec-badge-texts {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.mobile-trust-texts strong,
.sec-badge-texts strong {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #1E293B !important;
    letter-spacing: -0.01em !important;
}

.mobile-trust-texts span,
.sec-badge-texts span {
    font-size: 8.5px !important;
    color: #64748B !important;
}

/* Mobile bottom wave footer text */
.mobile-bottom-slogan {
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #0284C7;
    margin: 24px 0 20px;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   MEDIA QUERIES FOR SCREEN BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
    .apex-navbar {
        padding: 12px 18px;
    }

    .apex-nav-links,
    .support-phone-text {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: block !important;
    }

    /* Hide desktop hero left section completely on mobile */
    .apex-hero-left {
        display: none !important;
    }

    .apex-main-layout {
        grid-template-columns: 1fr !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        padding: 16px 14px 40px !important;
        gap: 0 !important;
    }

    .apex-card-right {
        padding: 24px 20px 22px !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08) !important;
    }

    .card-security-badges-row,
    .mobile-trust-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 3px !important;
        margin-top: 20px !important;
        padding-top: 14px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .sec-badge-item,
    .mobile-trust-item {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .sec-badge-item i,
    .mobile-trust-item i {
        font-size: 16px !important;
    }

    .sec-badge-texts strong,
    .mobile-trust-texts strong {
        font-size: 9px !important;
        line-height: 1.1 !important;
    }

    .sec-badge-texts span,
    .mobile-trust-texts span {
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    .flag-circle-icon {
        width: 17px !important;
        height: 17px !important;
    }

    /* Modal on mobile */
    .apex-modal-overlay {
        padding: 14px !important;
        align-items: center !important;
    }

    .apex-modal-card {
        padding: 24px 18px 22px !important;
        border-radius: 20px !important;
        max-width: 380px !important;
    }

    .modal-badge-icon-wrap {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 12px !important;
    }

    .modal-badge-icon-wrap i {
        font-size: 28px !important;
    }

    .modal-heading-h3 {
        font-size: 20px !important;
    }

    .modal-subtext-p {
        font-size: 12.5px !important;
        margin-bottom: 16px !important;
    }

    .otp-boxes-grid {
        gap: 6px !important;
        margin: 14px 0 12px !important;
    }

    .otp-digit-box {
        width: 42px !important;
        height: 48px !important;
        font-size: 20px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 380px) {
    .apex-navbar {
        padding: 10px 12px;
    }

    .brand-title-row {
        font-size: 16px;
    }

    .brand-icon-svg {
        width: 32px;
        height: 32px;
    }

    .otp-digit-box {
        width: 36px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    /* Strictly KEEP horizontal row on small screens */
    .card-security-badges-row,
    .mobile-trust-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }

    .sec-badge-item,
    .mobile-trust-item {
        gap: 3px !important;
    }

    .sec-badge-texts strong,
    .mobile-trust-texts strong {
        font-size: 8.5px !important;
    }

    .sec-badge-texts span,
    .mobile-trust-texts span {
        font-size: 7.5px !important;
    }

    .badge-divider-v {
        margin: 0 2px !important;
        height: 22px !important;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (Slide-in Menu on 3-Lines Click)
   ========================================================================== */
.mobile-nav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 290px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #F1F5F9;
    background: #FAFCFF;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.drawer-body {
    padding: 16px 18px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drawer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #1E293B;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.drawer-link-item i {
    font-size: 16px;
    color: #0A66C2;
    width: 20px;
    text-align: center;
}

.drawer-link-item:hover,
.drawer-link-item:active {
    background: #EFF6FF;
    color: #0A66C2;
}

.drawer-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.drawer-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0A66C2;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.25);
}

.drawer-btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F8FAFC;
    color: #1E293B !important;
    font-weight: 700;
    font-size: 14px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid #E2E8F0;
}

.drawer-footer-contact {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.drawer-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0A66C2;
    text-decoration: none;
    margin-bottom: 8px;
}

.drawer-security-tag {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


