/* ═══════════════════════════════════════════════════════
   Zahra Net Portal Pelanggan — Design System CSS
   Based on "The Digital Horizon" Soft Minimalism
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables (Dark Circuit Board Theme) ─── */
:root {
    --safe-area-top: env(safe-area-inset-top, 24px);
    /* Dark surfaces */
    --surface: #0e1018;
    --surface-container-low: #141720;
    --surface-container: #1a1e2a;
    --surface-container-high: #1f2433;
    --surface-container-highest: #252b3d;
    --surface-container-lowest: #191d28;
    /* Text colors */
    --on-surface: rgba(255,255,255,0.95);
    --on-surface-variant: rgba(255,255,255,0.72);
    --on-background: rgba(255,255,255,0.95);
    /* Gold primary */
    --primary: #c9a84c;
    --primary-container: #a07830;
    --on-primary: #1a1208;
    --on-primary-container: #e6c96b;
    /* Secondary — keep blue tones */
    --secondary: #60a5fa;
    --secondary-container: #3b82f6;
    --on-secondary: #0c1a3a;
    /* Tertiary */
    --tertiary: #34d399;
    --tertiary-container: #059669;
    --on-tertiary: #022c1e;
    --on-tertiary-container: #d1fae5;
    /* Error */
    --error: #f87171;
    --error-container: rgba(239,68,68,0.18);
    --on-error-container: #fca5a5;
    /* Borders & outlines */
    --outline: rgba(255,255,255,0.62);
    --outline-variant: rgba(255,255,255,0.12);
    /* Inverse */
    --inverse-surface: rgba(255,255,255,0.92);
    --inverse-on-surface: #0e1018;
    /* Fonts */
    --font-headline: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Manrope', sans-serif;
    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    /* Shadows */
    --shadow-card: 0 4px 20px -2px rgba(0,0,0,0.35);
    --shadow-elevated: 0 20px 40px rgba(0,0,0,0.4);
    /* Gold accent for easy reuse */
    --gold: #c9a84c;
    --gold-dark: #a07830;
    --gold-light: #e6c96b;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
html { 
    -webkit-text-size-adjust: 100%; 
    height: 100%;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
    touch-action: pan-y;
    background: #0a0c12;
}
body {
    font-family: var(--font-body);
    background: #0a0c12;
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    min-height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(201,168,76,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 80%, rgba(96,165,250,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 40% at 50% 50%, rgba(201,168,76,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
#app {
    position: relative;
    z-index: 1;
}
a { text-decoration: none; color: inherit; -webkit-user-drag: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { 
    font-family: inherit; 
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
}
img { 
    max-width: 100%; 
    display: block; 
    -webkit-user-drag: none;
    pointer-events: none; /* Prevent dragging images */
}
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    overflow: hidden;
    max-width: 1.2em; /* Prevent fallback text ligatures from breaking layouts */
    white-space: nowrap;
}

/* ─── Typography ─── */
.font-headline { font-family: var(--font-headline); }
.text-display { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.text-headline-lg { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.text-headline { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.text-title { font-size: 1.125rem; font-weight: 700; }
.text-body { font-size: 0.875rem; line-height: 1.6; }
.text-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.text-caption { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; }

/* ─── Layout ─── */
#app { 
    position: relative; 
    height: 100dvh; 
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#page-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem 1rem 5.5rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    overscroll-behavior-y: contain;
}
#page-content.fullscreen {
    padding: 0;
    max-width: 100%;
    margin: 0;
}
/* Fullscreen Edge-to-Edge layout: no horizontal padding, max-width preserved for large screens */
#page-content.edge-to-edge {
    padding: var(--safe-area-top) 0 5.5rem 0;
    max-width: 480px;
}

/* ─── Header ─── */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100%;
    height: calc(4.5rem + var(--safe-area-top));
    padding-top: var(--safe-area-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    background: rgba(5,8,15,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}
@media (min-width: 480px) {
    .app-header { max-width: 480px; }
}
.header-left, .header-right {
    flex: 0 0 3.5rem;
    display: flex;
    align-items: center;
}
.header-right { justify-content: flex-end; }
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-title {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.92);
}
.header-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
}
.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    line-height: 16px;
    font-weight: 800;
    text-align: center;
    padding: 0 4px;
    border: 2px solid #1a1b26;
    box-shadow: 0 2px 4px rgba(239,68,68,0.4);
    pointer-events: none;
}
.header-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(201,168,76,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a07830, #c9a84c);
    color: #1a1208;
    box-shadow: 0 4px 12px rgba(201,168,76,0.25);
    font-weight: 800;
    font-family: var(--font-headline);
}

/* ─── Bottom Navigation ─── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.125rem;
    height: 4.25rem;
    padding: 0.375rem 0.5rem calc(0.375rem + env(safe-area-inset-bottom));
    background: rgba(10, 12, 18, 0.78);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(201,168,76,0.12);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
    max-width: 480px;
    width: min(100vw, 480px);
    padding-left: max(0.5rem, env(safe-area-inset-left));
    padding-right: max(0.5rem, env(safe-area-inset-right));
}
.nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0;
    border-radius: var(--radius-lg);
    color: rgba(255,255,255,0.35);
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-width: 0;
}
.nav-item.active {
    background: rgba(201,168,76,0.12);
    color: #c9a84c;
}
.nav-item.active .nav-icon {
    font-variation-settings: 'FILL' 1;
}
.nav-icon { 
    font-size: 1.375rem; 
    line-height: 1;
}
.nav-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ─── Chat FAB ─── */
.chat-fab {
    position: fixed;
    right: 1rem;
    bottom: 5.5rem;
    z-index: 40;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a07830, #c9a84c);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(201,168,76,0.3);
    box-shadow: 0 8px 24px rgba(201,168,76,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1208;
    transition: transform 0.2s;
}
.chat-fab .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1;
}
.chat-fab:active { transform: scale(0.92); }

/* ─── Offline Bar ─── */
.offline-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--inverse-surface);
    color: var(--inverse-on-surface);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.offline-bar.show { display: flex; }

/* ─── Loading ─── */
.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 60vh;
    color: var(--outline);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
#page-content > .page-loading {
    min-height: calc(100dvh - 7rem);
}
.chat-messages > .page-loading {
    min-height: calc(100dvh - 10rem);
}
.page-loading.page-loading-lite {
    min-height: 32vh;
    gap: 0.35rem;
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.loader {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255,255,255,0.75);
    border-top-color: transparent;
    border-radius: 50%;
    background:
        conic-gradient(from 180deg, #2170e4, #24b8a5, #f97316, #2170e4);
    -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 57%);
    mask: radial-gradient(circle at center, transparent 56%, #000 57%);
    animation: spin 0.9s linear infinite;
    box-shadow: 0 8px 22px rgba(33,112,228,0.24);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Cards ─── */
.card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}
.card-elevated {
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    border-color: rgba(201,168,76,0.12);
}
.card-surface {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.07);
}

