@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root{
  --bg:#f6f8fc;
  --surface:#fff;
  --surface2:#f8fafc;
  --surface3:#eef3f8;
  --text:#101828;
  --muted:#667085;
  --line:#e4e7ec;
  --primary:#229ed9;
  --primary2:#635bff;
  --cyan:#06b6d4;
  --green:#10b981;
  --orange:#f59e0b;
  --red:#ef4444;
  --radius:18px;
  --shadow:0 8px 28px rgba(16,24,40,.07);
  --shadow2:0 18px 45px rgba(16,24,40,.12);
  --max:1180px;
  color-scheme:light;
}

html[data-theme="dark"]{
  --bg:#0b111a;
  --surface:#121a25;
  --surface2:#172231;
  --surface3:#1e2a3a;
  --text:#f8fafc;
  --muted:#98a6b8;
  --line:rgba(255,255,255,.10);
  --shadow:0 10px 30px rgba(0,0,0,.24);
  --shadow2:0 20px 55px rgba(0,0,0,.35);
  color-scheme:dark;
}

*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font:14px/1.6 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
.hidden{display:none!important}

/* =========================================================
   UNIVERSAL NAVBAR — Marketplace visual language
   ========================================================= */
#navbar{position:sticky;top:0;z-index:2000}
.pt-nav{
  height:72px;
  background:color-mix(in srgb,var(--surface) 90%,transparent);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.pt-nav-inner{
  width:min(var(--max),calc(100% - 32px));
  height:72px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.pt-menu-btn{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
  color:var(--text);
  transition:.18s ease;
}
.pt-menu-btn:hover{
  border-color:color-mix(in srgb,var(--primary) 35%,var(--line));
  color:var(--primary);
}
.pt-brand{display:flex;align-items:center;gap:9px;min-width:0;font-size:19px;font-weight:900}
.pt-brand-mark{
  width:40px;height:40px;display:grid;place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),#06b6d4);
  box-shadow:0 8px 22px rgba(34,158,217,.20);
}
.pt-brand-mark i{color:#fff}
.pt-brand-name{white-space:nowrap;letter-spacing:-.03em}
.pt-spacer{flex:1}
.pt-user-wrap{position:relative}
.pt-user-btn{
  min-height:44px;
  display:flex;align-items:center;gap:8px;
  padding:5px 9px 5px 5px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface);
  color:var(--text);
}
.pt-user-btn:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line))}
.pt-avatar{
  width:34px;height:34px;display:grid;place-items:center;overflow:hidden;
  border-radius:11px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;font-weight:800;
}
.pt-avatar img{width:100%;height:100%;object-fit:cover}
.pt-name{font-weight:750;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-check{color:var(--primary)}
.pt-chevron{font-size:10px;color:var(--muted)}
.pt-dropdown{
  position:absolute;right:0;top:calc(100% + 10px);
  width:min(340px,calc(100vw - 24px));
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow2);
}
.pt-profile{display:flex;align-items:center;gap:11px;padding:6px}
.pt-profile-text{min-width:0}
.pt-profile-text strong,.pt-profile-text small{display:block}
.pt-profile-text small{color:var(--muted);font-size:11px}
.pt-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.pt-account-item{padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--surface2)}
.pt-account-item i{color:var(--primary);margin-right:6px}
.pt-account-item strong,.pt-account-item small{display:block}
.pt-account-item small{font-size:10px;color:var(--muted)}
.pt-profile-link,.pt-link{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:11px}
.pt-profile-link:hover,.pt-link:hover{background:var(--surface2)}
.pt-link-icon{width:30px;text-align:center}
.pt-link-arrow{margin-left:auto;color:var(--muted);font-size:11px}
.pt-backdrop{
  position:fixed;inset:0;background:rgba(2,6,23,.48);z-index:2090;
  opacity:0;pointer-events:none;transition:.2s;
}
.pt-backdrop.open{opacity:1;pointer-events:auto}
.pt-drawer{
  position:fixed;top:0;left:0;bottom:0;
  width:min(340px,88vw);z-index:2100;
  background:var(--surface);
  border-right:1px solid var(--line);
  transform:translateX(-105%);
  transition:transform .25s ease;
  box-shadow:20px 0 50px rgba(0,0,0,.15);
  padding:0;overflow:hidden;
  display:flex;flex-direction:column;
}
.pt-drawer.open{transform:none}
.pt-nav-lock{overflow:hidden}
.pt-drawer-head{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:space-between;
  margin:0;padding:18px 18px 15px;
  border-bottom:1px solid var(--line);
}
.pt-close{
  width:40px;height:40px;
  border:1px solid var(--line);border-radius:12px;
  background:var(--surface2);color:var(--text);
}
.pt-drawer-body{flex:1;overflow:auto;padding:12px}
.pt-drawer-section{margin:0 0 14px}
.pt-drawer-label{
  display:block;padding:7px 10px;
  color:var(--muted);font-size:10px;font-weight:850;
  letter-spacing:.08em;text-transform:uppercase;
}
.pt-drawer-link{
  display:flex;align-items:center;gap:10px;
  min-height:43px;padding:9px 11px;border-radius:12px;
}
.pt-drawer-link:hover,.pt-drawer-link.active{background:rgba(34,158,217,.09);color:var(--primary)}
.pt-drawer-link i{width:20px;text-align:center}
.pt-drawer-bottom{border-top:1px solid var(--line);padding:12px}

/* =========================================================
   PAGE
   ========================================================= */
.withdrawals-main{
  padding:42px 0 20px;
}
.withdrawals-container{
  width:min(var(--max),calc(100% - 32px));
  margin:auto;
}
.withdraw-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.withdraw-heading{
  display:flex;
  align-items:flex-start;
  gap:13px;
  min-width:0;
}
.withdraw-heading-icon{
  width:48px;height:48px;flex:0 0 48px;
  display:grid;place-items:center;
  border-radius:15px;
  background:linear-gradient(135deg,rgba(34,158,217,.13),rgba(99,91,255,.10));
  border:1px solid rgba(34,158,217,.16);
  color:var(--primary);
  font-size:19px;
}
.withdraw-eyebrow{
  display:inline-flex;
  color:var(--primary);
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
}
.withdraw-heading h1{
  margin:5px 0 4px;
  font-size:clamp(28px,4vw,40px);
  line-height:1.08;
  letter-spacing:-.045em;
}
.withdraw-heading p{
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.withdraw-header-actions{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
}
.withdraw-refresh,.withdraw-settings{
  min-height:40px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;font-weight:800;
  transition:.18s ease;
}
.withdraw-refresh:hover,.withdraw-settings:hover{
  color:var(--primary);
  border-color:rgba(34,158,217,.3);
  background:var(--surface2);
}

/* =========================================================
   BALANCE HERO
   ========================================================= */
.balance-panel{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:150px;
  margin-bottom:18px;
  padding:24px 26px;
  border:1px solid rgba(34,158,217,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at 90% 20%,rgba(99,91,255,.16),transparent 32%),
    radial-gradient(circle at 10% 100%,rgba(34,158,217,.13),transparent 38%),
    var(--surface);
  box-shadow:var(--shadow);
}
.balance-panel:after{
  content:"";
  position:absolute;
  width:180px;height:180px;
  right:-70px;bottom:-95px;
  border-radius:50%;
  border:1px solid rgba(34,158,217,.10);
  pointer-events:none;
}
.balance-main{position:relative;z-index:1}
.balance-label{
  display:flex;align-items:center;gap:7px;
  color:var(--muted);
  font-size:11px;font-weight:750;
}
.balance-label i{color:var(--primary)}
.balance-main strong{
  display:block;
  margin:7px 0 3px;
  font-size:clamp(28px,4vw,38px);
  line-height:1.1;
  letter-spacing:-.045em;
}
.balance-note{color:var(--muted);font-size:10px}
.balance-action{position:relative;z-index:1}
.balance-action a{
  display:inline-flex;align-items:center;gap:7px;
  min-height:40px;padding:0 13px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--text);
  font-size:11px;font-weight:800;
}
.balance-action a:hover{color:var(--primary);border-color:rgba(34,158,217,.3)}

