/* ===============================
   BAS – FULL BANKING UI STYLESHEET
   SAFE FULL REPLACEMENT
================================ */

/* ---------- ROOT THEME ---------- */
:root{
    --primary:#003087;
    --primary-light:#0059c1;
    --bg:#f4f6f9;
    --card:#ffffff;
    --text:#111111;
    --muted:#6b7280;
    --danger:#d93025;
    --success:#0f9d58;
    --radius:14px;
    --shadow:0 8px 30px rgba(0,0,0,.08);
}

/* ---------- BADGES / CHIPS ---------- */
.badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    border:1px solid rgba(0,0,0,.12);
    background:rgba(0,0,0,.03);
}

.badge.success{border-color:rgba(15,157,88,.35); background:rgba(15,157,88,.10); color:var(--success);}
.badge.warning{border-color:rgba(245,158,11,.35); background:rgba(245,158,11,.12); color:#b45309;}
.badge.danger{border-color:rgba(217,48,37,.35); background:rgba(217,48,37,.10); color:var(--danger);}
.badge.info{border-color:rgba(0,48,135,.25); background:rgba(0,48,135,.08); color:var(--primary);}
.badge.neutral{border-color:rgba(0,0,0,.10); background:rgba(0,0,0,.03); color:var(--text);}

/* ---------- SMALL UI HELPERS ---------- */
.muted{color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.divider{height:1px;background:rgba(0,0,0,.08);margin:14px 0;}

/* ---------- DARK MODE ---------- */
body.dark{
    --bg:#0e1621;
    --card:#141d2b;
    --text:#eaeaea;
    --muted:#9ca3af;
}

/* ---------- GLOBAL ---------- */
*{box-sizing:border-box}

body{
    margin:0;
    font-family:system-ui,-apple-system,BlinkMacSystemFont;
    background:var(--bg);
    color:var(--text);
}

a{text-decoration:none;color:inherit}

h1,h2,h3{margin:0 0 10px}

p{margin:6px 0;color:var(--muted)}

button{cursor:pointer}

/* ---------- TOP BAR ---------- */
.topbar{
    height:56px;
    background:linear-gradient(90deg,var(--primary),var(--primary-light));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 18px;
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1002;
}

.menu-btn{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:600;
}

.menu-btn i{font-size:20px}

.topbar .title{
    font-weight:700;
    letter-spacing:.3px;
}

.topbar .actions{
    display:flex;
    gap:14px;
}

/* ---------- SIDE MENU ---------- */
.side-menu{
    position:fixed;
    top:0;
    left:-260px;
    width:260px;
    height:100%;
    background:var(--card);
    padding-top:70px;
    transition:.3s ease;
    z-index:1003;
    box-shadow:var(--shadow);
}

.side-menu.active{left:0}

.side-menu a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 20px;
    font-weight:500;
    color:var(--text);
}

.side-menu a i{width:18px}

.side-menu a:hover{
    background:rgba(0,0,0,.05);
}

.side-menu .danger{
    color:var(--danger);
}

/* ---------- MENU OVERLAY ---------- */
.menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    z-index:1001;
}

.menu-overlay.active{display:block}

/* ---------- CONTENT ---------- */
.content{
    padding:90px 24px 24px;
}

/* ---------- CARDS ---------- */
.card{
    background:var(--card);
    border-radius:var(--radius);
    padding:24px;
    box-shadow:var(--shadow);
    margin-bottom:20px;
    animation:fadeUp .4s ease;
}

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

/* ---------- GRID ---------- */
.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:18px;
}

/* ---------- DASHBOARD TILES ---------- */
.stat-card{
    background:var(--card);
    border-radius:var(--radius);
    padding:22px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.25s ease;
}

.stat-card:hover{
    transform:translateY(-5px);
}

.stat-card i{
    font-size:26px;
    color:var(--primary);
    margin-bottom:10px;
}

.stat-card strong{
    font-size:18px;
}

/* ---------- ACCOUNT LIST ---------- */
.account-item{
    padding:18px;
    border-radius:var(--radius);
    background:var(--card);
    box-shadow:var(--shadow);
    margin-bottom:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    transition:.25s;
}

.account-item:hover{
    transform:translateY(-4px);
}