/* ─── Buttons ─── */
.btn-primary {
    width: 100%;
    height: 3.5rem;
    background: linear-gradient(135deg, #a07830, #c9a84c, #e6c96b);
    color: #1a1208;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(201,168,76,0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}
.btn-primary:active { 
    transform: scale(0.96); 
    box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}
.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.80);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.2s;
}
.btn-secondary:active { transform: scale(0.95); background: rgba(255,255,255,0.14); }

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Modern Cards & Widgets ─── */
.card-modern {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(201,168,76,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.card-gradient-primary {
    background: linear-gradient(135deg, #a07830 0%, #c9a84c 100%);
    color: #1a1208;
    border: none;
}
.card-gradient-secondary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    border: none;
}
.card-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image: radial-gradient(rgba(201,168,76,0.5) 0.5px, transparent 0.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* ─── Page Headers ─── */
.subpage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-top: calc(0.5rem + var(--safe-area-top));
}
.btn-back {
    width: 3rem;
    height: 3rem;
    border-radius: 1.125rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.75);
    transition: all 0.2s;
}
.btn-back:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.14);
}
.subpage-title-wrap {
    flex: 1;
}
.subpage-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--on-surface);
}
.subpage-subtitle {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    font-weight: 600;
    margin-top: 0.125rem;
}

/* ─── Custom Gradients for Specific Widgets ─── */
.gradient-mesh-orange {
    background-color: #1a1208;
    background-image: 
        radial-gradient(at 0% 0%, rgba(160,120,48,0.5) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(201,168,76,0.3) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(96,165,250,0.15) 0, transparent 50%);
}

.gradient-ocean {
    background: linear-gradient(135deg, #006398 0%, #00a2f4 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ─── Form Inputs Clean Look ─── */
.form-input-modern {
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: 1.25rem;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.92);
    transition: all 0.2s;
    width: 100%;
}
.form-input-modern::placeholder { color: rgba(255,255,255,0.28); }
.form-input-modern:focus {
    background: rgba(255,255,255,0.10);
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
    outline: none;
}

/* ─── Input Fields ─── */
.input-group { margin-bottom: 1.25rem; }
.input-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}
.input-field {
    width: 100%;
    background: var(--surface-container-low);
    border: none;
    border-left: 0 solid transparent;
    border-radius: var(--radius-md);
    padding: 1rem 1rem 1rem 3rem;
    font-size: 0.9375rem;
    color: var(--on-surface);
    outline: none;
    transition: all 0.2s;
}
.input-field:focus {
    background: var(--surface-container-lowest);
    border-left: 4px solid var(--primary);
}
.input-field::placeholder { color: var(--outline); }
.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    font-size: 1.25rem;
    transition: color 0.2s;
    pointer-events: none;
}
.input-wrapper:focus-within .input-icon { color: var(--primary); }
.input-action {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    padding: 0.25rem;
}

/* ─── Chips / Badges ─── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.chip-success { background: rgba(5, 150, 105, 0.15); color: #34d399; }
.chip-error { background: rgba(239,68,68,0.15); color: #fca5a5; }
.chip-warning { background: rgba(251,191,36,0.15); color: #fbbf24; }
.chip-info { background: rgba(96,165,250,0.15); color: #93c5fd; }
.chip-neutral { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* ─── Connection Status ─── */
.status-connected {
    background: rgba(0, 162, 244, 0.1);
    border: 1px solid rgba(0, 162, 244, 0.2);
    color: var(--tertiary-container);
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Progress Bar ─── */
.progress-bar {
    height: 0.5rem;
    background: var(--surface-container-high);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--secondary);
    box-shadow: 0 0 12px rgba(0, 88, 190, 0.4);
    transition: width 0.5s ease;
}

/* ─── Transaction / List Items ─── */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s;
}
.list-item + .list-item { margin-top: 0.5rem; }
.list-item-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.list-item-content { flex: 1; margin-left: 0.75rem; }
.list-item-title { font-weight: 700; font-size: 0.8125rem; }
.list-item-subtitle { font-size: 0.6875rem; color: var(--outline); margin-top: 0.125rem; }

/* ─── Section Title ─── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}
.section-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
}
.section-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
}

/* ─── Ticket Status Colors ─── */
.ticket-open { background: rgba(239,68,68,0.15); color: #fca5a5; }
.ticket-in-progress { background: rgba(96,165,250,0.15); color: #93c5fd; }
.ticket-pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.ticket-resolved { background: rgba(52,211,153,0.15); color: #34d399; }
.ticket-closed { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }

/* ─── Beranda / Dashboard (Two-Tone Premium Design) ─── */
.beranda-container {
    position: relative;
    min-height: 100%;
    background: #ffffff; /* Bottom color */
}

.beranda-top-section {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 85%, #ffffff 100%);
    padding: calc(1.5rem + var(--safe-area-top)) 1rem 4rem;
    color: white;
}

.beranda-top-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.beranda-top-bg::after {
    content: '';
    position: absolute;
    top: -10%; right: -5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
    filter: blur(40px);
}

/* (beranda-greeting, -sub, -name moved to beranda-wrap section below) */

/* Carousel/Banner */
.beranda-carousel {
    position: relative;
    z-index: 10;
    width: 100%;
    height: clamp(140px, 20dvh, 180px);
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.carousel-slide {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1b26, #c9a84c);
    position: relative;
}
.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}
.carousel-content {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
}
.carousel-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Main Detail Card (The Floating Card) */
.beranda-main-card {
    position: relative;
    z-index: 20;
    margin: -3rem 1rem 1.5rem;
    background: #0f172a;
    border-radius: 1.5rem;
    padding: 1.25rem;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.card-id-badge {
    background: linear-gradient(90deg, #c9a84c, #a07830);
    color: #1a1208;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-type-label {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-main-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.info-box {
    flex: 1;
}
.info-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}
.info-value {
    font-size: 1.125rem;
    font-weight: 800;
    font-family: var(--font-headline);
    color: #ffffff;
}

.card-pay-btn {
    width: 100%;
    height: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #c9a84c, #a07830);
    color: #1a1208;
    border: none;
    border-radius: 1rem;
    font-weight: 800;
    font-family: var(--font-headline);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(201,168,76,0.25);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-pay-btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(201,168,76,0.2);
}
.card-pay-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.card-footer-row {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.points-badge {
    color: #c9a84c;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Service Grid Section */
.beranda-bottom-section {
    padding: 0 1rem 2rem;
    background: #ffffff;
    color: #1e293b;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.service-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    background: #f8fafc;
    transition: transform 0.2s;
}
.service-item:active .service-icon-wrap { transform: scale(0.9); }
.service-icon-wrap .material-symbols-outlined {
    font-size: 1.75rem;
}
.service-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    line-height: 1.2;
}

/* Promo Banner Section */
.promo-section {
    margin-bottom: 2rem;
}
.promo-title {
    font-family: var(--font-headline);
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}
.promo-card {
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #1a1208;
    position: relative;
    padding: 1.5rem;
}
.promo-content { position: relative; z-index: 2; }
.promo-badge {
    background: #c9a84c;
    color: #1a1208;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
}
.promo-text {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.beranda-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.beranda-activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.875rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.beranda-activity-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.beranda-activity-icon .material-symbols-outlined { font-size: 1.125rem; }
.beranda-activity-info { flex: 1; min-width: 0; }
.beranda-activity-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--on-surface);
}
.beranda-activity-date {
    font-size: 0.625rem;
    color: var(--outline);
    margin-top: 0.125rem;
}
.beranda-activity-amount { text-align: right; flex-shrink: 0; }
.beranda-activity-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--on-surface);
}
.beranda-activity-status {
    font-size: 0.625rem;
    font-weight: 700;
}
.beranda-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--outline);
    font-size: 0.8125rem;
}
/* Support CTA */
.beranda-support-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.15s;
}
.beranda-support-card:active { transform: scale(0.98); }
.beranda-support-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.beranda-support-avatar img { width: 100%; height: 100%; object-fit: cover; }
.beranda-support-text { flex: 1; }
.beranda-support-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--on-surface);
}
.beranda-support-sub {
    font-size: 0.6875rem;
    color: var(--outline);
    margin-top: 0.125rem;
}