/* =========================================================
   SETTLEMENT / PENDING BALANCE
   ========================================================= */
.settlement-panel{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin:-2px 0 18px;
  padding:14px 16px;
  border:1px solid rgba(245,158,11,.22);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(245,158,11,.08),var(--surface));
}
.settlement-icon{
  width:42px;height:42px;display:grid;place-items:center;
  border-radius:13px;
  background:rgba(245,158,11,.12);
  color:var(--orange);
}
.settlement-copy{min-width:0;display:grid;gap:2px}
.settlement-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.settlement-title-row strong{font-size:12px;font-weight:900}
.settlement-copy>span{color:var(--muted);font-size:10px;line-height:1.5}
.settlement-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:21px;padding:0 7px;border-radius:999px;
  background:rgba(245,158,11,.12);color:var(--orange);
  border:1px solid rgba(245,158,11,.18);
  font-size:9px;font-weight:900;
}
.settlement-amount{
  white-space:nowrap;font-size:17px;letter-spacing:-.025em;color:var(--orange);
}

/* =========================================================
   STATISTICS
   ========================================================= */
.withdraw-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}
.withdraw-stat{
  min-width:0;
  display:flex;align-items:center;gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.stat-icon{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:13px;
  background:var(--surface2);
  font-size:16px;
}
.stat-icon.pending{color:var(--orange);background:rgba(245,158,11,.10)}
.stat-icon.success{color:var(--green);background:rgba(16,185,129,.10)}
.stat-icon.limit{color:var(--primary);background:rgba(34,158,217,.10)}
.withdraw-stat small{display:block;color:var(--muted);font-size:10px;line-height:1.4}
.withdraw-stat strong{
  display:block;
  margin-top:3px;
  color:var(--text);
  font-size:14px;
  line-height:1.3;
  overflow-wrap:anywhere;
}

/* =========================================================
   DAILY LIMIT
   ========================================================= */
.daily-limit{
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.daily-top{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;margin-bottom:10px;
}
.daily-top span{
  display:flex;align-items:center;gap:7px;
  font-size:12px;font-weight:850;
}
.daily-top span i{color:var(--primary)}
.daily-top small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.daily-top b{font-size:12px;color:var(--primary);white-space:nowrap}
.progress{
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:var(--surface3);
}
.progress i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
  transition:width .25s ease;
}

/* =========================================================
   WITHDRAW BOXES
   ========================================================= */
.withdraw-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.withdraw-box{
  min-width:0;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.box-heading{
  display:flex;align-items:flex-start;gap:11px;
  margin-bottom:15px;
}
.box-heading-icon{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:13px;
  font-size:16px;
}
.box-heading-icon.instant{background:rgba(245,158,11,.11);color:var(--orange)}
.box-heading-icon.manual{background:rgba(34,158,217,.11);color:var(--primary)}
.box-heading h2{
  margin:1px 0 3px;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.02em;
}
.box-heading p{
  margin:0;color:var(--muted);font-size:10px;line-height:1.5;
}

/* Status */
.withdraw-status{
  display:flex;align-items:flex-start;gap:9px;
  padding:11px 12px;
  margin-bottom:13px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}
.withdraw-status>i{
  flex:0 0 auto;
  margin-top:2px;
  color:var(--green);
}
.withdraw-status strong,.withdraw-status small{display:block}
.withdraw-status strong{font-size:11px;line-height:1.4}
.withdraw-status small{margin-top:2px;color:var(--muted);font-size:9px;line-height:1.5}
.withdraw-status[data-state="closed"],
.withdraw-status[data-state="error"]{
  background:rgba(239,68,68,.06);
  border-color:rgba(239,68,68,.18);
}
.withdraw-status[data-state="closed"]>i,
.withdraw-status[data-state="error"]>i{color:var(--red)}
.withdraw-status[data-state="checking"]>i{color:var(--orange)}

/* Rules */
.rule-info{
  display:grid;
  gap:7px;
  margin:0 0 16px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}
.rule-info>div{
  display:flex;align-items:center;gap:8px;
  color:var(--muted);font-size:10px;line-height:1.4;
}
.rule-info i{width:15px;text-align:center;color:var(--primary)}

/* Instant choices */
.field-label{
  display:block;
  margin-bottom:8px;
  color:var(--text);
  font-size:11px;
  font-weight:850;
}
.instant-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:12px;
}
.instant-actions button{
  min-height:42px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--surface);
  color:var(--text);
  font-size:10px;font-weight:850;
  transition:.18s ease;
}
.instant-actions button:hover{
  border-color:rgba(34,158,217,.3);
  color:var(--primary);
  background:var(--surface2);
}
.instant-actions button.active,
.instant-actions button[aria-pressed="true"]{
  border-color:var(--primary);
  background:rgba(34,158,217,.10);
  color:var(--primary);
}
.inline-loading{
  grid-column:1/-1;
  min-height:42px;
  display:grid;place-items:center;
  color:var(--muted);font-size:10px;
}
.inline-loading i{color:var(--primary);margin-right:6px}

.selected-amount{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  padding:12px 13px;
  margin-bottom:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
}
.selected-amount span{color:var(--muted);font-size:10px}
.selected-amount strong{font-size:13px;color:var(--primary)}

.withdraw-inline-note{
  display:flex;align-items:flex-start;gap:7px;
  margin:10px 0 14px;
  color:var(--muted);
  font-size:9px;line-height:1.55;
}
.withdraw-inline-note i{color:var(--primary);margin-top:2px}

