/* ============================================================
   SWSAGroup Pay - Main Stylesheet v7
   + Method Detail (Bank/E-Wallet/QRIS) dengan Copy & Download
   ============================================================ */

:root {
    --primary: #003399;
    --primary-dark: #001a4d;
    --primary-light: #1e40af;
    --primary-soft: #eaf0ff;
    --accent: #c5a059;
    --accent-dark: #a88542;
    --accent-soft: #faf5e8;
    --bg: #eef2f8;
    --bg-alt: #f7f9fc;
    --card: #fff;
    --card-alt: #fbfcfe;
    --border: #dde3ec;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --info: #0284c7;
    --info-bg: #f0f9ff;
    --nav-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overscroll-behavior-y: none; margin: 0; padding: 0; }

body {
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, select, button, [contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
}
input[type="password"] {
    -webkit-user-select: none !important;
    user-select: none !important;
}
img {
    -webkit-user-drag: none;
    user-drag: none;
    max-width: 100%;
    -webkit-touch-callout: none;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== HEADER ===== */
.app-header {
    position: sticky; top: 0; z-index: 100;
    background: linear-gradient(135deg, #001a4d, #003399);
    color: #fff;
    padding-top: env(safe-area-inset-top, 0);
    box-shadow: 0 4px 24px rgba(0, 26, 77, .15);
    border-bottom: 3px solid var(--accent);
}
.app-header-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px; height: 60px;
}
.app-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.app-logo {
    width: 38px; height: 38px; border-radius: 10px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}
.app-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-brand-title { font-size: 15px; font-weight: 800; margin: 0; color: #fff; line-height: 1.2; }
.app-brand-sub { font-size: 11px; color: rgba(255, 255, 255, .7); margin: 0; }
.app-header-actions { display: flex; align-items: center; gap: 8px; }

.btn-header {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff; padding: 6px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; font-family: inherit; transition: all .2s;
}
.btn-header:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.btn-header-primary {
    background: var(--accent); color: var(--primary-dark);
    border-color: var(--accent); font-weight: 700;
}
.btn-header-primary:hover { background: var(--accent-dark); color: #fff; }

.user-avatar-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; cursor: pointer;
    border: 2px solid rgba(255, 255, 255, .3);
    overflow: hidden; user-select: none;
    transition: transform .15s, box-shadow .2s;
}
.user-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 160, 89, .4);
}

/* ===== USER MENU ===== */
.user-menu-wrap { position: relative; }
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .06);
    min-width: 260px;
    padding: 8px;
    z-index: 200;
    border: 1px solid var(--border);
    animation: userMenuIn .2s ease;
}
@keyframes userMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-menu-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8fafc, #f0f4fa);
    border-radius: 10px;
}
.user-menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: none; background: transparent;
    width: 100%; text-align: left; font-family: inherit;
    font-size: 13px; color: var(--text); cursor: pointer;
    border-radius: 8px; font-weight: 600;
    transition: background .15s;
}
.user-menu-item:hover { background: var(--bg-alt); }
.user-menu-item i { color: var(--primary); width: 18px; text-align: center; }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item.danger i { color: var(--danger); }
.user-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ===== DESKTOP NAV ===== */
.desktop-nav {
    display: none; background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 60px; z-index: 99;
}
.desktop-nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; gap: 4px; padding: 0 20px; height: 52px;
}
.desktop-nav-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 16px; height: 52px; border: none;
    background: transparent; font-family: inherit;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer;
    border-bottom: 3px solid transparent; transition: color .2s;
}
.desktop-nav-item:hover { color: var(--primary); }
.desktop-nav-item.active { color: var(--primary); border-bottom-color: var(--accent); font-weight: 700; }
@media (min-width: 769px) { .desktop-nav { display: block; } }

