:root{
  --bg:#0b1220;--bg2:#0f172a;--panel:#121b2d;--panel2:#172235;--panel3:#0f1829;
  --text:#f7f9ff;--muted:#9aa8bd;--soft:#c8d2e2;--line:rgba(148,163,184,.16);
  --blue:#6078ff;--blue2:#3657e8;--green:#30d477;--red:#ff6464;--amber:#ff9f2f;
  --shadow:0 26px 80px rgba(0,0,0,.30);--radius:22px;
}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:'Inter','Noto Sans Thai',system-ui,sans-serif;background:radial-gradient(circle at 65% 12%,rgba(59,130,246,.16),transparent 34%),linear-gradient(135deg,#0a1020,#101a2c 50%,#0b1323);color:var(--text)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}.app-shell{display:grid;grid-template-columns:300px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:28px 20px;background:linear-gradient(180deg,rgba(22,32,50,.92),rgba(13,20,34,.96));border-right:1px solid var(--line);box-shadow:20px 0 60px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:34px}.brand{display:flex;align-items:center;gap:15px;padding:4px 8px}.brand-logo{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#7c8cff,#3557e7);color:#fff;display:grid;place-items:center;font-weight:900;letter-spacing:-.06em;box-shadow:0 16px 35px rgba(58,88,232,.32)}.brand-name{font-size:20px;font-weight:900;letter-spacing:-.03em}.brand-subtitle{display:none}.menu{display:grid;gap:11px}.menu a{display:flex;align-items:center;gap:14px;min-height:58px;padding:0 18px;border-radius:14px;color:#c6d0e2;font-weight:800;border:1px solid transparent;transition:.18s ease}.menu a span{font-size:19px;color:#aab7cf}.menu a:hover,.menu a.active{background:linear-gradient(135deg,rgba(96,120,255,.28),rgba(96,120,255,.12));border-color:rgba(126,145,255,.20);color:#dfe6ff;box-shadow:0 12px 30px rgba(0,0,0,.12)}.logout-link{margin-top:auto;display:flex;align-items:center;gap:14px;min-height:54px;padding:0 18px;color:#cbd5e1;font-weight:800;border-radius:14px}.logout-link:hover{background:rgba(255,255,255,.06)}.main{min-width:0}.topbar{min-height:138px;padding:34px 48px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(12,19,34,.72),rgba(12,19,34,.28));backdrop-filter:blur(16px);display:flex;align-items:center;justify-content:space-between;gap:20px}.topbar h1{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.04em}.topbar p{margin:5px 0 0;color:var(--muted);font-weight:600}.eyebrow{display:none}.top-user{display:flex;align-items:center;gap:13px}.bell{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#d1d8e8;background:rgba(255,255,255,.04);border:1px solid var(--line)}.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#7389ff,#324fd3);display:grid;place-items:center;font-weight:900;color:white;box-shadow:0 12px 24px rgba(56,81,213,.28)}.content{padding:32px 48px 44px;max-width:1540px}.summary-row{display:flex;gap:18px;margin-bottom:28px}.summary-card{min-width:295px;min-height:132px;padding:24px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.035));box-shadow:var(--shadow);display:flex;align-items:center;gap:20px}.summary-icon{width:76px;height:76px;border-radius:18px;background:linear-gradient(135deg,#7186ff,#3657e7);display:grid;place-items:center;font-size:34px;box-shadow:0 18px 36px rgba(54,87,231,.26)}.summary-card span{display:block;color:#d5ddec;font-weight:800}.summary-card strong{font-size:34px;line-height:1;font-weight:900;letter-spacing:-.05em}.summary-card small{margin-left:6px;color:var(--muted);font-weight:700}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:26px}.card{background:linear-gradient(160deg,rgba(255,255,255,.075),rgba(255,255,255,.035));border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:26px}.machine-card{display:flex;flex-direction:column;gap:18px;overflow:hidden}.machine-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.machine-title{font-size:22px;font-weight:900;letter-spacing:-.03em}.machine-code{display:none}.live-line{margin-top:8px;display:flex;align-items:center;gap:8px;font-weight:800;font-size:14px;color:var(--muted)}.live-line span{width:9px;height:9px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.12)}.live-line.online{color:var(--green)}.live-line.online span{background:var(--green);box-shadow:0 0 0 4px rgba(48,212,119,.12)}.live-line.offline{color:var(--red)}.live-line.offline span{background:var(--red);box-shadow:0 0 0 4px rgba(255,100,100,.13)}.badge{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:9px 13px;border-radius:11px;font-size:12px;font-weight:900;border:1px solid var(--line);background:rgba(255,255,255,.06);color:#dbe4f2}.badge.online,.online{color:var(--green);background:rgba(48,212,119,.12);border-color:rgba(48,212,119,.18)}.badge.offline,.offline{color:var(--red);background:rgba(255,100,100,.12);border-color:rgba(255,100,100,.18)}.badge.unknown,.unknown{color:var(--amber);background:rgba(255,159,47,.12);border-color:rgba(255,159,47,.18)}.screen-preview{overflow:hidden;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#080d17;box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);width:100%}.screen-toolbar{height:0;padding:0;overflow:hidden}.screen-stage{position:relative;display:grid;place-items:center;height:174px;background:radial-gradient(circle at 50% 45%,#1e293b,#070b12 76%)}.screen-image{display:none;width:100%;height:100%;object-fit:cover;background:#020617}.screen-placeholder{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:8px;color:#d7deeb;text-align:center;padding:18px;background:linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,.02))}.screen-placeholder strong{font-size:14px}.screen-placeholder small{font-size:12px;color:var(--muted)}.placeholder-icon{font-size:38px;color:#9aa8bd;opacity:.9}.screen-preview.has-error .screen-stage{background:radial-gradient(circle at center,#201f24,#0a0d14)}.actions{display:flex;gap:14px;margin:8px 0 6px}.action-tiles button{flex:1;min-height:86px;border:0;border-radius:15px;display:grid;place-items:center;align-content:center;gap:7px;color:#fff;font-weight:900;cursor:pointer;transition:.18s ease;box-shadow:none}.action-tiles button:hover{transform:translateY(-2px);filter:brightness(1.08)}.btn-icon{font-size:32px;line-height:1}.action-tiles small{font-size:14px}.green,button.green{background:linear-gradient(135deg,rgba(48,212,119,.22),rgba(48,212,119,.12));color:#77f3ac;border:1px solid rgba(48,212,119,.12)}.red,button.red{background:linear-gradient(135deg,rgba(255,100,100,.20),rgba(255,100,100,.10));color:#ff8d8d;border:1px solid rgba(255,100,100,.12)}.yellow,button.yellow{background:linear-gradient(135deg,rgba(255,159,47,.22),rgba(255,159,47,.10));color:#ffb75a;border:1px solid rgba(255,159,47,.13)}.expire-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;color:#b7c2d5;font-size:14px}.expire-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.expire-row b{padding:8px 13px;border-radius:10px;background:rgba(96,120,255,.18);color:#aebcff;font-size:13px}.meta-list{display:grid;gap:9px}.meta-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px dashed var(--line);color:var(--muted)}.meta-row b{color:var(--text);font-weight:800;text-align:right}.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:13px;padding:11px 15px;min-height:42px;background:#26344b;color:white;font-weight:900;cursor:pointer;transition:.16s ease}.btn:hover,button:hover{transform:translateY(-1px)}.btn-primary,button.primary{background:linear-gradient(135deg,var(--blue),var(--blue2))}.btn-light,.btn.ghost{background:rgba(255,255,255,.06);color:#e4e9f5;border:1px solid var(--line);box-shadow:none}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.table-wrap{border:1px solid var(--line);border-radius:18px;overflow:auto;background:rgba(255,255,255,.04);box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:15px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:rgba(255,255,255,.045);color:#b1bdd0;font-size:12px;text-transform:uppercase;letter-spacing:.08em}td{color:#edf3ff}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-group{display:grid;gap:8px}.form-group.full{grid-column:1/-1}label{color:#d3dbea;font-size:13px;font-weight:900}input,select,textarea{width:100%;min-height:44px;padding:12px 14px;border-radius:13px;border:1px solid var(--line);background:rgba(5,10,19,.72);color:var(--text);outline:none}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:rgba(96,120,255,.55);box-shadow:0 0 0 4px rgba(96,120,255,.12)}.alert{border-radius:16px;padding:14px 16px;margin-bottom:18px;font-weight:800}.alert.success{background:rgba(48,212,119,.12);border:1px solid rgba(48,212,119,.20);color:#8ff6ba}.alert.danger{background:rgba(255,100,100,.12);border:1px solid rgba(255,100,100,.20);color:#ff9f9f}.empty{padding:34px;text-align:center;border:1px dashed var(--line);border-radius:18px;background:rgba(255,255,255,.04);color:var(--muted);box-shadow:var(--shadow)}.muted{color:var(--muted)}.inline-form{display:inline}.danger-link{color:#ff8d8d;font-weight:800}.screen-frame{width:100%;height:calc(100vh - 190px);border:1px solid var(--line);border-radius:18px;background:#050914;box-shadow:var(--shadow)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 10%,rgba(96,120,255,.18),transparent 32%),linear-gradient(135deg,#0a1020,#101a2c)}.auth-card{width:min(460px,100%);padding:34px;border-radius:24px;border:1px solid var(--line);background:rgba(18,27,45,.88);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.auth-brand{text-align:center;margin-bottom:26px}.auth-brand .brand-logo{margin:0 auto 14px}.auth-brand h1{margin:0;font-size:30px;letter-spacing:-.04em}.auth-brand p{margin:8px 0 0;color:var(--muted)}.auth-links{margin-top:18px;text-align:center;color:var(--muted)}.auth-links a{color:#aebcff;font-weight:900}.auth-note{margin-top:18px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--muted);font-size:13px;line-height:1.6}.pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);color:#cbd5e1;font-size:12px;font-weight:900}@media(max-width:1100px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.topbar{align-items:flex-start}.content{padding:24px}.form-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar .btn{width:100%}table{min-width:720px}.summary-row{display:grid}.summary-card{min-width:0}.grid{grid-template-columns:1fr}}@media(max-width:560px){.topbar{padding:22px;flex-direction:column;align-items:stretch}.topbar h1{font-size:24px}.content{padding:18px}.actions{gap:10px}.action-tiles button{min-height:74px}.sidebar{padding:18px}.screen-stage{height:150px}.summary-card{padding:18px}}

/* === User dashboard compact card layout v4 === */
.content{max-width:1320px;}
.workstation-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(360px, 420px));
  align-items:start;
  justify-content:start;
  gap:26px;
}
.workstation-live-card{
  max-width:420px;
  width:100%;
  padding:24px;
  border-radius:24px;
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.035));
}
.machine-head.compact{align-items:center;margin-bottom:2px;}
.machine-title{font-size:21px;}
.screen-stage{height:205px;border-radius:16px;overflow:hidden;}
.screen-preview{border-radius:17px;}
.screen-image{object-fit:cover;}
.action-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:4px;}
.action-tiles button{min-height:76px;border-radius:16px;}
.btn-icon{font-size:28px;}
.expire-row{margin-top:0;padding-top:8px;border-top:1px solid rgba(148,163,184,.12);}
.expire-row span{font-size:13px;color:#c5d0e1;}
.expire-row b{white-space:nowrap;}

@media(max-width:560px){
  .workstation-grid{grid-template-columns:1fr;}
  .workstation-live-card{max-width:none;}
  .screen-stage{height:180px;}
}


/* === FIX: 3-card row + admin note, override old compact rules === */
.content{max-width:none !important;width:100% !important;}
.workstation-grid{display:grid !important;grid-template-columns:repeat(3, 420px) !important;gap:28px !important;align-items:start !important;justify-content:start !important;}
.workstation-live-card{width:420px !important;max-width:420px !important;min-width:0 !important;}
.admin-note{border:1px solid rgba(96,120,255,.18);background:linear-gradient(135deg,rgba(96,120,255,.10),rgba(255,255,255,.035));border-radius:15px;padding:12px 14px;margin-top:-2px;}
.note-label{color:#aebcff;font-size:12px;font-weight:900;margin-bottom:5px;}
.note-text{color:#d9e2f2;font-size:13px;line-height:1.55;word-break:break-word;}
@media(max-width:1620px){.workstation-grid{grid-template-columns:repeat(2, 420px) !important;}}
@media(max-width:1120px){.workstation-grid{grid-template-columns:1fr !important;}.workstation-live-card{width:100% !important;max-width:none !important;}}

/* === UPDATE: status bar inside screenshot + cleaner note card === */
.workstation-grid{
  grid-template-columns:repeat(3, minmax(360px, 420px)) !important;
  gap:28px !important;
}
.screen-preview{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:16px !important;
  background:#070c16 !important;
  border:1px solid rgba(148,163,184,.16) !important;
}
.screen-toolbar{
  height:36px !important;
  min-height:36px !important;
  padding:0 12px !important;
  overflow:visible !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  background:linear-gradient(180deg,rgba(20,31,50,.98),rgba(13,20,34,.98)) !important;
  border-bottom:1px solid rgba(148,163,184,.12) !important;
  color:#dce7f7 !important;
  font-size:12px !important;
  font-weight:900 !important;
}
.screen-status-wrap{display:flex;align-items:center;gap:8px;min-width:0;}
.screen-dot{width:10px;height:10px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.12);flex:0 0 auto;}
.screen-dot.online{background:#30d477;box-shadow:0 0 0 4px rgba(48,212,119,.15);}
.screen-dot.offline{background:#ff6464;box-shadow:0 0 0 4px rgba(255,100,100,.15);}
.screen-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#d9e5f7;}
.screen-time{margin-left:auto;color:#9fb2d1;font-weight:900;white-space:nowrap;}
.screen-stage{height:190px !important;border-radius:0 !important;overflow:hidden !important;}
.admin-note{
  border:1px solid rgba(148,163,184,.16) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
  border-radius:15px !important;
  padding:0 !important;
  overflow:hidden !important;
  margin-top:0 !important;
}
.note-label{padding:9px 13px 0 !important;color:#cbd7eb !important;font-size:12px !important;font-weight:900 !important;}
.note-text{padding:8px 13px 12px !important;color:#eef4ff !important;font-size:14px !important;line-height:1.5 !important;word-break:break-word !important;}
@media(max-width:1560px){.workstation-grid{grid-template-columns:repeat(2, minmax(360px, 420px)) !important;}}
@media(max-width:1060px){.workstation-grid{grid-template-columns:minmax(0, 420px) !important;}.workstation-live-card{width:100% !important;max-width:420px !important;}}
@media(max-width:560px){.workstation-grid{grid-template-columns:1fr !important;}.workstation-live-card{max-width:none !important;}.screen-stage{height:170px !important;}}

/* === AnyDesk customer credentials card === */
.remote-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.remote-box{
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  border-radius:15px;
  padding:13px 14px;
  min-width:0;
}
.remote-box span{
  display:block;
  color:#9fb2d1;
  font-size:12px;
  font-weight:900;
  margin-bottom:6px;
}
.remote-box strong{
  display:block;
  color:#eef4ff;
  font-size:18px;
  line-height:1.25;
  letter-spacing:.02em;
  word-break:break-word;
}
.password-inline{display:flex;gap:8px;align-items:center;min-width:260px;}
.password-inline input{min-height:38px;padding:8px 10px;}
.password-inline button{min-height:38px;padding:8px 12px;}
@media(max-width:560px){.remote-info{grid-template-columns:1fr;}}


/* === Admin workstation screenshot thumbnail + zoom popup === */
.screen-thumb-btn{padding:0 !important;min-height:auto !important;background:transparent !important;border:0 !important;box-shadow:none !important;cursor:zoom-in !important;display:inline-flex !important;border-radius:13px !important;}
.screen-thumb-btn:hover{transform:none !important;}
.screen-thumb{width:132px !important;height:76px !important;object-fit:cover !important;display:block !important;border-radius:13px !important;border:1px solid rgba(148,163,184,.22) !important;background:#070c16 !important;box-shadow:0 10px 24px rgba(0,0,0,.22) !important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease !important;}
.screen-thumb:hover{transform:translateY(-1px) scale(1.03) !important;border-color:rgba(96,120,255,.55) !important;box-shadow:0 16px 35px rgba(0,0,0,.30) !important;}
.screen-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:34px;z-index:9999;background:rgba(2,6,14,.86);backdrop-filter:blur(12px);}
.screen-modal.show{display:flex;}
.screen-modal-card{width:min(94vw,1320px);max-height:88vh;padding:12px;border-radius:22px;border:1px solid rgba(148,163,184,.22);background:linear-gradient(180deg,rgba(20,31,50,.96),rgba(9,14,25,.96));box-shadow:0 34px 100px rgba(0,0,0,.55);}
.screen-modal-img{display:block;width:100%;max-height:calc(88vh - 24px);object-fit:contain;border-radius:15px;background:#050914;}
.screen-modal-close{position:fixed;top:22px;right:28px;width:46px;height:46px;border-radius:16px;padding:0 !important;min-height:46px !important;background:rgba(255,255,255,.08) !important;border:1px solid rgba(148,163,184,.22) !important;color:#fff !important;font-size:32px;line-height:1;z-index:10000;}
@media(max-width:640px){.screen-thumb{width:112px !important;height:64px !important;}.screen-modal{padding:16px;}.screen-modal-close{top:12px;right:12px;}}

.alert{
    margin:12px 0 18px;
    padding:12px 14px;
    border-radius:14px;
    font-weight:700;
    border:1px solid rgba(255,255,255,.08);
}
.alert-success{
    background:rgba(34,197,94,.12);
    color:#4ade80;
}
.alert-error{
    background:rgba(239,68,68,.12);
    color:#fca5a5;
}

button.is-cooling-down,
.btn.is-cooling-down,
.action-btn.is-cooling-down {
    opacity: .55 !important;
    cursor: not-allowed !important;
    filter: grayscale(.35);
    transform: none !important;
}

button:disabled {
    pointer-events: none;
}

.admin-control-wrap{
    margin-bottom:8px;
}
.admin-power-form{
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap:nowrap;
}
.mini-power-btn{
    border:0;
    border-radius:10px;
    padding:8px 10px;
    font-weight:800;
    font-size:12px;
    cursor:pointer;
    color:#fff;
    transition:.18s ease;
}
.mini-power-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.08);
}
.mini-on{
    background:linear-gradient(135deg, rgba(34,197,94,.9), rgba(21,128,61,.9));
}
.mini-off{
    background:linear-gradient(135deg, rgba(239,68,68,.9), rgba(127,29,29,.9));
}
.mini-reset{
    background:linear-gradient(135deg, rgba(245,158,11,.95), rgba(120,53,15,.95));
}

.remaining-badge.warning,
.expire-badge.warning,
.badge.warning {
    background: rgba(245, 158, 11, .18) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, .28) !important;
}

.remaining-badge.danger,
.expire-badge.danger,
.badge.danger {
    background: rgba(239, 68, 68, .18) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, .28) !important;
}

.remaining-badge.expired,
.expire-badge.expired,
.badge.expired {
    background: rgba(148, 163, 184, .15) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

.log-filter-form{align-items:end;}
.log-message{max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.small{font-size:12px;}
.badge.action{background:rgba(99,102,241,.18);color:#c7d2fe;border:1px solid rgba(99,102,241,.28);}
.badge.success{background:rgba(34,197,94,.15);color:#4ade80;border:1px solid rgba(34,197,94,.25);}
.badge.failed{background:rgba(239,68,68,.15);color:#fca5a5;border:1px solid rgba(239,68,68,.25);}

.extend-panel{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.08);
}
.extend-form{
    display:flex;
    gap:8px;
    align-items:center;
}
.extend-form select{
    flex:1;
    min-width:0;
}
.point-inline,
.rental-time-inline{
    gap:6px;
    margin:3px 0;
}
.point-plus{color:#4ade80;}
.point-minus{color:#fca5a5;}

.alert-error,
.flash-error {
    background: rgba(239, 68, 68, .15) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, .28) !important;
}

.alert-success,
.flash-success {
    background: rgba(34, 197, 94, .15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, .25) !important;
}

.topup-mini-btn{
    display:inline-flex;
    margin-top:8px;
    padding:6px 10px;
    font-size:12px;
    border-radius:10px;
}

.topup-placeholder{
    margin-top:18px;
    padding:18px;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.16);
    background:rgba(15,23,42,.45);
}

.machine-topup-row{
    margin:10px 0 8px;
}
.topup-card-btn{
    width:100%;
    justify-content:center;
}
.partner-payment-box{
    margin:18px 0;
    padding:18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(15,23,42,.55);
}
.partner-payment-box p{
    margin:7px 0;
}
.badge.pending{
    background:rgba(245,158,11,.16);
    color:#fbbf24;
    border:1px solid rgba(245,158,11,.25);
}
.badge.paid{
    background:rgba(34,197,94,.16);
    color:#4ade80;
    border:1px solid rgba(34,197,94,.25);
}
.badge.rejected,
.badge.cancelled{
    background:rgba(239,68,68,.16);
    color:#fca5a5;
    border:1px solid rgba(239,68,68,.25);
}

.bank-payment-card{margin:18px 0;padding:20px;border-radius:20px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(135deg,rgba(30,41,59,.92),rgba(15,23,42,.88));box-shadow:0 18px 42px rgba(0,0,0,.22);}
.bank-card-head{display:flex;align-items:center;gap:14px;margin-bottom:16px;}
.bank-icon{width:48px;height:48px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(99,102,241,.18);font-size:24px;}
.bank-card-head h3{margin:0}.bank-card-head p{margin:4px 0 0;color:#aebbd4;}
.bank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.bank-grid div{padding:14px;border-radius:16px;background:rgba(15,23,42,.68);border:1px solid rgba(255,255,255,.08);}
.bank-grid span{display:block;color:#93a4c4;font-size:12px;margin-bottom:6px;}
.bank-grid strong{color:#fff;font-size:16px;}
.slip-thumb{width:90px;height:120px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.12);}
.slip-upload-form input[type=file]{padding:13px;border-radius:14px;background:#0b1220;border:1px solid rgba(255,255,255,.08);color:#dbeafe;}
@media(max-width:760px){.bank-grid{grid-template-columns:1fr;}}


/* Force purple wallet topup button */
.extend-panel{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.08);
    display:flex;
    flex-direction:column;
    gap:10px;
}

.topup-purple-btn{
    width:100% !important;
    min-height:72px;
    display:flex !important;
    align-items:center;
    gap:14px;
    padding:15px 18px;
    border-radius:18px;
    text-decoration:none;
    color:#fff !important;
    box-sizing:border-box;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,.16), transparent 28%),
        linear-gradient(135deg, #8b5cf6 0%, #6d28d9 45%, #4c1d95 100%) !important;
    border:1px solid rgba(196,181,253,.35);
    box-shadow:0 16px 38px rgba(109,40,217,.35);
    transition:.18s ease;
}

.topup-purple-btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.06);
    box-shadow:0 20px 44px rgba(109,40,217,.45);
}

.topup-wallet-icon{
    width:48px;
    height:48px;
    flex:0 0 48px;
    border-radius:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.15);
    color:#fff;
}

.topup-purple-text{
    flex:1;
    min-width:0;
}

.topup-purple-text b{
    display:block;
    font-size:16px;
    line-height:1.25;
    font-weight:900;
}

.topup-purple-text small{
    display:block;
    margin-top:4px;
    color:rgba(255,255,255,.76);
    font-size:13px;
    font-weight:600;
}

.topup-purple-arrow{
    font-size:42px;
    line-height:1;
    opacity:.9;
    margin-left:auto;
}

.topup-action-btn,
.topup-small-btn,
.extend-tools,
.machine-topup-row{
    display:none !important;
}

.extend-form{
    width:100%;
    display:flex;
    gap:8px;
    align-items:center;
}

.extend-form select{
    flex:1;
    min-width:0;
}

.extend-form button{
    min-width:92px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#3b82f6,#4f46e5);
    color:#fff;
    font-weight:800;
}