/* ─── Beranda NEW Layout (beranda-wrap based) ─── */
.beranda-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: calc(2rem + var(--safe-area-top)) max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}
.beranda-wrap section {
    width: 100%;
}

/* Greeting row */
.beranda-greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.beranda-greeting-sub {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    margin-bottom: 0.125rem;
}
.beranda-greeting-name {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.01em;
}

/* Online / Offline status pill */
.beranda-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}
.beranda-status.online {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}
.beranda-status.offline {
    background: rgba(248, 113, 113, 0.10);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.18);
}
.beranda-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.beranda-status.online .beranda-status-dot {
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.beranda-status.offline .beranda-status-dot {
    background: #f87171;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52,211,153,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(52,211,153,0.06); }
}

/* Info card inner row (ID Pelanggan + Paket) */
.beranda-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.beranda-info-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}
.beranda-info-icon {
    font-size: 1.375rem !important;
    flex-shrink: 0;
}
.beranda-info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beranda-info-value {
    font-size: 0.9375rem;
    font-weight: 800;
    font-family: var(--font-headline);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.beranda-info-divider {
    width: 1px;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 1px;
}

/* Bill / Tagihan card */
.beranda-bill-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 1.375rem 1.375rem 1.375rem;
    overflow: hidden;
    color: white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.beranda-bill-card.bill-warning {
    background: linear-gradient(135deg, #1a1208 0%, #a07830 60%, #c9a84c 100%);
    border: 1px solid rgba(201,168,76,0.2);
}
.beranda-bill-card.bill-danger {
    background: linear-gradient(135deg, #1a0808 0%, #7f1d1d 50%, #dc2626 100%);
    border: 1px solid rgba(220,38,38,0.3);
}

/* SVG graph background in bill card */
.beranda-graph-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.35;
}
.beranda-graph-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60%;
}
.beranda-graph-line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.beranda-graph-line-main {
    stroke: rgba(255,255,255,0.5);
}

.beranda-bill-content {
    position: relative;
    z-index: 2;
}
.beranda-bill-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.beranda-bill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.625rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
}
.beranda-bill-period {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
}
.beranda-bill-amount {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}
.beranda-bill-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

/* Paid card */
.beranda-paid-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.beranda-paid-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}
.beranda-paid-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(52,211,153,0.15);
    border: 2px solid rgba(52,211,153,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    margin-bottom: 0.5rem;
}
.beranda-paid-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.01em;
}
.beranda-paid-sub {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
}
.beranda-paid-next {
    margin-top: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gold-light);
}

/* Section title */
.beranda-section-title {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.01em;
    margin-bottom: 0.875rem;
}

/* Quick Actions 4-column grid */
.beranda-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
}
.beranda-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 0.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1.125rem;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
    color: var(--on-surface);
}
.beranda-action-card:active {
    transform: scale(0.93);
    background: rgba(255,255,255,0.10);
}
.beranda-action-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.beranda-action-icon .material-symbols-outlined {
    font-size: 1.375rem !important;
}
.beranda-action-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--on-surface-variant);
    text-align: center;
    line-height: 1.2;
}

/* "Semua →" link */
.beranda-see-all {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════
   Chat Page — Messenger-style Mobile UI
   ═══════════════════════════════════════════════════════ */
.chat-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #0e1018;
    overflow: hidden;
    height: 100dvh;
    height: 100svh;
}

/* ── Header — gradient brand bar ── */
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    padding-top: calc(0.75rem + var(--safe-area-top));
    background: linear-gradient(135deg, #1a1208 0%, #a07830 60%, #c9a84c 100%);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    min-height: 3.5rem;
    box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}
.chat-header-back {
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.3rem 0.3rem 0.3rem 0;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    width: 2rem;
    overflow: hidden;
}
.chat-header-back .material-symbols-outlined { font-size: 1.4rem; }
.chat-header-avatar {
    position: relative;
    flex-shrink: 0;
}
.chat-header-avatar img {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
}
.chat-header-online {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 0.625rem;
    height: 0.625rem;
    background: #4ade80;
    border: 2px solid #c45a00;
    border-radius: 50%;
}
.chat-header-info {
    min-width: 0;
    flex: 1;
}
.chat-header-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-header-info p {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.78);
    margin-top: 0.0625rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}
.chat-header-minimize {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
}
.chat-header-end {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    height: 2rem;
    padding: 0 0.625rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
    max-width: 5.5rem;
    overflow: hidden;
}
.chat-header-end .material-symbols-outlined { font-size: 0.95rem; }
.chat-header-end-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Messages area ── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.75rem 0.25rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}
.chat-messages > .page-loading {
    margin: auto;
}

/* ── Chat rows ── */
.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 0.375rem;
    max-width: 82%;
}
.chat-row-ai    { align-self: flex-start; }
.chat-row-customer { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ── Bubbles ── */
.chat-bubble {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    position: relative;
}
.chat-bubble-customer {
    background: linear-gradient(135deg, #a07830 0%, #c9a84c 100%);
    color: #1a1208;
    border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
    box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}
.chat-bubble-admin {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.06);
}
.chat-sender {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.125rem;
    display: block;
}
.chat-time {
    font-size: 0.5625rem;
    color: rgba(100,100,120,0.7);
    margin-top: 0.1875rem;
    padding: 0 0.25rem;
    display: block;
}
.chat-time-right { text-align: right; }

/* ── Date divider ── */
.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.625rem 0 0.375rem;
    gap: 0.5rem;
}
.chat-date-divider::before,
.chat-date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.chat-date-divider span {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.08);
    padding: 0.2rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
}

/* ── Footer / Input bar ── */
.chat-footer {
    padding: 0.5rem 0.625rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    padding-left: max(0.625rem, env(safe-area-inset-left));
    padding-right: max(0.625rem, env(safe-area-inset-right));
    background: #0e1018;
    flex-shrink: 0;
}
.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255,255,255,0.07);
    border-radius: 1.5rem;
    padding: 0.3125rem 0.3125rem 0.3125rem 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border: 1.5px solid rgba(255,255,255,0.10);
    transition: border-color 0.15s;
}
.chat-input-bar:focus-within {
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12), 0 1px 4px rgba(0,0,0,0.15);
}
.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.4375rem 0;
    font-size: 0.9375rem;
    outline: none;
    color: var(--on-surface);
    min-width: 0;
    line-height: 1.4;
}
.chat-input::placeholder { color: rgba(255,255,255,0.3); font-size: 0.875rem; }
.chat-send-btn {
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #a07830, #c9a84c);
    color: #1a1208;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(201,168,76,0.35);
}
.chat-send-btn:active  { transform: scale(0.86); }
.chat-send-btn:disabled { opacity: 0.45; box-shadow: none; }

/* ── Typing indicator ── */
.chat-typing-wrap {
    padding: 0.125rem 0.75rem 0.125rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.chat-typing-wrap .chat-avatar { width: 1.5rem; height: 1.5rem; }
.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.08);
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.typing-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #b0a8a0;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.22s; }
.typing-dot:nth-child(3) { animation-delay: 0.44s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0) scale(0.8); opacity: 0.5; }
    40% { transform: translateY(-5px) scale(1); opacity: 1; }
}
.chat-msg-content { line-height: 1.55; }
.chat-msg-content strong { font-weight: 600; }