.account-info small{
    color:var(--muted);
}

/* ---------- FORMS ---------- */
input,select{
    width:100%;
    padding:12px;
    margin:8px 0;
    border-radius:10px;
    border:1px solid #ccc;
    background:transparent;
    color:var(--text);
}

input:focus{
    outline:none;
    border-color:var(--primary);
}

/* ---------- BUTTONS ---------- */
.btn{
    padding:12px;
    border-radius:10px;
    border:none;
    font-weight:600;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-primary:hover{
    background:var(--primary-light);
}

.btn-danger{
    background:var(--danger);
    color:#fff;
}

.btn-success{
    background:var(--success);
    color:#fff;
}

/* ---------- CENTERED PAGES ---------- */
.center{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}

/* ---------- AUTH CARDS ---------- */
.auth-card{
    width:100%;
    max-width:420px;
}

/* ---------- TRANSACTIONS ---------- */
.tx{
    display:flex;
    justify-content:space-between;
    padding:14px 0;
    border-bottom:1px solid rgba(0,0,0,.08);
}

.tx:last-child{border-bottom:none}

.tx.in{color:var(--success)}
.tx.out{color:var(--danger)}

/* ---------- TOGGLES ---------- */
.theme-toggle{
    cursor:pointer;
    font-size:18px;
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:600px){
    .content{padding:90px 16px 16px}
}


/* 🌙 DARK MODE TOGGLE FIX */
.theme-toggle{
    display:flex;
    align-items:center;
    gap:6px;
}

.theme-text{
    font-size:14px;
    font-weight:500;
    white-space:nowrap;
}

/* 🌙 TOPBAR DARK MODE TOGGLE */
.topbar .theme-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    color:#fff;
    font-weight:500;
}

.topbar .theme-toggle i{
    font-size:18px;
}

.topbar .theme-toggle span{
    font-size:14px;
    white-space:nowrap;
}

/* TOPBAR LAYOUT FIX */
.topbar{
    display:flex;
    align-items:center;
}

/* Center title properly */
.topbar-title{
    flex:1;
    text-align:center;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Keep right toggle visible */
.topbar .theme-toggle{
    flex-shrink:0;
}

/* ===== TOPBAR FIX ===== */
.topbar{
    display:flex;
    align-items:center;
    gap:12px;
}

/* LEFT */
.menu-btn{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
}

/* CENTER */
.topbar-title{
    flex:1;
    text-align:center;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* RIGHT */
.theme-toggle{
    display:flex;
    align-items:center;
    gap:6px;
    flex-shrink:0;
    color:#fff;
    cursor:pointer;
}

.theme-toggle span{
    display:inline;
    font-size:14px;
}

/* ===== BANK INFO UI ===== */
.info-label{
    font-size:13px;
    color:var(--muted);
    margin-top:14px;
}

.info-value{
    font-size:16px;
    font-weight:600;
    color:var(--text);
}


/* ===== OWNER SETTINGS FIX ===== */

/* Each settings card */
.settings-card {
    display: flex;
    flex-direction: column;
    gap: 14px;              /* space between title, text, button */
}

/* Description text */
.settings-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Button container */
.settings-actions {
    margin-top: 12px;      /* PUSH buttons away from text */
}

/* Buttons inside settings */
.settings-actions .btn {
    width: fit-content;    /* prevents ugly full-width buttons */
    padding: 10px 18px;
}


.settings-card{
    margin-bottom:24px;
}

.settings-actions{
    margin-top:14px;
}


/* ===============================
   BAS – ACCOUNT DASHBOARD UPGRADE
   Scoped: only affects pages with body.accdash
================================ */

body.accdash .content{
    max-width: 980px;
    margin: 0 auto;
}

/* HERO */
body.accdash .acc-hero{
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06)),
        linear-gradient(90deg, var(--primary), var(--primary-light));
    color: #fff;
    margin-bottom: 18px;
    overflow: hidden;
}

