:root,
  [data-theme="light"] {
    --font-display: 'Manrope', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-recessed: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;

    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-primary-soft: rgba(37, 99, 235, 0.1);
    --brand-primary-border: rgba(37, 99, 235, 0.28);

    --accent-in: #059669;
    --accent-in-soft: rgba(5, 150, 105, 0.1);
    --accent-in-border: rgba(5, 150, 105, 0.3);

    --accent-out: #e11d48;
    --accent-out-soft: rgba(225, 29, 72, 0.09);
    --accent-out-border: rgba(225, 29, 72, 0.28);

    --accent-warn: #d97706;
    --accent-warn-soft: rgba(217, 119, 6, 0.1);
    --accent-warn-border: rgba(217, 119, 6, 0.32);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 32px -6px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 24px 48px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-theme="dark"] {
    --bg-base: #0b0f19;
    --bg-surface: #131b2e;
    --bg-surface-elevated: #1c263d;
    --bg-subtle: #172033;
    --bg-recessed: #0a0e18;
    --border-subtle: #24324f;
    --border-strong: #33466e;

    --text-main: #f8fafc;
    --text-body: #dfe2f1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --brand-primary: #4d8eff;
    --brand-primary-hover: #6ea3ff;
    --brand-primary-soft: rgba(77, 142, 255, 0.15);
    --brand-primary-border: rgba(77, 142, 255, 0.38);

    --accent-in: #34d399;
    --accent-in-soft: rgba(16, 185, 129, 0.15);
    --accent-in-border: rgba(52, 211, 153, 0.36);

    --accent-out: #fb7185;
    --accent-out-soft: rgba(244, 63, 94, 0.15);
    --accent-out-border: rgba(251, 113, 133, 0.36);

    --accent-warn: #fbbf24;
    --accent-warn-soft: rgba(245, 158, 11, 0.15);
    --accent-warn-border: rgba(251, 191, 36, 0.36);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 26px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 36px -6px rgba(0, 0, 0, 0.65);
    --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(77, 142, 255, 0.22);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    background-color: var(--bg-base);
    background-image:
      radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.08), transparent 36%),
      radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.06), transparent 32%);
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
  }

  button,
  input,
  select,
  textarea {
    font-family: inherit;
    color: inherit;
    font-size: 0.92rem;
  }

  button {
    cursor: pointer;
    border: none;
    background: none;
  }

  input,
  select,
  textarea {
    width: 100%;
  }

  .app-shell {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px 22px 48px;
    flex: 1 0 auto;
  }

  /* ==========================================================================
     1. EXECUTIVE TOPBAR HEADER (GOOGLE STITCH M3 EXPRESSIVE)
     ========================================================================== */
  .top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
  }

  .top-nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary-border), transparent);
    pointer-events: none;
  }

  .brand-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    min-width: 0;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0d9488);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .brand-icon svg {
    width: 24px;
    height: 24px;
  }

  .brand-titles {
    text-align: left;
    min-width: 0;
  }

  .brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .live-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-in);
    box-shadow: 0 0 0 3px var(--accent-in-soft);
    animation: pulse-dot-live 2.4s ease-in-out infinite;
    flex-shrink: 0;
  }

  .brand-titles h1 {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .brand-subtitle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
  }

  .role-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .role-badge-pill #lblUserRole {
    color: var(--brand-primary);
    font-weight: 800;
  }

  .header-divider {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    min-height: 42px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.83rem;
    border: 1px solid var(--border-strong);
    background: var(--bg-subtle);
    color: var(--text-main);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
  }

  .btn-action:hover {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
  }

  .btn-action svg {
    width: 16px;
    height: 16px;
  }

  .btn-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-main);
    display: grid;
    place-items: center;
    transition: all var(--transition);
  }

  .btn-theme-toggle:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: scale(1.05);
  }

  .btn-theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* QUICK ACTION RAIL (STITCH EXECUTIVE SHORTCUTS) */
  .quick-action-rail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    width: 100%;
  }

  .sync-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
  }

  .sync-status-pill .pulse-ring {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-in);
    box-shadow: 0 0 8px var(--accent-in);
    flex-shrink: 0;
  }

  .action-pill-scroller {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .rail-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    min-height: 38px;
    border-radius: var(--radius-full);
    font-size: 0.77rem;
    font-weight: 700;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
  }

  .rail-pill-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
    transform: translateY(-1px);
  }

  .rail-pill-btn.primary-pill {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  }

  .rail-pill-btn.primary-pill:hover {
    background: var(--brand-primary-hover);
    color: #ffffff;
  }

  .rail-pill-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }

  /* ==========================================================================
     2. BENTO OVERVIEW (HERO LIQUIDITY & METRIC CARDS)
     ========================================================================== */
  .bento-overview {
    display: grid;
    grid-template-columns: 1.38fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
  }

  .bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  }

  .bento-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .bento-card.hero-balance-card {
    background: linear-gradient(145deg, var(--bg-surface-elevated), var(--bg-surface));
    border-color: var(--brand-primary-border);
  }

  .bento-card.hero-balance-card::before {
    content: "";
    position: absolute;
    right: -45px;
    top: -45px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 142, 255, 0.18), transparent 70%);
    pointer-events: none;
  }

  .bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
  }

  .bento-title {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .badge-live {
    background: var(--accent-in-soft);
    border: 1px solid var(--accent-in-border);
    color: var(--accent-in);
    animation: pulse-glow-in 2.4s ease-in-out infinite;
  }

  .badge-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-in);
    box-shadow: 0 0 0 3px var(--accent-in-soft);
    animation: pulse-dot-live 2.4s ease-in-out infinite;
  }

  .bento-val-hero {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin: 4px 0 12px;
    position: relative;
    z-index: 1;
  }

  .hero-formula-box {
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 11px;
    position: relative;
    z-index: 1;
  }

  .bento-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .metric-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    transition: transform var(--transition);
  }

  .metric-badge.start {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary-border);
    animation: pulse-glow-start 2.6s ease-in-out infinite 0.25s;
  }

  .metric-badge.in {
    background: var(--accent-in-soft);
    color: var(--accent-in);
    border: 1px solid var(--accent-in-border);
    animation: pulse-glow-in 2.6s ease-in-out infinite;
  }

  .metric-badge.out {
    background: var(--accent-out-soft);
    color: var(--accent-out);
    border: 1px solid var(--accent-out-border);
    animation: pulse-glow-out 2.6s ease-in-out infinite 0.5s;
  }

  .metric-badge svg {
    width: 19px;
    height: 19px;
  }

  .metric-val {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 1.42rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
  }

  .metric-val.start {
    color: var(--text-main);
  }

  .metric-val.in {
    color: var(--accent-in);
  }

  .metric-val.out {
    color: var(--accent-out);
  }

  /* TOMBOL SIMPAN - STATUS DIRTY & TERSIMPAN */
  .btn-submit.btn-saved,
  .btn-action.btn-saved {
    background: var(--accent-in) !important;
    color: #ffffff !important;
    border-color: var(--accent-in) !important;
    box-shadow: 0 0 0 3px var(--accent-in-soft) !important;
  }

  /* ANIMASI REFRESH & GLOW */
  @keyframes spin-refresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .btn-refresh.is-spinning svg {
    animation: spin-refresh 0.65s linear infinite;
  }

  @keyframes pulse-glow-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2), 0 0 6px rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.05), 0 0 14px rgba(59, 130, 246, 0.45); }
  }

  @keyframes pulse-dot-live {
    0%, 100% { transform: scale(0.92); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 1; }
  }

  @keyframes pulse-glow-start {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2), 0 0 6px rgba(59, 130, 246, 0.15); }
    50% { box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.06), 0 0 15px rgba(59, 130, 246, 0.45); }
  }

  @keyframes pulse-glow-in {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2), 0 0 6px rgba(16, 185, 129, 0.15); }
    50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.06), 0 0 15px rgba(16, 185, 129, 0.45); }
  }

  @keyframes pulse-glow-out {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.2), 0 0 6px rgba(244, 63, 94, 0.15); }
    50% { box-shadow: 0 0 0 5px rgba(244, 63, 94, 0.06), 0 0 15px rgba(244, 63, 94, 0.45); }
  }

  .alert-banner {
    display: none;
    grid-column: 1 / -1;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.86rem;
    align-items: center;
    gap: 12px;
  }

  .alert-banner.defisit {
    background: var(--accent-out-soft);
    border: 1px solid var(--accent-out-border);
    color: var(--accent-out);
  }

  .alert-banner.tunggakan {
    background: var(--accent-warn-soft);
    border: 1px solid var(--accent-warn-border);
    color: var(--accent-warn);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .alert-banner.tunggakan:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }

  /* ==========================================================================
     3. ADMIN CONSOLE (STITCH PROTECTED EXECUTIVE PANEL)
     ========================================================================== */
  .admin-console {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }

  .admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .admin-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .admin-shield-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-in-soft);
    border: 1px solid var(--accent-in-border);
    color: var(--accent-in);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  .admin-header-titles {
    flex: 1 1 auto;
    min-width: 0;
  }

  .admin-security-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }

  .sec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .sec-pill.emerald {
    background: var(--accent-in-soft);
    color: var(--accent-in);
    border: 1px solid var(--accent-in-border);
  }

  .sec-pill.cobalt {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary-border);
    font-family: var(--font-mono);
  }

  .admin-header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
  }

  .admin-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4;
  }

  .btn-close-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    min-height: 38px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-main);
    transition: all var(--transition);
    white-space: nowrap;
  }

  .btn-close-panel:hover {
    background: var(--accent-out-soft);
    border-color: var(--accent-out);
    color: var(--accent-out);
  }

  /* BENTO NAV TABS */
  .panel-bento-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    margin-bottom: 22px;
    width: 100%;
  }

  .bento-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    min-height: 64px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
  }

  .bento-nav-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition);
  }

  .bento-nav-btn:hover {
    border-color: var(--brand-primary-border);
    color: var(--text-main);
    background: var(--bg-surface-elevated);
    transform: translateY(-1px);
  }

  .bento-nav-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
  }

  /* STITCH ARUS MUTASI SEGMENTED SWITCHER */
  .tx-type-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
  }

  .seg-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    transition: all var(--transition);
    text-align: center;
  }

  .seg-type-btn .seg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .seg-type-btn.seg-out .seg-dot {
    background: var(--accent-out);
  }

  .seg-type-btn.seg-in .seg-dot {
    background: var(--accent-in);
  }

  .seg-type-btn.active.seg-out {
    background: var(--accent-out-soft);
    color: var(--accent-out);
    border: 1px solid var(--accent-out-border);
    box-shadow: var(--shadow-sm);
  }

  .seg-type-btn.active.seg-in {
    background: var(--accent-in-soft);
    color: var(--accent-in);
    border: 1px solid var(--accent-in-border);
    box-shadow: var(--shadow-sm);
  }

  /* TUNGGAKAN EXECUTIVE SUMMARY STRIP (STITCH MODULE 4) */
  .tgk-exec-summary {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .tgk-exec-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
  }

  .tgk-exec-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tgk-exec-total {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-out);
    letter-spacing: -0.02em;
  }

  .tgk-compliance-box {
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .tgk-compliance-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
  }

  .tgk-progress-track {
    width: 100%;
    height: 8px;
    background: var(--border-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
  }

  .tgk-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-in), #3b82f6);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
  }

  /* SPJ OFFICIAL DOCUMENT BANNER (STITCH MODULE 5) */
  .spj-official-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .spj-banner-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }

  /* FORMS & INPUTS */
  .form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .form-grid-2.single-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .form-group {
    margin-bottom: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    word-break: break-word;
  }

  .req-star {
    color: var(--accent-out);
    font-weight: 800;
    margin-left: 3px;
  }

  .req-note {
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-subtle);
    margin-left: 4px;
  }

  .form-input.field-error,
  .form-group input.field-error,
  .form-group select.field-error,
  .form-group textarea.field-error,
  .custom-file-upload.field-error,
  .year-stepper-box.field-error {
    border-color: var(--accent-out) !important;
    box-shadow: 0 0 0 3px var(--accent-out-soft) !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-input,
  select.form-input,
  input.form-input {
    font-family: var(--font-sans);
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 14px;
    min-height: 44px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  }

  input[type="date"],
  input[type="month"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #txAmount,
  #editTxAmount,
  #tgkNominal,
  #setSaldoAwalNom,
  #tfStafNom,
  #tfKasubidNom,
  #tfKabidNom,
  #sigKabidNip,
  #sigBendaharaNip {
    font-family: var(--font-mono);
    font-weight: 600;
  }

  .form-group select,
  select.form-input,
  .bento-subbox select {
    height: 44px;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus,
  .form-input:focus,
  select.form-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
  }

  /* MODERN SELECT DROPDOWN */
  .form-group select,
  select.form-input,
  .bento-subbox select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
  }

  [data-theme="dark"] .form-group select,
  [data-theme="dark"] select.form-input,
  [data-theme="dark"] .bento-subbox select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }

  /* MODERN FILE UPLOAD STYLING */
  .custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-recessed);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
  }

  .custom-file-upload:hover,
  .custom-file-upload:focus-within {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
  }

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

  .file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    user-select: none;
    position: relative;
    z-index: 1;
  }

  .custom-file-upload:hover .file-upload-btn {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
  }

  .file-name-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 0%;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  .file-name-text.has-file {
    color: var(--brand-primary);
    font-weight: 700;
  }

  /* PRIVACY TOGGLE SWITCH */
  .privacy-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    transition: border-color var(--transition), background var(--transition);
  }

  .privacy-toggle-box:hover {
    border-color: var(--brand-primary-border);
  }

  .privacy-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .privacy-toggle-info strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
  }

  .privacy-toggle-info span {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
  }

  .privacy-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .privacy-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }

  .privacy-slider {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: var(--radius-full);
    transition: background var(--transition);
  }

  .privacy-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition);
  }

  .privacy-switch input:checked + .privacy-slider {
    background: var(--brand-primary);
  }

  .privacy-switch input:checked + .privacy-slider::before {
    transform: translateX(20px);
  }

  .privacy-switch input:disabled + .privacy-slider {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    min-height: 44px;
    border-radius: var(--radius-full);
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  }

  .btn-submit:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
  }

  .btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
  }

  .download-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .download-action-row input[type="month"] {
    flex: 1 1 180px;
    min-width: 150px;
    height: 44px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
  }

  .year-stepper-box {
    display: flex;
    align-items: center;
    flex: 1 1 180px;
    min-width: 150px;
    height: 44px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .year-stepper-box:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
  }

  .year-stepper-box input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-family: var(--font-mono) !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    height: 100%;
    min-height: unset !important;
    padding: 0 4px;
    box-shadow: none !important;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .year-stepper-box input::-webkit-outer-spin-button,
  .year-stepper-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
  }

  .stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    background: var(--bg-surface);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    user-select: none;
  }

  .stepper-btn:hover {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
  }

  .download-btns-wrap {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
  }

  .download-btns-wrap button {
    flex: 1;
    white-space: nowrap;
    height: 44px;
    min-height: 44px;
  }

  .report-group-block {
    margin-bottom: 16px;
  }

  .report-group-block:last-child {
    margin-bottom: 0;
  }

  .password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .password-wrapper input {
    padding-right: 44px;
    width: 100%;
  }

  .btn-toggle-pw {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 2;
  }

  .btn-toggle-pw:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-soft);
  }

  .btn-toggle-pw svg {
    width: 18px;
    height: 18px;
  }

  .tx-item-alasan {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 2px 8px;
    background: var(--bg-recessed);
    border-radius: var(--radius-sm);
    border-left: 2.5px solid var(--brand-primary);
    display: inline-block;
    line-height: 1.35;
  }

  .badge-alasan-lbl {
    font-weight: 700;
    color: var(--brand-primary);
    margin-right: 3px;
  }

  .bento-subbox {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .bento-subbox h4 {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ==========================================================================
     4. CONTENT BENTO GRID (KALENDER INTERAKTIF + TABEL MUTASI)
     ========================================================================== */
  .bento-content-grid {
    display: grid;
    grid-template-columns: 335px minmax(0, 1fr);
    gap: 18px;
    width: 100%;
  }

  .calendar-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
  }

  .cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
  }

  .cal-header h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
  }

  .cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-main);
    display: grid;
    place-items: center;
    transition: all var(--transition);
  }

  .cal-nav-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
  }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px;
  }

  .cal-dayname {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-subtle);
    text-align: center;
    padding: 4px 0;
    text-transform: uppercase;
  }

  .cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
  }

  .cal-cell:hover:not(.empty):not(.future-disabled) {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
  }

  .cal-cell.today {
    color: var(--brand-primary);
    font-weight: 800;
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary-border);
    animation: pulse-cal-today 2.5s ease-in-out infinite;
  }

  .cal-cell.future-disabled {
    opacity: 0.32;
    cursor: not-allowed;
    pointer-events: none;
  }

  .cal-cell.tx-in {
    border: 1.5px solid var(--accent-in);
    background: var(--accent-in-soft);
    color: var(--accent-in);
    font-weight: 800;
    animation: pulse-cal-in 2.5s ease-in-out infinite;
  }

  .cal-cell.tx-out {
    border: 1.5px solid var(--accent-out);
    background: var(--accent-out-soft);
    color: var(--accent-out);
    font-weight: 800;
    animation: pulse-cal-out 2.5s ease-in-out infinite;
  }

  .cal-cell.tx-both {
    border: 1.5px solid #a855f7;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    font-weight: 800;
    animation: pulse-cal-both 2.5s ease-in-out infinite;
  }

  [data-theme="light"] .cal-cell.tx-both {
    color: #9333ea;
  }

  .cal-cell.selected-day {
    outline: 2px solid var(--brand-primary) !important;
    outline-offset: 2px;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
    font-weight: 800;
  }

  .row-highlight-day {
    background: var(--brand-primary-soft) !important;
    border-left: 3px solid var(--brand-primary) !important;
  }

  @keyframes pulse-cal-today {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.22), 0 0 5px rgba(59, 130, 246, 0.12); }
    50% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.05), 0 0 12px rgba(59, 130, 246, 0.4); }
  }

  @keyframes pulse-cal-in {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.22), 0 0 5px rgba(16, 185, 129, 0.12); }
    50% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.05), 0 0 12px rgba(16, 185, 129, 0.4); }
  }

  @keyframes pulse-cal-out {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.22), 0 0 5px rgba(244, 63, 94, 0.12); }
    50% { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.05), 0 0 12px rgba(244, 63, 94, 0.4); }
  }

  @keyframes pulse-cal-both {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.25), 0 0 6px rgba(168, 85, 247, 0.15); }
    50% { box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.06), 0 0 14px rgba(168, 85, 247, 0.5); }
  }

  .cal-legend-block {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  .legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-body);
    font-weight: 600;
  }

  .legend-glow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
  }

  .legend-glow-dot.blue {
    background: var(--accent-in);
  }

  .legend-glow-dot.red {
    background: var(--accent-out);
  }

  .legend-glow-dot.purple {
    background: #a855f7;
  }

  /* TABEL TRANSAKSI & RIWAYAT MUTASI */
  .transactions-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .table-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
    flex-wrap: wrap;
  }

  .table-title {
    flex: 1 1 auto;
    min-width: 220px;
    text-align: left;
  }

  .table-title h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
    letter-spacing: -0.01em;
  }

  .table-title p {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .table-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 380px;
    width: 100%;
    max-width: 400px;
  }

  .search-box {
    position: relative;
    flex: 1;
    width: 100%;
  }

  .search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-subtle);
  }

  .search-box input {
    width: 100%;
    padding: 9px 14px 9px 40px;
    min-height: 42px;
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .search-box input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-soft);
  }

  .btn-refresh {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
  }

  .quick-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0 22px 16px;
    flex-wrap: wrap;
  }

  .filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-muted);
    transition: all var(--transition);
  }

  .filter-pill:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
  }

  .filter-pill.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
  }

  .table-responsive {
    overflow-x: auto;
    max-height: 620px;
  }

  .bento-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 650px;
    font-size: 0.86rem;
  }

  .bento-table th {
    background: var(--bg-recessed);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
  }

  .bento-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-body);
  }

  .bento-table th.col-no,
  .bento-table td.cell-no {
    text-align: center;
  }

  .bento-table th.col-desc,
  .bento-table td.cell-desc {
    text-align: left;
  }

  .bento-table th.col-type,
  .bento-table td.cell-type {
    text-align: center;
  }

  .bento-table th.col-amount,
  .bento-table td.cell-amount {
    text-align: right;
  }

  .bento-table th.col-balance,
  .bento-table td.cell-balance {
    text-align: right;
  }

  .bento-table th.col-actions,
  .bento-table td.cell-actions {
    text-align: center;
  }

  .bento-table tr:hover td {
    background: var(--bg-subtle);
  }

  .bento-table tr.is-cancelled td {
    opacity: 0.52;
    text-decoration: line-through;
  }

  .tx-item-desc {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
  }

  .tx-item-date {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .pill-badge.in {
    background: var(--accent-in-soft);
    color: var(--accent-in);
    border: 1px solid var(--accent-in-border);
  }

  .pill-badge.out {
    background: var(--accent-out-soft);
    color: var(--accent-out);
    border: 1px solid var(--accent-out-border);
  }

  .pill-badge.batal {
    background: var(--bg-recessed);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
  }

  .pill-badge.awal {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary-border);
  }

  .monetary-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
  }

  .monetary-num.in {
    color: var(--accent-in);
  }

  .monetary-num.out {
    color: var(--accent-out);
  }

  .link-nota-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    color: var(--brand-primary);
    font-size: 0.71rem;
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
    transition: all var(--transition);
  }

  .link-nota-btn:hover {
    background: var(--brand-primary);
    color: #fff;
  }

  .tx-actions-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .btn-row-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
  }

  .btn-row-edit {
    color: var(--brand-primary);
    border-color: var(--brand-primary-border);
    background: var(--brand-primary-soft);
  }

  .btn-row-wa {
    color: var(--accent-in);
    border-color: var(--accent-in-border);
    background: var(--accent-in-soft);
  }

  .btn-row-danger {
    color: var(--accent-out);
    border-color: var(--accent-out-border);
    background: var(--accent-out-soft);
  }

  .btn-row-archive {
    color: var(--text-muted);
    border-color: var(--border-color);
    background: var(--bg-surface-alt, #f8fafc);
  }

  .btn-row-archive:hover {
    color: var(--text-primary);
    background: #e2e8f0;
    border-color: #cbd5e1;
  }

  /* TUNGGAKAN SCROLL BOX & TABLE STYLING */
  .tunggakan-scroll-box {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: var(--radius-sm);
  }

  .table-tunggakan th.col-tgk-amount,
  .table-tunggakan td.cell-tgk-amount {
    text-align: right;
  }

  .table-tunggakan th.col-tgk-status,
  .table-tunggakan td.cell-tgk-status {
    text-align: center;
  }

  .table-tunggakan th.col-tgk-actions,
  .table-tunggakan td.cell-tgk-actions {
    text-align: center;
  }

  .table-tunggakan .tgk-actions-wrap {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* ==========================================================================
     5. MODALS (STITCH SECURITY SHIELD & KOREKSI TRANSAKSI)
     ========================================================================== */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    padding: 16px;
    background: rgba(8, 12, 22, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .modal-dialog {
    width: 100%;
    max-width: 430px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-modal);
    position: relative;
    overflow: hidden;
  }

  .modal-dialog::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  }

  .modal-dialog.modal-dialog-wide {
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* STITCH AUTH SHIELD EMBLEM */
  .auth-shield-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .auth-shield-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    color: var(--brand-primary);
    display: grid;
    place-items: center;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.22);
  }

  .auth-role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }

  .auth-role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
  }

  .auth-role-card.active {
    background: var(--brand-primary-soft);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-primary-soft);
  }

  .edit-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-body);
  }

  .edit-nota-box {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-recessed);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .edit-nota-warn {
    font-size: 0.74rem;
    color: var(--accent-warn);
    margin-top: 6px;
    line-height: 1.35;
  }

  .edit-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
  }

  .edit-modal-actions .btn-action {
    min-width: 110px;
  }

  .modal-top {
    position: relative;
    margin-bottom: 16px;
    padding-right: 36px;
    padding-left: 36px;
    text-align: center;
  }

  .modal-heading-centered {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin: 0;
  }

  .btn-close-modal {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    transition: all var(--transition);
    cursor: pointer;
  }

  .btn-close-modal:hover {
    background: var(--accent-out-soft);
    color: var(--accent-out);
    border-color: var(--accent-out-border);
  }

  /* TOMBOL BACK TO TOP (FLOATING ACTION) */
  .btn-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 22px;
    z-index: 1800;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--brand-primary), #1d4ed8);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42), 0 2px 6px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease, background var(--transition);
  }

  .btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .btn-back-to-top:hover {
    background: linear-gradient(135deg, var(--brand-primary-hover), var(--brand-primary));
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
  }

  .btn-back-to-top:active {
    transform: translateY(0) scale(0.96);
  }

  .btn-back-to-top svg {
    width: 22px;
    height: 22px;
  }

  /* TOAST */
  .toast-container {
    position: fixed;
    bottom: 80px;
    right: 22px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
  }

  .toast-msg {
    pointer-events: auto;
    min-width: 260px;
    max-width: 410px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .toast-msg.ok {
    border-left: 4px solid var(--accent-in);
  }

  .toast-msg.err {
    border-left: 4px solid var(--accent-out);
  }

  .toast-msg.info {
    border-left: 4px solid var(--brand-primary);
  }

  /* FOOTER */
  .app-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 36px;
    width: 100%;
  }

  .footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: right;
  }

  .footer-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.88rem;
  }

  .footer-sub {
    color: var(--text-muted);
    font-size: 0.8rem;
  }

  .hidden {
    display: none !important;
  }

  /* ==========================================================================
     6. RESPONSIVE ADAPTATIONS (TABLET & MOBILE)
     ========================================================================== */
  @media (max-width: 1024px) {
    .bento-overview {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 640px) {
    .bento-overview {
      grid-template-columns: 1fr;
    }

    .bento-content-grid {
      grid-template-columns: 1fr;
    }

    .tgk-exec-summary {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .app-shell {
      padding: 12px 12px 36px;
    }

    .form-grid-2,
    .form-grid-3 {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }

    .admin-console {
      padding: 16px 14px;
    }

    .bento-subbox {
      padding: 14px 12px;
    }

    .tx-type-segmented {
      padding: 4px;
      gap: 6px;
    }

    .seg-type-btn {
      padding: 9px 8px;
      font-size: 0.74rem;
      gap: 6px;
    }

    .custom-file-upload {
      padding: 5px 8px;
      gap: 8px;
    }

    .file-upload-btn {
      padding: 6px 11px;
      font-size: 0.74rem;
    }

    .file-name-text {
      font-size: 0.75rem;
    }

    .top-nav {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px 16px 16px;
      gap: 12px;
    }

    .brand-wrap {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
      width: 100%;
    }

    .brand-titles {
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .brand-title-row {
      justify-content: center;
    }

    .brand-subtitle-row {
      justify-content: center;
    }

    .header-divider {
      display: block;
      width: 100%;
      height: 1px;
      background: var(--border-subtle);
      margin: 2px 0;
    }

    .nav-actions {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 8px;
      flex-wrap: wrap;
      width: 100%;
    }

    .quick-action-rail {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      margin-bottom: 16px;
    }

    .sync-status-pill {
      justify-content: center;
      width: 100%;
      padding: 8px 12px;
      text-align: center;
    }

    .action-pill-scroller {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
      overflow: visible;
    }

    .action-pill-scroller.role-kabid #railBtnRefresh {
      grid-column: 1 / -1;
    }

    .rail-pill-btn {
      width: 100%;
      min-width: 0;
      min-height: 42px;
      padding: 9px 10px;
      border-radius: var(--radius-sm);
      font-size: 0.76rem;
      justify-content: center;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .admin-header {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 14px;
    }

    .btn-close-panel {
      width: 100%;
      min-height: 40px;
    }

    .panel-bento-nav {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-bottom: 18px;
    }

    .bento-nav-btn {
      min-height: 56px;
      padding: 10px 6px;
      font-size: 0.76rem;
    }

    .table-topbar {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      padding: 16px 14px 10px;
    }

    .table-search-row {
      max-width: 100%;
      flex: 1 1 auto;
    }

    /* BENTO FILTER GRID DI PORTRAIT / ANDROID (TANPA SCROLLBAR HORIZONTAL) */
    .quick-filter-bar {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 0 14px 14px;
      overflow: visible;
    }

    .filter-pill {
      width: 100%;
      min-width: 0;
      min-height: 38px;
      padding: 8px 10px;
      border-radius: var(--radius-sm);
      justify-content: center;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 0.76rem;
    }

    .quick-filter-bar .filter-pill:last-child {
      grid-column: 1 / -1;
    }

    .btn-back-to-top {
      bottom: 18px;
      right: 16px;
      width: 44px;
      height: 44px;
    }

    .toast-container {
      bottom: 72px;
      right: 14px;
      left: 14px;
      align-items: stretch;
    }

    .toast-msg {
      min-width: 0;
      max-width: 100%;
      width: 100%;
    }

    /* CARD LAYOUT UNTUK MUTASI KAS DI MOBILE */
    .table-responsive {
      max-height: none;
      overflow-x: visible;
      padding: 4px 14px 16px;
    }

    .bento-table {
      min-width: 100%;
      display: block;
    }

    .bento-table thead {
      display: none;
    }

    .bento-table tbody {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    .bento-table tr {
      display: flex;
      flex-direction: column;
      background: var(--bg-subtle);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      box-shadow: var(--shadow-sm);
      gap: 8px;
      position: relative;
      transition: border-color var(--transition), box-shadow var(--transition);
    }

    .bento-table tr:hover {
      border-color: var(--border-strong);
    }

    .bento-table tr.is-cancelled {
      background: var(--bg-recessed);
      border-style: dashed;
    }

    .bento-table td {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      border: none;
      width: 100%;
    }

    .bento-table td.cell-no {
      display: inline-flex;
      position: absolute;
      top: 14px;
      right: 16px;
      font-family: var(--font-mono);
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--text-subtle);
      width: auto;
    }

    .bento-table td.cell-desc {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      padding-right: 48px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--border-subtle);
    }

    .bento-table td.cell-type {
      margin-top: 2px;
    }

    .bento-table td.cell-type::before {
      content: "Jenis Mutasi";
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .bento-table td.cell-amount {
      margin-top: 2px;
    }

    .bento-table td.cell-amount::before {
      content: "Nominal";
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .bento-table td.cell-balance {
      margin-top: 2px;
    }

    .bento-table td.cell-balance::before {
      content: "Saldo Kas";
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .bento-table td.col-actions {
      padding-top: 10px;
      margin-top: 4px;
      border-top: 1px solid var(--border-subtle);
      justify-content: stretch;
    }

    .bento-table td.col-actions .tx-actions-wrap {
      display: flex;
      gap: 8px;
      width: 100%;
    }

    .bento-table td.col-actions .btn-row-action {
      flex: 1;
      width: auto;
      justify-content: center;
      padding: 8px 12px;
      font-size: 0.8rem;
      min-height: 38px;
    }

    /* TUNGGAKAN CARD STYLING ON MOBILE */
    .tunggakan-scroll-box {
      max-height: 420px;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 4px 2px 10px;
    }

    .table-tunggakan tbody {
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
    }

    .table-tunggakan tr.tgk-item-row {
      display: flex;
      flex-direction: column;
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      box-shadow: var(--shadow-sm);
      gap: 8px;
      position: relative;
    }

    .table-tunggakan td {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0;
      border: none;
      width: 100%;
    }

    .table-tunggakan td.cell-tgk-desc {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      padding-bottom: 8px;
      border-bottom: 1px dashed var(--border-subtle);
      width: 100%;
    }

    .table-tunggakan td.cell-tgk-amount::before {
      content: "Nominal Tagihan";
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .table-tunggakan td.cell-tgk-status::before {
      content: "Status Iuran";
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }

    .table-tunggakan td.cell-tgk-actions {
      padding-top: 10px;
      margin-top: 4px;
      border-top: 1px solid var(--border-subtle);
      width: 100%;
    }

    .table-tunggakan .tgk-actions-wrap {
      display: flex;
      gap: 8px;
      width: 100%;
    }

    .table-tunggakan .tgk-actions-wrap .btn-row-action {
      flex: 1;
      justify-content: center;
      padding: 8px 10px;
      font-size: 0.78rem;
      min-height: 38px;
    }

    .download-action-row {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }

    .download-action-row input[type="month"],
    .year-stepper-box {
      flex: none !important;
      width: 100% !important;
      height: 44px !important;
    }

    .download-btns-wrap {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }

    .download-btns-wrap button {
      min-width: 0;
      width: 100%;
      padding: 8px 10px;
      font-size: 0.76rem;
      white-space: normal;
      line-height: 1.25;
      text-align: center;
    }

    .spj-official-banner {
      align-items: flex-start;
      padding: 14px;
      gap: 12px;
    }

    .spj-official-banner > div {
      min-width: 0;
    }

    .modal-dialog {
      padding: 20px 16px;
    }

    .edit-modal-actions {
      flex-direction: row;
    }

    .edit-modal-actions .btn-action,
    .edit-modal-actions .btn-submit {
      min-width: 0;
      flex: 1;
    }

    .app-footer {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 4px;
      padding: 24px 16px 20px;
    }

    .footer-left,
    .footer-right {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 2px;
    }

    .footer-sep {
      display: none;
    }
  }

/* ============================================================================
   MODERN VISUAL SIGNATURE FOOTER (EXECUTIVE MINIMALIST SPECTRUM BAR)
   ============================================================================ */
.visual-footer {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visual-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 35%, #10b981 70%, #6366f1 100%);
  background-size: 200% 100%;
  animation: footerSpectrumFlow 8s ease infinite;
}

@keyframes footerSpectrumFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.vf-emblem-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-monogram {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary-soft), var(--accent-in-soft));
  border: 1px solid var(--brand-primary-border);
  display: grid;
  place-items: center;
  color: var(--brand-primary);
  flex-shrink: 0;
}

.vf-monogram svg {
  width: 18px;
  height: 18px;
}

.vf-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.vf-bars span {
  width: 4px;
  border-radius: 99px;
  background: var(--brand-primary);
  opacity: 0.72;
  animation: vfBarPulse 2.4s ease-in-out infinite;
}

.vf-bars span:nth-child(1) { height: 8px; animation-delay: 0s; background: #2563eb; }
.vf-bars span:nth-child(2) { height: 15px; animation-delay: 0.25s; background: #0ea5e9; }
.vf-bars span:nth-child(3) { height: 20px; animation-delay: 0.5s; background: #10b981; }
.vf-bars span:nth-child(4) { height: 12px; animation-delay: 0.75s; background: #6366f1; }
.vf-bars span:nth-child(5) { height: 16px; animation-delay: 1s; background: #2563eb; }

@keyframes vfBarPulse {
  0%, 100% { transform: scaleY(0.65); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.vf-divider-wave {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  min-width: 24px;
}

.vf-badge-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 0.02em;
}

.vf-dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 3px;
}

.vf-dot-grid i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.35;
}

.vf-dot-grid i:nth-child(2),
.vf-dot-grid i:nth-child(5),
.vf-dot-grid i:nth-child(9) {
  background: var(--accent-in);
  opacity: 0.9;
}

@media (max-width: 640px) {
  .visual-footer {
    padding: 14px 16px;
    gap: 10px;
  }
  .vf-divider-wave {
    display: none;
  }
  .vf-chip {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}