/* ── Welcome / empty screen ── */
.chat-welcome {
    text-align: center;
    padding: 1.75rem 1.25rem 1rem;
    color: var(--outline);
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.chat-welcome-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.875rem;
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
    border: 3px solid rgba(201,168,76,0.3);
}
.chat-welcome-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-welcome h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
}
.chat-welcome p {
    font-size: 0.8125rem;
    margin-top: 0.3125rem;
    max-width: 260px;
    line-height: 1.5;
    color: rgba(100,100,120,0.85);
}
.chat-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 340px;
}
.chat-chip {
    background: rgba(255,255,255,0.07);
    color: #c9a84c;
    border: 1.5px solid rgba(201,168,76,0.25);
    border-radius: 1.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.chat-chip:active {
    background: linear-gradient(135deg, #a07830, #c9a84c);
    color: #1a1208;
    border-color: transparent;
    transform: scale(0.95);
}

/* ── Ticket banner ── */
.chat-ticket-banner {
    padding: 0.75rem 1rem;
    margin: 0.375rem 0.25rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 1rem;
    text-align: center;
}
.chat-ticket-number {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    margin-top: 0.25rem;
}
.chat-ticket-sla {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.125rem;
}
.chat-ticket-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, #a07830, #c9a84c);
    color: #1a1208;
    border: none;
    border-radius: 0.875rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 6px rgba(201,168,76,0.3);
}
.chat-ticket-btn:active { transform: scale(0.95); }

/* ── Tablet / larger screens ── */
@media (min-width: 600px) {
    .chat-container {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.12);
    }
    .chat-row { max-width: 72%; }
    .chat-bubble { font-size: 0.875rem; }
}

/* ── Small phone ── */
@media (max-width: 374px) {
    .chat-header { 
        gap: 0.3rem; 
        padding: 0.375rem 0.5rem; 
        padding-top: calc(0.5rem + var(--safe-area-top));
    }
    .chat-header-avatar img { width: 2.1rem; height: 2.1rem; }
    .chat-header-info h4 { font-size: 0.875rem; }
    .chat-header-end-label { display: none; }
    .chat-header-end { padding: 0 0.5rem; }
    .chat-row { max-width: 90%; }
    .chat-bubble { padding: 0.4375rem 0.625rem; font-size: 0.78rem; }
    .chat-avatar { width: 1.5rem; height: 1.5rem; }
    .chat-chip { font-size: 0.7rem; padding: 0.4375rem 0.7rem; }
    .chat-input { font-size: 0.875rem; }
}

/* ─── Modal / Sheet ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(19, 27, 46, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-sheet {
    background: rgba(14,16,24,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    animation: slideUp 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.10);
}
.modal-handle {
    width: 2rem;
    height: 0.25rem;
    background: var(--outline-variant);
    border-radius: 9999px;
    margin: 0 auto 1rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ─── Empty State ─── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 40vh;
}
.empty-icon {
    font-size: 3rem;
    color: var(--outline);
    margin-bottom: 1rem;
}
.empty-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.empty-subtitle {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    max-width: 280px;
}

/* ─── Form Styles ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.92);
    outline: none;
    transition: all 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.28); }
.form-input:focus {
    background: rgba(255,255,255,0.09);
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.92);
    outline: none;
    resize: vertical;
    min-height: 6rem;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.form-textarea::placeholder { color: rgba(255,255,255,0.28); }
.form-textarea:focus {
    background: rgba(255,255,255,0.09);
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.92);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* ─── Ticket Compose ─── */
.ticket-compose {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ticket-compose-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.ticket-compose-back {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.ticket-compose-title {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}
.ticket-compose-subtitle {
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}
.ticket-compose-form {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ticket-compose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.ticket-compose-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    background: var(--surface-container-low);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.75rem;
}
.ticket-compose-note .material-symbols-outlined {
    font-size: 1rem;
    color: var(--secondary);
    margin-top: 1px;
}
.ticket-compose-error {
    color: var(--error);
    font-size: 0.8125rem;
    font-weight: 600;
}
.ticket-compose-submit {
    margin-top: 0.25rem;
}
@media (min-width: 420px) {
    .ticket-compose-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ─── Success Hero ─── */
.hero-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.2);
}
.hero-success::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 8rem;
    height: 8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

/* ─── Alert / Warning Card ─── */
.alert-card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.alert-card-header {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alert-card-body { padding: 1.25rem; }

/* ─── Menu Item ─── */
.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    transition: background 0.2s;
}
.menu-item:active { background: rgba(255,255,255,0.06); }
.menu-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,76,0.10);
    color: #c9a84c;
}
.menu-item-label { flex: 1; font-weight: 600; }
.menu-item-arrow { color: var(--on-surface-variant); }

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--inverse-surface);
    color: var(--inverse-on-surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 200;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ─── Skeleton Loader ─── */
.skeleton {
    background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container) 50%, var(--surface-container-low) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── Divider (No-Line - use space) ─── */
.divider { height: 1.5rem; }

/* ─── Utility ─── */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-error { color: var(--error); }
.text-outline { color: var(--outline); }
.text-variant { color: var(--on-surface-variant); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.6875rem; }
.text-sm { font-size: 0.8125rem; }
.text-lg { font-size: 1.125rem; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.hidden { display: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE — Modern Minimal (Mobile First)
   Inherits body's radial gradient theme + subtle aurora glow
   ═══════════════════════════════════════════════════════ */

.login-page {
    position: fixed;
    inset: 0;
    font-family: var(--font-body);
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

/* ---- Soft aurora glow (single layer, GPU-friendly) ---- */
.login-page::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 50% 35% at 20% 0%, rgba(201,168,76,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 45% 30% at 90% 100%, rgba(96,165,250,0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Subtle dotted grid pattern ---- */
.login-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
    pointer-events: none;
    z-index: -1;
}

.login-scroll {
    position: relative;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: env(safe-area-inset-top, 1.5rem) 1.5rem env(safe-area-inset-bottom, 1.5rem);
    gap: 0;
}

.login-center {
    width: 100%;
    max-width: 380px;
    margin-top: clamp(3rem, 12vh, 6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- Logo with subtle gold halo ---- */
.login-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 6px 16px rgba(201,168,76,0.25));
}

.login-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--on-surface);
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.2;
}

.login-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

/* ---- Card with refined glass border (lightweight) ---- */
.login-form {
    width: 100%;
    margin-top: 1.75rem;
    padding: 1.4rem 1.25rem 1.25rem;
    background: rgba(20, 23, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 12px 28px -8px rgba(0,0,0,0.5);
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.4);
    pointer-events: none;
    transition: color 0.2s;
}

.login-input-wrap:focus-within .login-input-icon {
    color: var(--primary);
}

.login-input-field {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    background: rgba(10, 12, 18, 0.55);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.login-input-field::placeholder {
    color: rgba(255,255,255,0.3);
}

.login-input-field:focus {
    border-color: var(--primary);
    background: rgba(10, 12, 18, 0.8);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
}

.login-input-field.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px var(--error-container) !important;
}

.login-error {
    background: var(--error-container);
    color: var(--on-error-container);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    margin-top: 0.75rem;
    text-align: center;
    border: 1px solid rgba(248,113,113,0.2);
}

.login-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.95rem;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #c9a84c 0%, #e6c96b 100%);
    color: var(--on-primary);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 18px -6px rgba(201,168,76,0.45);
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.login-btn-primary:hover {
    box-shadow: 0 8px 22px -6px rgba(201,168,76,0.6);
}

.login-btn-primary:active {
    transform: scale(0.97);
}

.login-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-help {
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.login-help a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

/* ---- Bottom stack: partners, legal, copyright ---- */
.login-bottom-stack {
    width: 100%;
    max-width: 380px;
    margin-top: auto;
    margin-bottom: clamp(0.75rem, 3vh, 1.5rem);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.login-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
}

.login-partner-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.4);
    transition: opacity 0.2s;
}

.login-partner-logo--wide {
    height: 50px;
}

.login-partner-logo:hover {
    filter: brightness(0) invert(1) opacity(0.6);
}

.login-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
}

.login-legal a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.15s;
}

