/* ============================================
   POS KASIR MULTI-UNIT — LOGIN v1.0
   Purple Dark & White Theme | Fit-to-Screen
   ============================================ */

:root {
    /* === PURPLE PALETTE (Elegant & Professional) === */
    --primary: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-deep: #5B21B6;
    --ink: #1E1B4B;
    --primary-light: #F5F3FF;
    --primary-soft: #DDD6FE;
    --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);

    /* === BACKGROUND (Putih bersih dengan sentuhan ungu lembut) === */
    --bg-body: #FAF5FF;
    --bg-shell-top: #FFFFFF;
    --bg-shell-bottom: #F5F3FF;
    --surface: #FFFFFF;
    --bg-input: #FAF5FF;

    /* === TEXT === */
    --text-strong: #1E1B4B;
    --text-body: #4B5563;
    --text-muted: #9CA3AF;

    /* === BORDERS === */
    --border-soft: #EDE9FE;
    --border-input: #DDD6FE;

    /* === STATUS COLORS === */
    --success: #10B981;
    --success-bg: #ECFDF5;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --info: #3B82F6;

    /* === SHADOWS === */
    --shadow-card: 0 20px 45px rgba(124, 58, 237, 0.12);
    --shadow-soft: 0 6px 18px rgba(124, 58, 237, 0.08);
    --shadow-btn: 0 10px 24px rgba(109, 40, 217, 0.35);
    --shadow-focus: 0 0 0 4px rgba(124, 58, 237, 0.2);

    /* === RADII === */
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* === TYPOGRAPHY === */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* === ANIMATIONS === */
    --ease-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body { height: 100%; }

body.login-page {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   APP SHELL
   ============================================ */
.app-shell {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--bg-shell-top) 0%, var(--bg-shell-bottom) 100%);
    display: flex;
    flex-direction: column;
    padding: calc(14px + env(safe-area-inset-top)) 22px calc(12px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overflow-x: hidden;
}

@media (min-width: 480px) {
    .app-shell {
        min-height: 0;
        height: min(880px, 94vh);
        border-radius: 44px;
        box-shadow: 0 40px 80px rgba(91, 33, 182, 0.18);
        border: 1px solid #EDE9FE;
    }
}

/* ============================================
   TOP BRAND ROW
   ============================================ */
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    animation: fade-down 0.5s ease both;
}

@keyframes fade-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--primary-gradient);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(109, 40, 217, 0.35);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.brand-id {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.brand-id-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-strong);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-id-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--primary-light);
    border: 1px solid var(--primary-soft);
    color: var(--primary-deep);
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.brand-pill i { font-size: 9px; color: var(--primary-hover); }

/* ============================================
   HEADLINE
   ============================================ */
.headline {
    margin-top: clamp(10px, 2.2vh, 26px);
    flex-shrink: 0;
    animation: fade-up 0.6s ease 0.1s both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.headline-title {
    font-size: clamp(23px, 7.2vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-strong);
}

.hl-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline-sub {
    margin-top: 6px;
    font-size: clamp(12px, 3.4vw, 13.5px);
    color: var(--text-body);
    max-width: 300px;
    line-height: 1.5;
}

/* ============================================
   HERO SCENE
   ============================================ */
.hero-scene {
    position: relative;
    flex: 1 1 auto;
    min-height: 140px;
    max-height: 260px;
    margin-top: 4px;
    contain: layout paint;
}

.hero-blob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(82%, 240px);
    height: min(94%, 240px);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 35% 30%,
        #F5F3FF 0%, #DDD6FE 55%, rgba(221, 214, 254, 0) 75%);
    border-radius: 50%;
}

/* Awan */
.cloud {
    position: absolute;
    background: #FFFFFF;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 22px rgba(91, 33, 182, 0.08);
    will-change: transform;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: #FFFFFF;
    border-radius: 50%;
}

.cloud-1 { width: 92px; height: 28px; top: 12%; right: 4%; animation: drift 7s ease-in-out infinite; }
.cloud-1::before { width: 38px; height: 38px; top: -18px; left: 14px; }
.cloud-1::after  { width: 26px; height: 26px; top: -11px; right: 16px; }

