/* ==========================================================================
   SORNARRIN — MOBILE DASHBOARD
   Final V5 — Deep Royal Blue Premium UI
   ========================================================================== */

/* --- 1. DESIGN TOKENS --- */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-deep: #0B2AA8;
    --primary-navy: #06165C;
    --primary-deep-navy: #071A63;
    --cyan: #06B6D4;
    --cyan-dark: #0891B2;
    --emerald: #10B981;
    --teal: #14B8A6;
    --amber: #F59E0B;
    --bg-page: #EEF4FF;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-white: #FFFFFF;
    --border-light: rgba(37, 99, 235, 0.08);
    --border-subtle: #F1F5F9;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-xs: 0 1px 2px rgba(30, 64, 175, 0.04);
    --shadow-sm: 0 4px 12px rgba(30, 64, 175, 0.07);
    --shadow-md: 0 8px 24px rgba(30, 64, 175, 0.09);
    --shadow-lg: 0 14px 36px rgba(30, 64, 175, 0.12);
    --shadow-card: 0 12px 35px rgba(30, 64, 175, 0.08), 0 3px 10px rgba(15, 23, 42, 0.04);
    --shadow-dock: 0 -4px 24px rgba(15, 23, 42, 0.12);
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. RESET (scoped to .srn-demo) --- */
.srn-demo *, .srn-demo *::before, .srn-demo *::after { box-sizing: border-box; margin: 0; padding: 0; }
.srn-demo {
    width: 100%;
    font-family: var(--font);
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}
.srn-demo a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.srn-demo ul { list-style: none; }
.srn-demo button { font-family: inherit; border: none; outline: none; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.srn-demo img, .srn-demo svg { display: block; max-width: 100%; }
.srn-demo img { image-rendering: auto; }

/* --- 3. VIEWPORT --- */
.app-viewport-wrapper {
    width: 100%;
    max-width: 430px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #FFFFFF;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    will-change: scroll-position;
}

/* --- 3b. OVERLAY --- */
.srn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 22, 92, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.srn-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- 3c. SIDE DRAWER MENU --- */
.side-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    z-index: 910;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 0 0 40px rgba(6, 22, 92, 0.25);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    overflow: hidden;
}
.side-drawer.is-open {
    transform: translateX(0);
}
.drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    background: linear-gradient(135deg, #0A1650 0%, #1335A0 60%, #1A4AC8 100%);
    color: #FFFFFF;
    flex-shrink: 0;
}
.drawer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}
.drawer-user-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.drawer-username {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-level {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.drawer-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.15s var(--ease);
}
.drawer-close-btn:active { background: rgba(255, 255, 255, 0.28); }
.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}
.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    border-left: 3px solid transparent;
}
.drawer-link i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--primary);
}
.drawer-link:active { background: #EEF2FF; }
.drawer-link-danger { color: #DC2626; }
.drawer-link-danger i { color: #DC2626; }
.drawer-footer {
    padding: 14px 18px;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid #EEF2F7;
    flex-shrink: 0;
    text-align: center;
}

/* --- 3d. NOTIFICATION PANEL --- */
.notif-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 92vw);
    z-index: 910;
    background: #F5F7FB;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.28s var(--ease);
    box-shadow: 0 0 40px rgba(6, 22, 92, 0.25);
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    overflow: hidden;
}
.notif-panel.is-open {
    transform: translateX(0);
}
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    background: linear-gradient(135deg, #0A1650 0%, #1335A0 60%, #1A4AC8 100%);
    color: #FFFFFF;
    flex-shrink: 0;
}
.notif-panel-title {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 9px;
}
.notif-panel-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.15s var(--ease);
}
.notif-panel-close:active { background: rgba(255, 255, 255, 0.28); }
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 20px;
    -webkit-overflow-scrolling: touch;
}
.notif-item {
    display: flex;
    gap: 12px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 13px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.7);
}
.notif-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: #FFFFFF;
}
.notif-item-icon.sev-info { background: var(--primary); }
.notif-item-icon.sev-warning { background: #F59E0B; }
.notif-item-icon.sev-danger { background: #EF4444; }
.notif-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.notif-item-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.notif-item-msg {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.notif-empty i {
    display: block;
    font-size: 2.2rem;
    color: #CBD5E1;
    margin-bottom: 12px;
}

/* --- 4. HERO BACKGROUND (Blue Gradient Only) --- */
.hero-background {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(180deg,
            #0A1650 0%,
            #0E2272 15%,
            #1335A0 35%,
            #1A4AC8 55%,
            rgba(37, 99, 235, 0.7) 75%,
            rgba(147, 197, 253, 0.3) 90%,
            #F5F9FF 100%
        );
    overflow: hidden;
    contain: layout style;
    will-change: transform;
}
.hero-background::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(245, 249, 255, 0), #FFFFFF);
    z-index: 2;
    pointer-events: none;
}

/* Atmospheric light bloom */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.30) 0%, transparent 50%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 50% 30%, rgba(96, 165, 250, 0.10) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* --- 5. MAIN CONTENT (White Background) --- */
.main-content {
    position: relative;
    z-index: 3;
    background: #FFFFFF;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    contain: layout style;
    -webkit-overflow-scrolling: touch;
}

/* --- 6. HEADER --- */
.app-header {
    height: auto;
    min-height: 56px;
    padding: 12px 14px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 100;
}
.srn-demo .btn-header-side {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0.95rem;
    color: #FFFFFF;
    transition: transform 0.15s var(--ease);
    flex-shrink: 0;
}
.srn-demo .btn-header-side:active { transform: scale(0.93); }
.srn-demo .btn-notification { font-size: 1.0rem; }
.notification-dot {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 6px;
    height: 6px;
    background: #EF4444;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    animation: notifPulse 2s infinite;
}
@keyframes notifPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    50% { box-shadow: 0 0 0 3px rgba(239,68,68,0); }
}