/* Manual form */
.withdraw-form{display:grid;gap:13px}
.field{min-width:0}
.field>label{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:10px;font-weight:850;
}
.input-money,.select-wrap{position:relative}
.input-money>span{
  position:absolute;
  left:12px;top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:11px;font-weight:800;
  pointer-events:none;
}
.input,.select{
  width:100%;
  height:44px;
  border:1px solid var(--line);
  border-radius:11px;
  outline:none;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
  transition:.18s ease;
}
.input{padding:0 12px}
.input-money .input{padding-left:34px}
.select{appearance:none;padding:0 38px 0 12px}
.input::placeholder{color:var(--muted);opacity:.72}
.input:focus,.select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(34,158,217,.10);
}
.select-wrap>i{
  position:absolute;right:13px;top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:10px;
  pointer-events:none;
}
.field>small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:9px;
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

/* Saved methods */
.saved-methods{
  display:grid;
  gap:8px;
  margin-bottom:2px;
}
.saved-methods:not(.hidden){
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}

/* Validation / fee */
.withdraw-validation{
  padding:10px 12px;
  border:1px solid rgba(239,68,68,.18);
  border-radius:11px;
  background:rgba(239,68,68,.06);
  color:var(--red);
  font-size:10px;
  line-height:1.5;
}
.withdraw-validation[hidden]{display:none!important}
.withdraw-fee-preview{
  display:grid;
  gap:0;
  margin-top:1px;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface2);
}
.withdraw-fee-preview>div{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;
  padding:7px 0;
  font-size:10px;
}
.withdraw-fee-preview>div+div{border-top:1px solid var(--line)}
.withdraw-fee-preview span{
  display:flex;align-items:center;gap:6px;color:var(--muted);
}
.withdraw-fee-preview span i{color:var(--primary)}
.withdraw-fee-preview strong{font-size:11px;color:var(--text)}
.withdraw-fee-preview>div:last-child strong{color:var(--green)}

/* Buttons */
.withdraw-submit{
  width:100%;
  min-height:45px;
  display:flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:12px;
  font-size:11px;font-weight:900;
  transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.withdraw-submit.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;
  box-shadow:0 9px 22px rgba(34,158,217,.18);
}
.withdraw-submit.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(34,158,217,.24);
}
.withdraw-submit:disabled{opacity:.55;transform:none;box-shadow:none}

/* Manual closed notice */
.manual-closed-notice{
  display:flex;align-items:center;gap:10px;
  margin-bottom:13px;
  padding:12px;
  border:1px solid rgba(239,68,68,.18);
  border-radius:13px;
  background:rgba(239,68,68,.06);
}
.manual-closed-icon{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;
  border-radius:11px;
  background:rgba(239,68,68,.10);
  color:var(--red);
}
.manual-closed-content strong{display:block;font-size:11px}
.manual-closed-content span{display:block;color:var(--muted);font-size:9px;line-height:1.5;margin-top:2px}

/* =========================================================
   ADMIN REQUEST
   ========================================================= */
.admin-request{
  display:flex;align-items:center;gap:13px;
  margin-top:18px;
  padding:15px 16px;
  border:1px solid rgba(34,158,217,.16);
  border-radius:16px;
  background:
    linear-gradient(135deg,rgba(34,158,217,.07),rgba(99,91,255,.05)),
    var(--surface);
  box-shadow:var(--shadow);
}
.admin-request-icon{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:13px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
}
.admin-request-content{min-width:0;flex:1}
.admin-request-content strong{display:block;font-size:12px}
.admin-request-content p{
  margin:2px 0 0;color:var(--muted);font-size:9px;line-height:1.5;
}
.admin-request-btn{
  min-height:39px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  flex:0 0 auto;
  padding:0 12px;
  border:1px solid rgba(34,158,217,.22);
  border-radius:10px;
  background:rgba(34,158,217,.08);
  color:var(--primary);
  font-size:10px;font-weight:850;
}
.admin-request-btn:hover{background:rgba(34,158,217,.14)}

/* =========================================================
   HISTORY
   ========================================================= */
.history-panel{
  margin-top:18px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.history-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;
  padding:16px;
  border-bottom:1px solid var(--line);
}
.history-heading>div:first-child{
  display:flex;align-items:center;gap:10px;
  min-width:0;
}
.history-icon{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:12px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
}
.history-heading h2{margin:0;font-size:14px}
.history-heading small{display:block;color:var(--muted);font-size:10px}
.history-filter{
  display:flex;align-items:center;gap:7px;
}
.history-filter select{
  height:36px;
  padding:0 30px 0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface2);
  color:var(--text);
  outline:none;
  font-size:10px;
}
.history-list{min-height:90px}
.history-empty,.history-loading,.history-error{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:25px 18px;
  text-align:center;
  color:var(--muted);
}
.history-empty i,.history-loading i,.history-error i{
  font-size:23px;color:var(--primary);
}
.history-empty strong,.history-loading strong,.history-error strong{
  color:var(--text);font-size:12px;
}
.history-empty span,.history-loading span,.history-error span{
  max-width:360px;color:var(--muted);font-size:10px;
}
.history-item{
  display:flex;align-items:center;gap:11px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  transition:.15s ease;
}
.history-item:last-child{border-bottom:0}
.history-item:hover{background:var(--surface2)}
.history-item-icon{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;
  border-radius:11px;
  background:var(--surface2);
  color:var(--primary);
}
.history-item-main{min-width:0;flex:1}
.history-item-title{
  display:block;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:11px;font-weight:800;
}
.history-item-meta{
  display:flex;gap:8px;flex-wrap:wrap;
  color:var(--muted);font-size:9px;
}
.history-item-amount{
  text-align:right;white-space:nowrap;
  font-size:11px;font-weight:850;
}
.history-item-amount.success{color:var(--green)}
.history-item-amount.pending{color:var(--orange)}
.history-item-amount.failed{color:var(--red)}

/* =========================================================
   FOOTER
   ========================================================= */
.pastele-footer{
  margin-top:42px;
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:38px 0 20px;
}
.footer-container{
  width:min(var(--max),calc(100% - 32px));
  margin:auto;
  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:30px;
}
.footer-brand,.footer-brand-link{
  display:inline-flex;align-items:center;gap:10px;
  font-size:18px;font-weight:900;
}
.footer-brand-mark{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),#06b6d4);
  color:#fff;
}
.footer-description{max-width:330px;color:var(--muted);font-size:12px;margin:12px 0}
.footer-platform-status{
  display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;
}
.footer-status-indicator{
  width:7px;height:7px;border-radius:50%;background:#10b981;
}
.footer-column{display:grid;align-content:start;gap:8px}
.footer-column h3{margin:0 0 6px;font-size:12px}
.footer-column a{
  display:flex;gap:8px;align-items:center;
  color:var(--muted);font-size:12px;
}
.footer-column a:hover{color:var(--primary)}
.footer-column a i{width:15px;text-align:center}
.footer-bottom{
  width:min(var(--max),calc(100% - 32px));
  margin:28px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;justify-content:space-between;gap:15px;
  color:var(--muted);font-size:11px;
}
.footer-meta{display:flex;gap:14px;flex-wrap:wrap}
.footer-meta span{display:flex;align-items:center;gap:5px}