body.dark.accdash .acc-hero{
    background:
        linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
        linear-gradient(90deg, #0b2c66, #094aa1);
}

body.accdash .acc-hero-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.accdash .acc-name{
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

body.accdash .acc-sub{
    display:flex;
    align-items:center;
    gap: 8px;
    font-size: 13px;
    opacity: .95;
    margin-top: 6px;
}

body.accdash .acc-sub .dot{ opacity: .75; }

body.accdash .acc-status{
    display:flex;
    align-items:center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

body.accdash .acc-label{
    font-size: 13px;
    opacity: .95;
    margin-bottom: 6px;
}

body.accdash .acc-balance{
    display:flex;
    align-items:center;
    gap: 10px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: .3px;
}

body.accdash .icon-btn{
    border: none;
    background: rgba(255,255,255,.18);
    color: #fff;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display:flex;
    align-items:center;
    justify-content:center;
}

body.accdash .icon-btn:hover{
    background: rgba(255,255,255,.26);
}

/* HERO ACTIONS (pill buttons) */
body.accdash .acc-hero-actions{
    display:flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

body.accdash .qa-btn{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,.18);
}

body.accdash .qa-btn:hover{
    background: rgba(255,255,255,.22);
}

body.accdash .qa-primary{
    background: rgba(255,255,255,.22);
}

/* Tiles */
body.accdash .acc-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

body.accdash .acc-tile{
    background: var(--card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 16px;
    transition: .2s ease;
}

body.accdash .acc-tile:hover{
    transform: translateY(-3px);
}

body.accdash .tile-ico{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(0,0,0,.06);
    margin-bottom: 10px;
}

body.dark.accdash .tile-ico{
    background: rgba(255,255,255,.08);
}

body.accdash .tile-ico i{
    color: var(--primary);
    font-size: 18px;
}

body.accdash .tile-title{
    font-weight: 900;
    margin-bottom: 4px;
}

body.accdash .tile-sub{
    color: var(--muted);
    font-size: 13px;
}

/* Details card */
body.accdash .acc-details-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.accdash .pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    background: rgba(0,0,0,.06);
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 700;
    font-size: 13px;
}

body.dark.accdash .pill{
    background: rgba(255,255,255,.08);
}

body.accdash .details-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 12px;
}

body.accdash .detail-item{
    background: rgba(0,0,0,.03);
    border-radius: 14px;
    padding: 12px;
}

body.dark.accdash .detail-item{
    background: rgba(255,255,255,.06);
}

body.accdash .label{
    display:block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

body.accdash .value{
    display:block;
    font-weight: 900;
    font-size: 14px;
}



/* Mobile */
@media(max-width: 720px){
    body.accdash .acc-grid{
        grid-template-columns: 1fr;
    }
    body.accdash .details-grid{
        grid-template-columns: 1fr;
    }
    body.accdash .acc-balance{
        font-size: 28px;
    }
}


body.accdash .tx-list{
    margin-top: 12px;
  }
  
  body.accdash .tx-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  
  body.dark.accdash .tx-row{
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  
  body.accdash .tx-left{
    display:flex;
    flex-direction:column;
    gap: 4px;
  }
  
  body.accdash .tx-title{
    font-weight: 900;
  }
  
  body.accdash .tx-sub{
    color: var(--muted);
    font-size: 13px;
  }
  
  body.accdash .tx-right{
    font-weight: 900;
    white-space: nowrap;
  }
  
  body.accdash .tx-right.in{ color: var(--success); }
  body.accdash .tx-right.out{ color: var(--danger); }
  
  body.accdash .service-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 14px;
  }
  
  body.accdash .service-item{
    background: rgba(0,0,0,.03);
    border-radius: 14px;
    padding: 14px;
    display:flex;
    align-items:center;
    gap: 10px;
    font-weight: 800;
  }
  
  body.dark.accdash .service-item{
    background: rgba(255,255,255,.06);
  }
  

  /* ===== SIDE MENU UPGRADE ===== */
.side-menu{
    display:flex;
    flex-direction:column;
    padding-top:0;                 /* remove old padding-top */
    overflow:hidden;
}

.side-header{
    padding:18px 16px;
    border-bottom:1px solid rgba(0,0,0,.06);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:56px;               /* because topbar is fixed */
}

body.dark .side-header{
    border-bottom:1px solid rgba(255,255,255,.08);
}

.side-user{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}

.side-avatar{
    width:44px;
    height:44px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.06);
}

body.dark .side-avatar{
    background:rgba(255,255,255,.08);
}

.side-avatar i{
    font-size:18px;
    color:var(--primary);
}

.side-meta{
    min-width:0;
}

.side-name{
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.side-sub{
    font-size:12px;
    color:var(--muted);
    margin-top:2px;
}

.side-close{
    border:none;
    background:transparent;
    font-size:18px;
    cursor:pointer;
    color:var(--muted);
    padding:8px;
    border-radius:10px;
}

.side-close:hover{
    background:rgba(0,0,0,.06);
}

body.dark .side-close:hover{
    background:rgba(255,255,255,.08);
}

.side-nav{
    padding:10px 10px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.nav-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 12px;
    border-radius:12px;
    font-weight:700;
}

.nav-item i{
    width:20px;
    text-align:center;
}

.nav-item:hover{
    background:rgba(0,0,0,.05);
}

body.dark .nav-item:hover{
    background:rgba(255,255,255,.08);
}

.nav-item.active{
    background:rgba(0,48,135,.10);
    color:var(--primary);
}

body.dark .nav-item.active{
    background:rgba(0,89,193,.18);
}

.side-footer{
    margin-top:auto;
    padding:10px;
    border-top:1px solid rgba(0,0,0,.06);
}

body.dark .side-footer{
    border-top:1px solid rgba(255,255,255,.08);
}

.nav-item.danger{
    color:var(--danger);
}


/* ===== DASHBOARD POLISH ===== */
.details-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}
.label{
    display:block;
    font-size:12px;
    color:var(--muted);
    margin-bottom:4px;
}
.value{
    display:block;
    font-size:15px;
    font-weight:700;
    color:var(--text);
}
.tx{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px 0;
    border-bottom:1px solid rgba(0,0,0,.08);
}
.tx:last-child{border-bottom:none}


/* ===== BANK ALERTS (Owner Activities) ===== */
.alert-list{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  
  .bank-alert{
    display:flex;
    gap:12px;
    padding:14px;
    border-radius:14px;
    background:rgba(0,0,0,.03);
    border:1px solid rgba(0,0,0,.06);
    position:relative;
    overflow:hidden;
  }
  
  body.dark .bank-alert{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
  }
  
  /* left accent like real banking notifications */
  .bank-alert::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    background:linear-gradient(180deg, var(--primary), var(--primary-light));
  }
  
  .bank-alert-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,48,135,.12);
    color:var(--primary);
    flex-shrink:0;
  }
  
  body.dark .bank-alert-icon{
    background:rgba(0,89,193,.18);
  }
  
  .bank-alert-body{
    flex:1;
    min-width:0;
  }
  
  .bank-alert-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  
  .bank-alert-title{
    font-weight:800;
    font-size:15px;
    line-height:1.2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  
  .bank-alert-badge{
    font-size:12px;
    font-weight:700;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(15,157,88,.12);
    color:var(--success);
    white-space:nowrap;
  }
  
  .bank-alert-text{
    margin-top:6px;
    color:var(--muted);
    font-size:14px;
    line-height:1.35;
  }
  
  .bank-alert-meta{
    margin-top:10px;
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:var(--muted);
  }

  
  .badge-notice{
    background:rgba(0,89,193,.12);
    color:var(--primary);
  }
  
  .badge-credit{
    background:rgba(15,157,88,.12);
    color:var(--success);
  }
  
  .badge-debit{
    background:rgba(234,67,53,.12);
    color:var(--danger);
  }
  


/* ===== OWNER DASHBOARD CTA UPGRADE ===== */
.wide{
    grid-column: 1 / -1;
  }
  
  .stat-cta{
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-weight:800;
  }
  
  .stat-cta i{
    color:#fff;
    margin:0;
  }
  
  .stat-cta:hover{
    transform: translateY(-5px);
  }
 
  
/* ===== BANK-LIKE STATEMENT LIST ===== */
.statement{
    margin-top: 10px;
  }
  
  .stmt-row{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(0,0,0,.07);
  }
  
  body.dark .stmt-row{
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  
  .stmt-row:last-child{
    border-bottom:none;
  }
  
  .stmt-left{
    display:flex;
    gap: 12px;
    min-width:0;
    flex:1;
  }
  
  .stmt-ico{
    width:44px;
    height:44px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    background: rgba(0,0,0,.05);
  }
  
  body.dark .stmt-ico{
    background: rgba(255,255,255,.08);
  }
  
  .stmt-ico i{
    font-size: 16px;
    color: var(--primary);
  }
  
  .stmt-ico.in{
    background: rgba(15,157,88,.12);
  }
  .stmt-ico.in i{
    color: var(--success);
  }
  
  .stmt-ico.out{
    background: rgba(217,48,37,.12);
  }
  .stmt-ico.out i{
    color: var(--danger);
  }
  
  .stmt-ico.notice{
    background: rgba(0,89,193,.12);
  }
  .stmt-ico.notice i{
    color: var(--primary);
  }
  
  .stmt-text{
    min-width:0;
  }
  
  .stmt-title{
    font-weight: 900;
    font-size: 15px;
    line-height: 1.2;
  }
  
  .stmt-sub{
    margin-top: 4px;
    color: var(--muted);
    font-size: 13.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 520px;
  }
  
  .stmt-meta{
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
  }
  
  .stmt-right{
    text-align:right;
    flex-shrink:0;
  }
  
  .stmt-amt{
    font-weight: 900;
    font-size: 16px;
    white-space:nowrap;
  }
  
  .stmt-amt.in{ color: var(--success); }
  .stmt-amt.out{ color: var(--danger); }
  
  .stmt-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0,0,0,.06);
    color: var(--muted);
  }
  
  body.dark .stmt-badge{
    background: rgba(255,255,255,.08);
  }
  
  /* Mobile: allow subtext wrap */
  @media(max-width: 720px){
    .stmt-sub{
      white-space:normal;
      max-width: 240px;
    }
  }
  


  
  /* ===== STATEMENT LIST (FOR account_transactions.html) ===== */