.login-legal a:hover {
    color: rgba(255,255,255,0.65);
}

.login-legal span {
    color: rgba(255,255,255,0.18);
}

.login-copyright {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.22);
    letter-spacing: 0.06em;
    margin: 0;
}

/* ---- Tablet / Desktop refinement ---- */
@media (min-width: 720px) {
    .login-center {
        max-width: 400px;
    }
    .login-title {
        font-size: 1.85rem;
    }
    .login-form {
        padding: 1.75rem 1.5rem 1.5rem;
    }
}


/* ═══════════════════════════════════════════════════════
   LEGAL PAGES — Privacy Policy & Terms of Service
   Same dark circuit board background as login page
   ═══════════════════════════════════════════════════════ */
.legal-page {
    position: fixed;
    inset: 0;
    overflow: hidden;
    font-family: var(--font-body);
}
.legal-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/bg_login.webp') center center / cover no-repeat;
    z-index: 0;
}
.legal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 12, 18, 0.85) 0%,
        rgba(10, 12, 18, 0.70) 100%
    );
    z-index: 1;
}
.legal-scroll {
    position: relative;
    z-index: 2;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 1rem);
}

/* ---- Sticky header bar ---- */
.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    background: rgba(10, 12, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.09);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.legal-back-btn:active { background: rgba(255,255,255,0.18); }
.legal-back-btn .material-symbols-outlined { font-size: 1.25rem; }
.legal-header-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
    letter-spacing: -0.01em;
}

/* ---- Content card ---- */
.legal-card {
    width: 100%;
    max-width: 520px;
    margin: 1.25rem 1rem 0;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ---- Badge ---- */
.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.25);
    color: #c9a84c;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.legal-badge .material-symbols-outlined { font-size: 0.875rem; }
.legal-badge--terms {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.25);
    color: #818cf8;
}

/* ---- Title & meta ---- */
.legal-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}
.legal-updated {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
}

/* ---- Sections ---- */
.legal-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.875rem;
    color: #c9a84c;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.legal-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.legal-text strong { color: rgba(255,255,255,0.88); }
.legal-list {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}
.legal-list li {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* ---- Footer note ---- */
.legal-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    color: rgba(201,168,76,0.9);
    font-weight: 500;
    line-height: 1.5;
}
.legal-footer-note .material-symbols-outlined {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.legal-footer-note--terms {
    background: rgba(99,102,241,0.1);
    border-color: rgba(99,102,241,0.2);
    color: rgba(129,140,248,0.9);
}

/* ---- Bottom navigation ---- */
.legal-bottom-nav {
    width: 100%;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    gap: 1rem;
}
.legal-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.legal-bottom-btn:active { background: rgba(255,255,255,0.16); }
.legal-bottom-btn .material-symbols-outlined { font-size: 1rem; }
.legal-bottom-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #c9a84c;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.legal-bottom-link:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   PIN SCREEN — Full-screen fit, info on top, keypad on bottom
   Info area ≈ top 40%, keypad ≈ bottom 60%, fits all phones
   ═══════════════════════════════════════════════════════ */
.pin-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
    background: #0f172a;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pin-screen::before {
    content: '';
    position: absolute;
    top: -20%; left: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}
.pin-screen::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