/* ===== MAIN ===== */
.app-main {
    flex: 1; max-width: 1100px; margin: 0 auto;
    padding: 24px 20px 32px; width: 100%;
}
@media (max-width: 768px) { .app-main { padding: 16px 16px 100px; } }

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff; border-radius: var(--radius-lg);
    padding: 22px 24px; margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 51, 153, .18);
}
.page-hero h2 { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.page-hero p { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin: 0; }

/* ===== SLIDER ===== */
.slider-wrap {
    position: relative; border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(0, 51, 153, .12);
    background: #0a0f1f;
}
.slider-track { display: flex; transition: transform .6s; }
.slider-slide {
    min-width: 100%; aspect-ratio: 16/9;
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: flex-end;
    cursor: pointer;
}
.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 0, 0, .5); color: #fff; border: none;
    width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: background .2s;
}
.slider-nav:hover { background: rgba(0, 0, 0, .8); }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider-content { position: relative; padding: 20px 24px; color: #fff; width: 100%; }
.slider-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.slider-subtitle { font-size: 12px; color: rgba(255, 255, 255, .9); margin: 0 0 10px; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.slider-cta {
    display: inline-flex; gap: 8px;
    background: var(--accent); color: var(--primary-dark);
    padding: 8px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 800;
    cursor: pointer; border: none; font-family: inherit;
}
.slider-dots {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 6px;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, .4); cursor: pointer; border: none;
}
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== BALANCE HERO ===== */
.balance-hero {
    background: linear-gradient(135deg, #001a4d, #003399, #1e40af);
    border-radius: var(--radius-lg); padding: 24px;
    color: #fff; margin-bottom: 20px;
    box-shadow: 0 12px 32px rgba(0, 51, 153, .25);
}
.balance-halo { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); margin: 0 0 8px; }
.balance-label { font-size: 11px; color: rgba(255, 255, 255, .7); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.balance-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 30px; font-weight: 800;
    margin: 6px 0 4px; line-height: 1.1;
}
.balance-sub { font-size: 12px; color: rgba(255, 255, 255, .7); }
.balance-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.balance-btn {
    flex: 1; min-width: 100px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff; padding: 10px; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; cursor: pointer; font-family: inherit;
    transition: background .2s;
}
.balance-btn:hover { background: rgba(255, 255, 255, .25); }
.balance-btn.primary {
    background: var(--accent); color: var(--primary-dark);
    border-color: var(--accent);
}
.balance-btn.primary:hover { background: var(--accent-dark); color: #fff; }

/* ===== STATS ===== */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.stat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
}
.stat-card-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-bottom: 12px; color: #fff;
}
.stat-card-icon.blue { background: linear-gradient(135deg, #003399, #1e40af); }
.stat-card-icon.gold { background: linear-gradient(135deg, #c5a059, #a88542); }
.stat-card-icon.green { background: linear-gradient(135deg, #059669, #10b981); }
.stat-card-icon.orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.stat-card-label { font-size: 11px; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; margin-bottom: 4px; }
.stat-card-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--text); }

/* ===== SHORTCUT ===== */
.shortcut-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px; margin-bottom: 20px;
}
.shortcut-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px 14px;
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; cursor: pointer; text-align: center;
    text-decoration: none; color: inherit;
    transition: all .2s; font-family: inherit;
}
.shortcut-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 153, .1);
    border-color: var(--primary);
    text-decoration: none; color: inherit;
}
.shortcut-item i { font-size: 22px; color: var(--primary); }
.shortcut-item span { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.shortcut-item.gold i { color: var(--accent-dark); }

/* ===== APP CARD ===== */
.app-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 16px;
}
.app-card-header {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
    background: var(--card-alt);
}
.app-card-header-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.app-card-title { font-size: 13.5px; font-weight: 700; margin: 0; color: var(--text); }
.app-card-body { padding: 18px; }

/* ===== FORM ===== */
.g-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.g-input {
    width: 100%; border: 1.5px solid var(--border);
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; outline: none;
    background: #fff; color: var(--text);
    font-family: inherit; min-height: 42px;
    transition: border-color .2s, box-shadow .2s;
}
.g-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 51, 153, .1); }
.g-input::placeholder { color: var(--text-tertiary); }
.g-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 4px; display: block; }
.form-row { margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

.pwd-toggle {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    border: 0; background: transparent;
    color: var(--text-tertiary); cursor: pointer;
    padding: 6px 10px; border-radius: 6px; font-size: 14px;
}
.pwd-toggle:hover { background: var(--bg-alt); color: var(--primary); }

/* ============================================================
   FILE INPUT — MODERN
   ============================================================ */
.file-input-modern {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    border: 2px dashed var(--border);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    overflow: hidden;
}
.file-input-modern:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef6ff, #e0ebff);
    transform: translateY(-1px);
}
.file-input-modern:active { transform: scale(.99); }