.statement-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
  }
  
  .statement-sub{
    margin:6px 0 0;
    color:var(--muted);
    font-size:13px;
  }
  
  .statement-list{
    background: rgba(0,0,0,.02);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
  }
  
  body.dark .statement-list{
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
  }
  
  /* Row layout */
  .stmt2-row{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    padding:14px 14px !important;
    position:relative !important;
    margin:0 !important;
  }
  
  .stmt2-row + .stmt2-row{
    border-top: 1px solid rgba(0,0,0,.06);
  }
  body.dark .stmt2-row + .stmt2-row{
    border-top: 1px solid rgba(255,255,255,.08);
  }
  
  /* Left color bar */
  .stmt2-row::before{
    content:"";
    position:absolute;
    left:0; top:0; bottom:0;
    width:4px;
    background: rgba(0,0,0,.08);
  }
  .stmt2-row.credit::before{ background: rgba(15,157,88,.65); }
  .stmt2-row.debit::before{  background: rgba(217,48,37,.70); }
  .stmt2-row.notice::before{ background: rgba(0,89,193,.70); }
  
  .stmt2-left{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    min-width:0 !important;
    flex:1 !important;
  }
  
  .stmt2-ico{
    width:44px;
    height:44px;
    border-radius:14px;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-shrink:0 !important;
    background: rgba(0,0,0,.06);
  }
  body.dark .stmt2-ico{ background: rgba(255,255,255,.08); }
  
  .stmt2-row.credit .stmt2-ico{ background: rgba(15,157,88,.14); }
  .stmt2-row.credit .stmt2-ico i{ color: var(--success); }
  .stmt2-row.debit .stmt2-ico{ background: rgba(217,48,37,.14); }
  .stmt2-row.debit .stmt2-ico i{ color: var(--danger); }
  .stmt2-row.notice .stmt2-ico{ background: rgba(0,89,193,.14); }
  .stmt2-row.notice .stmt2-ico i{ color: var(--primary); }
  
  .stmt2-ico i{
    font-size:16px;
    color: var(--primary);
  }
  
  .stmt2-text{ min-width:0; }
  
  .stmt2-title{
    font-weight:900;
    font-size:15px;
    line-height:1.2;
  }
  
  .stmt2-desc{
    margin-top:3px;
    color: var(--muted);
    font-size:13.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:560px;
  }
  
  .stmt2-meta{
    margin-top:6px;
    color: var(--muted);
    font-size:12px;
  }
  
  .stmt2-right{
    text-align:right !important;
    flex-shrink:0 !important;
  }
  
  .stmt2-amt{
    font-weight:1000;
    font-size:16px;
    white-space:nowrap;
  }
  
  .stmt2-amt.credit{ color: var(--success); }
  .stmt2-amt.debit{ color: var(--danger); }
  
  .stmt2-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background: rgba(0,0,0,.06);
    color: var(--muted);
  }
  body.dark .stmt2-badge{ background: rgba(255,255,255,.08); }
  
  .stmt2-row:hover{ background: rgba(0,0,0,.025); }
  body.dark .stmt2-row:hover{ background: rgba(255,255,255,.04); }
  
  @media(max-width:720px){
    .stmt2-desc{ white-space:normal; max-width:240px; }
  }
  

  /* ===== Confirm Airtime (Pro Bank / PayPal-ish) ===== */