/* Header Brand Center */
.header-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}
.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.brand-welcome {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.2;
    white-space: nowrap;
}

/* --- 6b. SUBPAGE HERO (non-dashboard pages) --- */
.srn-page-hero-spacer {
    height: 14px;
}
.srn-page-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.7);
}
.srn-page-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.srn-page-title i { color: var(--primary); }

/* --- 6c. LAYANAN / KATEGORI SELECTOR --- */
.srn-filter-select-wrap { position: relative; }
.srn-filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 13px 40px 13px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
    cursor: pointer;
}
.srn-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.srn-filter-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

/* --- 6d. SERVICE LIST (rendered by inc/service_sosmed_list.php) --- */
.srn-service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.srn-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.srn-service-info {
    min-width: 0;
    flex: 1;
}
.srn-service-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.srn-service-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.srn-service-badge {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: #EEF2FF;
    color: var(--primary);
}
.srn-service-badge.act { background: #DCFCE7; color: #15803D; }
.srn-service-badge.inact { background: #FEE2E2; color: #B91C1C; }
.srn-service-price {
    text-align: right;
    flex-shrink: 0;
}
.srn-service-price-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.srn-service-price-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}
.srn-service-empty {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.srn-service-empty i {
    display: block;
    font-size: 2.2rem;
    color: #CBD5E1;
    margin-bottom: 12px;
}

/* --- 7. HERO BANNER --- */
.hero-slider-section {
    width: 100%;
    padding: 0 14px 20px;
    position: relative;
    z-index: 1;
}
.hero-slider-container {
    width: 100%;
    aspect-ratio: 21 / 8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.20);
}
.hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}
.slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
}
.slide-placeholder-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
}
.slider-dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}
.dot-item {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.dot-item.active {
    width: 18px;
    border-radius: var(--radius-pill);
    background: #FFFFFF;
}
/* --- 8. BALANCE CARDS --- */
.balance-grid-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.balance-card {
    border-radius: var(--radius-lg);
    padding: 14px 12px 12px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.22), 0 6px 16px rgba(15, 23, 42, 0.10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 136px;
    transition: transform 0.2s var(--ease);
}
.balance-card:active { transform: scale(0.98); }

/* Main glow orb — top right */
.balance-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 65%);
    pointer-events: none;
}