.file-input-modern.has-file {
    border-style: solid;
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.file-input-modern.has-file .file-input-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 16px rgba(5, 150, 105, .3);
}

.file-input-modern input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 100px;
}

.file-input-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    box-shadow: 0 6px 16px rgba(0, 51, 153, .25);
    transition: transform .2s;
    position: relative;
    z-index: 1;
}
.file-input-modern:hover .file-input-icon {
    transform: scale(1.1) rotate(5deg);
}

.file-input-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    position: relative;
    z-index: 1;
}
.file-input-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}
.file-input-preview {
    margin-top: 14px;
    max-width: 100%;
    max-height: 180px;
    border-radius: 10px;
    display: none;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    position: relative;
    z-index: 1;
}
.file-input-filename {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--success-bg);
    color: #065f46;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    word-break: break-all;
    position: relative;
    z-index: 1;
    border: 1px solid #a7f3d0;
}
.file-input-filename i { margin-right: 6px; }

input[type="file"]:not(.file-input-modern input) {
    width: 100%;
    padding: 12px;
    background: #f8fbff;
    border: 2px dashed var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-secondary);
}
input[type="file"]:not(.file-input-modern input):hover {
    border-color: var(--primary);
    background: #eef6ff;
}
input[type="file"]:not(.file-input-modern input)::file-selector-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    margin-right: 12px;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 51, 153, .2);
}
input[type="file"]:not(.file-input-modern input)::file-selector-button:hover {
    background: var(--primary-dark);
}

/* ============================================================
   CAPTCHA — OVERLAY HITAM + CENTANG HIJAU (JELAS)
   ============================================================ */
#grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
}

.captcha-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.18s ease;
    background: #f0f0f0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.captcha-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.captcha-img-box:hover {
    border-color: rgba(0, 51, 153, .5);
}
.captcha-img-box:hover img {
    transform: scale(1.05);
}

.captcha-img-box.selected {
    border-color: #22c55e;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .25),
                0 6px 18px rgba(34, 197, 94, .3);
    animation: captchaPulse .5s ease;
}

.captcha-img-box.selected::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 1;
    animation: captchaOverlayIn 0.22s ease;
    pointer-events: none;
}
@keyframes captchaOverlayIn {
    from { background: rgba(0, 0, 0, 0); }
    to   { background: rgba(0, 0, 0, 0.68); }
}

.captcha-img-box.selected img {
    transform: scale(1.08);
    filter: brightness(.85);
}

.captcha-img-box.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: #22c55e;
    font-size: 44px;
    z-index: 2;
    text-shadow:
        0 0 20px rgba(34, 197, 94, .9),
        0 0 4px rgba(255, 255, 255, .8),
        0 4px 12px rgba(0, 0, 0, .6);
    animation: captchaCheckIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.captcha-img-box.selected.no-fa::after {
    content: '';
    width: 44px;
    height: 44px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 12px rgba(34,197,94,.9)) drop-shadow(0 4px 8px rgba(0,0,0,.6));
    font-family: initial;
}

@keyframes captchaCheckIn {
    0%   { transform: translate(-50%, -50%) scale(0) rotate(-20deg); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}
@keyframes captchaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55), 0 6px 18px rgba(34, 197, 94, .3); }
    100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .25), 0 6px 18px rgba(34, 197, 94, .3); }
}