.pay-card{ padding:18px; }
.pay-header{
  display:grid;
  grid-template-columns: 1fr 340px;
  gap:16px;
  align-items:start;
  margin-bottom:14px;
}
.pay-title{ margin:0; font-size:22px; letter-spacing:-.2px; }
.pay-sub{ margin-top:6px; }

.pay-totalbox{
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  border-radius:14px;
  padding:12px 14px;
}
.trow{ display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(0,0,0,0.08); }
.trow:last-child{ border-bottom:none; }
.ttotal strong{ font-size:18px; }

.pay-error{
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(176,0,32,.08);
  border:1px solid rgba(176,0,32,.18);
  color: #b00020;
  font-weight:800;
}

.pay-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:16px;
  align-items:start;
}

.sectitle{
  font-weight:900;
  margin-bottom:10px;
}

.pay-summary{
  border:1px solid rgba(0,0,0,0.10);
  border-radius:16px;
  padding:14px;
  background:#fff;
}
.sumrow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.sumrow:last-child{ border-bottom:none; }
.sumdivider{
  height:1px;
  background: rgba(0,0,0,0.08);
  margin:10px 0;
}
.sumtotal strong{ font-size:18px; }

.pay-methods{
  border:1px solid rgba(0,0,0,0.10);
  border-radius:16px;
  padding:14px;
  background:#fff;
}