/* Gradient overlay — top half */
.balance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 100%);
    pointer-events: none;
}

/* Decorative elements */
.balance-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* Large glow orb — bottom left */
.deco-circle-1 {
    bottom: -35px;
    left: -25px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%);
}

/* Small accent dot — mid right */
.deco-circle-2 {
    top: 45%;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
}

/* Dotted grid pattern — bottom right */
.deco-dots {
    bottom: 12px;
    right: 10px;
    width: 44px;
    height: 44px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
    background-size: 8px 8px;
    opacity: 0.8;
}

/* Ring shape — top left */
.deco-ring {
    top: 10px;
    left: -15px;
    width: 40px;
    height: 40px;
    border: 2.5px solid rgba(255,255,255,0.10);
    border-radius: 50%;
}

/* Inner card decorative elements */
.balance-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}
.balance-card-inner::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.balance-card-inner::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 12px;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

.card-sosmed {
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 11px
        ),
        linear-gradient(135deg, #1746E8 0%, #245BFF 50%, #1E40AF 100%);
}
.card-ppob {
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.03) 10px,
            rgba(255,255,255,0.03) 11px
        ),
        linear-gradient(135deg, #0B9CC8 0%, #08B9D2 50%, #08A88C 100%);
}
.balance-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}
.balance-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.balance-icon-box {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.balance-title-group { display: flex; flex-direction: column; }
.balance-card-title {
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.2px;
}
.balance-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}
.balance-amount {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}
.arrow-badge-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}
.balance-card-footer { margin-top: 10px; }
.btn-balance-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.98);
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    transition: transform 0.15s var(--ease);
}
.btn-balance-action:active { transform: scale(0.97); }
.srn-demo a.btn-action-blue { color: var(--primary); }
.srn-demo a.btn-action-cyan { color: var(--cyan-dark); }
.plus-icon-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--text-white);
    flex-shrink: 0;
}
.srn-demo .btn-action-blue .plus-icon-circle { background: var(--primary); }
.srn-demo .btn-action-cyan .plus-icon-circle { background: var(--cyan-dark); }