/* ---- Info: avatar + title + name — top section ---- */
.pin-screen-info {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 8dvh, 3.5rem) 1.5rem clamp(0.5rem, 2dvh, 1rem);
    gap: 0.375rem;
}
.pin-screen-avatar {
    width: clamp(3rem, 10dvh, 4.5rem);
    height: clamp(3rem, 10dvh, 4.5rem);
    border-radius: 50%;
    background: linear-gradient(135deg, #a07830, #c9a84c, #e6c96b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(1.125rem, 4dvh, 1.75rem);
    color: #1a1208;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
    margin-bottom: 0.25rem;
}
.pin-screen-avatar--create {
    background: linear-gradient(135deg, #4f46e5, #818cf8);
    color: white;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}
.pin-screen-title {
    font-size: clamp(1rem, 3.5dvh, 1.5rem);
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.02em;
    margin: 0;
    font-family: var(--font-headline);
    font-weight: 700;
}
.pin-screen-sub {
    font-size: clamp(0.6875rem, 2dvh, 0.875rem);
    color: rgba(255,255,255,0.40);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pin-screen-name {
    font-size: clamp(0.6875rem, 2dvh, 0.875rem);
    color: rgba(255,255,255,0.40);
    margin: 0;
}

/* ---- Step indicator (buat-pin) ---- */
.pin-screen-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    flex: 0 0 auto;
}
.pin-screen-step {
    display: flex; align-items: center; justify-content: center;
}
.pin-screen-step span {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pin-screen-step.active span {
    background: linear-gradient(135deg, #a07830, #c9a84c);
    border-color: transparent;
    color: #1a1208;
}
.pin-screen-step-line {
    width: 1.75rem;
    height: 2px;
    background: rgba(255,255,255,0.12);
    border-radius: 1px;
}

/* ---- PIN dots ---- */
.pin-screen-dots {
    display: flex;
    gap: clamp(0.625rem, 2vw, 1rem);
    justify-content: center;
    padding: clamp(0.5rem, 2dvh, 1rem) 0 clamp(0.25rem, 1dvh, 0.5rem);
    flex: 0 0 auto;
}
.pin-screen .pin-dot,
.pin-screen-dots .pin-dot {
    width: clamp(0.5625rem, 1.8dvh, 0.875rem);
    height: clamp(0.5625rem, 1.8dvh, 0.875rem);
    border-radius: 50%;
    border: 2px solid rgba(201,168,76,0.35);
    background: transparent;
    transition: all 0.15s ease;
}
.pin-screen .pin-dot.active,
.pin-screen-dots .pin-dot.active {
    background: linear-gradient(135deg, #a07830, #c9a84c);
    border-color: #c9a84c;
    box-shadow: 0 0 10px rgba(201,168,76,0.45);
    transform: scale(1.2);
}

/* ---- Feedback: error / attempts ---- */
.pin-screen-feedback {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 1.5rem;
    padding: 0 1rem 0.125rem;
}
.pin-screen-error {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 0.625rem;
    text-align: center;
    border: 1px solid rgba(248,113,113,0.25);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: fadeSlideIn 0.3s ease;
}
.pin-screen-attempts {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: fadeSlideIn 0.3s ease;
}

/* ---- Keypad: fills ALL remaining space (bottom 60%) ---- */
.pin-screen-pad {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Push keypad snug to bottom with slight padding */
    padding: 0 1.25rem clamp(0.75rem, 3dvh, 1.75rem);
    min-height: 0;
}
.pin-screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Gap and button size scale with available height */
    gap: clamp(0.375rem, 1.5dvh, 0.875rem);
    width: 100%;
    max-width: min(18rem, 72vw);
}

/* Individual key — circular, scales with grid */
.pin-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-headline);
    font-size: clamp(1.25rem, 4.5dvh, 1.875rem);
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.pin-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pin-btn--icon {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    color: rgba(255,255,255,0.45);
    font-size: clamp(1.1rem, 3.5dvh, 1.5rem);
}
.pin-btn--icon:active {
    background: transparent;
    color: #c9a84c;
    box-shadow: none;
}
.pin-btn--text {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    font-family: var(--font-body);
    font-size: clamp(0.625rem, 1.8dvh, 0.8125rem);
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pin-btn--text:active {
    color: #c9a84c;
    background: transparent;
    box-shadow: none;
    transform: scale(0.92);
}
.pin-btn--empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

/* PIN Success Modal */
.pin-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,8,15,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}
.pin-success-overlay.show {
    opacity: 1;
}
.pin-success-modal {
    background: linear-gradient(145deg, rgba(30,35,50,0.95), rgba(20,23,32,0.98));
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 1.75rem;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 0 0 1px rgba(201,168,76,0.08),
        0 24px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(201,168,76,0.06);
    max-width: 340px;
    width: 100%;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.pin-success-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(201,168,76,0.05), transparent, rgba(96,165,250,0.03), transparent);
    animation: pinModalShimmer 6s linear infinite;
    pointer-events: none;
}
@keyframes pinModalShimmer {
    to { transform: rotate(360deg); }
}
.pin-success-overlay.show .pin-success-modal {
    transform: scale(1) translateY(0);
}

/* ---- Success Icon (PIN Created) ---- */
.pin-success-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #e6c96b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 6px rgba(201,168,76,0.15),
        0 0 40px rgba(201,168,76,0.25),
        0 8px 24px rgba(201,168,76,0.3);
    animation: pinIconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes pinIconPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(201,168,76,0.15), 0 0 40px rgba(201,168,76,0.25), 0 8px 24px rgba(201,168,76,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(201,168,76,0.08), 0 0 60px rgba(201,168,76,0.3), 0 8px 24px rgba(201,168,76,0.3); }
}

/* PIN dots shared (for shake animation) */
.pin-dots, .pin-clean-dots, .pin-screen-dots {
    transition: transform 0.3s;
}
.pin-dots.shake, .pin-clean-dots.shake, .pin-screen-dots.shake {
    animation: pinShake 0.4s ease-in-out;
}
@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ---- Verified Check Animation (PIN Login) ---- */
.pin-verified-icon-modern {
    width: 5.5rem;
    height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 8px rgba(16,185,129,0.15), 0 16px 32px rgba(16,185,129,0.4);
    animation: pinIconPulseMod 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.pin-verified-icon-modern .pb-icon {
    font-size: 2.75rem;
    color: #ffffff;
    font-variation-settings: 'FILL' 1;
    animation: iconPopMod 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pinIconPulseMod {
    0%, 100% { box-shadow: 0 0 0 8px rgba(16,185,129,0.15), 0 16px 32px rgba(16,185,129,0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 16px rgba(16,185,129,0.08), 0 24px 48px rgba(16,185,129,0.5); transform: scale(1.05); }
}
@keyframes iconPopMod {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.pin-success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-top: 1.5rem;
    background: linear-gradient(to right, #ffffff, #10b981);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
    position: relative;
    text-align: center;
}

.pin-success-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
    text-align: center;
    z-index: 1;
    position: relative;
    line-height: 1.5;
}
.pin-success-text strong {
    color: #fff;
    font-weight: 700;
}

.pin-success-loader {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    padding: 10px 20px;
    border-radius: 999px;
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 1;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}


/* ---- Blocked Icon ---- */
.pin-blocked-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 6px rgba(239,68,68,0.12),
        0 0 40px rgba(239,68,68,0.2),
        0 8px 24px rgba(220,38,38,0.3);
    animation: pinBlockedPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes pinBlockedPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(239,68,68,0.12), 0 0 40px rgba(239,68,68,0.2), 0 8px 24px rgba(220,38,38,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(239,68,68,0.06), 0 0 60px rgba(239,68,68,0.25), 0 8px 24px rgba(220,38,38,0.3); }
}

/* Login input error state */
.login-input-field.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

/* ═══════════════════════════════════════════════════════
   INBOX CHAT CARD
   ═══════════════════════════════════════════════════════ */
.inbox-badge {
    background: var(--error);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}
.inbox-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.inbox-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.09);
}
.inbox-avatar {
    position: relative;
    flex-shrink: 0;
}
.inbox-avatar-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}
.inbox-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 0.625rem;
    height: 0.625rem;
    background: #22c55e;
    border: 2px solid var(--surface-container);
    border-radius: 50%;
}
.inbox-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.inbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.inbox-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inbox-time {
    font-size: 0.6875rem;
    color: var(--outline);
    white-space: nowrap;
    flex-shrink: 0;
}
.inbox-preview {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.inbox-preview-unread {
    color: var(--on-surface);
    font-weight: 600;
}
.inbox-unread-badge {
    background: linear-gradient(135deg, #a07830, #c9a84c);
    color: #1a1208;
    font-size: 0.625rem;
    font-weight: 700;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   HELP TOPICS (Compact Modern Cards)
   ═══════════════════════════════════════════════════════ */
.help-topics-grid {
    display: grid;
    gap: 0.625rem;
}
.help-topic-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.help-topic-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1.5rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(201,168,76,0.04);
    pointer-events: none;
}
.help-topic-card:active {
    transform: scale(0.985);
}
.help-topic-icon-wrap {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(33,112,228,0.12);
    color: #1b63cc;
}
.help-topic-icon-wrap .material-symbols-outlined {
    font-size: 1.15rem;
}
.help-topic-content {
    min-width: 0;
    flex: 1;
}
.help-topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(96,165,250,0.15);
    margin-bottom: 0.2rem;
}
.help-topic-title {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--on-surface);
    line-height: 1.25;
}
.help-topic-desc {
    font-size: 0.6875rem;
    color: var(--on-surface-variant);
    margin-top: 0.15rem;
    line-height: 1.35;
}
.help-topic-arrow {
    font-size: 1rem;
    color: var(--outline);
    flex-shrink: 0;
}