.methods{ display:grid; gap:10px; }

.method{
  display:block;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
  background:#fff;
}
.method:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: rgba(0,58,140,.35);
}
.method input{ transform: scale(1.1); margin-right:12px; }

.method-body{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.method-left{ display:flex; flex-direction:column; gap:4px; }
.method-name{ font-weight:900; }
.method-desc{ font-size:12px; line-height:1.35; }

.method-right{ display:flex; align-items:center; }

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,0.04);
  border:1px solid rgba(0,0,0,0.10);
  font-weight:900;
  font-size:12px;
}
.tag.good{
  background: rgba(19,115,51,.10);
  border-color: rgba(19,115,51,.22);
  color:#137333;
}
.tag.warn{
  background: rgba(178,106,0,.12);
  border-color: rgba(178,106,0,.22);
  color:#b26a00;
}

.method.disabled{
  opacity:.55;
  cursor:not-allowed;
}
.method.disabled:hover{
  transform:none;
  box-shadow:none;
  border-color: rgba(0,0,0,0.12);
}

.network-box{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(0,0,0,0.08);
}
.network-select{
  margin-top:8px;
  width:100%;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.14);
  background:#fff;
}

.pay-form{ margin-top:14px; }

@media (max-width: 980px){
  .pay-header{ grid-template-columns: 1fr; }
  .pay-grid{ grid-template-columns: 1fr; }
}


/* ===== Gift Card Shop (Pro) ===== */
.shop-hero{ padding:16px; margin-bottom:14px; }

.shop-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.shop-card{
  display:block;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

.shop-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  border-color: rgba(0,58,140,.28);
}

.shop-img{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

.shop-img img{
  width:100%;
  height:150px;
  object-fit:cover;
  display:block;
}

.shop-body{
  padding:12px 12px 14px;
  display:grid;
  gap:6px;
}

.shop-name{
  font-weight:900;
  font-size:15px;
}

.shop-sub{
  font-size:12px;
  line-height:1.3;
}

.shop-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:8px;
}

.shop-pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.10);
  font-weight:800;
  font-size:12px;
}