/* --- 9. STATISTICS --- */
.summary-stats-section { width: 100%; }
.summary-stats-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(241,247,255,0.94));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 12px 35px rgba(30,64,175,0.08);
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.stat-column {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}
.stat-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.icon-bg-blue { background: #EFF6FF; color: var(--primary); }
.icon-bg-emerald { background: #ECFDF5; color: var(--emerald); }
.stat-text-block {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.stat-label {
    font-size: 0.56rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-value {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
}
.stat-divider-v {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
    margin: 0 8px;
    flex-shrink: 0;
}
.mini-progress-track {
    width: 100%;
    max-width: 60px;
    height: 4px;
    background: var(--border-subtle);
    border-radius: var(--radius-pill);
    margin-top: 4px;
    overflow: hidden;
}
.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #38BDF8);
    border-radius: var(--radius-pill);
}

/* --- 10. SERVICES V2 — Premium Dark Cards --- */
.main-services-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

/* Section atmospheric background */
.main-services-section::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -32px;
    right: -32px;
    bottom: -24px;
    background:
        radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    border-radius: 28px;
}

/* Section Title */
.section-title-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.title-with-subtitle { display: flex; flex-direction: column; gap: 3px; }
.section-main-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
    white-space: nowrap;
    line-height: 1.3;
}
.single-line-heading { white-space: nowrap !important; }
.heading-icon {
    margin-right: 6px;
    font-size: 0.9rem;
    color: #F97316;
    filter: drop-shadow(0 1px 2px rgba(249, 115, 22, 0.3));
}
.section-sub-heading {
    font-size: 0.68rem;
    color: #64748B;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* ─────────────────────────────────────────────
   SERVICE GRID V2 — Reference Layout
   ───────────────────────────────────────────── */
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto auto;
    gap: 10px;
    position: relative;
    z-index: 1;
    align-items: start;
}

/* ─────────────────────────────────────────────
   SERVICE CARD V2 — Dark Premium
   ───────────────────────────────────────────── */
.service-card-v2 {
    background: linear-gradient(155deg, #0C1E5C 0%, #0F2D7A 40%, #143894 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 13px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(10, 30, 80, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ─────────────────────────────────────────────
   CARD ILLUSTRATION — Floating Icons
   ───────────────────────────────────────────── */
.card-illustration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.illust-icon {
    position: absolute;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card-v2:hover .illust-icon {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   2D FLAT SERVICE CARDS — REMOVED
   ═══════════════════════════════════════════ */

/* ─── SOSMED — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration {
    border: none;
    aspect-ratio: 1656 / 950;
    min-height: 0;
}

/* ─── PULSA — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration-pulsa {
    border: none;
    aspect-ratio: 254 / 304;
    min-height: 0;
}
.service-card-v2.has-illustration-pulsa .card-deco-circle {
    display: none;
}

/* ─── GAME — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration-game {
    border: none;
    aspect-ratio: 254 / 304;
    min-height: 0;
}
.service-card-v2.has-illustration-game .card-deco-circle {
    display: none;
}

/* ─── PREMIUM — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration-premium {
    border: none;
    aspect-ratio: 254 / 304;
    min-height: 0;
}
.service-card-v2.has-illustration-premium .card-deco-circle {
    display: none;
}

/* ─── OTP SMS — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration-otp {
    border: none;
    aspect-ratio: 254 / 304;
    min-height: 0;
}
.service-card-v2.has-illustration-otp .card-deco-circle {
    display: none;
}

/* ─── GMAIL — Image background (lazy via data-bg) ─── */
.service-card-v2.has-illustration-gmail {
    border: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
}
.service-card-v2.has-illustration-gmail .card-deco-circle {
    display: none;
}

/* ─── PULSA — 3 icons, centered cluster (UNUSED, kept for reference) ─── */
.service-card-v2:nth-child(2) .illust-1 {
    font-size: 30px;
    top: 18px;
    left: 50%;
    margin-left: -15px;
    transform: rotate(-5deg);
    color: #06B6D4;
    filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.4));
}
.service-card-v2:nth-child(2) .illust-2 {
    font-size: 20px;
    top: 22px;
    right: 14px;
    transform: rotate(12deg);
    color: #F59E0B;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}
.service-card-v2:nth-child(2) .illust-3 {
    font-size: 18px;
    bottom: 52px;
    left: 16px;
    transform: rotate(-8deg);
    color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.2));
}

/* ─── GAME — 3 icons, triangle cluster ─── */
.service-card-v2:nth-child(3) .illust-1 {
    font-size: 32px;
    top: 14px;
    left: 50%;
    margin-left: -16px;
    transform: rotate(-8deg);
    color: #6366F1;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}
.service-card-v2:nth-child(3) .illust-2 {
    font-size: 22px;
    bottom: 50px;
    left: 14px;
    transform: rotate(10deg);
    color: #F59E0B;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}
.service-card-v2:nth-child(3) .illust-3 {
    font-size: 20px;
    bottom: 52px;
    right: 14px;
    transform: rotate(-6deg);
    color: #A855F7;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.35));
}

/* ─── PREMIUM — 3 icons, crown focused ─── */
.service-card-v2:nth-child(4) .illust-1 {
    font-size: 30px;
    top: 14px;
    left: 50%;
    margin-left: -15px;
    transform: rotate(-3deg);
    color: #F4C542;
    filter: drop-shadow(0 2px 8px rgba(244, 197, 66, 0.45));
}
.service-card-v2:nth-child(4) .illust-2 {
    font-size: 22px;
    bottom: 50px;
    left: 16px;
    transform: rotate(8deg);
    color: rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.2));
}
.service-card-v2:nth-child(4) .illust-3 {
    font-size: 20px;
    bottom: 52px;
    right: 16px;
    transform: rotate(-10deg);
    color: #A855F7;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.3));
}

/* ─── OTP — 3 icons, centered stack ─── */
.service-card-v2:nth-child(5) .illust-1 {
    font-size: 28px;
    top: 16px;
    left: 50%;
    margin-left: -14px;
    transform: rotate(-5deg);
    color: #38BDF8;
    filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.4));
}
.service-card-v2:nth-child(5) .illust-2 {
    font-size: 22px;
    bottom: 50px;
    left: 16px;
    transform: rotate(8deg);
    color: #10B981;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.35));
}
.service-card-v2:nth-child(5) .illust-3 {
    font-size: 18px;
    bottom: 54px;
    right: 16px;
    transform: rotate(-6deg);
    color: rgba(255, 255, 255, 0.45);
    filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.2));
}