.help-topic-speed .help-topic-icon-wrap { background: rgba(96,165,250,0.15); color: #60a5fa; }
.help-topic-pay .help-topic-icon-wrap { background: rgba(52,211,153,0.15); color: #34d399; }
.help-topic-wifi .help-topic-icon-wrap { background: rgba(251,191,36,0.15); color: #fbbf24; }
.help-topic-device .help-topic-icon-wrap { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.help-topic-issue .help-topic-icon-wrap { background: rgba(248,113,113,0.15); color: #f87171; }

/* ═══════════════════════════════════════════════════════
   RIWAYAT PAGE (Modern)
   ═══════════════════════════════════════════════════════ */
.riwayat-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.riwayat-hero {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding-top: calc(0.9rem + var(--safe-area-top)) !important;
}
.riwayat-hero-graph {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.3;
    background:
        radial-gradient(circle at 92% -10%, rgba(201,168,76,0.25), transparent 40%),
        radial-gradient(circle at -10% 100%, rgba(96,165,250,0.15), transparent 44%);
}
.riwayat-hero-graph svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.4rem;
    width: 100%;
    height: 50%;
}
.riwayat-hero-line-main,
.riwayat-hero-line-soft {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.riwayat-hero-line-main {
    stroke: rgba(201,168,76,0.65);
    stroke-width: 2.3;
}
.riwayat-hero-line-soft {
    stroke: rgba(96,165,250,0.35);
    stroke-width: 1.8;
}
.riwayat-hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
}
.riwayat-hero-title {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.riwayat-hero-sub {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}
.riwayat-hero-stats {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}
.riwayat-stat-card {
    border-radius: 0.75rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
}
.riwayat-stat-label {
    display: block;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}
.riwayat-stat-value {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
}
.riwayat-filter-card {
    background: rgba(255,255,255,0.05);
    border-radius: 0.95rem;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem;
    margin: 0 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.riwayat-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
}
.riwayat-search-wrap .material-symbols-outlined {
    font-size: 1rem;
    color: var(--outline);
}
.riwayat-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    color: var(--on-surface);
    outline: none;
}
.riwayat-filter-grid {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.riwayat-filter-select {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    border-radius: 0.7rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    outline: none;
}
.riwayat-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0 1rem;
}
.riwayat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.95rem;
    padding: 0.72rem 0.78rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.riwayat-card-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.riwayat-card-body {
    flex: 1;
    min-width: 0;
}
.riwayat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.riwayat-card-period {
    font-size: 0.71rem;
    color: var(--on-surface-variant);
    font-weight: 700;
}
.riwayat-card-amount {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.15rem;
    color: var(--on-surface);
}
.riwayat-card-date {
    font-size: 0.68rem;
    color: var(--outline);
    margin-top: 0.16rem;
}

/* ═══════════════════════════════════════════════════════
   PROFIL PAGE (Modern)
   ═══════════════════════════════════════════════════════ */
.profil-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-bottom: 1rem;
}
.profil-hero {
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding-top: calc(0.9rem + var(--safe-area-top)) !important;
}
.profil-hero-graph {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% -8%, rgba(201,168,76,0.2), transparent 42%),
        radial-gradient(circle at -5% 100%, rgba(96,165,250,0.12), transparent 42%);
}
.profil-hero-graph svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.6rem;
    width: 100%;
    height: 46%;
}
.profil-line-main,
.profil-line-soft {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.profil-line-main {
    stroke: rgba(201,168,76,0.6);
    stroke-width: 2.3;
}
.profil-line-soft {
    stroke: rgba(96,165,250,0.35);
    stroke-width: 1.8;
}
.profil-hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
}
.profil-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c9a84c;
    background: rgba(201,168,76,0.15);
}
.profil-name {
    margin-top: 0.45rem;
    font-family: var(--font-headline);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.profil-id {
    margin-top: 0.2rem;
    font-size: 0.76rem;
    color: var(--on-surface-variant);
}
.profil-quick-grid {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.55rem;
}
.profil-quick-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 0.78rem;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    padding: 0.55rem 0.65rem;
    text-align: left;
}
.profil-quick-card .material-symbols-outlined {
    font-size: 1.2rem;
    color: #60a5fa;
}
.profil-quick-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.profil-quick-value {
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    margin-top: 0.1rem;
}
.profil-section-card {
    border-radius: 0.95rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    margin: 0 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 0.85rem;
}
.profil-section-head {
    margin-bottom: 0.45rem;
}
.profil-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.profil-info-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    border-radius: 0.72rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.profil-info-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,76,0.12);
    color: #c9a84c;
    flex-shrink: 0;
}
.profil-info-icon .material-symbols-outlined {
    font-size: 1rem;
}
.profil-info-body {
    min-width: 0;
}
.profil-info-label {
    font-size: 0.62rem;
    color: var(--outline);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profil-info-value {
    margin-top: 0.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--on-surface);
    word-break: break-word;
}
.profil-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.profil-action-btn {
    width: 100%;
    border-radius: 0.72rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.62rem 0.72rem;
}
.profil-action-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--on-surface);
}
.profil-action-left .material-symbols-outlined {
    font-size: 1rem;
    color: #60a5fa;
}
.profil-action-arrow {
    font-size: 1rem;
    color: var(--outline);
}
.profil-logout-wrap {
    padding: 0 1rem;
    padding-top: 0.2rem;
}

.btn-danger-light {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(248,113,113,0.25);
    background: rgba(239,68,68,0.10);
    color: #fca5a5;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px rgba(239,68,68,0.15);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-danger-light .material-symbols-outlined {
    font-size: 1rem;
    font-variation-settings: 'FILL' 1;
}

.btn-danger-light:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.18);
}

/* ═══════════════════════════════════════════════════════
   PRIVACY POLICY SHEET
   ═══════════════════════════════════════════════════════ */
.privacy-sheet {
    background: rgba(20,23,32,0.96);
    border: 1px solid rgba(255,255,255,0.10);
}
.privacy-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.privacy-sheet-head h3 {
    font-family: var(--font-headline);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.92);
}
.privacy-close-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
}
.privacy-sheet-body p {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--on-surface-variant);
    margin-bottom: 0.55rem;
}
.privacy-sheet-body ul {
    margin: 0.4rem 0 0.75rem 1rem;
    padding: 0;
}
.privacy-sheet-body li {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--on-surface);
    margin-bottom: 0.38rem;
}
.privacy-sheet-updated {
    font-size: 0.68rem !important;
    color: var(--outline) !important;
    margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════════
   FLOATING CHAT BUBBLE PROMPT
   ═══════════════════════════════════════════════════════ */
.chat-bubble-prompt {
    position: fixed;
    bottom: 6rem;
    right: 1rem;
    z-index: 1000;
    max-width: 280px;
    width: calc(100% - 2rem);
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.chat-bubble-prompt.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.chat-bubble-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(20,23,32,0.92);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    cursor: pointer;
    transition: background 0.15s;
    backdrop-filter: blur(12px);
}
.chat-bubble-content:active {
    background: rgba(30,34,48,0.95);
}
.chat-bubble-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chat-bubble-name {
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-container);
    margin-bottom: 0.125rem;
}
.chat-bubble-text {
    font-size: 0.8125rem;
    color: var(--on-surface);
    line-height: 1.3;
}
.chat-bubble-close {
    position: absolute;
    top: -0.5rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(30,34,48,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1;
    transition: transform 0.15s;
}
.chat-bubble-close:active {
    transform: scale(0.9);
}

/* ═══════════════════════════════════════════════════════
   ONBOARDING COACH MARKS
   ═══════════════════════════════════════════════════════ */
.coach-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(19,27,46,0.6);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.coach-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.coach-spotlight {
    position: fixed;
    box-shadow: 0 0 0 9999px rgba(19,27,46,0.6);
    border: 2px solid var(--primary-container);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    background: transparent;
}
.coach-tooltip {
    position: fixed;
    z-index: 10002;
    background: var(--surface-container-lowest);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 12px 40px rgba(19,27,46,0.15);
    max-width: 300px;
    width: calc(100% - 2rem);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}
.coach-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.coach-tooltip-title {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.375rem;
}
.coach-tooltip-text {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    line-height: 1.45;
}
.coach-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(224,192,177,0.1);
}
.coach-step-counter {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--outline);
    letter-spacing: 0.05em;
}
.coach-tooltip-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.coach-btn-skip {
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.coach-btn-skip:active {
    background: var(--surface-container-low);
}
.coach-btn-next {
    background: var(--primary-container);
    color: white;
    border: none;
    font-family: var(--font-headline);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(157,67,0,0.2);
}
.coach-btn-next:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(157,67,0,0.15);
}

/* ═══════════════════════════════════════════════════════
   TOOLTIPS (for complex features)
   ═══════════════════════════════════════════════════════ */