/* Toast */
#toast{position:fixed;right:18px;bottom:18px;z-index:9999}
.toast{
  max-width:min(420px,calc(100vw - 36px));
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--shadow2);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width:1050px){
  .withdraw-layout{grid-template-columns:1fr 1fr}
}
@media(max-width:780px){
  .pt-nav,.pt-nav-inner{height:64px}
  .pt-nav-inner{width:calc(100% - 20px)}
  .pt-name{display:none}
  .pt-user-btn{padding-right:6px}
  .withdrawals-main{padding-top:28px}
  .withdrawals-container{width:calc(100% - 20px)}
  .withdraw-header{flex-direction:column;gap:14px}
  .withdraw-header-actions{width:100%}
  .withdraw-refresh,.withdraw-settings{flex:1}
  .withdraw-stats{grid-template-columns:1fr}
  .withdraw-layout{grid-template-columns:1fr}
  .footer-container{grid-template-columns:1fr 1fr}
  .footer-bottom{flex-direction:column}
}
@media(max-width:520px){
  .withdraw-heading h1{font-size:30px}
  .withdraw-heading-icon{width:44px;height:44px;flex-basis:44px}
  .balance-panel{align-items:flex-start;flex-direction:column;padding:20px}
  .balance-main strong{font-size:30px}
  .balance-action{width:100%}
  .balance-action a{width:100%;justify-content:center}
  .withdraw-box{padding:16px}
  .instant-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid{grid-template-columns:1fr}
  .admin-request{align-items:flex-start;flex-wrap:wrap}
  .admin-request-content{flex-basis:calc(100% - 55px)}
  .admin-request-btn{width:100%}
  .history-heading{align-items:flex-start;flex-direction:column}
  .history-filter,.history-filter select{width:100%}
  .footer-container{grid-template-columns:1fr}
  .footer-bottom{width:calc(100% - 20px)}
}
@media(max-width:360px){
  .withdraw-header-actions{flex-direction:column}
  .withdraw-refresh,.withdraw-settings{width:100%;flex:none}
  .instant-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


/* =========================================================
   FINAL WITHDRAW POLISH
   ========================================================= */

/* Fee is intentionally shown only in the confirmation modal. */
.withdraw-fee-preview{display:none!important}

/* Confirmation modal */
.withdraw-modal[hidden]{display:none!important}
.withdraw-modal{
  position:fixed;inset:0;z-index:5000;
  display:grid;place-items:center;padding:18px;
}
.withdraw-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(2,6,23,.58);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.withdraw-modal-dialog{
  position:relative;
  width:min(520px,100%);
  max-height:min(88vh,760px);
  overflow:auto;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  color:var(--text);
  box-shadow:0 28px 80px rgba(2,6,23,.28);
}
.withdraw-modal-close{
  position:absolute;right:14px;top:14px;
  width:36px;height:36px;display:grid;place-items:center;
  border:1px solid var(--line);border-radius:10px;
  background:var(--surface2);color:var(--muted);
}
.withdraw-modal-close:hover{color:var(--red);border-color:rgba(239,68,68,.25)}
.withdraw-modal-icon{
  width:48px;height:48px;display:grid;place-items:center;
  margin-bottom:12px;border-radius:15px;
  background:linear-gradient(135deg,rgba(34,158,217,.13),rgba(99,91,255,.11));
  color:var(--primary);font-size:18px;
}
.withdraw-modal-badge{
  display:inline-flex;align-items:center;
  padding:6px 9px;border-radius:999px;
  background:rgba(34,158,217,.09);
  color:var(--primary);font-size:9px;font-weight:900;letter-spacing:.08em;
}
.withdraw-modal-dialog h2{
  margin:10px 42px 5px 0;font-size:18px;line-height:1.25;letter-spacing:-.025em;
}
.withdraw-modal-dialog>p{
  margin:0 0 15px;color:var(--muted);font-size:10px;line-height:1.6;
}
.withdraw-confirm-summary{
  overflow:hidden;margin:0 0 12px;
  border:1px solid var(--line);border-radius:15px;background:var(--surface2);
}
.withdraw-confirm-summary>div{
  display:flex;align-items:center;justify-content:space-between;
  gap:15px;padding:11px 13px;
}
.withdraw-confirm-summary>div+div{border-top:1px solid var(--line)}
.withdraw-confirm-summary span{color:var(--muted);font-size:10px}
.withdraw-confirm-summary strong{
  max-width:60%;color:var(--text);font-size:11px;text-align:right;overflow-wrap:anywhere;
}
.withdraw-confirm-summary>div:nth-child(2) strong{color:var(--red)}
.withdraw-confirm-summary>div:nth-child(3){background:rgba(16,185,129,.055)}
.withdraw-confirm-summary>div:nth-child(3) strong{color:var(--green);font-size:12px}
.withdraw-modal-warning{
  display:flex;align-items:flex-start;gap:8px;
  padding:11px 12px;margin-bottom:14px;
  border:1px solid rgba(239,68,68,.20);border-radius:13px;
  background:rgba(239,68,68,.065);color:var(--red);
  font-size:9px;line-height:1.55;
}
.withdraw-modal-warning i{margin-top:2px;flex:0 0 auto}
.withdraw-modal-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}
.withdraw-modal-secondary,.withdraw-modal-primary{
  min-height:44px;border-radius:11px;font-size:10px;font-weight:900;
}
.withdraw-modal-secondary{
  border:1px solid var(--line);background:var(--surface2);color:var(--text);
}
.withdraw-modal-primary{
  display:flex;align-items:center;justify-content:center;gap:7px;
  border:0;background:linear-gradient(135deg,var(--primary),var(--primary2));
  color:#fff;box-shadow:0 9px 22px rgba(34,158,217,.18);
}
.withdraw-modal-primary:disabled{opacity:.55;box-shadow:none}

/* Security block — intentionally red */
.withdraw-security{
  display:flex!important;align-items:flex-start;gap:12px;
  margin-top:18px!important;
  padding:15px 16px!important;
  border:1px solid rgba(239,68,68,.24)!important;
  border-radius:16px!important;
  background:rgba(239,68,68,.065)!important;
  color:var(--red)!important;
  box-shadow:none!important;
}
.withdraw-security-icon{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:13px;
  background:rgba(239,68,68,.11)!important;
  color:var(--red)!important;
}
.withdraw-security strong{
  display:block;color:var(--red)!important;font-size:12px;
}
.withdraw-security p{
  margin:3px 0 0;color:var(--red)!important;
  font-size:9px;line-height:1.6;opacity:.9;
}