.cloud-2 { width: 74px; height: 24px; bottom: 20%; left: 2%; animation: drift 8s ease-in-out 1s infinite; }
.cloud-2::before { width: 30px; height: 30px; top: -14px; left: 12px; }
.cloud-2::after  { width: 22px; height: 22px; top: -9px; right: 12px; }

.cloud-3 { width: 56px; height: 18px; top: 30%; left: 10%; opacity: 0.85; animation: drift 6s ease-in-out 0.5s infinite; }
.cloud-3::before { width: 22px; height: 22px; top: -10px; left: 9px; }
.cloud-3::after  { width: 16px; height: 16px; top: -7px; right: 9px; }

@keyframes drift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
}

/* Chip melayang (3 modul: Sembako, Konter, Jasa) */
.float-chip {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    will-change: transform;
    z-index: 2;
}

.chip-cart {
    top: 6%;
    left: 14%;
    color: var(--primary-hover);
    animation: floaty 4.5s ease-in-out infinite;
}

.chip-mobile {
    bottom: 12%;
    right: 10%;
    color: var(--primary-deep);
    animation: floaty 5s ease-in-out 0.8s infinite;
}

.chip-money {
    top: 38%;
    right: 2%;
    width: 36px;
    height: 36px;
    font-size: 13px;
    color: var(--primary-hover);
    background: #F5F3FF;
    border: 1px solid var(--primary-soft);
    animation: floaty 4s ease-in-out 1.4s infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-4deg); }
}

/* Shopping Bag utama (bounce animation) */
.bag-hero {
    position: absolute;
    left: 50%;
    top: 50%;
    height: min(78%, 185px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -52%);
    z-index: 3;
    animation: bob 3.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, -52%); }
    50% { transform: translate(-50%, -58%); }
}

.bag-hero svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 8px 16px rgba(109, 40, 217, 0.30));
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 3px;
    transform: rotate(45deg);
    opacity: 0;
    animation: twinkle 3.2s ease-in-out infinite;
}

.sp-1 { top: 12%; left: 24%; }
.sp-2 { top: 20%; right: 20%; width: 8px; height: 8px; background: var(--primary-soft); animation-delay: 0.15s; }
.sp-3 { bottom: 30%; left: 16%; width: 7px; height: 7px; background: var(--primary-hover); animation-delay: 0.3s; }

@keyframes twinkle {
    0%, 10%, 28%, 40%, 58%, 100% { opacity: 0; transform: rotate(45deg) scale(0.3); }
    18% { opacity: 1; transform: rotate(45deg) scale(1.15); }
    48% { opacity: 0.9; transform: rotate(45deg) scale(1); }
}

.hero-ground {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: min(60%, 150px);
    height: 22px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center,
        rgba(91, 33, 182, 0.14) 0%, rgba(91, 33, 182, 0) 70%);
    border-radius: 50%;
    animation: ground 3.2s ease-in-out infinite;
}

@keyframes ground {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
    50% { transform: translateX(-50%) scaleX(0.88); opacity: 0.75; }
}

/* ============================================
   FORM CARD
   ============================================ */
.form-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: clamp(14px, 2.4vh, 22px) 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid #EDE9FE;
    flex-shrink: 0;
    animation: fade-up 0.6s ease 0.2s both;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: border-color var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
    overflow: hidden;
}

.input-field:focus-within {
    border-color: var(--primary);
    background: #FFFFFF;
    box-shadow: var(--shadow-focus);
}

.input-field.error {
    border-color: var(--danger);
    background: var(--danger-bg);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    color: var(--primary-hover);
    font-size: 15px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    padding: 13px 10px 13px 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-strong);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    min-width: 0;
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.toggle-password {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 14px;
    cursor: pointer;
    font-size: 15px;
    transition: color var(--ease-fast);
    flex-shrink: 0;
}

.toggle-password:hover,
.toggle-password:active { color: var(--primary-hover); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-body);
    font-weight: 500;
}

.checkbox-wrap input { position: absolute; opacity: 0; pointer-events: none; }

.checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-input);
    border-radius: 6px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-fast);
    flex-shrink: 0;
}

.checkbox-wrap input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrap input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FFFFFF;
    font-size: 10px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-hover);
    text-decoration: none;
    font-weight: 700;
}

.forgot-link:hover { color: var(--primary-deep); text-decoration: underline; }