.tooltip-wrap {
    position: relative;
    display: inline-flex;
}
.tooltip-icon {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: var(--surface-container-high);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
    cursor: help;
    flex-shrink: 0;
    border: none;
}
.tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--inverse-surface);
    color: var(--inverse-on-surface);
    font-size: 0.6875rem;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    max-width: 220px;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(19,27,46,0.15);
}
.tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--inverse-surface);
}
.tooltip-wrap:hover .tooltip-bubble,
.tooltip-wrap:focus-within .tooltip-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE HELPERS
   ═══════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.empty-icon {
    font-size: 3.5rem;
    color: var(--outline-variant);
    opacity: 0.5;
    font-variation-settings: 'FILL' 0;
}
.empty-title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--on-surface);
    margin-top: 1rem;
}
.empty-subtitle {
    font-size: 0.8125rem;
    color: var(--on-surface-variant);
    margin-top: 0.375rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}
.empty-helper {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--surface-container-low);
    border: 1px solid rgba(224,192,177,0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-top: 1.25rem;
    text-align: left;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}
.empty-helper-icon {
    color: var(--primary-container);
    font-size: 1.125rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
}
.empty-helper-text {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

/* ─── Bantuan Page Edge-to-Edge ─── */
.bantuan-wrap {
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 2rem max(1rem, env(safe-area-inset-right));
}
.bantuan-wrap section {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   LOGIN REDESIGN OVERRIDES (Appspelanggan)
   ═══════════════════════════════════════════════════════ */
.login-page .login-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 0.45rem;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.32));
}

.login-page .login-input-wrap {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(183, 208, 255, 0.18);
    background: rgba(7, 13, 28, 0.72);
}

.login-page .login-input-field {
    background: transparent;
    border: none;
    box-shadow: none;
    padding-top: 1.05rem;
    padding-bottom: 1.05rem;
}

.login-page .login-input-field:focus {
    background: rgba(10, 20, 40, 0.4);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 210, 92, 0.55), 0 0 0 2px rgba(255, 210, 92, 0.13);
    transform: none;
}

.login-page .login-footer-links {
    margin-top: 1rem;
    gap: 0.7rem;
}

.login-page .login-no-account {
    color: rgba(225, 235, 255, 0.7);
}

.login-page .login-link-gold {
    color: #ffd779;
}

.login-page .login-meta-links {
    flex-wrap: wrap;
    justify-content: center;
}

.login-page .login-meta-link {
    color: rgba(205, 220, 255, 0.7);
}

.login-page .login-meta-link:hover {
    color: rgba(245, 250, 255, 0.95);
}

@media (min-width: 900px) {
    .login-page .login-logo {
        width: 104px;
        height: 104px;
    }
}

/* ═══════════════════════════════════════════════════════
   LOGIN V2 REDESIGN
   ═══════════════════════════════════════════════════════ */
.login-page.login-page-v2 {
    background:
        radial-gradient(circle at 15% 10%, rgba(245, 194, 83, 0.18), transparent 38%),
        radial-gradient(circle at 90% 85%, rgba(75, 152, 255, 0.2), transparent 44%),
        linear-gradient(160deg, #060d1c 0%, #0e1b33 52%, #132746 100%);
}

.login-page-v2 .login-v2-overlay-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 26px 26px;
}

.login-page-v2 .login-v2-light {
    position: absolute;
    border-radius: 999px;
    filter: blur(46px);
    pointer-events: none;
}

.login-page-v2 .login-v2-light-top {
    width: 280px;
    height: 280px;
    right: -80px;
    top: -110px;
    background: rgba(121, 186, 255, 0.36);
}

.login-page-v2 .login-v2-light-bottom {
    width: 300px;
    height: 300px;
    left: -100px;
    bottom: -140px;
    background: rgba(246, 194, 88, 0.3);
}

.login-page-v2 .login-v2-main {
    position: relative;
    z-index: 2;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(2.8rem, env(safe-area-inset-bottom));
}

.login-page-v2 .login-v2-card {
    width: min(100%, 440px);
    border-radius: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    box-shadow:
        0 26px 50px rgba(0, 9, 24, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.23);
    overflow: hidden;
}

.login-page-v2 .login-v2-header {
    padding: 1.35rem 1.2rem 1.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.11);
}

.login-page-v2 .login-v2-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 0.6rem;
    filter: drop-shadow(0 10px 22px rgba(8, 22, 49, 0.5));
}

.login-page-v2 .login-v2-overline {
    color: rgba(229, 239, 255, 0.78);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.login-page-v2 .login-v2-title {
    margin-top: 0.55rem;
    font-family: var(--font-headline);
    font-size: 1.34rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #f4f8ff;
}

.login-page-v2 .login-v2-subtitle {
    margin-top: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.52;
    color: rgba(221, 233, 255, 0.8);
}

.login-page-v2 .login-v2-pill-row {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.login-page-v2 .login-v2-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    background: rgba(6, 18, 40, 0.56);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(235, 242, 255, 0.93);
    font-size: 0.69rem;
    font-weight: 600;
    padding: 0.36rem 0.6rem;
}

.login-page-v2 .login-v2-pill .material-symbols-outlined {
    font-size: 0.85rem;
    color: #ffd26f;
}

.login-page-v2 .login-v2-form-zone {
    padding: 1.15rem;
}

.login-page-v2 .login-form-title {
    margin: 0;
    font-size: 1.17rem;
}

.login-page-v2 .login-form-subtitle {
    margin-top: 0.25rem;
}

.login-page-v2 .login-form-wrap {
    margin-top: 0.95rem;
}

.login-page-v2 .login-label {
    color: rgba(223, 234, 255, 0.75);
}

.login-page-v2 .login-input-wrap {
    border-color: rgba(255,255,255,0.15);
    background: rgba(7, 17, 37, 0.78);
}

.login-page-v2 .login-input-field {
    color: rgba(244, 248, 255, 0.98);
}

.login-page-v2 .login-input-field::placeholder {
    color: rgba(202, 220, 255, 0.42);
}

.login-page-v2 .login-input-icon {
    color: rgba(184, 209, 255, 0.65);
}

.login-page-v2 .login-input-field:focus {
    box-shadow: inset 0 0 0 1px rgba(255, 214, 115, 0.65), 0 0 0 3px rgba(255, 214, 115, 0.14);
    background: rgba(10, 21, 43, 0.62);
}

.login-page-v2 .login-btn-primary {
    background: linear-gradient(125deg, #f4c65f 0%, #f9df9f 48%, #efbe5b 100%);
    box-shadow: 0 12px 24px rgba(242, 191, 81, 0.26);
}

.login-page-v2 .login-btn-primary:active {
    transform: scale(0.98);
}

.login-page-v2 .login-footer-links {
    margin-top: 0.9rem;
}

.login-page-v2 .login-copyright {
    color: rgba(211, 227, 255, 0.44);
    letter-spacing: 0.1em;
}

@media (min-width: 760px) {
    .login-page-v2 .login-v2-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .login-page-v2 .login-v2-card {
        width: min(100%, 900px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    }

    .login-page-v2 .login-v2-header {
        padding: 1.65rem;
        text-align: left;
        border-bottom: 0;
        border-right: 1px solid rgba(255,255,255,0.12);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-page-v2 .login-v2-logo {
        margin: 0 0 0.85rem;
        width: 112px;
        height: 112px;
    }

    .login-page-v2 .login-v2-title {
        font-size: 1.85rem;
        max-width: 20ch;
    }

    .login-page-v2 .login-v2-subtitle {
        font-size: 0.95rem;
        max-width: 42ch;
    }

    .login-page-v2 .login-v2-pill-row {
        justify-content: flex-start;
    }

    .login-page-v2 .login-v2-form-zone {
        padding: 1.6rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-page-v2 .login-copyright {
        bottom: 0.95rem;
    }
}