/* History list — polished cards inside the history panel */
.history-list{
  padding:8px;
  background:var(--surface);
}
.withdraw-history-item{
  display:flex!important;align-items:center;gap:11px;
  min-width:0;
  margin:0;
  padding:12px 10px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:var(--surface)!important;
  transition:background .15s ease;
}
.withdraw-history-item:last-child{border-bottom:0!important}
.withdraw-history-item:hover{background:var(--surface2)!important}
.withdraw-history-item .history-item-icon{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;
  border-radius:12px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
}
.withdraw-history-item .history-item-icon.instant{
  background:rgba(245,158,11,.11);color:var(--orange);
}
.withdraw-history-item .history-item-icon.manual{
  background:rgba(34,158,217,.10);color:var(--primary);
}
.withdraw-history-item .history-item-main{
  min-width:0;flex:1;
}
.withdraw-history-item .history-item-main strong{
  display:block;color:var(--text);font-size:12px;font-weight:900;
}
.withdraw-history-item .history-item-main small{
  display:block;color:var(--muted);font-size:9px;line-height:1.45;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.withdraw-history-item .history-right{
  flex:0 0 auto;display:flex;align-items:flex-end;flex-direction:column;gap:4px;
  text-align:right;
}
.withdraw-history-item .history-right b{
  color:var(--green);font-size:11px;font-weight:900;white-space:nowrap;
}
.withdraw-history-item .history-right span{
  display:inline-flex;align-items:center;
  min-height:20px;padding:3px 7px;border-radius:999px;
  background:var(--surface2);color:var(--muted);
  font-size:8px;font-weight:900;white-space:nowrap;
}
.withdraw-history-item .history-right .status-completed,
.withdraw-history-item .history-right .status-success,
.withdraw-history-item .history-right .status-successful{
  background:rgba(16,185,129,.10);color:#07824f;
}
.withdraw-history-item .history-right .status-pending,
.withdraw-history-item .history-right .status-processing{
  background:rgba(245,158,11,.11);color:#b54708;
}
.withdraw-history-item .history-right .status-rejected,
.withdraw-history-item .history-right .status-failed,
.withdraw-history-item .history-right .status-cancelled,
.withdraw-history-item .history-right .status-canceled{
  background:rgba(239,68,68,.09);color:#b42318;
}
.history-empty{
  min-height:160px;
  margin:4px;
  border:1px dashed var(--line);
  border-radius:14px;
  background:var(--surface2);
}
.history-empty i{font-size:24px;color:var(--primary)}
.history-empty strong{font-size:12px;color:var(--text)}
.history-empty span{font-size:10px;color:var(--muted)}

html[data-theme="dark"] .withdraw-modal-backdrop{background:rgba(0,0,0,.68)}
html[data-theme="dark"] .withdraw-modal-dialog{box-shadow:0 30px 90px rgba(0,0,0,.5)}
html[data-theme="dark"] .withdraw-security{
  background:rgba(239,68,68,.08)!important;
  border-color:rgba(239,68,68,.25)!important;
}

@media(max-width:520px){
  .withdraw-modal{padding:10px}
  .withdraw-modal-dialog{padding:18px;border-radius:18px}
  .withdraw-confirm-summary strong{max-width:55%}
  .withdraw-modal-actions{grid-template-columns:1fr}
  .withdraw-security{padding:13px!important}
  .withdraw-history-item{align-items:flex-start!important}
  .withdraw-history-item .history-right{margin-left:auto}
}


/* =========================================================
   FINAL NAVBAR FIX — DRAWER SCROLL + CORRECT RUNTIME SELECTORS
   ========================================================= */
#navbar{
  position:sticky;
  top:0;
  z-index:2000;
  width:100%;
}

#navbar .pt-nav{
  position:relative;
  z-index:1;
  width:100%;
}

#navbar .pt-drawer{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

#navbar .pt-drawer-head{
  flex:0 0 auto;
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}

#navbar .pt-drawer-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

#navbar .pt-drawer-title span{
  color:var(--primary);
  font-size:9px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
}

#navbar .pt-drawer-title strong{
  color:var(--text);
  font-size:15px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:-.02em;
}

#navbar .pt-close-btn{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface2);
  color:var(--text);
  transition:.18s ease;
}

#navbar .pt-close-btn:hover{
  color:var(--red);
  border-color:rgba(239,68,68,.28);
  background:rgba(239,68,68,.06);
}

#navbar .pt-menu-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:12px 12px 18px;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:var(--line) transparent;
}

#navbar .pt-menu-scroll::-webkit-scrollbar{
  width:7px;
}

#navbar .pt-menu-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#navbar .pt-menu-scroll::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:999px;
}

#navbar .pt-group{
  margin:0 0 16px;
}

#navbar .pt-group:last-child{
  margin-bottom:0;
}

#navbar .pt-group h3{
  margin:0 0 6px;
  padding:5px 10px;
  color:var(--muted);
  font-size:9px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}

#navbar .pt-menu-scroll .pt-link{
  width:100%;
  min-height:44px;
  margin:2px 0;
  padding:10px 11px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text);
}

#navbar .pt-menu-scroll .pt-link:hover,
#navbar .pt-menu-scroll .pt-link.active{
  background:rgba(34,158,217,.09);
  color:var(--primary);
}

#navbar .pt-menu-scroll .pt-link-icon{
  width:22px;
  flex:0 0 22px;
  text-align:center;
}

#navbar .pt-menu-scroll .pt-link-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:750;
}

#navbar .pt-menu-scroll .pt-link-arrow{
  margin-left:auto;
  color:var(--muted);
  font-size:9px;
}

#navbar .pt-drawer > .pt-forum-trigger{
  flex:0 0 auto;
  width:calc(100% - 24px);
  margin:0 12px 10px;
  border:1px solid var(--line);
  background:var(--surface2);
}

#navbar .pt-drawer-bottom{
  flex:0 0 auto;
  border-top:1px solid var(--line);
  padding:11px 12px max(12px, env(safe-area-inset-bottom));
  background:var(--surface);
}

#navbar .pt-drawer-bottom .pt-link{
  width:100%;
  min-height:44px;
}

#navbar .pt-socials,
#navbar .pt-drawer-socials{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:4px 0 10px;
}

#navbar .pt-socials a,
#navbar .pt-drawer-socials a{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface2);
  color:var(--muted);
}

#navbar .pt-socials a:hover,
#navbar .pt-drawer-socials a:hover{
  color:var(--primary);
  border-color:rgba(34,158,217,.3);
}

#navbar .pt-social-empty{
  color:var(--muted);
  font-size:10px;
}

#navbar .pt-nav-lock{
  overflow:hidden;
}

#navbar .pt-dropdown[hidden]{
  display:none!important;
}

#navbar .pt-dropdown{
  z-index:2200;
}

@media (max-width:780px){
  #navbar .pt-drawer{
    width:min(350px,92vw);
  }
  #navbar .pt-menu-scroll{
    padding-bottom:24px;
  }
  #navbar .pt-drawer-head{
    min-height:68px;
  }
}

@media (max-width:520px){
  #navbar .pt-drawer{
    width:min(340px,94vw);
  }
  #navbar .pt-drawer-bottom{
    padding-left:10px;
    padding-right:10px;
  }
}


/* =========================================================
   FINAL HISTORY REDESIGN — WITHDRAWAL TIMELINE/CARDS
   ========================================================= */
.history-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px 170px;
  gap:9px;
  padding:13px 16px;
  border-bottom:1px solid var(--line);
  background:var(--surface2);
}

.history-search{
  position:relative;
  min-width:0;
}

.history-search>i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:11px;
  pointer-events:none;
}

.history-search input{
  width:100%;
  height:38px;
  padding:0 36px 0 34px;
  border:1px solid var(--line);
  border-radius:11px;
  outline:none;
  background:var(--surface);
  color:var(--text);
  font-size:11px;
}

.history-search input:focus{
  border-color:rgba(34,158,217,.45);
  box-shadow:0 0 0 3px rgba(34,158,217,.08);
}

.history-search button{
  position:absolute;
  right:5px;
  top:5px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
}

.history-filter{
  min-width:0;
}

.history-filter select{
  width:100%;
  height:38px;
  padding:0 30px 0 11px;
  border:1px solid var(--line);
  border-radius:11px;
  outline:none;
  background:var(--surface);
  color:var(--text);
  font-size:10px;
  font-weight:700;
}

.history-result{
  padding:10px 16px 0;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}

.history-list{
  padding:8px 10px 10px;
  min-height:90px;
  background:var(--surface);
}

.withdraw-history-item{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-width:0;
  margin:0;
  padding:13px 8px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  background:transparent!important;
  transition:background .16s ease,transform .16s ease;
}

.withdraw-history-item:last-child{
  border-bottom:0!important;
}

.withdraw-history-item:hover{
  background:var(--surface2)!important;
  border-radius:13px!important;
}

.withdraw-history-item .history-item-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
  font-size:15px;
}

.withdraw-history-item .history-item-icon.instant{
  background:rgba(245,158,11,.11);
  color:var(--orange);
}

.withdraw-history-item .history-item-icon.manual{
  background:rgba(34,158,217,.10);
  color:var(--primary);
}

.history-item-main{
  min-width:0;
}

.history-item-top{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.history-item-top strong{
  min-width:0;
  color:var(--text);
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:-.02em;
}

.history-mode{
  flex:0 0 auto;
  padding:3px 7px;
  border-radius:999px;
  background:var(--surface3);
  color:var(--muted);
  font-size:8px;
  font-weight:850;
}

.history-item-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 11px;
  margin-top:5px;
  color:var(--muted);
  font-size:9px;
}

.history-item-meta span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-width:0;
}

.history-item-meta i{
  color:var(--primary);
  font-size:8px;
}

.history-account{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-top:5px;
  color:var(--muted);
  font-size:9px;
}

.history-account i{
  color:var(--muted);
  font-size:8px;
}

.history-account span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.history-right{
  min-width:118px;
  display:flex!important;
  align-items:flex-end!important;
  flex-direction:column!important;
  gap:3px!important;
  text-align:right;
}

.history-net-label{
  color:var(--muted);
  font-size:8px;
  font-weight:700;
}

.withdraw-history-item .history-right b{
  color:var(--green);
  font-size:12px;
  line-height:1.2;
  font-weight:900;
  white-space:nowrap;
}

.history-fee{
  color:var(--muted);
  font-size:8px;
  white-space:nowrap;
}

.history-status{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:21px;
  padding:3px 7px;
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:8px;
  line-height:1;
  font-weight:900;
  white-space:nowrap;
}

.history-status.success{
  background:rgba(16,185,129,.10);
  color:#07824f;
}

.history-status.pending,
.history-status.processing{
  background:rgba(245,158,11,.11);
  color:#b54708;
}

.history-status.rejected,
.history-status.failed,
.history-status.cancelled{
  background:rgba(239,68,68,.09);
  color:#b42318;
}

.history-empty{
  min-height:210px;
  margin:5px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:28px 18px;
  border:1px dashed var(--line);
  border-radius:16px;
  background:var(--surface2);
  text-align:center;
}

.history-empty-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  margin-bottom:2px;
  border-radius:15px;
  background:rgba(34,158,217,.10);
  color:var(--primary);
  font-size:19px;
}

.history-empty strong{
  color:var(--text);
  font-size:12px;
  font-weight:900;
}

.history-empty span{
  max-width:380px;
  color:var(--muted);
  font-size:9px;
  line-height:1.6;
}

.history-pagination{
  min-height:0;
  display:flex;
  justify-content:center;
  padding:0 14px 14px;
}

@media(max-width:780px){
  .history-toolbar{
    grid-template-columns:1fr 1fr;
  }
  .history-search{
    grid-column:1/-1;
  }
}

@media(max-width:560px){
  .withdraw-history-item{
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
    gap:10px;
    padding:13px 6px!important;
  }
  .withdraw-history-item .history-item-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
  }
  .history-right{
    grid-column:2;
    min-width:0;
    width:100%;
    display:grid!important;
    grid-template-columns:auto auto 1fr;
    align-items:center!important;
    gap:5px 8px!important;
    text-align:left;
  }
  .history-net-label{
    grid-column:1;
    align-self:end;
  }
  .withdraw-history-item .history-right b{
    grid-column:2;
    font-size:11px;
  }
  .history-fee{
    grid-column:3;
    justify-self:end;
  }
  .history-status{
    grid-column:1/-1;
    justify-self:start;
  }
  .history-item-meta{
    gap:5px 9px;
  }
}

@media(max-width:420px){
  .history-toolbar{
    grid-template-columns:1fr;
  }
  .history-search{
    grid-column:auto;
  }
  .history-filter select{
    width:100%;
  }
  .history-item-meta span:nth-child(2){
    max-width:100%;
  }
}


/* =========================================================
   FINAL FOOTER REDESIGN — MATCH MARKETPLACE
   ========================================================= */
.pastele-footer{
  width:100%;
  margin-top:42px;
  padding:40px 0 20px;
  background:var(--surface);
  border-top:1px solid var(--line);
}

.pastele-footer .footer-container{
  width:min(var(--max),calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(130px,1fr));
  gap:32px;
  align-items:start;
}

.pastele-footer .footer-brand{
  display:block;
  min-width:0;
}

.pastele-footer .footer-brand-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-size:18px;
  font-weight:900;
  letter-spacing:-.035em;
}

.pastele-footer .footer-brand-mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),#06b6d4);
  color:#fff;
  box-shadow:0 8px 22px rgba(34,158,217,.18);
}

.pastele-footer .footer-description{
  max-width:360px;
  margin:13px 0 12px;
  color:var(--muted);
  font-size:11px;
  line-height:1.75;
}

.pastele-footer .footer-platform-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  color:var(--muted);
  font-size:9px;
  font-weight:800;
}

.pastele-footer .footer-status-indicator{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 3px rgba(16,185,129,.10);
}

.pastele-footer .footer-column{
  display:grid;
  align-content:start;
  gap:9px;
  min-width:0;
}

.pastele-footer .footer-column h3{
  margin:0 0 3px;
  color:var(--text);
  font-size:11px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.02em;
}

.pastele-footer .footer-column a{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:26px;
  color:var(--muted);
  font-size:10px;
  font-weight:650;
  transition:color .16s ease,transform .16s ease;
}

.pastele-footer .footer-column a:hover{
  color:var(--primary);
  transform:translateX(2px);
}

.pastele-footer .footer-column a i{
  width:15px;
  flex:0 0 15px;
  color:var(--primary);
  text-align:center;
}

.pastele-footer .footer-bottom{
  width:min(var(--max),calc(100% - 32px));
  margin:30px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:9px;
}

.pastele-footer .footer-copyright{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.pastele-footer .footer-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:7px;
}

.pastele-footer .footer-meta span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:25px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface2);
  white-space:nowrap;
}

.pastele-footer .footer-meta i{
  color:var(--primary);
}

@media(max-width:900px){
  .pastele-footer .footer-container{
    grid-template-columns:1.4fr 1fr 1fr;
  }
  .pastele-footer .footer-brand{
    grid-column:1/-1;
  }
}

@media(max-width:620px){
  .settlement-panel{grid-template-columns:auto minmax(0,1fr);align-items:start}
  .settlement-amount{grid-column:2;font-size:15px;margin-top:-4px}

  .pastele-footer{
    margin-top:30px;
    padding-top:30px;
  }
  .pastele-footer .footer-container{
    width:calc(100% - 20px);
    grid-template-columns:1fr 1fr;
    gap:24px 18px;
  }
  .pastele-footer .footer-brand{
    grid-column:1/-1;
  }
  .pastele-footer .footer-bottom{
    width:calc(100% - 20px);
    flex-direction:column;
    align-items:flex-start;
    margin-top:24px;
  }
  .pastele-footer .footer-meta{
    justify-content:flex-start;
  }
}

@media(max-width:400px){
  .pastele-footer .footer-container{
    grid-template-columns:1fr;
  }
}



/* PasTele NAV MENU — Create dropdown + menu badges */
.pt-create-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:850;cursor:pointer;transition:.18s ease}
.pt-create-toggle span{display:flex;align-items:center;gap:8px}.pt-create-toggle span i{color:var(--primary)}
.pt-create-toggle:hover,.pt-create-toggle.is-open{border-color:rgba(34,158,217,.28);background:rgba(34,158,217,.06);color:var(--primary)}
.pt-create-chevron{font-size:10px;color:var(--muted);transition:transform .18s ease}.pt-create-toggle.is-open .pt-create-chevron{transform:rotate(180deg)}
.pt-create-items{padding-left:7px;border-left:1px solid rgba(34,158,217,.16);margin-left:8px}.pt-create-items[hidden]{display:none!important}
.pt-menu-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:31px;height:19px;padding:0 7px;border-radius:999px;background:rgba(99,91,255,.10);border:1px solid rgba(99,91,255,.18);color:#635bff;font-size:9px;font-weight:900;line-height:1;white-space:nowrap}
.pt-menu-badge-count{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.18);color:#ef4444}.pt-menu-badge-count[hidden]{display:none!important}

/* INLINE GLASS UI — kept in this page stylesheet; no extra global CSS file. */
/* Canonical visual layer — colorful glassmorphism + auto day/night theme.
   Loaded after page CSS so cards/forms/nav/footer share one visual language without replacing page layouts. */
:root{
  --glass-bg:rgba(255,255,255,.62);
  --glass-bg-strong:rgba(255,255,255,.78);
  --glass-border:rgba(255,255,255,.72);
  --glass-border-soft:rgba(99,91,255,.20);
  --glass-shadow:0 18px 55px rgba(31,38,135,.12),0 4px 18px rgba(34,158,217,.08);
  --glass-text:#101828;
  --glass-muted:#667085;
  --glass-cyan:#00d4ff;
  --glass-blue:#2f6bff;
  --glass-violet:#7c3aed;
  --glass-pink:#ec4899;
  --glass-orange:#f59e0b;
  --glass-green:#10b981;
  --glass-purple:#8b5cf6;
}
html[data-theme="dark"]{
  --glass-bg:rgba(12,18,35,.62);
  --glass-bg-strong:rgba(17,25,45,.78);
  --glass-border:rgba(255,255,255,.15);
  --glass-border-soft:rgba(139,92,246,.34);
  --glass-shadow:0 22px 65px rgba(0,0,0,.34),0 5px 22px rgba(0,212,255,.07);
  --glass-text:#f8fafc;
  --glass-muted:#a9b4c7;
}
html,body{transition:background-color .35s ease,color .25s ease}
body{
  background:
    radial-gradient(circle at 8% 8%,rgba(236,72,153,.10),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(0,212,255,.12),transparent 30%),
    radial-gradient(circle at 55% 90%,rgba(124,58,237,.09),transparent 34%),
    var(--bg,#f7f9ff);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 8% 8%,rgba(236,72,153,.12),transparent 30%),
    radial-gradient(circle at 92% 10%,rgba(0,212,255,.10),transparent 30%),
    radial-gradient(circle at 55% 90%,rgba(124,58,237,.13),transparent 36%),
    var(--bg,#080d18);
}
/* Shared glass surfaces. */
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary,form){
  position:relative;
  background:linear-gradient(135deg,rgba(255,255,255,.20),rgba(255,255,255,.04)) padding-box,var(--glass-bg) border-box;
  border:1px solid transparent;
  border-radius:20px;
  box-shadow:var(--glass-shadow);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
}
html[data-theme="dark"] :is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary,form){
  background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.015)) padding-box,var(--glass-bg) border-box;
}
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,.hero-plan,.hero-balance,.market-toolbar,.market-tabs,.checkout-summary){overflow:hidden}
/* Iridescent edge/highlight inspired by the supplied logo. */
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card):before{
  content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(120deg,rgba(0,212,255,.10),transparent 28%,rgba(236,72,153,.08) 52%,transparent 76%,rgba(124,58,237,.10));
  opacity:.75;
}
:is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card):hover{
  transform:translateY(-2px);
  box-shadow:0 24px 70px rgba(31,38,135,.15),0 6px 24px rgba(0,212,255,.09);
}
:is(input,select,textarea){
  background:rgba(255,255,255,.52)!important;
  border-color:rgba(124,58,237,.20)!important;
  color:var(--glass-text)!important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
html[data-theme="dark"] :is(input,select,textarea){background:rgba(8,13,24,.58)!important;border-color:rgba(139,92,246,.30)!important}
:is(input,select,textarea):focus{border-color:rgba(0,212,255,.65)!important;box-shadow:0 0 0 4px rgba(0,212,255,.11),0 10px 30px rgba(124,58,237,.08)!important;outline:none}
:is(button,.btn,.button,.btn-primary,.primary,.market-tab,.hero-action,.period-switch button,.content-tab,.profile-content-tabs button){
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease;
}
:is(button,.btn,.button,.btn-primary,.primary):hover{filter:saturate(1.08);box-shadow:0 12px 30px rgba(124,58,237,.13)}
/* Gradient action surfaces. */
:is(.btn.primary,.btn-primary,.primary,.submit-btn,.auth-submit,.market-buy,.checkout-pay,.create-submit,.save-btn){
  background:linear-gradient(135deg,var(--glass-blue),var(--glass-violet) 48%,var(--glass-pink))!important;
  border-color:transparent!important;color:#fff!important;
  box-shadow:0 12px 30px rgba(99,91,255,.22)!important;
}
/* Canonical navbar/footer logo treatment. */
.pt-brand-mark,.footer-brand-mark{overflow:hidden;background:transparent!important;border:0!important;box-shadow:0 8px 24px rgba(124,58,237,.18)!important}
.pt-brand-mark img,.footer-brand-mark img{width:100%;height:100%;object-fit:contain;display:block}
.pt-nav{background:rgba(255,255,255,.62)!important;border-bottom-color:rgba(124,58,237,.16)!important;backdrop-filter:blur(24px) saturate(170%)!important;-webkit-backdrop-filter:blur(24px) saturate(170%)!important}
html[data-theme="dark"] .pt-nav{background:rgba(8,13,24,.70)!important;border-bottom-color:rgba(139,92,246,.22)!important}
.pastele-footer{background:rgba(255,255,255,.48)!important;border-top-color:rgba(124,58,237,.16)!important;backdrop-filter:blur(22px) saturate(150%)!important;-webkit-backdrop-filter:blur(22px) saturate(150%)!important}
html[data-theme="dark"] .pastele-footer{background:rgba(8,13,24,.56)!important;border-top-color:rgba(139,92,246,.22)!important}
@media (max-width:900px){
  :is(.card,.panel,.content-panel,.metric-panel,.chart-panel,.follower-panel,.form-card,.form-panel,.auth-card,.settings-card,.profile-card,.wallet-card,.checkout-card,.payment-card,.product-card,.market-card,.pricing-card,.table-card,.stat-card,.dashboard-card,.content-card,.section-card,.feature-card,.quick-card,.account-action-card,.profile-stat-card,.profile-quick-card,form){border-radius:17px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Desktop navigation — same source as mobile drawer. */
.pt-desktop-links{display:flex;align-items:center;gap:4px;min-width:0}
.pt-desktop-link{position:relative;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:inherit;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.pt-desktop-link:hover{background:rgba(124,58,237,.08);border-color:rgba(124,58,237,.14);transform:translateY(-1px)}
.pt-desktop-link i:first-child{color:var(--primary,#2f6bff)}
.pt-desktop-create{position:relative}
.pt-desktop-create-btn{cursor:pointer}
.pt-desktop-create-menu{position:absolute;top:calc(100% + 8px);left:0;width:250px;padding:8px;border:1px solid rgba(124,58,237,.18);border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 22px 55px rgba(31,38,135,.18);backdrop-filter:blur(24px) saturate(170%);z-index:2200}
html[data-theme="dark"] .pt-desktop-create-menu{background:rgba(12,18,35,.88);border-color:rgba(139,92,246,.28)}
.pt-desktop-create-menu .pt-link{display:flex;width:100%;color:var(--glass-text);text-decoration:none}
.pt-mini-badge,.pt-mini-notif{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:17px;padding:0 5px;border-radius:999px;background:linear-gradient(135deg,#06b6d4,#6366f1);color:#fff;font-size:8px;font-weight:900;line-height:1}
.pt-mini-badge.new{background:linear-gradient(135deg,#ec4899,#8b5cf6)}
.pt-mini-notif{background:linear-gradient(135deg,#f97316,#ec4899)}
.pt-brand-mark{width:42px!important;height:42px!important;padding:0!important}
.pt-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
.footer-brand-mark{width:42px!important;height:42px!important;padding:0!important}
.footer-brand-mark img{width:100%!important;height:100%!important;object-fit:contain!important}
@media (max-width:1180px){.pt-desktop-link{padding:0 7px}.pt-desktop-link span{display:none}.pt-desktop-link i:first-child{font-size:14px}.pt-mini-badge{display:none}}
@media (max-width:860px){.pt-desktop-links{display:none}.pt-menu-btn{display:grid!important}}
@media (min-width:861px){.pt-menu-btn{display:none!important}}
.auth-logo{overflow:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.auth-logo img{width:100%;height:100%;object-fit:contain;display:block}


/* CANONICAL NAVBAR POSITION FIX — keep navbar in document flow.
   This page owns its own CSS; no global chrome stylesheet is required. */
#navbar{
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  height:auto !important;
  z-index:5000 !important;
}
#navbar .pt-nav{
  position:relative !important;
  inset:auto !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  z-index:1 !important;
}
@media (max-width:700px){
  #navbar .pt-nav{height:64px !important;}
}



/* =========================================================
   WITHDRAWAL CONTROL STATE — FINAL
   ========================================================= */
.withdraw-status.closed{
  border-color:rgba(239,68,68,.28)!important;
  background:linear-gradient(135deg,rgba(239,68,68,.09),rgba(239,68,68,.035))!important;
  color:var(--text);
}
.withdraw-status.closed > i{color:var(--red)!important}
.withdraw-status.open > i{color:var(--green)!important}
.withdraw-box:has(.withdraw-status.closed){
  border-color:rgba(239,68,68,.16);
}
.withdraw-box input:disabled,
.withdraw-box select:disabled{
  cursor:not-allowed;
  opacity:.58;
  background:var(--surface3);
  border-color:var(--line);
}
.withdraw-submit:disabled{
  cursor:not-allowed!important;
}
.instant-actions .inline-loading.closed{
  min-height:76px;
  border:1px dashed rgba(239,68,68,.24);
  border-radius:13px;
  background:rgba(239,68,68,.045);
  color:var(--red);
  gap:7px;
}
.manual-closed-notice{
  box-shadow:0 8px 24px rgba(239,68,68,.06);
}
@media(max-width:780px){
  .withdraw-status{align-items:flex-start}
  .withdraw-status small{line-height:1.55}
}