/* Submit Button */
.btn-login {
    position: relative;
    width: 100%;
    padding: 14px 22px;
    margin-top: 2px;
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-btn);
    transition: transform var(--ease-fast), box-shadow var(--ease-fast);
    min-height: 50px;
    text-shadow: 0 1px 2px rgba(91, 33, 182, 0.3);
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.45);
}

.btn-login:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-text, .btn-arrow { position: relative; z-index: 1; }

.btn-arrow {
    font-size: 13px;
    transition: transform var(--ease-fast);
}

.btn-login:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }

.btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.btn-login.loading .btn-text,
.btn-login.loading .btn-arrow { opacity: 0; }

.btn-login.loading .btn-loader { display: flex; }

.loader-dot {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: loader-bounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    padding: 9px 12px;
    background: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: #067647;
    font-weight: 600;
}

.security-info i { font-size: 13px; color: var(--success); }

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    margin-top: auto;
    padding-top: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    animation: fade-up 0.6s ease 0.3s both;
}

.app-footer p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.version-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 10px;
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 430px;
    margin: 0 auto;
}

.toast {
    background: #FFFFFF;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--border-soft);
    border-left: 4px solid var(--primary);
    animation: toast-in 0.25s ease;
    pointer-events: auto;
    color: var(--text-strong);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-success { border-left-color: var(--success); }
.toast-warning { border-left-color: var(--warning); }
.toast-error   { border-left-color: var(--danger); }
.toast-info    { border-left-color: var(--info); }

.toast-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: #FFFFFF;
}

.toast-success .toast-icon { background: var(--success); }
.toast-warning .toast-icon { background: var(--warning); }
.toast-error .toast-icon   { background: var(--danger); }
.toast-info .toast-icon    { background: var(--info); }

.toast-content { flex: 1; line-height: 1.4; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 13px;
    border-radius: 8px;
}

.toast-close:hover { color: var(--text-strong); background: var(--bg-input); }

/* ============================================
   INSTALL PROMPT
   ============================================ */
.install-prompt {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    max-width: 430px;
    margin: 0 auto;
    z-index: 9998;
    animation: slide-up 0.3s ease;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.install-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-soft);
}

.install-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.install-content h3 { font-size: 13px; font-weight: 700; color: var(--text-strong); }
.install-content p { font-size: 11.5px; color: var(--text-body); }

.install-actions { display: flex; gap: 6px; flex-shrink: 0; }

.btn-install {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--primary-hover);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 0 1px 2px rgba(91, 33, 182, 0.3);
}

.btn-dismiss {
    width: 30px;
    height: 30px;
    background: var(--bg-input);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

/* ============================================
   MODAL FORGOT
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.45);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    animation: fade-in 0.2s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    max-width: 360px;
    width: 100%;
    box-shadow: var(--shadow-card);
    animation: modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i { color: var(--primary-hover); }

.modal-close {
    width: 32px;
    height: 32px;
    background: var(--bg-input);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.modal-body { padding: 24px; text-align: center; }

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--primary-light);
    color: var(--primary-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid var(--primary-soft);
}

.modal-text {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.modal-footer {
    padding: 16px 22px;
    border-top: 1px solid var(--border-soft);
}

.btn-modal-close {
    width: 100%;
    padding: 13px;
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--shadow-btn);
    text-shadow: 0 1px 2px rgba(91, 33, 182, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 360px) {
    .app-shell { padding-left: 16px; padding-right: 16px; }
    .brand-logo { width: 40px; height: 40px; border-radius: 12px; }
    .brand-pill { display: none; }
    .float-chip { width: 38px; height: 38px; font-size: 14px; }
    .form-card { padding: 14px; }
}

@media (max-height: 720px) {
    .headline { margin-top: 8px; }
    .headline-sub { margin-top: 4px; font-size: 12px; }
    .hero-scene { min-height: 125px; }
    .form-input { padding: 12px 10px 12px 0; }
    .btn-login { min-height: 48px; }
    .security-info { padding: 8px 10px; font-size: 11px; }
    .app-footer { padding-top: 8px; }
}

@media (max-height: 640px) {
    .headline-sub { display: none; }
    .security-info { display: none; }
    .hero-scene { min-height: 110px; }
    .brand-id-tag { display: none; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::selection {
    background: var(--primary);
    color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

