/* ── USBCONNECT Design System CSS ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Primary GREEN palette (replaces old blue tokens) */
  --blue-dark: #003D1F;       /* darkest green */
  --blue-mid: #016836;        /* PRIMARY brand green */
  --blue-main: #017A3F;       /* main interactive green */
  --blue-light: #2E9461;      /* hover/lighter green */
  --blue-pale: #ECFDF5;       /* very pale green bg */
  --blue-pale2: #D1FAE5;      /* light green chip */
  /* GOLD accents */
  --gold: #D4AF37;
  --gold-light: #F0D87C;
  --gold-dark: #A07C1F;
  --gold-pale: #FDF8E7;
  /* Keep originals for compatibility */
  --green: #10B981;
  --green-dark: #059669;
  --red: #EF4444;
  --orange: #F97316;
  --yellow: #F59E0B;
  --purple: #7C3AED;
  --text-dark: #0F172A;
  --text-mid: #334155;
  --text-soft: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --bg: #F4F7F2;             /* slightly green-tinted clean bg */
  --bg-white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 28px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 14px rgba(1,104,54,0.4);  /* green shadow */
  --shadow-gold: 0 4px 14px rgba(212,175,55,0.35);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ── App container (mobile-centered) ── */
#app-wrap {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(180deg, #003D1F 0%, #016836 100%);
}
#app {
  width: 100%;
  max-width: 430px;
  background: var(--bg);
  height: 100vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.3);
}

