/**
 * Zukro Customer & Consumer Authentication Portal Stylesheet
 * Standardized Apple Liquid Glass 2026 & Baymard International UX
 */

:root {
            /* Official Zukro Master Brand Palette */
            --zk-green: #123D2A;
            --zk-green-dark: #0D2B1D;
            --zk-green-hover: #1A543B;
            --zk-gold: #FAC40B;
            --zk-gold-deep: #E8A92E;
            /* Customer Identity: Harvest Gold — solid, no gradient (Baymard + Zukro Glass rule) */
            --zk-bg: #FAC40B;
            --zk-card-bg: rgba(255, 255, 255, 0.90);
            --zk-card-blur: blur(32px) saturate(180%);
            --zk-card-border: 1px solid rgba(255, 255, 255, 0.95);
            --zk-card-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 24px 56px -12px rgba(100, 60, 0, 0.28);
            --zk-text-main: #0F172A;
            --zk-text-sub: #374151;
            --zk-text-muted: #4B5563;
            --zk-border: rgba(18, 61, 42, 0.14);
            --zk-border-input: rgba(18, 61, 42, 0.22);
            --zk-border-focus: #123D2A;
            --zk-ring-focus: rgba(18, 61, 42, 0.20);
            --zk-input-bg: rgba(255, 255, 255, 0.96);
            
            --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-pill: 999px;
            --auth-viewport-height: 100dvh;
        }

        [data-theme="dark"] {
            /* Customer Dark Mode: solid deep amber — no gradient */
            --zk-bg: #7A4800;
            --zk-card-bg: rgba(255, 255, 255, 0.08);
            --zk-card-blur: blur(32px) saturate(180%);
            --zk-card-border: 1px solid rgba(250, 196, 11, 0.40);
            --zk-card-shadow: inset 0 1px 1.5px rgba(250, 196, 11, 0.30), 0 24px 52px -12px rgba(0, 0, 0, 0.70);
            --zk-text-main: #FFFFFF;
            --zk-text-sub: rgba(255, 255, 255, 0.82);
            --zk-text-muted: rgba(255, 255, 255, 0.56);
            --zk-border: rgba(255, 255, 255, 0.12);
            --zk-border-input: rgba(255, 255, 255, 0.22);
            --zk-border-focus: #FAC40B;
            --zk-ring-focus: rgba(250, 196, 11, 0.28);
            --zk-input-bg: rgba(0, 0, 0, 0.32);
        }

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

        html {
            height: 100%;
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        body {
            min-height: 100dvh;
            min-height: var(--auth-viewport-height, 100dvh);
            margin: 0;
            padding: 0;
            background: var(--zk-bg);
            color: var(--zk-text-main);
            font-family: var(--font-body);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            width: 100%;
        }

        /* ===== VIEWPORT CONSTRAINED PAGE SHELL ===== */
        body.zk-auth-page {
            padding-top: env(safe-area-inset-top, 0px) !important;
            padding-bottom: 0 !important;
        }

        .zk-skip-link {
            position: absolute;
            top: -100px;
            left: 16px;
            background: var(--zk-green-dark);
            color: #FFFFFF;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            z-index: 9999;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            transition: top 0.2s ease;
        }
        .zk-skip-link:focus {
            top: 16px;
        }

        /* ===== AUTH STAGE CONTAINER (Adaptive Flex Center) ===== */
        .auth-stage {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            transition: padding 180ms ease, margin 180ms ease;
        }

        /* ===== BRAND LOGO & PORTAL HEADER ===== */
        .auth-identity-header {
            text-align: center;
            margin-bottom: 14px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transition: margin 180ms ease;
        }
        .auth-brand-logo {
            display: inline-block;
            text-decoration: none;
            transition: transform 0.15s ease;
        }
        .auth-brand-logo:hover {
            transform: scale(1.02);
        }
        .auth-brand-logo img {
            height: 36px;
            width: auto;
            display: block;
            max-width: 100%;
        }
        .auth-portal-caption {
            font-size: 12px;
            font-weight: 700;
            color: #123D2A; /* deep green — high contrast on #FAC40B gold */
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin: 0;
            opacity: 1;
        }
        [data-theme="dark"] .auth-portal-caption {
            color: rgba(255, 255, 255, 0.90); /* white on dark amber #7A4800 */
        }

        /* ===== AUTHENTICATION CARD (Apple Liquid Glass & Zukro Farm Cinematic Theme) ===== */
        .auth-card {
            width: 100%;
            max-width: 450px;
            background: var(--zk-card-bg) !important;
            backdrop-filter: var(--zk-card-blur) !important;
            -webkit-backdrop-filter: var(--zk-card-blur) !important;
            border: var(--zk-card-border) !important;
            border-radius: 18px !important;
            box-shadow: var(--zk-card-shadow) !important;
            padding: 26px 28px;
            margin-inline: auto;
            box-sizing: border-box;
            transition: padding 180ms ease, background 0.3s ease, border-color 0.3s ease;
        }

        .auth-card *,
        .auth-card *::before,
        .auth-card *::after {
            box-sizing: border-box;
            max-width: 100%;
            min-width: 0;
        }

        .auth-card-heading {
            text-align: center;
            margin-bottom: 14px;
        }
        .auth-card-title {
            font-size: 22px;
            font-weight: 800;
            color: var(--zk-text-main);
            letter-spacing: -0.02em;
            line-height: 1.25;
            margin-bottom: 3px;
        }
        .auth-card-subtitle {
            font-size: 13.5px;
            color: var(--zk-text-muted);
            line-height: 1.35;
            font-weight: 500;
        }

        /* ===== SOCIAL GOOGLE SIGN-IN ===== */
        .btn-social-google {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 46px;
            padding: 0 14px;
            border: 1px solid var(--zk-border-input);
            border-radius: var(--radius-md);
            background: var(--zk-input-bg);
            color: var(--zk-text-main);
            font-family: inherit;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 12px;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
            box-sizing: border-box;
        }
        .btn-social-google:hover {
            border-color: var(--zk-gold);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        .btn-social-google:focus-visible {
            outline: 2px solid var(--zk-gold);
            outline-offset: 2px;
        }
        .btn-social-google:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }
        .btn-social-google svg {
            flex-shrink: 0;
        }

        /* ===== OR DIVIDER ===== */
        .auth-divider {
            display: flex;
            align-items: center;
            text-align: center;
            margin-bottom: 14px;
            color: var(--zk-text-muted);
            font-size: 11px;
            font-weight: 500;
            width: 100%;
            box-sizing: border-box;
        }
        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid var(--zk-border);
        }
        .auth-divider span {
            padding: 0 8px;
            text-transform: lowercase;
        }

        /* ===== AUTH MODE SEGMENT TABS (Fluid Responsive Grid) ===== */
        .auth-segmented-control {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            width: 100%;
            max-width: 100%;
            background: rgba(18, 61, 42, 0.06);
            padding: 4px;
            border-radius: 12px;
            border: 1px solid var(--zk-border);
            margin-bottom: 14px;
            gap: 4px;
            box-sizing: border-box;
        }
        [data-theme="dark"] .auth-segmented-control {
            background: rgba(0, 0, 0, 0.35);
            border-color: rgba(255, 255, 255, 0.1);
        }
        .auth-seg-btn {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            padding: 8px 4px;
            font-size: 12.5px;
            font-weight: 600;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: var(--zk-text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-family: inherit;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            box-sizing: border-box;
        }
        .auth-seg-btn i {
            font-size: 12px;
            flex-shrink: 0;
        }
        .auth-seg-btn:hover {
            color: var(--zk-text-main);
        }
        .auth-seg-btn.active {
            background: var(--zk-card-bg);
            color: var(--zk-green-dark);
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        [data-theme="dark"] .auth-seg-btn.active {
            background: rgba(250, 196, 11, 0.16);
            color: #FAC40B;
            border: 1px solid rgba(250, 196, 11, 0.35);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }

        /* ===== ALERT MESSAGE (msg) ===== */
        .msg {
            display: none;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            line-height: 1.35;
            margin-bottom: 12px;
            align-items: flex-start;
            gap: 8px;
            width: 100%;
            box-sizing: border-box;
        }
        .msg.show {
            display: flex;
        }
        .msg.error {
            background: #FEF2F2;
            border: 1px solid #FECACA;
            color: #991B1B;
        }
        .msg.ok {
            background: #F0FDF4;
            border: 1px solid #BBF7D0;
            color: #166534;
        }

        /* ===== FORM SECTIONS ===== */
        .form-section {
            display: none;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .form-section.active {
            display: block;
        }

        .field {
            margin-bottom: 10px;
            width: 100%;
            box-sizing: border-box;
        }
        .field label {
            display: block;
            font-size: 12.5px;
            font-weight: 700;
            color: var(--zk-text-main);
            margin-bottom: 4px;
        }
        .input-wrap {
            position: relative;
            display: flex;
            align-items: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .input-wrap i.lead {
            position: absolute;
            left: 13px;
            color: #94A3B8;
            font-size: 13px;
            pointer-events: none;
            z-index: 2;
        }
        .input-wrap input {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 46px;
            padding: 0 14px 0 38px;
            border: 1px solid var(--zk-border-input);
            border-radius: var(--radius-md);
            font-size: 14px;
            font-family: inherit;
            color: var(--zk-text-main);
            background: var(--zk-input-bg);
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            box-sizing: border-box;
        }
        .input-wrap input:focus {
            border-color: var(--zk-border-focus);
            outline: none;
            box-shadow: 0 0 0 3px var(--zk-ring-focus);
        }
        .input-wrap input::placeholder {
            color: #94A3B8;
        }

        .toggle-pw {
            position: absolute;
            right: 10px;
            background: none;
            border: none;
            color: var(--zk-text-muted);
            cursor: pointer;
            padding: 6px;
            font-size: 13px;
            border-radius: 4px;
            flex-shrink: 0;
        }
        .toggle-pw:hover {
            color: var(--zk-text-main);
        }

        .row-between {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 4px 10px;
            margin-top: 4px;
            margin-bottom: 14px;
            font-size: 12.5px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .row-between label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--zk-text-sub);
            cursor: pointer;
            font-weight: 500;
        }
        .row-between input[type="checkbox"] {
            accent-color: var(--zk-gold);
            width: 15px;
            height: 15px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .forgot {
            color: var(--zk-green-dark);
            font-weight: 700;
            text-decoration: none;
            font-size: inherit;
            background: none;
            border: none;
            font-family: inherit;
            cursor: pointer;
            padding: 0;
            transition: color 0.15s ease;
        }
        .forgot:hover {
            color: var(--zk-gold-deep);
            text-decoration: underline;
        }
        [data-theme="dark"] .forgot {
            color: var(--zk-gold) !important;
        }

        /* ===== PRIMARY ACTION BUTTON (Tactile Liquid Glass) ===== */
        .btn-primary {
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 46px;
            background: radial-gradient(circle at 50% 0%, #174E36 0%, #0D2B1D 80%, #081B12 100%) !important;
            color: #FFFFFF !important;
            font-size: 14px;
            font-weight: 700;
            border: 1px solid rgba(250, 196, 11, 0.45) !important;
            border-radius: var(--radius-md);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
            transition: all 0.2s ease;
            font-family: inherit;
            box-sizing: border-box;
        }
        .btn-primary:hover {
            background: radial-gradient(circle at 50% 0%, #1F6647 0%, #0F3323 80%, #0A2418 100%) !important;
            border-color: var(--zk-gold, #FAC40B) !important;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 14px rgba(250, 196, 11, 0.3) !important;
            transform: translateY(-1px);
        }
        [data-theme="dark"] .btn-primary {
            border: 1.5px solid var(--zk-gold, #FAC40B) !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(250, 196, 11, 0.35) !important;
        }
        .btn-primary:focus-visible {
            outline: 2px solid var(--zk-gold);
            outline-offset: 2px;
        }
        .btn-primary:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        /* Phone Input + Prefix */
        .phone-input {
            display: flex;
            align-items: center;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .phone-prefix {
            height: 46px;
            display: flex;
            align-items: center;
            padding: 0 12px;
            font-size: 13.5px;
            font-weight: 700;
            color: var(--zk-text-main);
            background: #F1F5F9;
            border: 1px solid var(--zk-border-input);
            border-right: none;
            border-radius: var(--radius-sm) 0 0 var(--radius-sm);
            box-sizing: border-box;
            flex-shrink: 0;
        }
        .phone-input input {
            flex: 1;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
            padding-left: 12px !important;
        }

        /* OTP Steps */
        .otp-step { display: none; width: 100%; box-sizing: border-box; }
        .otp-step.active { display: block; }
        .otp-sent-note {
            font-size: 12px;
            color: var(--zk-text-sub);
            margin-bottom: 10px;
            line-height: 1.35;
        }
        .otp-sent-note b { color: var(--zk-text-main); }
        .otp-back {
            background: none;
            border: none;
            color: var(--zk-green-dark);
            font: inherit;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            padding: 0;
            display: block;
            margin: 8px auto 0;
            text-align: center;
        }
        .otp-back:hover { text-decoration: underline; }

        /* Sign Up Terms */
        .terms {
            font-size: 11px;
            color: var(--zk-text-muted);
            margin-top: 10px;
            text-align: center;
            line-height: 1.4;
            width: 100%;
            box-sizing: border-box;
        }
        .terms a {
            color: var(--zk-green-dark);
            font-weight: 700;
            text-decoration: none;
        }
        .terms a:hover { text-decoration: underline; }

        /* ===== SECONDARY HELPER LINKS ===== */
        .auth-secondary-links {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--zk-border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 6px 12px;
            font-size: 12.5px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }
        .auth-sub-link {
            color: var(--zk-green-dark);
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: color 0.15s ease;
        }
        .auth-sub-link:hover {
            color: var(--zk-green-hover);
            text-decoration: underline;
        }
        .auth-sub-link-wa {
            color: #15803D;
        }
        .auth-sub-link-wa:hover {
            color: #166534;
        }
        [data-theme="dark"] .terms a {
            color: var(--zk-gold) !important;
        }
        [data-theme="dark"] .auth-sub-link {
            color: var(--zk-gold) !important;
        }
        [data-theme="dark"] .auth-sub-link:hover {
            color: #FFE066 !important;
        }
        [data-theme="dark"] .auth-sub-link-wa {
            color: #4ADE80 !important;
        }
        [data-theme="dark"] .otp-back {
            color: var(--zk-gold) !important;
        }
        [data-theme="dark"] .auth-secondary-links {
            border-top-color: rgba(255, 255, 255, 0.12) !important;
        }

        /* ===== QUIET STATIC IN-FLOW SHORT FOOTER ===== */
        #footer {
            flex-shrink: 0;
            width: 100%;
            background: var(--zk-green-dark);
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            box-sizing: border-box;
        }
        #footer .footer.zk-footer-short,
        #footer footer.zk-footer-short,
        #footer .zk-footer-short {
            position: static !important;
            width: 100% !important;
            padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
            margin: 0 !important;
            background: transparent !important;
            border: none !important;
            box-sizing: border-box !important;
        }
        #footer .zk-footer-short-inner {
            width: 100% !important;
            max-width: 1100px !important;
            margin: 0 auto !important;
            font-size: 11.5px !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0 !important;
            gap: 6px 14px !important;
            color: rgba(255, 255, 255, 0.7) !important;
            box-sizing: border-box !important;
        }
        #footer .zk-footer-short-copy {
            color: rgba(255, 255, 255, 0.7) !important;
            font-size: inherit !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
            white-space: nowrap !important;
        }
        #footer .zk-footer-short-brand {
            font-weight: 700 !important;
            color: rgba(255, 255, 255, 0.9) !important;
        }
        #footer .zk-footer-short-rights {
            color: rgba(255, 255, 255, 0.65) !important;
        }
        #footer .zk-footer-short-nav {
            margin: 0 !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            flex-wrap: wrap !important;
            gap: 6px 10px !important;
        }
        #footer .zk-footer-short-nav a {
            font-size: inherit !important;
            color: rgba(255, 255, 255, 0.7) !important;
            text-decoration: none !important;
            font-weight: 500 !important;
            transition: color 0.15s ease !important;
        }
        #footer .zk-footer-short-nav a:hover {
            color: rgba(255, 255, 255, 0.95) !important;
            text-decoration: underline !important;
        }
        #footer .zk-footer-sep {
            color: rgba(255, 255, 255, 0.35) !important;
            font-size: 11px !important;
        }
        #footer .zk-footer-short-badges {
            margin: 0 !important;
            padding: 0 !important;
            display: inline-flex !important;
            align-items: center !important;
            flex-wrap: wrap !important;
            gap: 8px !important;
        }
        #footer .zk-footer-short-badge {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            padding: 2.5px 7px !important;
            font-size: 9.5px !important;
            font-weight: 600 !important;
            background: rgba(255, 255, 255, 0.06) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 4px !important;
            color: rgba(255, 255, 255, 0.75) !important;
            white-space: nowrap !important;
        }
        #footer .zk-footer-short-badge i {
            color: var(--zk-gold, #FAC40B) !important;
            font-size: 9px !important;
            opacity: 0.9 !important;
        }

        /* ===== DESKTOP SINGLE-SCREEN FIT (No-Scroll Viewport Alignment) ===== */
        @media (min-width: 1024px) and (min-height: 600px) {
            html, body {
                height: 100vh;
                max-height: 100vh;
                overflow: hidden;
            }
            body.zk-auth-page {
                height: 100dvh;
                max-height: 100dvh;
                overflow: hidden;
            }
            .auth-stage {
                padding: 16px 20px;
                justify-content: center;
            }
            #footer {
                flex: 0 0 auto !important;
            }
        }

        /* ===== MOBILE RESPONSIVE ADAPTATIONS (Fluid Width & 16px iOS Form Rule) ===== */
        @media (max-width: 768px) {
            .auth-stage {
                padding: 14px 16px;
            }
            .auth-identity-header {
                margin-bottom: 10px;
                gap: 2px;
            }
            .auth-brand-logo img {
                height: 30px;
            }
            .auth-portal-caption {
                font-size: 10.5px;
            }
            .auth-card {
                padding: 16px 16px;
                border-radius: 14px;
                max-width: min(calc(100vw - 24px), 440px);
            }
            .auth-card-heading {
                margin-bottom: 10px;
            }
            .auth-card-title {
                font-size: 18px;
            }
            .auth-card-subtitle {
                font-size: 12px;
            }
            .btn-social-google {
                height: 42px;
                font-size: 13px;
                margin-bottom: 10px;
            }
            .auth-divider {
                margin-bottom: 10px;
            }
            .auth-segmented-control {
                padding: 3px;
                gap: 3px;
                margin-bottom: 10px;
            }
            .auth-seg-btn {
                padding: 6px 2px;
                font-size: 11.5px;
                gap: 3px;
            }
            .field {
                margin-bottom: 8px;
            }
            .field label {
                font-size: 11.5px;
                margin-bottom: 3px;
            }
            /* 16px font-size prevents iOS Safari auto-zoom on mobile inputs */
            .input-wrap input {
                height: 42px;
                font-size: 16px;
                padding: 0 12px 0 34px;
            }
            .phone-prefix {
                height: 42px;
                font-size: 13px;
                padding: 0 10px;
            }
            .row-between {
                margin-top: 2px;
                margin-bottom: 10px;
                font-size: 11.5px;
            }
            .btn-primary {
                height: 42px;
                font-size: 13px;
            }
            .auth-secondary-links {
                margin-top: 10px;
                padding-top: 8px;
                font-size: 11.5px;
            }

            /* Compact 2-3 Row Mobile Footer (~80-100px total height) */
            #footer .footer.zk-footer-short,
            #footer footer.zk-footer-short,
            #footer .zk-footer-short {
                padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
            }
            #footer .zk-footer-short-inner {
                flex-direction: column !important;
                align-items: center !important;
                text-align: center !important;
                gap: 5px !important;
                font-size: 11px !important;
            }
            #footer .zk-footer-short-copy,
            #footer .zk-footer-short-nav,
            #footer .zk-footer-short-badges {
                justify-content: center !important;
            }
            #footer .zk-footer-short-nav {
                gap: 4px 8px !important;
            }
            #footer .zk-footer-short-badges {
                gap: 6px !important;
            }
        }

        @media (max-width: 360px) {
            #footer .footer.zk-footer-short,
            #footer footer.zk-footer-short,
            #footer .zk-footer-short {
                padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
            }
            #footer .zk-footer-short-inner {
                gap: 4px !important;
                font-size: 10.5px !important;
            }
            #footer .zk-footer-short-nav {
                gap: 3px 6px !important;
            }
            #footer .zk-footer-short-badges {
                gap: 4px !important;
            }
        }

        /* ===== KEYBOARD-OPEN COMPACT REFLOW (Active Typing State) ===== */
        body.keyboard-open .auth-stage {
            justify-content: flex-start;
            padding-top: 6px;
            padding-bottom: 6px;
        }
        body.keyboard-open .auth-identity-header {
            margin-bottom: 3px;
            gap: 1px;
        }
        body.keyboard-open .auth-brand-logo img {
            height: 22px;
        }
        body.keyboard-open .auth-portal-caption {
            display: none;
        }
        body.keyboard-open .auth-card {
            padding: 10px 12px;
        }
        body.keyboard-open .auth-card-subtitle {
            display: none;
        }
        body.keyboard-open .auth-card-heading {
            margin-bottom: 6px;
        }