/* ─── GMAIL — hidden (wide landscape card) ─── */
.service-card-v2:nth-child(6) .card-illustration {
    display: none;
}

/* Card content row — icon + name + arrow */
.card-content-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* Row 1 — 2 cards (60:40 split) */
.service-card-v2:nth-child(1) {
    grid-column: span 4;
}
.service-card-v2:nth-child(2) {
    grid-column: span 2;
}

/* Row 2 — 3 equal cards */
.service-card-v2:nth-child(3),
.service-card-v2:nth-child(4),
.service-card-v2:nth-child(5) {
    grid-column: span 2;
}

/* Row 3 — full width card */
.service-card-v2:nth-child(6) {
    grid-column: 2 / 6;
    min-height: 0;
}
.service-card-v2:nth-child(6) .card-illustration {
    display: none;
}
.service-card-v2:nth-child(6) .card-content-row {
    width: 100%;
}
.service-card-v2:nth-child(6) .card-icon-area {
    flex-shrink: 0;
}
.service-card-v2:nth-child(6) .card-info {
    flex: 1;
    min-width: 0;
}
.service-card-v2:nth-child(6) .card-arrow {
    position: relative;
    bottom: auto;
    right: auto;
}

/* Decorative circles */
.card-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.deco-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    top: -20px;
    right: -15px;
}
.deco-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    bottom: -15px;
    left: -10px;
}