/* Pages — fill viewport absolutely */
.page {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.page.active { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }
[style*="overflow-x"]::-webkit-scrollbar { display: none; }

/* ── Rainbow bar ── */
.rainbow-bar {
  height: 4px;
  background: linear-gradient(90deg, #017A3F 0%, #7C3AED 20%, #DC2626 36%, #EA580C 52%, #CA8A04 68%, #16A34A 100%);
}

/* ── Loading Screen ── */
#loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #003D1F 0%, #016836 55%, #017A3F 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon-wrap {
  position: relative;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  animation: loaderBob 1.3s ease-in-out infinite;
}
.loader-ring {
  position: absolute; width: 100%; height: 100%;
  border-radius: 26px;
  border: 2px solid rgba(212,175,55,0.5);
  animation: loaderRing 1.5s ease-out infinite;
}
.loader-icon {
  width: 84px; height: 84px; border-radius: 22px;
  background: #003D1F;
  border: 2px solid #D4AF37;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.4), 0 0 0 4px rgba(212,175,55,0.2);
  animation: loaderFlip 1.9s ease-in-out infinite;
  overflow: hidden;
}
.loader-icon img { width: 78px; height: 78px; object-fit: cover; border-radius: 18px; }
.loader-title { color: #D4AF37; font-weight: 800; font-size: 19px; letter-spacing: 3px; margin-top: 28px; font-family: 'Plus Jakarta Sans', sans-serif; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.loader-dots { display: flex; gap: 7px; margin-top: 14px; }
.loader-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #D4AF37;
}
.loader-dot:nth-child(1) { animation: loaderDot 1.2s ease-in-out 0s infinite; }
.loader-dot:nth-child(2) { animation: loaderDot 1.2s ease-in-out 0.15s infinite; }
.loader-dot:nth-child(3) { animation: loaderDot 1.2s ease-in-out 0.3s infinite; }

@keyframes loaderBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes loaderFlip { 0%{transform:perspective(420px) rotateY(0deg)} 100%{transform:perspective(420px) rotateY(360deg)} }
@keyframes loaderDot { 0%,80%,100%{transform:scale(0.5);opacity:0.35} 40%{transform:scale(1);opacity:1} }
@keyframes loaderRing { 0%{transform:scale(0.85);opacity:0.6} 100%{transform:scale(1.7);opacity:0} }
@keyframes pageIn { 0%{opacity:0;transform:translateY(8px)} 100%{opacity:1;transform:translateY(0)} }

.page-anim { animation: pageIn .35s ease both; }

/* ── Bottom Nav ── */
#bottom-nav {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1; padding: 10px 0 8px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-btn .nav-icon {
  display: flex; align-items: center; justify-content: center;
  height: 22px; color: var(--text-muted);
}
.nav-btn .nav-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.nav-btn .nav-label { font-size: 9.5px; font-weight: 500; color: var(--text-muted); }
.nav-btn.active .nav-icon { color: #016836; }
.nav-btn.active .nav-label { color: #016836; font-weight: 700; }
.nav-btn.active::after {
  content: ''; position: absolute; bottom: 0;
  width: 32px; height: 3px;
  background: linear-gradient(90deg, #D4AF37, #F0D87C, #D4AF37);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(212,175,55,0.5);
}

/* ── Header ── */
.header-blue {
  background: linear-gradient(160deg, #003D1F 0%, #016836 45%, #017A3F 100%);
  padding-bottom: 60px;
  position: relative; overflow: hidden;
}
.header-blue .h-circle1 {
  position: absolute; width: 220px; height: 220px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  top: -80px; right: -60px; filter: blur(20px);
}
.header-blue .h-circle2 {
  position: absolute; width: 160px; height: 160px;
  background: rgba(1,104,54,0.25); border-radius: 50%;
  bottom: 20px; left: -40px; filter: blur(30px);
}

/* ── Cards ── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
}
.card-floating {
  margin: 0 12px;
  margin-top: -48px;
  position: relative; z-index: 10;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #017A3F 0%, #016836 60%, #003D1F 100%);
  color: #fff; border: 1px solid rgba(212,175,55,0.4); border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(1,104,54,0.4), inset 0 1px 0 rgba(212,175,55,0.25);
  font-family: inherit;
  transition: transform 0.1s, box-shadow 0.1s;
  position: relative;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); box-shadow: none; cursor: not-allowed; border-color: var(--border); }
.btn-green { background: linear-gradient(135deg, #10B981, #059669); box-shadow: 0 4px 14px rgba(16,185,129,0.4); }
.btn-danger { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); color: var(--red); border: 1.5px solid #FECACA; box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, #F0D87C 0%, #D4AF37 60%, #A07C1F 100%); color: #003D1F; border: 1px solid #A07C1F; box-shadow: 0 4px 14px rgba(212,175,55,0.4); font-weight: 800; }

/* ── Inputs ── */
.field-group { margin-bottom: 16px; }
.field-label {
  display: block; font-size: 11px; font-weight: 700;
  color: #374151; letter-spacing: 0.3px;
  margin-bottom: 7px; text-transform: uppercase;
}
.field-input {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  background: #FAFAFA; color: var(--text-dark);
  outline: none; transition: border-color 0.2s;
}
.field-input:focus { border-color: var(--blue-main); background: #fff; }
select.field-input { cursor: pointer; }

/* ── 3D Icon ── */
.icon3d {
  border-radius: 15px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.icon3d::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  border-radius: 15px 15px 50% 50%;
}

/* ── Menu Grid ── */
.menu-grid { display: flex; justify-content: space-around; }
.menu-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  flex: 1; -webkit-tap-highlight-color: transparent;
}
.menu-item span { font-size: 10px; color: var(--text-mid); font-weight: 500; text-align: center; line-height: 1.2; width: 52px; }

/* ── Carousel ── */
.carousel-wrap { position: relative; }
.carousel-track {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 0 14px 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex-shrink: 0; scroll-snap-align: center; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.carousel-dot {
  height: 6px; border-radius: 3px;
  background: var(--border); transition: all 0.3s;
  cursor: pointer;
}
.carousel-dot.active { width: 18px; background: var(--blue-main); }
.carousel-dot:not(.active) { width: 6px; }

/* ── Carousel image slides ── */
.product-slide {
  border-radius: 18px; overflow: hidden;
  width: 100%; height: 152px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-main));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
}
.product-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-slide .slide-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 13px; font-weight: 500;
}

/* ── Promo cards ── */
.promo-card {
  border-radius: 14px; padding: 14px; flex-shrink: 0;
  width: 160px; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.promo-tag {
  background: rgba(255,255,255,0.2); border-radius: 6px;
  padding: 2px 8px; font-size: 9px; font-weight: 800;
  color: #fff; display: inline-block; margin-bottom: 10px;
}
.promo-title { color: #fff; font-size: 12.5px; font-weight: 800; margin-bottom: 4px; line-height: 1.3; }
.promo-sub { color: rgba(255,255,255,0.65); font-size: 11px; }

/* ── Transaction item ── */
.trx-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-top: 1px solid #F8FAFC;
}
.trx-item:first-child { border-top: none; }
.trx-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.badge-ok { background: #DCFCE7; color: #16A34A; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.badge-fail { background: #FEE2E2; color: var(--red); padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.badge-pending { background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; }

/* ── Profile menu list ── */
.profile-menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; background: #fff;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.profile-menu-item:hover { background: #FAFAFA; }
.profile-menu-item .pmi-label { font-size: 13px; font-weight: 500; color: var(--text-mid); flex: 1; }
.profile-menu-item .pmi-arrow { color: var(--border); font-size: 18px; }

/* ── Balance section ── */
.balance-amount { color: #fff; font-weight: 900; font-size: 32px; letter-spacing: -1.5px; line-height: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* ── Saldo buttons ── */
.btn-deposit {
  flex: 1; background: #fff; border: none; border-radius: 13px;
  padding: 11px 0; color: var(--blue-mid);
  font-size: 13px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18); font-family: inherit;
}
.btn-withdraw {
  flex: 1; background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 13px; padding: 11px 0; color: #fff;
  font-size: 13px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit;
}

/* ── Login Page ── */
.login-wrap { display: flex; min-height: 100vh; background: #F0F4FF; }
.login-left {
  width: 380px; flex-shrink: 0;
  background: linear-gradient(160deg, #003D1F 0%, #013E22 50%, #016836 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 40px; position: relative; overflow: hidden;
}
.login-right {
  flex: 1; display: flex; align-items: center;
  justify-content: center; padding: 40px 32px; background: #fff;
}
@media (max-width: 768px) {
  .login-wrap { flex-direction: column; }
  .login-left { width: 100%; padding: 40px 24px; }
  .login-right { padding: 32px 20px; }
}
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F1F5F9; border-radius: 14px; padding: 5px; gap: 4px; margin-bottom: 24px; }
.role-tab {
  padding: 11px; font-size: 13px; font-weight: 700;
  color: var(--text-soft); border: none; background: transparent;
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
  font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: 7px;
}
.role-tab.active { background: #fff; color: var(--blue-main); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

/* ── Admin Panel (full desktop) ── */
.admin-wrap { display: flex; min-height: 100vh; font-family: 'Inter', sans-serif; }
.admin-sidebar {
  width: 248px;
  background: linear-gradient(180deg, #003D1F 0%, #013E22 100%);
  display: flex; flex-direction: column;
  flex-shrink: 0; border-right: 2px solid #D4AF37;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  overflow-y: auto;
}
.admin-main { flex: 1; margin-left: 248px; background: #F4F7F2; min-height: 100vh; }
.admin-topbar {
  background: #fff; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 40;
}
.admin-content { padding: 24px; }

.sidebar-logo { padding: 20px 20px 10px; display: flex; align-items: center; gap: 10px; }
.sidebar-logo img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; border: 1.5px solid #D4AF37; }
.sidebar-logo span {
  font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, #fff 0%, #F0D87C 60%, #D4AF37 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.sidebar-nav { flex: 1; padding: 8px 0; }
.sidebar-section { padding: 14px 20px 6px; font-size: 10px; font-weight: 700; color: rgba(212,175,55,0.6); letter-spacing: 0.8px; text-transform: uppercase; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,0.7);
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { background: rgba(212,175,55,0.08); color: #fff; }
.sidebar-item.active {
  background: rgba(212,175,55,0.15); color: #fff;
  border-left-color: #D4AF37; font-weight: 700;
}
.sidebar-item .si-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }

/* Admin stats card */
.stat-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); }
.stat-card .sc-value { font-size: 28px; font-weight: 900; letter-spacing: -1px; color: var(--text-dark); }
.stat-card .sc-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card .sc-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 16px; text-align: left; color: var(--text-muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 16px; border-bottom: 1px solid #F1F5F9; font-size: 13px; color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFAFA; }

/* Modals */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,0.75); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px; backdrop-filter: blur(8px); }
.modal-box { background: #fff; border-radius: 24px; padding: 28px; width: 100%; max-width: 420px; box-shadow: 0 32px 80px rgba(0,0,0,0.35); }
.modal-title { font-size: 18px; font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }

/* Alert */
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.alert-info { background: #ECFDF5; color: #015A2E; border: 1px solid #A7F3D0; border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }

/* Section header */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 14px; }
.section-title { font-size: 14px; font-weight: 800; color: var(--text-dark); }
.section-link { font-size: 12px; color: var(--blue-main); font-weight: 600; cursor: pointer; text-decoration: none; }

/* Pages */
.page {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.page.active { display: block; }

/* Referral block */
.referral-block {
  background: linear-gradient(135deg, #003D1F 0%, #016836 60%, #017A3F 100%);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 16px; padding: 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(1,104,54,0.3);
}
.referral-code-box {
  flex: 1; background: rgba(212,175,55,0.15);
  border: 1.5px dashed rgba(212,175,55,0.6);
  border-radius: 10px; padding: 10px 14px;
  color: #F0D87C; font-weight: 800; font-size: 16px;
  letter-spacing: 1.5px; display: flex; align-items: center;
}

/* Points / Freelance */
.point-card {
  background: linear-gradient(135deg, #003D1F 0%, #016836 60%, #017A3F 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 16px; padding: 20px;
  color: #fff; margin-bottom: 12px;
}
.point-value { font-size: 36px; font-weight: 900; letter-spacing: -2px; color: #F0D87C; }
.commission-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #F1F5F9; }
.commission-row:last-child { border-bottom: none; }

/* Step bar */
.step-bar { display: flex; align-items: center; gap: 0; }
.step-circle { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.step-line { flex: 1; height: 2px; }

/* Sticky page header */
.page-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #003D1F 0%, #016836 60%, #017A3F 100%);
  border-bottom: 2px solid #D4AF37;
  flex-shrink: 0;
}
.page-header .back-btn {
  width: 34px; height: 34px; background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.4); border-radius: 10px;
  cursor: pointer; color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
}
.page-header .ph-title { color: #fff; font-weight: 700; font-size: 16px; }

/* ── Responsive admin mobile ── */
@media (max-width: 900px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
}
@media (max-width: 680px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

/* Success overlay */
.success-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px; backdrop-filter: blur(8px);
}
.success-box {
  background: #fff; border-radius: 24px; padding: 32px;
  text-align: center; width: 100%; max-width: 360px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
.success-check {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 30px; margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.4); color: white; font-weight: 900;
}

/* Tag filter */
.filter-tabs { display: flex; gap: 6px; padding: 12px 14px 8px; overflow-x: auto; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 7px 16px; border-radius: 20px; border: none;
  cursor: pointer; font-size: 12px; font-weight: 700;
  white-space: nowrap; font-family: inherit;
  background: #fff; color: var(--text-soft);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s;
}
.filter-tab.active { background: var(--blue-main); color: #fff; }

/* Freelance syarat */
.syarat-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.syarat-title { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.syarat-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F8FAFC; font-size: 13px; color: var(--text-mid); line-height: 1.5; }
.syarat-item:last-child { border-bottom: none; }
.syarat-num { width: 22px; height: 22px; background: var(--blue-pale); color: var(--blue-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }

/* Commission tiers */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tier-card { background: var(--blue-pale); border-radius: 12px; padding: 14px; text-align: center; border: 1px solid var(--blue-pale2); }
.tier-boxes { font-size: 13px; font-weight: 800; color: var(--blue-mid); }
.tier-val { font-size: 16px; font-weight: 900; color: var(--blue-main); }

/* Image upload preview */
.img-preview-wrap { width: 100%; height: 120px; border-radius: 12px; overflow: hidden; background: var(--bg); border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: 10px; transition: border-color 0.2s; }
.img-preview-wrap:hover { border-color: var(--blue-main); }
.img-preview-wrap img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; }

/* Notification badge */
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: #EF4444; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.3); }

/* DragScroll - override cursor on desktop */
.drag-scroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.drag-scroll::-webkit-scrollbar { display: none; }

/* Freelance ranking sortable */
.rank-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; cursor: grab; }
.rank-item:last-child { border-bottom: none; }
.rank-handle { font-size: 16px; color: var(--text-muted); cursor: grab; }
.rank-order { width: 28px; height: 28px; background: var(--blue-pale); color: var(--blue-main); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex-shrink: 0; }