.captcha-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    border: 2px solid #fff;
    line-height: 1;
}
.captcha-img-box.selected .captcha-badge {
    display: flex;
    animation: captchaCheckIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== TIPS ===== */
.tips-box {
    background: var(--info-bg); border: 1px solid #bae6fd;
    border-radius: var(--radius-sm); padding: 10px 14px;
    font-size: 12px; color: #075985;
    display: flex; gap: 8px; align-items: flex-start;
    margin-bottom: 14px; line-height: 1.5;
}
.tips-box i { color: var(--info); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.tips-box strong { color: #0c4a6e; }

/* ===== BUTTONS ===== */
.btn-primary-app {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border: none; padding: 0 18px;
    width: 100%; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 14px; font-family: inherit;
    cursor: pointer; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; box-shadow: 0 2px 8px rgba(0, 51, 153, .2);
    transition: box-shadow .2s, transform .1s;
}
.btn-primary-app:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(0, 51, 153, .3); }
.btn-primary-app:active:not(:disabled) { transform: scale(.98); }
.btn-primary-app:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.btn-outline-app {
    background: #fff; color: var(--text);
    border: 1.5px solid var(--border);
    padding: 0 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 13px; font-family: inherit;
    cursor: pointer; min-height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; text-decoration: none; transition: all .2s;
}
.btn-outline-app:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

.btn-danger-app {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff; border: none; padding: 0 14px;
    border-radius: var(--radius-sm); font-weight: 600;
    font-size: 13px; cursor: pointer; min-height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; font-family: inherit; transition: box-shadow .2s;
}
.btn-danger-app:hover { box-shadow: 0 4px 12px rgba(220, 38, 38, .3); }

/* ===== SIDEBAR DARK ===== */
.sidebar-dark {
    background: linear-gradient(160deg, #0a0f1f, #0d1425) !important;
    color: #fff !important; border-radius: var(--radius-lg);
    overflow: hidden; height: 100%;
}
.sidebar-dark .sidebar-head {
    padding: 14px 18px;
    background: rgba(255, 255, 255, .06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    font-weight: 700; font-size: 11.5px;
    letter-spacing: .5px; text-transform: uppercase;
    color: rgba(255, 255, 255, .9) !important;
}
.sidebar-dark .sidebar-content { padding: 18px; color: #fff; }

.info-box {
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: var(--radius-sm); padding: 14px;
    margin-bottom: 12px; position: relative;
}
.info-box .label {
    font-size: 10px; font-weight: 600;
    color: rgba(255, 255, 255, .55) !important;
    text-transform: uppercase; margin-bottom: 4px;
}
.info-box .reken {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px; font-weight: 600;
    color: #fff !important; letter-spacing: 2px;
    word-break: break-all;
}
.info-box .atas-nama { font-weight: 700; font-size: 13px; color: var(--accent) !important; }

.btn-copy {
    background: var(--accent); color: var(--primary-dark);
    border: none; border-radius: 6px;
    font-size: 10px; font-weight: 800;
    padding: 4px 10px; cursor: pointer;
    font-family: inherit; letter-spacing: .3px;
    display: inline-flex; align-items: center; gap: 4px;
    transition: all .15s ease;
}
.btn-copy:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-copy.copied { background: #22c55e !important; color: #fff !important; }

.warning-box {
    background: rgba(251, 191, 36, .12) !important;
    border: 1px solid rgba(251, 191, 36, .4) !important;
    border-radius: 8px; padding: 12px; margin-top: 12px;
}
.warning-box .warning-title {
    color: #fbbf24 !important;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.warning-box ul {
    margin: 6px 0 0; padding-left: 18px;
    font-size: 11.5px; line-height: 1.7;
    color: rgba(255, 255, 255, .85);
}
.warning-box ul li { margin-bottom: 4px; }
.warning-box ul li:last-child { margin-bottom: 0; }
.warning-box ul li b { color: #fde68a; }

.rek-info-note {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, .15);
    font-size: 11px; color: rgba(255, 255, 255, .7); line-height: 1.6;
}
.rek-info-note i { color: var(--accent); margin-right: 4px; }

/* ============================================================
   METHOD DETAIL (Bank / E-Wallet / QRIS) — Sidebar
   ============================================================ */
.method-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    padding: 8px 0 10px;
    border-bottom: 1.5px solid rgba(255, 255, 255, .15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.method-header i {
    font-size: 14px;
    color: var(--accent);
}
.method-empty {
    padding: 12px;
    text-align: center;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 12.5px;
}
.detail-row:last-child {
    border-bottom: none;
}
.detail-row .lbl {
    color: rgba(255, 255, 255, .6);
    font-weight: 500;
    flex-shrink: 0;
    font-size: 11.5px;
}
.detail-row .val {
    color: #fff;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    text-align: right;
    word-break: break-all;
    letter-spacing: .5px;
}
.val-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

/* QRIS di sidebar dark */
.qr-wrap {
    text-align: center;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    margin: 12px 0;
    border: 2px dashed rgba(255, 255, 255, .2);
}
.qr-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Tombol Download QRIS */
.btn-download-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    transition: all .15s ease;
    letter-spacing: .3px;
}
.btn-download-qr:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.btn-download-qr:active {
    transform: translateY(0);
}
.btn-download-qr i {
    font-size: 14px;
}

/* ============================================================
   END METHOD DETAIL
   ============================================================ */

/* ===== STATUS PILL ===== */
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-block; line-height: 1.5; }
.pill-pending { background: var(--warning-bg); color: #92400e; }
.pill-paid { background: var(--success-bg); color: #065f46; }
.pill-suspend { background: var(--danger-bg); color: #991b1b; }

/* ===== TABS ===== */
.tab-filter {
    display: flex; gap: 6px; margin-bottom: 16px;
    overflow-x: auto; padding-bottom: 2px; scrollbar-width: none;
}
.tab-filter::-webkit-scrollbar { display: none; }
.tab-filter-item {
    padding: 8px 14px; border-radius: 20px;
    background: #fff; border: 1.5px solid var(--border);
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer;
    white-space: nowrap; font-family: inherit; transition: all .2s;
}
.tab-filter-item:hover { border-color: var(--primary); color: var(--primary); }
.tab-filter-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.period-filter { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.period-btn {
    padding: 6px 12px; border-radius: 16px;
    background: #fff; border: 1.5px solid var(--border);
    font-size: 11.5px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer;
    font-family: inherit; transition: all .2s;
}
.period-btn:hover { border-color: var(--primary); color: var(--primary); }
.period-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    display: none; position: fixed;
    bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
    backdrop-filter: blur(10px);
}
.bottom-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    height: var(--nav-height); max-width: 640px; margin: 0 auto;
}
.nav-item-app {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; cursor: pointer; padding: 6px 4px;
    color: var(--text-tertiary); font-size: 10px;
    font-weight: 600; border: none; background: transparent;
    font-family: inherit; position: relative; transition: color .2s;
}
.nav-item-app i { font-size: 18px; line-height: 1; }
.nav-item-app.active { color: var(--primary); }
.nav-item-app.active::before {
    content: ''; position: absolute; top: 2px;
    width: 24px; height: 3px; background: var(--accent); border-radius: 3px;
}
@media (max-width: 768px) { .bottom-nav { display: block; } }

/* ===== FOOTER ===== */
.app-footer {
    display: none; background: linear-gradient(135deg, #0a0f1f, #0f172a);
    color: rgba(255, 255, 255, .65);
    padding: 24px 16px; text-align: center; font-size: 12px;
    border-top: 3px solid var(--accent); margin-top: 32px;
}
@media (min-width: 769px) { .app-footer { display: block; } }

/* ===== CUSTOM MODAL ===== */
.cmodal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
    z-index: 9998; display: none;
}
.cmodal-overlay.show { display: block; }

.cmodal {
    position: fixed; inset: 0; z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 16px; overflow-y: auto;
}
.cmodal.cmodal-show { display: flex; }

.cmodal-dialog {
    background: #fff; border-radius: 16px;
    max-width: 480px; width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
    animation: cmodalIn .25s ease;
    margin: auto;
}
@keyframes cmodalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cmodal-header {
    background: linear-gradient(135deg, #001a4d, #003399);
    color: #fff; padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 16px 16px 0 0;
    position: sticky; top: 0; z-index: 10;
}
.cmodal-title { font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.cmodal-close {
    background: rgba(255, 255, 255, .15);
    border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.cmodal-close:hover { background: rgba(255, 255, 255, .25); }
.cmodal-body { padding: 0; }
body.cmodal-open { overflow: hidden; }

/* ===== AUTH TABS ===== */
.auth-tabs {
    display: flex; background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.auth-tab-btn {
    background: #f7f9fc; border: none; flex: 1;
    padding: 14px; font-weight: 600; font-size: 12.5px;
    color: var(--text-secondary); font-family: inherit;
    border-radius: 0; border-bottom: 2px solid transparent;
    cursor: pointer; transition: all .2s;
}
.auth-tab-btn.active {
    background: #fff; color: var(--primary);
    border-bottom-color: var(--primary); font-weight: 700;
}

/* ===== ALERTS ===== */
.app-alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 13px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.app-alert.success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.app-alert.error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.app-alert.info { background: var(--info-bg); color: #075985; border: 1px solid #bae6fd; }
.app-alert.warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fcd34d; }

/* ===== EMPTY ===== */
.empty-state { text-align: center; padding: 44px 20px; color: var(--text-tertiary); }
.empty-state i { font-size: 36px; opacity: .35; margin-bottom: 12px; display: block; color: var(--primary); }
.empty-state p { font-size: 13px; margin: 0 0 4px; font-weight: 700; color: var(--text-secondary); }
.empty-state small { font-size: 12px; }

.amount-display { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--text); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.small-text { font-size: 11px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ===== FUND SOURCE ===== */
.fund-source { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.fund-source-opt {
    background: #fff; border: 2px solid var(--border);
    border-radius: var(--radius-md); padding: 12px;
    cursor: pointer; text-align: center;
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; transition: all .2s;
}
.fund-source-opt:hover { border-color: var(--primary); }
.fund-source-opt.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(0, 51, 153, .08); }
.fund-source-opt i { font-size: 20px; color: var(--primary); }
.fund-source-opt .fs-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.fund-source-opt .fs-desc { font-size: 10.5px; color: var(--text-secondary); }

/* ===== BALANCE WARNING ===== */
.balance-warning {
    background: var(--warning-bg); border: 1px solid #fcd34d;
    color: #92400e; padding: 10px 12px;
    border-radius: var(--radius-sm); font-size: 12px;
    display: none; align-items: center; gap: 8px;
    margin-top: 8px; font-weight: 600;
}
.balance-warning.show { display: flex; }
.balance-warning.danger { background: var(--danger-bg); border-color: #fca5a5; color: #991b1b; }

/* ===== ACC CARD ===== */
.acc-card {
    background: linear-gradient(135deg, #fff, #f7f9fc);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px; margin-bottom: 12px;
    position: relative; overflow: hidden;
}
.acc-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}
.acc-card.pending::before { background: linear-gradient(180deg, #f59e0b, #fbbf24); }
.acc-card.suspended::before { background: linear-gradient(180deg, #dc2626, #ef4444); }
.acc-number { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; letter-spacing: 2px; color: var(--text); margin: 4px 0; }
.acc-owner { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
.acc-balance { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.acc-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.acc-action-btn {
    background: #fff; border: 1px solid var(--border);
    color: var(--text); padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11.5px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    display: inline-flex; gap: 5px;
    text-decoration: none; transition: all .2s;
    align-items: center;
}
.acc-action-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.acc-action-btn.danger { color: var(--danger); border-color: #fca5a5; }
.acc-action-btn.danger:hover { background: var(--danger-bg); }
.acc-pin-badge { display: inline-flex; gap: 4px; background: var(--success-bg); color: #065f46; padding: 3px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.acc-pin-badge.none { background: var(--warning-bg); color: #92400e; }
.acc-pin-badge.private { background: #fee2e2; color: #991b1b; }

/* ===== RECIPIENT ===== */
.recipient-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.recipient-item {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: var(--radius-md); padding: 12px;
    cursor: pointer; display: flex; gap: 12px;
    transition: all .2s;
}
.recipient-item:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateX(2px); }
.recipient-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.recipient-name { font-size: 13.5px; font-weight: 700; margin: 0; }
.recipient-meta { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0; }
.recipient-match { font-size: 10px; color: var(--primary); font-weight: 700; background: var(--primary-soft); padding: 2px 6px; border-radius: 6px; display: inline-block; margin-top: 2px; }

/* ===== ACCOUNT ===== */
.account-section-title { font-size: 11.5px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; margin: 0 0 10px; padding-left: 4px; }
.account-menu { display: flex; flex-direction: column; gap: 8px; }
.account-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer; font-family: inherit;
    text-align: left; width: 100%; color: inherit;
    transition: all .2s;
}
.account-menu-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.account-menu-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.account-menu-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.account-menu-desc { font-size: 11.5px; color: var(--text-secondary); margin: 0; }
.account-menu-item.danger .account-menu-icon { background: var(--danger-bg); color: var(--danger); }
.account-menu-item.danger .account-menu-title { color: var(--danger); }
.account-profile-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; gap: 16px; margin-bottom: 20px; align-items: center;
}
.account-profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 24px; overflow: hidden;
    border: 3px solid var(--accent); flex-shrink: 0;
}
.account-profile-name { font-size: 16px; font-weight: 800; margin: 0 0 2px; color: var(--text); }
.account-profile-email { font-size: 12px; color: var(--text-secondary); word-break: break-all; }
.account-profile-badge { display: inline-flex; gap: 4px; background: var(--primary-soft); color: var(--primary); padding: 3px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; margin-top: 4px; }

/* ===== DEVICE ===== */
.device-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
    display: flex; gap: 12px; margin-bottom: 8px; align-items: center;
}
.device-item.current { border-color: var(--success); background: var(--success-bg); }
.device-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.device-name { font-size: 13px; font-weight: 700; color: var(--text); margin: 0; }
.device-meta { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0; }
.device-badge-current { font-size: 10px; font-weight: 700; background: var(--success); color: #fff; padding: 2px 8px; border-radius: 8px; }

/* ===== NOTIF ===== */
.notif-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
    margin-bottom: 8px; display: flex; gap: 12px;
    position: relative; cursor: pointer; transition: all .2s;
}
.notif-item:hover { border-color: var(--primary); }
.notif-item.unread { border-left: 4px solid var(--primary); background: var(--primary-soft); }
.notif-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.notif-icon.success { background: var(--success-bg); color: var(--success); }
.notif-icon.warning { background: var(--warning-bg); color: var(--warning); }
.notif-icon.danger { background: var(--danger-bg); color: var(--danger); }
.notif-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.notif-msg { font-size: 12px; color: var(--text-secondary); margin: 0; line-height: 1.4; }
.notif-time { font-size: 10.5px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== LOCK ===== */
.lock-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: linear-gradient(160deg, #001a4d, #003399);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.lock-box {
    background: #fff; border-radius: 20px;
    padding: 32px 24px; max-width: 380px; width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.lock-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 32px;
    margin: 0 auto 16px; border: 4px solid var(--accent); overflow: hidden;
}
.lock-name { font-size: 18px; font-weight: 800; margin: 0 0 4px; }
.lock-email { font-size: 12px; color: var(--text-secondary); margin: 0 0 20px; word-break: break-all; }
.lock-pin-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px; letter-spacing: 12px;
    text-align: center; width: 100%;
    border: 2px solid var(--border);
    border-radius: 12px; padding: 14px;
    outline: none; margin-bottom: 16px;
}
.lock-pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 51, 153, .1); }
.lock-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-tertiary); font-size: 12px; }
.lock-divider::before, .lock-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== PWA ===== */
.pwa-install-btn {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 0));
    right: 16px; z-index: 150;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border: none; border-radius: 50%;
    width: 52px; height: 52px;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 51, 153, .35);
    cursor: pointer; font-size: 20px;
    transition: transform .2s;
}
.pwa-install-btn:hover { transform: scale(1.1); }
.pwa-install-btn.show { display: flex; }
@media (min-width: 769px) { .pwa-install-btn { bottom: 24px; right: 24px; } }

/* ===== SECTION ===== */
.app-section { animation: fadeIn .25s; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.d-none { display: none !important; }

.chart-container { position: relative; height: 260px; margin-bottom: 12px; }

/* ===== STATUS RESULT ===== */
.status-result-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
    margin-bottom: 10px; display: flex; gap: 12px;
    align-items: flex-start; transition: border-color .2s;
}
.status-result-card:hover { border-color: var(--primary); }
.status-result-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff; flex-shrink: 0;
}
.status-result-icon.pay { background: linear-gradient(135deg, #003399, #1e40af); }
.status-result-icon.transfer { background: linear-gradient(135deg, #059669, #10b981); }
.status-result-icon.topup { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.status-result-icon.wd { background: linear-gradient(135deg, #ea580c, #f97316); }
.status-result-icon.refund { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.status-result-icon.invoice { background: linear-gradient(135deg, #c5a059, #a88542); }
.status-result-body { flex: 1; min-width: 0; }
.status-result-title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 4px; word-break: break-word; }
.status-result-meta { font-size: 11px; color: var(--text-secondary); margin: 2px 0; }
.status-result-amount { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: var(--primary); margin-top: 6px; }

/* ===== TICKET BUBBLE ===== */
.ticket-bubble { padding: 12px; border-radius: 10px; margin-bottom: 8px; }
.ticket-bubble.user { background: var(--primary-soft); border: 1px solid #c7d9f7; }
.ticket-bubble.admin { background: #fff; border: 1px solid var(--border); }
.ticket-bubble-meta { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; }
.ticket-bubble-msg { font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* ===== LEGAL ===== */
.legal-content { font-size: 13px; line-height: 1.75; color: var(--text-secondary); }
.legal-content h4 { font-size: 14px; font-weight: 800; color: var(--text); margin: 20px 0 8px; }
.legal-content ul { padding-left: 20px; margin: 0 0 12px; }
.legal-content p { margin: 0 0 12px; }

/* ===== TOGGLE ===== */
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 26px; transition: .3s; }
.toggle-slider:before { content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .3s; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.toggle-switch input:checked + .toggle-slider { background: var(--success); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }

/* ===== TABLE ===== */
.table-wrapper { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.table-wrapper table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 0; }
.table-wrapper thead th { background: var(--card-alt); padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-wrapper tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr:hover { background: var(--bg-alt); }

/* ===== GRID ===== */
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.row > * { padding: 0 8px; box-sizing: border-box; }
.g-2 > * { margin-bottom: 8px; }
.g-3 > * { margin-bottom: 12px; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
    .col-md-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-md-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-8 { flex: 0 0 66.6667%; max-width: 66.6667%; }
}
@media (min-width: 992px) {
    .col-lg-5 { flex: 0 0 41.6667%; max-width: 41.6667%; }
    .col-lg-7 { flex: 0 0 58.3333%; max-width: 58.3333%; }
}
.d-lg-none { display: block; }
.d-lg-block { display: none; }
@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
}
.d-none.d-lg-block { display: none; }
@media (min-width: 992px) { .d-none.d-lg-block { display: block !important; } }
.d-sm-block { display: none; }
@media (min-width: 576px) {
    .d-sm-inline { display: inline !important; }
    .d-sm-block { display: block !important; }
}

/* ===== UTIL ===== */
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.w-100 { width: 100%; }

/* ===== PRINT ===== */
@media print {
    body * { visibility: hidden !important; }
    .print-area, .print-area * { visibility: visible !important; }
    .print-area { position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important; }
    .no-print, nav, header, footer, .bottom-nav, .app-header,
    .desktop-nav, .pwa-install-btn, .acc-action-btn, button,
    .tab-filter, .period-filter, .app-card-header,
    .shortcut-grid, .balance-actions, .slider-wrap,
    .cmodal-overlay, .cmodal { display: none !important; }
    .app-card { box-shadow: none !important; border: 1px solid #000 !important; page-break-inside: avoid; }
    .app-card-body { padding: 12px !important; }
    a { text-decoration: none; color: #000; }
    .app-main { padding: 0 !important; }
    body { background: #fff !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .balance-value { font-size: 26px; }
    .acc-balance { font-size: 16px; }
    .cmodal-dialog { border-radius: 12px; margin: 8px; }
    .lock-box { padding: 24px 18px; }
    .lock-avatar { width: 64px; height: 64px; font-size: 26px; }
    .slider-content { padding: 14px 16px; }
    .slider-title { font-size: 15px; }
    .user-menu { min-width: 240px; right: -8px; }
    .qr-img { max-width: 200px; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }