/* ================================================================
   KreditHP - Modern Mobile PWA Stylesheet
   Mobile-first, Fixed HP Frame (max 480px)
   ================================================================ */

:root {
    /* Light theme */
    --primary:        #1A73E8;
    --primary-dark:   #1557B0;
    --primary-light:  #E8F0FE;
    --accent:         #10B981;
    --warn:           #F59E0B;
    --danger:         #EF4444;
    --info:           #1A73E8;

    --bg:             #F8FAFC;
    --bg-2:           #FFFFFF;
    --card:           #FFFFFF;
    --card-border:    #E2E8F0;
    --text:           #0F172A;
    --text-muted:     #475569;
    --text-light:     #94A3B8;
    --divider:        #F1F5F9;
    --input-bg:       #F8FAFC;
    --shadow-sm:      0 1px 2px rgba(15, 23, 42, .05);
    --shadow:         0 4px 20px rgba(15, 23, 42, .08);
    --shadow-lg:      0 12px 32px rgba(26, 115, 232, .15);

    --radius:         18px;
    --radius-sm:      12px;
    --radius-xs:      8px;
    --radius-pill:    999px;

    --nav-h:          84px;
    --app-bar-h:      76px;

    --font:           'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --primary:        #8AB4F8;
    --primary-dark:   #1A73E8;
    --primary-light:  #1A365D;
    --accent:         #34D399;
    --warn:           #FBBF24;
    --danger:         #F87171;
    --info:           #8AB4F8;

    --bg:             #090514;
    --bg-2:           #120E22;
    --card:           #1C1633;
    --card-border:    #2D264D;
    --text:           #F8FAFC;
    --text-muted:     #94A3B8;
    --text-light:     #64748B;
    --divider:        #2D264D;
    --input-bg:       #120E22;
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, .4);
    --shadow:         0 4px 20px rgba(0, 0, 0, .5);
    --shadow-lg:      0 12px 32px rgba(0, 0, 0, .7);
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: var(--font);
    background: linear-gradient(135deg, #F3E8FF 0%, #F8FAFC 100%);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}
[data-theme="dark"] body {
    background: linear-gradient(135deg, #090514 0%, #0B0F1A 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============== Phone Frame ============== */
.phone-frame {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(26, 115, 232, .08);
}
.auth-body .phone-frame {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
}
@media (min-width: 481px) {
    body { padding: 24px 0; }
    .phone-frame {
        height: calc(100vh - 48px);
        max-height: 920px;
        border-radius: 36px;
        border: 8px solid #1F2937;
    }
    [data-theme="dark"] .phone-frame { border-color: #000; }
}

/* ============== App Bar ============== */
.app-bar {
    height: var(--app-bar-h);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 4px 16px rgba(26, 115, 232, .2);
    flex-shrink: 0;
    z-index: 20;
}
.app-bar-left { display: flex; align-items: center; gap: 12px; }
.logo-badge {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    backdrop-filter: blur(8px);
}
.app-bar-title { font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.app-bar-sub { font-size: 12px; opacity: .85; }
.icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.28); }

/* ============== App Content ============== */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 8px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    overscroll-behavior-y: contain;
}
.app-content::-webkit-scrollbar { width: 0; }

/* ============== Bottom Nav ============== */
.bottom-nav {
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: sticky;
    bottom: 0; left: 0; right: 0;
    flex-shrink: 0;
    z-index: 20;
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    flex: 1;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    color: var(--text-muted);
    font-size: 12px; font-weight: 600;
    padding: 8px 0;
    transition: color .2s;
}
.nav-item i { font-size: 22px; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-2px) scale(1.1); transition: transform .2s; }

/* ============== Premium Android Auth Pages Layout ============== */

/* =============================================
   Kredit22 Auth Pages - Modern Split-Screen
   ============================================= */
.auth-body {
    background: #F0F4FF !important;
}
[data-theme="dark"] .auth-body {
    background: #060B1A !important;
}

/* Auth phone frame */
.auth-frame {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}
@media (min-width: 481px) {
    .auth-body .phone-frame {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }
}

/* ============== Auth Hero Section (Brand) ============== */
.auth-hero-wrapper {
    position: relative;
    padding: 28px 24px 32px;
    overflow: hidden;
    z-index: 0;
}
.auth-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #1A73E8 0%, #1557B0 25%, #1A5CC7 50%, #0D3B7A 100%);
    border-radius: 0 0 36px 36px;
    z-index: -1;
}
[data-theme="dark"] .auth-hero-bg {
    background: linear-gradient(145deg, #1E3A5F 0%, #152E4F 25%, #1A3366 50%, #0D1F3B 100%);
}
.auth-hero-bg::before {
    content: '';
    position: absolute;
    top: -60px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.auth-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.auth-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    gap: 8px;
}

/* Brand Logo Circle */
.brand-logo-circle {
    width: 72px; height: 72px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.15);
    margin-bottom: 4px;
}
.brand-logo-circle svg {
    width: 48px; height: 48px;
}

/* Brand Heading */
.brand-heading {
    font-size: 30px; font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}
.brand-accent {
    color: #7BB3FF;
    font-weight: 800;
}

/* Brand Motto */
.brand-motto {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    text-transform: none;
}

/* Hero Features Row */
.hero-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}
.hero-feat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.hero-feat-item i {
    font-size: 13px;
    color: #7BB3FF;
}

/* ============== Auth Card Wrapper ============== */
.auth-card-wrapper {
    padding: 0 16px 20px;
    margin-top: -12px;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 20px 20px;
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.12);
    border: 1px solid rgba(26, 115, 232, 0.06);
    background-image: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
[data-theme="dark"] .auth-card {
    background: #111827;
    border-color: #1F2937;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 0;
}
.auth-card-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}
[data-theme="dark"] .auth-card-header h2 {
    color: #F9FAFB;
}
.auth-card-header p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
}
[data-theme="dark"] .auth-card-header p {
    color: #9CA3AF;
}

/* Auth submit button - blue theme */
.auth-submit-btn {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    margin-top: 4px;
    background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%) !important;
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.3) !important;
}
.auth-submit-btn:hover {
    box-shadow: 0 8px 24px rgba(26, 115, 232, 0.4) !important;
    transform: translateY(-1px);
}

/* ============== Form ============== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-size: 13px; font-weight: 600;
    color: var(--text);
}
.input-wrap {
    position: relative;
    display: flex; align-items: center;
    background: #F3F6FD;
    border: 1.5px solid #E5E9F2;
    border-radius: 12px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
[data-theme="dark"] .input-wrap {
    background: #1F2937;
    border-color: #374151;
}
.input-wrap:focus-within {
    border-color: #1A73E8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .1);
}
[data-theme="dark"] .input-wrap:focus-within {
    background: #1A2030;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}
.input-wrap > i:first-child {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
}
.input-wrap input,
.input-wrap textarea {
    width: 100%;
    background: transparent;
    border: none; outline: none;
    padding: 14px 14px 14px 42px;
    color: var(--text);
    font-size: 15px;
    border-radius: var(--radius-sm);
    resize: none;
}
.input-wrap textarea { padding-top: 12px; padding-bottom: 12px; min-height: 64px; }
.toggle-pass {
    position: absolute;
    right: 8px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
}

.btn-primary {
    background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(26, 115, 232, .25);
    transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 115, 232, .35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: #EBF2FF;
    color: #1A73E8;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
[data-theme="dark"] .btn-secondary {
    background: rgba(59,130,246,.15);
    color: #93C5FD;
}
.btn-secondary:hover { background: #D6E6FF; }
[data-theme="dark"] .btn-secondary:hover { background: rgba(59,130,246,.25); }

.btn-cta-fixed {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 800; font-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    box-shadow: 0 6px 16px rgba(16, 185, 129, .3);
    margin-top: 16px;
}

.btn-logout {
    background: rgba(239, 68, 68, .1);
    color: var(--danger);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 24px;
    transition: background .2s;
}
.btn-logout:hover { background: rgba(239, 68, 68, .18); }

.btn-mini {
    background: #fff;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.auth-footer {
    text-align: center;
    color: #6B7280;
    font-size: 13px;
    margin-top: 6px;
}
[data-theme="dark"] .auth-footer { color: #9CA3AF; }
.auth-footer a {
    color: #1A73E8;
    font-weight: 700;
    text-decoration: none;
    transition: color .15s;
}
.auth-footer a:hover { color: #1557B0; }
.demo-hint {
    text-align: center;
    margin-top: 14px;
    padding: 8px 12px;
    background: #F0F4FF;
    color: #1A73E8;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(26, 115, 232, 0.1);
}
[data-theme="dark"] .demo-hint {
    background: rgba(59, 130, 246, 0.1);
    color: #93C5FD;
    border-color: rgba(59, 130, 246, 0.15);
}

/* ============== Alert ============== */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 14px;
}
.alert i { font-size: 16px; flex-shrink: 0; }
.alert-error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.alert-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
[data-theme="dark"] .alert-error   { background: rgba(239,68,68,.12); color: #FCA5A5; border-color: rgba(239,68,68,.2); }
[data-theme="dark"] .alert-success { background: rgba(16,185,129,.12); color: #6EE7B7; border-color: rgba(16,185,129,.2); }
[data-theme="dark"] .alert-warning { background: rgba(245,158,11,.12); color: #FCD34D; border-color: rgba(245,158,11,.2); }

/* ============== KYC Alert ============== */
.kyc-alert {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #FCD34D;
    color: #92400E;
    border-radius: var(--radius);
    padding: 14px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.kyc-alert.kyc-pending {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-color: #93C5FD;
    color: #1E40AF;
}
.kyc-alert-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.5);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.kyc-alert-body { flex: 1; }
.kyc-alert-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.kyc-alert-body p  { font-size: 12px; line-height: 1.35; }

/* ============== Stat Cards ============== */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}
.stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #fff;
}
.stat-blue   { background: linear-gradient(135deg, #1A73E8, #1557B0); }
.stat-orange { background: linear-gradient(135deg, #F59E0B, #D97706); }
.stat-green  { background: linear-gradient(135deg, #10B981, #059669); }
.stat-value  { font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label  { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* ============== Category Filter ============== */
.cat-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    padding-left: 16px; padding-right: 16px;
    margin: 0 -16px 12px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.cat-filter::-webkit-scrollbar { display: none; }
.cat-chip {
    background: var(--card);
    border: 1.5px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}
.cat-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79,70,229,.25);
}

/* ============== Section Head ============== */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 6px 0 12px;
}
.section-head h2 {
    font-size: 16px; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.section-head h2 i { color: var(--primary); }
.section-head span { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ============== Product Grid ============== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    transition: transform .15s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--primary-light);
    overflow: hidden;
}
.product-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-cat {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.product-body { padding: 10px 12px 12px; }
.product-body h3 {
    font-size: 12.5px; font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
    line-height: 1.3;
}
.product-price .label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.product-price .value {
    display: block;
    font-size: 14px; font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}
.product-cicil {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 10.5px; font-weight: 700;
    padding: 5px 8px;
    border-radius: var(--radius-xs);
    display: flex; align-items: center; gap: 4px;
}

/* ============== Page Head ============== */
.page-head { margin-bottom: 16px; }
.page-head h1 {
    font-size: 22px; font-weight: 800;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.page-head h1 i { color: var(--primary); }
.page-head p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

/* ============== Back Button ============== */
.back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--card);
    color: var(--text);
    padding: 8px 14px 8px 8px;
    border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
}
.back-btn i { color: var(--primary); }

/* ============== Product Detail ============== */
.product-gallery { margin-bottom: 16px; }
.main-img-wrap {
    aspect-ratio: 4/3;
    background: var(--primary-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.main-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row {
    display: flex; gap: 8px; margin-top: 10px;
    overflow-x: auto;
}
.thumb {
    width: 64px; height: 64px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 2px solid transparent;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .2s;
}
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { margin-bottom: 16px; }
.badge-cat {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700;
    margin-bottom: 8px;
}
.product-name {
    font-size: 20px; font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 6px;
}
.product-price-big {
    font-size: 26px; font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}
.stock-info {
    color: var(--text-muted); font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 16px;
}
.stock-info i { color: var(--accent); }
.product-desc {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--card-border);
}
.product-desc h3 {
    font-size: 14px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
}
.product-desc h3 i { color: var(--info); }
.product-desc p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============== Simulation Card ============== */
.sim-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.sim-card h2 {
    font-size: 16px; font-weight: 800;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.sim-card h2 i { color: var(--primary); }
.sim-field { margin-bottom: 18px; }
.sim-label {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.sim-label span { font-size: 13px; font-weight: 600; color: var(--text); }
.sim-value {
    font-size: 17px; font-weight: 800;
    color: var(--primary);
}
input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--card-border);
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,.4);
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
}
.range-mark {
    display: flex; justify-content: space-between;
    margin-top: 6px;
    font-size: 11px; color: var(--text-light);
}
.tenor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.tenor-opt {
    position: relative;
    cursor: pointer;
}
.tenor-opt input { position: absolute; opacity: 0; }
.tenor-opt span,
.tenor-opt small {
    display: block;
    text-align: center;
}
.tenor-opt span {
    font-size: 16px; font-weight: 800;
    color: var(--text);
    padding-top: 8px;
}
.tenor-opt small {
    font-size: 10px;
    color: var(--text-muted);
    padding-bottom: 8px;
}
.tenor-opt input + span,
.tenor-opt input + span + small {
    background: var(--input-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all .2s;
}
.tenor-opt input:checked + span,
.tenor-opt input:checked + span + small {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tenor-opt:has(input:checked) small { color: rgba(255,255,255,.8); }

/* Preview */
.sim-preview {
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-top: 12px;
}
.preview-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed var(--card-border);
    font-size: 13px;
}
.preview-row:last-child { border-bottom: none; }
.preview-label { color: var(--text-muted); }
.preview-value { font-weight: 700; color: var(--text); }
.preview-total {
    padding-top: 10px; margin-top: 4px;
    border-top: 2px solid var(--primary);
    border-bottom: none;
}
.preview-total .preview-label { color: var(--text); font-weight: 700; font-size: 14px; }
.preview-total .preview-value {
    color: var(--primary);
    font-size: 18px; font-weight: 800;
}

/* CTA Blocked */
.cta-blocked {
    background: var(--card);
    border: 1.5px dashed var(--danger);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    margin-top: 8px;
}
.cta-blocked i {
    font-size: 28px; color: var(--danger);
    margin-bottom: 10px;
}
.cta-blocked p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

/* ============== Empty State ============== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 14px;
    opacity: .6;
}
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ============== History List ============== */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}
.hc-head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--divider);
    margin-bottom: 10px;
}
.hc-head img {
    width: 50px; height: 50px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--primary-light);
}
.hc-info { flex: 1; min-width: 0; }
.hc-info h3 {
    font-size: 14px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 2px;
}
.hc-cat { font-size: 11px; color: var(--text-muted); }
.hc-status {
    font-size: 10px; font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.st-pending  { background: #FEF3C7; color: #92400E; }
.st-approved { background: #DBEAFE; color: #1E40AF; }
.st-rejected { background: #FEE2E2; color: #991B1B; }
.st-running  { background: #FFEDD5; color: #9A3412; }
.st-paid     { background: #D1FAE5; color: #065F46; }
[data-theme="dark"] .st-pending  { background: rgba(245,158,11,.15); color: #FBBF24; }
[data-theme="dark"] .st-approved { background: rgba(59,130,246,.15); color: #60A5FA; }
[data-theme="dark"] .st-rejected { background: rgba(239,68,68,.15);  color: #F87171; }
[data-theme="dark"] .st-running  { background: rgba(249,115,22,.15); color: #FB923C; }
[data-theme="dark"] .st-paid     { background: rgba(16,185,129,.15); color: #34D399; }

.hc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}
.hc-label {
    display: block;
    font-size: 10.5px; color: var(--text-muted);
    font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
    margin-bottom: 2px;
}
.hc-val { font-size: 13px; font-weight: 700; color: var(--text); }
.hc-val-accent { color: var(--primary); }
.muted { color: var(--text-light) !important; font-weight: 500; }

.hc-progress { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--divider); }
.progress-bar {
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width .5s;
}
.progress-text { font-size: 11px; color: var(--text-muted); }

/* ============== Settings ============== */
.acc-status-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    padding: 18px;
    color: #fff;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
}
.asc-avatar {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.asc-body { flex: 1; min-width: 0; }
.asc-body h2 {
    font-size: 17px; font-weight: 800;
    margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asc-email {
    display: block; font-size: 12px; opacity: .9;
    margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asc-email i { margin-right: 4px; }
.asc-status {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.2);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 700;
}

.menu-group {
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.menu-head {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: var(--card);
    transition: background .2s;
}
.menu-head:hover { background: var(--input-bg); }
.menu-head.no-toggle { cursor: default; }
.mh-left {
    display: flex; align-items: center; gap: 12px;
    text-align: left;
}
.mh-left > i {
    width: 38px; height: 38px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.mh-left span { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.mh-left small { display: block; font-size: 11px; color: var(--text-muted); }
.chev { color: var(--text-light); transition: transform .25s; }
.menu-head.expanded .chev { transform: rotate(180deg); }

.menu-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 16px;
}
.menu-body.open {
    max-height: 1200px;
    padding: 0 16px 16px;
}

.upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 16px;
}
.upload-box {
    aspect-ratio: 1.4;
    background: var(--input-bg);
    border: 2px dashed var(--card-border);
    border-radius: var(--radius-sm);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
    padding: 8px;
}
.upload-box:hover { border-color: var(--primary); }
.upload-box i { font-size: 22px; color: var(--primary); }
.upload-box span { font-size: 12px; font-weight: 700; color: var(--text); }
.upload-box small { font-size: 10px; color: var(--text-muted); }
.upload-box input[type="file"] { display: none; }

/* Theme Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px; height: 28px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0;
    background: var(--input-bg);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-pill);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light);
    font-size: 11px;
    cursor: pointer;
    transition: background .25s;
}
.theme-switch input:checked + .slider {
    background: var(--primary);
    color: #FBBF24;
    border-color: var(--primary);
}

.legal-text {
    background: var(--input-bg);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.legal-text p { margin-bottom: 8px; }
.legal-text ol { padding-left: 18px; margin-bottom: 8px; }
.legal-text ol li { margin-bottom: 4px; }

.app-version {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 16px;
    padding-bottom: 8px;
}

/* ============== Floating Notices ============== */
.floating-success,
.floating-error {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 100;
    animation: slideDown .3s ease;
}
.floating-success { color: var(--accent); border: 1px solid var(--accent); }
.floating-error   { color: var(--danger); border: 1px solid var(--danger); }
@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ============== Checkbox ============== */
.checkbox-line {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px;
    color: #6B7280;
    cursor: pointer;
    margin-top: 2px;
}
[data-theme="dark"] .checkbox-line { color: #9CA3AF; }
.checkbox-line input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #1A73E8;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.checkbox-line a { color: #1A73E8; font-weight: 600; text-decoration: none; }
.checkbox-line a:hover { text-decoration: underline; }

/* ============== Hide scrollbars ============== */
.app-content::-webkit-scrollbar { width: 0; }

/* ============== Animations ============== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-card,
.history-card,
.menu-group {
    animation: fadeInUp .35s ease;
}


/* ===========================================================
   Kredit22 Admin Panel — Modern Mobile-First Styles
   =========================================================== */

/* Welcome Bar */
.adm-welcome {
    background: linear-gradient(135deg, #1A73E8 0%, #0D3B7A 100%);
    border-radius: 18px;
    padding: 20px 18px;
    margin-bottom: 16px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 20px rgba(26,115,232,.22);
}
.adm-welcome-title { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.adm-welcome-sub { font-size: 13px; color: rgba(255,255,255,.78); margin: 3px 0 0; }
.adm-welcome-sub strong { color: #fff; }
.adm-welcome-badges { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Badge */
.adm-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.adm-badge-blue   { background:rgba(59,130,246,.15); color:#3B82F6; }
.adm-badge-green  { background:rgba(16,185,129,.12); color:#10B981; }
.adm-badge-red    { background:rgba(239,68,68,.1);  color:#EF4444; }
.adm-badge-amber  { background:rgba(245,158,11,.12); color:#F59E0B; }
.adm-badge-purple { background:rgba(139,92,246,.12); color:#8B5CF6; }

/* Outline Button */
.adm-btn-outline {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 13px; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    border: 1.5px solid rgba(255,255,255,.35);
    color: #fff; text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.adm-btn-outline:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.5); color:#fff; }

/* Primary Button */
.adm-btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 12px;
    background: #1A73E8; color: #fff;
    font-size: 13px; font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(26,115,232,.25);
    transition: transform .15s, box-shadow .2s;
}
.adm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,115,232,.35); }

/* Secondary */
.adm-btn-secondary {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 16px; border-radius: 12px;
    background: #EBF2FF; color: #1A73E8;
    font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}
[data-theme="dark"] .adm-btn-secondary { background:rgba(59,130,246,.12); color:#93C5FD; }

/* Quick Action Row */
.adm-quick-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 18px;
}
@media (max-width: 370px) { .adm-quick-row { grid-template-columns: repeat(2, 1fr); } }

.adm-quick-card {
    background: var(--card); border-radius: 14px;
    padding: 14px 8px; border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; text-align: center; text-decoration: none;
    transition: transform .15s, box-shadow .2s;
}
.adm-quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adm-qc-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff; flex-shrink: 0;
}
.adm-qc-blue  { background:linear-gradient(135deg,#1A73E8,#1557B0); }
.adm-qc-amber { background:linear-gradient(135deg,#F59E0B,#D97706); }
.adm-qc-green { background:linear-gradient(135deg,#10B981,#059669); }
.adm-qc-red   { background:linear-gradient(135deg,#EF4444,#DC2626); }
.adm-qc-num { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.adm-qc-lbl { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .2px; }

/* Section Head */
.adm-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 10px; flex-wrap: wrap; gap: 6px;
}
.adm-section-head h2 {
    font-size: 16px; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.adm-section-head h2 i { color: #1A73E8; }
.adm-link {
    font-size: 12px; font-weight: 700; color: #1A73E8;
    text-decoration: none; display: flex; align-items: center; gap: 5px;
}
.adm-link:hover { text-decoration: underline; }

/* Stat Grid */
.adm-stat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px; margin-bottom: 18px;
}
@media (min-width: 420px) { .adm-stat-grid { grid-template-columns: repeat(3, 1fr); } }

.adm-stat-card {
    background: var(--card); border-radius: 14px;
    padding: 14px; border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 12px;
}
.adm-stat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff; flex-shrink: 0;
}
.adm-stat-val { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.adm-stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }

/* Filter Bar */
.adm-filter-bar {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 4px 0 14px; margin-bottom: 4px;
    -ms-overflow-style: none; scrollbar-width: none;
}
.adm-filter-bar::-webkit-scrollbar { display: none; }
.adm-chip {
    background: var(--card); border: 1.5px solid var(--card-border);
    color: var(--text-muted); padding: 7px 14px;
    border-radius: 20px; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; text-decoration: none;
    transition: all .2s; flex-shrink: 0;
}
.adm-chip.active {
    background: #1A73E8; color: #fff; border-color: #1A73E8;
    box-shadow: 0 4px 10px rgba(26,115,232,.22);
}

/* Table Card */
.adm-table-card {
    background: var(--card); border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm); overflow: hidden;
    margin-bottom: 18px;
}
.adm-table-header {
    padding: 14px 16px; border-bottom: 1px solid var(--divider);
    font-size: 13px; font-weight: 700; color: var(--text);
}
.adm-table-header span { color: var(--text-muted); font-weight: 600; }

/* Table Scroll (horizontal scroll on mobile) */
.adm-table-scroll {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; scrollbar-width: thin;
}
.adm-table-scroll::-webkit-scrollbar { height: 4px; }
.adm-table-scroll::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 4px; }

/* Table */
.adm-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 13px; }
.adm-table th {
    background: var(--input-bg); padding: 10px 12px;
    text-align: left; font-size: 10.5px; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .3px; border-bottom: 1px solid var(--divider);
    white-space: nowrap;
}
.adm-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--divider);
    color: var(--text); white-space: nowrap;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--input-bg); }

/* Table helpers */
.adm-td-id { font-weight: 800; color: #1A73E8; }
.adm-td-date { color: var(--text-muted); font-size: 12px; }
.adm-td-price { font-weight: 700; color: var(--text); }
.adm-td-ellipsis { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-td-sub { color: var(--text-muted); font-size: 11px; }
.adm-td-actions { display: flex; gap: 4px; }
.adm-empty-cell { text-align: center; padding: 36px 20px !important; color: var(--text-muted); font-size: 13px; }
.adm-empty-cell i { display: block; font-size: 32px; margin-bottom: 8px; opacity: .4; }

/* Thumb */
.adm-thumb {
    width: 36px; height: 36px; border-radius: 8px;
    object-fit: cover; background: var(--primary-light);
    cursor: pointer; border: 2px solid var(--card-border);
    transition: border-color .15s;
}
.adm-thumb:hover { border-color: #1A73E8; }

/* Status */
.adm-status {
    display: inline-block; padding: 3px 10px;
    border-radius: 12px; font-size: 10.5px; font-weight: 700;
    white-space: nowrap;
}
.adm-st-pending  { background:rgba(245,158,11,.12); color:#D97706; }
.adm-st-approved { background:rgba(59,130,246,.12); color:#2563EB; }
.adm-st-rejected { background:rgba(239,68,68,.1);  color:#DC2626; }
.adm-st-running  { background:rgba(139,92,246,.12); color:#7C3AED; }
.adm-st-paid     { background:rgba(16,185,129,.12); color:#059669; }
[data-theme="dark"] .adm-st-pending  { color:#FBBF24; }
[data-theme="dark"] .adm-st-approved { color:#60A5FA; }
[data-theme="dark"] .adm-st-rejected { color:#F87171; }
[data-theme="dark"] .adm-st-running  { color:#A78BFA; }
[data-theme="dark"] .adm-st-paid     { color:#34D399; }

/* Small action buttons */
.adm-btn-sm {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 5px 9px; border-radius: 8px;
    font-size: 11px; font-weight: 700; border: none; cursor: pointer;
    transition: all .15s; white-space: nowrap;
}
.adm-btn-sm:hover { transform: translateY(-1px); }
.adm-btn-sm-blue  { background:rgba(59,130,246,.1); color:#2563EB; }
.adm-btn-sm-green { background:rgba(16,185,129,.1); color:#059669; }
.adm-btn-sm-red   { background:rgba(239,68,68,.1);  color:#DC2626; }
.adm-btn-sm-amber { background:rgba(245,158,11,.1); color:#D97706; }
[data-theme="dark"] .adm-btn-sm-blue  { color:#93C5FD; }
[data-theme="dark"] .adm-btn-sm-green { color:#6EE7B7; }
[data-theme="dark"] .adm-btn-sm-red   { color:#FCA5A5; }
[data-theme="dark"] .adm-btn-sm-amber { color:#FCD34D; }

/* Modal */
.adm-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 90; display: flex; align-items: flex-end;
    justify-content: center; animation: fadeIn .2s ease;
}
.adm-modal-card {
    background: var(--card); width: 100%; max-width: 480px;
    max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,.15);
    animation: slideUp .25s ease;
}
.adm-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--divider);
    position: sticky; top: 0; background: var(--card); z-index: 1;
}
.adm-modal-head h3 { font-size: 16px; font-weight: 800; color: var(--text); margin: 0; }
.adm-modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 20px; border: none; background: none; cursor: pointer;
}
.adm-modal-close:hover { background: var(--input-bg); }
.adm-modal-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-modal-foot {
    padding: 14px 18px; border-top: 1px solid var(--divider);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* Fields */
.adm-field { display: flex; flex-direction: column; gap: 5px; }
.adm-field label { font-size: 12px; font-weight: 700; color: var(--text); }
.adm-field input, .adm-field select, .adm-field textarea {
    padding: 10px 12px; background: var(--input-bg);
    border: 1.5px solid var(--card-border); border-radius: 10px;
    color: var(--text); font-size: 14px; font-family: inherit;
    transition: border-color .2s;
}
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus {
    outline: none; border-color: #1A73E8;
    box-shadow: 0 0 0 3px rgba(26,115,232,.1);
}
.adm-field textarea { resize: vertical; min-height: 56px; }
.adm-field select { cursor: pointer; }
.adm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============== Old admin-class cleanup (hide unused) ============== */
.admin-header, .admin-stat-row, .admin-table-wrap, .table-header, .admin-table,
.admin-welcome-bar, .admin-welcome-actions, .admin-quick-actions, .quick-action-card,
.qac-icon, .qac-info, .qac-count, .qac-label, .btn-outline-sm, .badge-blue,
.admin-stat-card, .ast-icon, .ast-value, .ast-label, .ast-progress, .btn-sm,
.btn-sm-success, .btn-sm-danger, .btn-sm-primary, .btn-sm-warning, .badge-admin,
.badge-success, .badge-warning, .badge-danger, .badge-info, .badge-purple,
.kyc-thumb, .modal-overlay, .modal-box, .modal-head, .modal-body, .modal-foot,
.modal-close, .modal-close:hover, .form-row, .form-row.single, .admin-empty,
.kyc-img-preview, .section-head .btn-outline-sm

/* Make old admin elements inherit new styles where possible */
.admin-table-wrap { border-radius: 16px !important; }
.admin-table { font-size: 13px !important; }
.badge-admin { font-size: 10.5px !important; font-weight: 700 !important; }
.btn-sm { padding: 5px 9px !important; border-radius: 8px !important; font-size: 11px !important; }

/* ============== Custom Android Dialog (App Style) ============== */
.android-dialog-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    backdrop-filter: blur(5px);
}
body > .android-dialog-overlay {
    position: fixed;
}
.android-dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}
.android-dialog-box {
    background: var(--card);
    width: 100%;
    max-width: 320px;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.android-dialog-overlay.active .android-dialog-box {
    transform: scale(1);
}
.android-dialog-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26,115,232,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.android-dialog-box .destructive .android-dialog-icon {
    background: rgba(239, 68, 68, 0.1);
}
.android-dialog-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.android-dialog-body {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}
.android-dialog-foot {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}
.android-dialog-btn {
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    background: var(--card-border);
    color: var(--text);
    transition: all 0.2s;
    font-family: inherit;
    flex: 1;
}
.android-dialog-btn:hover {
    background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .android-dialog-btn:hover {
    background: rgba(255,255,255,0.05);
}
.android-dialog-btn.btn-confirm {
    background: var(--primary);
    color: #fff;
}
.android-dialog-btn.btn-confirm:hover {
    background: var(--primary-dark);
}
.android-dialog-btn.btn-confirm.destructive {
    background: #EF4444;
    color: #fff;
}
.android-dialog-btn.btn-confirm.destructive:hover {
    background: #DC2626;
}

/* ============== Camera KYC Selfie Screen ============== */
.camera-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(0px);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.camera-modal.active {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
}
.camera-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 480px;
    width: 100%;
    max-width: 330px;
    border-radius: 28px;
    background: #0B0F1A;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.camera-modal.active .camera-container {
    transform: scale(1);
    opacity: 1;
}
.camera-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background: rgba(0,0,0,0.6);
    z-index: 2;
}
.camera-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.close-camera-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}
.camera-view-wrapper {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#cameraVideo, #capturedImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.face-grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.face-oval {
    width: 250px;
    height: 330px;
    border-radius: 50% / 60% 60% 40% 40%;
    border: 3.5px dashed #1A73E8;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65); /* spotlight overlay effect */
    position: relative;
    animation: pulseBorder 2s infinite ease-in-out;
}
@keyframes pulseBorder {
    0% { border-color: #1A73E8; }
    50% { border-color: #10B981; }
    100% { border-color: #1A73E8; }
}
.camera-instruction-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
    pointer-events: none;
}
.camera-controls {
    padding: 20px;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    z-index: 2;
}
.shutter-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 6px solid #1F2937;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    box-shadow: 0 0 0 3px #fff;
}
.shutter-btn:active {
    transform: scale(0.9);
    background: #D1D5DB;
}

/* Loading inside camera */
.camera-loading {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 26, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 5;
    color: #fff;
    animation: fadeIn 0.2s ease-out;
}
.camera-loading .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #1A73E8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