/* Hover — desktop */
@media (hover: hover) {
    .service-card-v2:hover {
        transform: translateY(-3px);
        box-shadow:
            0 8px 24px rgba(10, 30, 80, 0.35),
            0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .service-card-v2:hover .card-arrow {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(2px);
    }
    .service-card-v2:hover .service-icon-wrap-v2 {
        transform: scale(1.05);
    }
}

/* Active — mobile tap */
.service-card-v2:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ─────────────────────────────────────────────
   ICON AREA
   ───────────────────────────────────────────── */
.card-icon-area {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-wrap-v2 {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.icon-v2-blue {
    background: linear-gradient(135deg, #1A4FD0 0%, #2E6BF5 100%);
    color: #FFFFFF;
}
.icon-v2-cyan {
    background: linear-gradient(135deg, #0891B2 0%, #22D3EE 100%);
    color: #FFFFFF;
}
.icon-v2-indigo {
    background: linear-gradient(135deg, #4338CA 0%, #6366F1 100%);
    color: #FFFFFF;
}
.icon-v2-royal {
    background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
    color: #FFFFFF;
}
.icon-v2-azure {
    background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
    color: #FFFFFF;
}

/* ─────────────────────────────────────────────
   CARD INFO & NAME
   ───────────────────────────────────────────── */
.card-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-name-v2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
    letter-spacing: -0.1px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* For horizontal cards (card 6) */
.service-card-v2:nth-child(6) .service-name-v2 {
    font-size: 0.85rem;
    margin-top: 0;
}

/* ─────────────────────────────────────────────
   ARROW
   ───────────────────────────────────────────── */
.card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    transition:
        background 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        color 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card-v2:active .card-arrow {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    transform: translateX(2px);
}

/* --- 11. TRANSACTIONS --- */
.realtime-transactions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.realtime-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.title-with-live-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}
.live-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ECFDF5;
    color: #059669;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16,185,129,0.15);
    white-space: nowrap;
    flex-shrink: 0;
}
.pulsing-green-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulseDot 2s infinite;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}

/* Transaction Cards Container */
.transactions-list-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Transaction Card */
.tx-row-item {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(241,247,255,0.94));
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(30,64,175,0.08);
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.tx-row-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(30,64,175,0.12);
}

/* Icon */
.tx-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tx-icon-tiktok { background: linear-gradient(135deg, #1E3A8A, #2563EB); color: #FFF; }
.tx-icon-pulsa { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #2563EB; }
.tx-icon-ig { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #1D4ED8; }
.tx-icon-ml { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #1D4ED8; }
.tx-icon-pln { background: linear-gradient(135deg, #F0F9FF, #E0F2FE); color: #0284C7; }

/* Content Block */
.tx-content-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tx-top-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tx-id {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94A3B8;
    line-height: 1.2;
}
.tx-service-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tx-bottom-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}
.tx-quantity {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* Right Side: Time + Status */
.tx-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.tx-time {
    font-size: 0.62rem;
    color: #94A3B8;
    line-height: 1.2;
    white-space: nowrap;
}
.tx-status-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.status-completed { background: #ECFDF5; color: #059669; border: 1px solid rgba(16,185,129,0.15); }
.status-processing { background: #EFF6FF; color: #2563EB; border: 1px solid rgba(37,99,235,0.15); }
.status-pending { background: #FFFBEB; color: #D97706; border: 1px solid rgba(245,158,11,0.18); }

/* --- 12. TREND CHART --- */
.trend-transaction-section { width: 100%; }
.trend-chart-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(241,247,255,0.94));
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow: 0 12px 35px rgba(30,64,175,0.08);
    padding: 12px;
}
.chart-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}
.chart-header-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chart-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.legend-badge {
    font-size: 0.56rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.dot-color {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-blue { background: var(--primary); }
.dot-cyan { background: var(--cyan); }
.filter-dropdown-select {
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-light);
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
    outline: none;
}
.chart-svg-viewport { position: relative; width: 100%; }
.chart-data-tooltip {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    padding: 4px 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 10;
}
.tooltip-val-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.54rem;
    white-space: nowrap;
}
.tooltip-label { color: var(--text-muted); }
.tooltip-amount { font-weight: 800; }
.val-sosmed .tooltip-amount { color: var(--primary); }
.val-ppob .tooltip-amount { color: var(--cyan-dark); }
.trend-chart-svg {
    width: 100%;
    height: 120px;
}
.chart-x-axis-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.54rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    padding-left: 22px;
}
.active-date-label {
    color: var(--primary);
    font-weight: 800;
}
.chart-tap-hint {
    margin-left: auto;
    font-size: 0.48rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.chart-tap-hint i { font-size: 0.52rem; color: var(--primary); }
.tooltip-title {
    display: block;
    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.chart-data-tooltip.is-dimmed {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s var(--ease), visibility 0.15s;
}
.chart-hit-rect { cursor: pointer; }
.trend-chart-svg { cursor: pointer; }
.chart-highlight {
    pointer-events: none;
    transition: opacity 0.15s var(--ease);
}
.chart-day-tooltip {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    min-width: 138px;
    background: linear-gradient(160deg, #101E3E 0%, #0B1630 100%);
    border: 1px solid rgba(36, 99, 255, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 10px 28px rgba(9, 18, 40, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), visibility 0.18s, transform 0.18s var(--ease);
}
.chart-day-tooltip.is-visible { opacity: 1; visibility: visible; }
.chart-day-tooltip .day-tip-date {
    display: block;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #F8FAFC;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.chart-day-tooltip .day-tip-badge {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.42rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2463FF, #38BDF8);
    color: #FFF;
    border-radius: 999px;
    padding: 1px 6px;
    vertical-align: 1px;
}
.chart-day-tooltip .day-tip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.54rem;
    font-weight: 600;
    color: #E2E8F0;
}
.chart-day-tooltip .day-tip-row .day-tip-amt { font-weight: 800; }
.chart-day-tooltip .day-tip-sm .day-tip-amt { color: #7CA6FF; }
.chart-day-tooltip .day-tip-pp .day-tip-amt { color: #4FE3F5; }
.chart-day-tooltip .day-tip-total {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.54rem;
    font-weight: 700;
    color: #F8FAFC;
}
.chart-day-tooltip .day-tip-total .day-tip-amt { color: #FFD66B; font-weight: 900; }
.chart-day-tooltip .day-tip-empty {
    font-size: 0.54rem;
    color: #94A3B8;
    padding: 2px 0;
}

/* --- 13. BOTTOM NAV --- */
.bottom-dock-nav {
    position: fixed;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 400px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dock-inner-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-pill);
    padding: 6px 6px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}
.srn-demo .dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    min-width: 0;
    flex: 1;
}
.dock-icon-wrapper {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    border-radius: var(--radius-xs);
    transition: all 0.25s var(--ease);
}
.dock-text {
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1;
}
.srn-demo .dock-link.active { color: var(--primary); }
.srn-demo .dock-link.active .dock-icon-wrapper {
    background: linear-gradient(135deg, var(--primary), #38BDF8);
    color: #FFF;
    width: 36px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* --- 14. RESPONSIVE --- */
@media (max-width: 359px) {
    .app-viewport-wrapper { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .balance-amount { font-size: 1.0rem; }
    .stat-value { font-size: 0.7rem; }
    .service-name { font-size: 0.62rem; }
    .brand-name { font-size: 0.92rem; letter-spacing: 1.2px; }
    .brand-welcome { font-size: 0.65rem; }
    .btn-header-side { width: 38px; height: 38px; }
}

@media (min-width: 400px) {
    .balance-amount { font-size: 1.25rem; }
}

/* --- 15. ANIMATIONS --- */
.hero-slider-section,
.balance-grid-section,
.summary-stats-section,
.main-services-section,
.realtime-transactions-section,
.trend-transaction-section {
    animation: fadeInUp 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    contain: layout style;
}
.hero-slider-section { animation-delay: 0.04s; }
.balance-grid-section { animation-delay: 0.08s; }
.summary-stats-section { animation-delay: 0.12s; }
.main-services-section { animation-delay: 0.16s; }
.realtime-transactions-section { animation-delay: 0.20s; }
.trend-transaction-section { animation-delay: 0.24s; }

/* --- 16. PERFORMANCE & SMOOTHNESS --- */
/* GPU acceleration for interactive elements */
.balance-card,
.service-card-v2,
.tx-row-item,
.dock-link,
.btn-header-side,
.btn-balance-action,
.filter-dropdown-select {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth touch scrolling */
.hero-slider-track,
.services-grid-v2,
.transactions-list-card {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Reduce paint complexity */
.service-card-v2,
.tx-row-item,
.balance-card,
.summary-stats-card,
.trend-chart-card {
    contain: layout style paint;
}

/* Smooth transitions — no jank */
.hero-slider-track {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Bottom nav — instant response */
.dock-inner-container {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    contain: layout style;
}

/* Page transitions */
.main-content,
.hero-background {
    transition: opacity 0.2s ease;
}

/* Scroll performance (scoped) */
@supports (scroll-behavior: smooth) {
    .srn-demo { scroll-behavior: smooth; }
}

/* Prevent layout thrashing (scoped) */
.srn-demo img {
    width: auto;
    height: auto;
    max-width: 100%;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