.shop-link{
  font-weight:900;
  color: rgba(0,58,140,1);
  font-size:13px;
}





/* ===== Admin Dashboard UI ===== */

.admin-hero{ padding:18px; display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.admin-hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.admin-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:14px;
}

.admin-tile{
  display:block;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}
.admin-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  border-color: rgba(0,58,140,.28);
}

.tile-top{ display:flex; gap:12px; align-items:flex-start; }
.tile-ico{
  width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,58,140,.08);
  border:1px solid rgba(0,58,140,.16);
  font-size:18px;
}
.tile-title{ font-weight:900; }
.tile-sub{ font-size:12px; margin-top:2px; }

.tile-num{
  margin-top:14px;
  font-size:34px;
  font-weight:1000;
  letter-spacing:-.5px;
}

.admin-tile-sm .tile-num{ font-size:28px; }
@media (max-width: 860px){
  .admin-hero{ flex-direction:column; }
}



/* ===== Crypto Wallet ===== */
.cw-hero{ padding:18px; display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.cw-hero-title{ font-weight:1000; font-size:18px; display:flex; gap:10px; align-items:center; }
.cw-hero-right{ display:flex; gap:10px; flex-wrap:wrap; }
.cw-chip{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(0,58,140,.08);
  border: 1px solid rgba(0,58,140,.18);
  font-weight:900; font-size:12px;
}

.cw-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; }

.cw-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
}
.cw-balance{
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#fff;
}
.cw-coin{ display:flex; gap:10px; align-items:center; }
.cw-coin-icon{
  width:42px; height:42px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,58,140,.08);
  border:1px solid rgba(0,58,140,.16);
}
.cw-coin-name{ font-weight:1000; }
.cw-coin-sub{ font-size:12px; }
.cw-amt{ font-weight:1000; font-size:16px; }

.cw-empty{
  margin-top:12px;
  padding:14px;
  border-radius:16px;
  border:1px dashed rgba(0,0,0,.20);
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.cw-empty-ico{
  width:42px; height:42px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.10);
}

.cw-history{ margin-top:12px; display:grid; gap:10px; }
.cw-row{
  padding:12px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  background:#fff;
}
.cw-row-left{ display:flex; gap:12px; align-items:flex-start; }
.cw-row-icon{
  width:38px; height:38px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
}
.cw-row-icon.in{ background: rgba(19,115,51,.10); border-color: rgba(19,115,51,.18); }
.cw-row-icon.out{ background: rgba(176,0,32,.08); border-color: rgba(176,0,32,.18); }

.cw-row-title{ font-weight:1000; }
.cw-row-sub{ font-size:12px; line-height:1.35; }
.cw-row-right{ font-weight:1000; white-space:nowrap; }
.cw-row-right.in{ color: rgba(19,115,51,1); }
.cw-row-right.out{ color: rgba(176,0,32,1); }
.cw-row-coin{ font-size:12px; opacity:.75; margin-left:6px; }
@media (max-width: 860px){
  .cw-hero{ flex-direction:column; }
}



/* style.css — Sell orders table upgrade */

.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.table-wrap{
  margin-top:14px;
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.08);
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:820px;
  background:#fff;
}

.table-clean thead th{
  position:sticky;
  top:0;
  background:#f7f9fc;
  z-index:1;
  text-align:left;
  font-size:13px;
  letter-spacing:.2px;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,0.08);
}

.table-clean tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  vertical-align:top;
}

.table-clean tbody tr:nth-child(odd){
  background:#fcfdff;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ref-line{
  font-weight:900;
  font-size:13px;
}

.small{ font-size:12px; }

.cell-strong{
  font-weight:800;
}

.payout-line{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
  font-size:12px;
  font-weight:700;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
}

.badge-submitted{ background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.badge-approved{ background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.badge-paid{ background:#ecfdf5; border-color:#a7f3d0; color:#065f46; }
.badge-rejected{ background:#fef2f2; border-color:#fecaca; color:#991b1b; }

.empty-state{
  margin-top:14px;
  border:1px dashed rgba(0,0,0,0.18);
  border-radius:16px;
  padding:18px;
  display:grid;
  gap:10px;
  justify-items:start;
  background:#fbfbfd;
}

.empty-ico{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
}