* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #050505;
  color: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 80px;
}
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  z-index: 9999;
  padding: 20px;
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
}
.login-page.hidden { display: none; }
.login-box {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}
.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #050505;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
}
.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 28px;
}
.login-group {
  margin-bottom: 14px;
  position: relative;
}
.login-group i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-size: 15px;
  opacity: 0.6;
}
.login-group input {
  width: 100%;
  height: 52px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 14px;
  padding: 0 18px 0 48px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}
.login-group input:focus {
  border-color: rgba(212, 175, 55, 0.3);
  background: #0f0f0f;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}
.login-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5d08a, #d4af37);
  color: #050505;
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  transition: all 0.25s;
}
.login-btn:active { transform: scale(0.98); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-error {
  text-align: center;
  color: #ff6b6b;
  font-size: 12.5px;
  margin-top: 12px;
  min-height: 18px;
}

/* ============================================================
   APP HEADER
   ============================================================ */
.app { display: none; }
.app.active { display: block; }

.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #050505;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}
.header-title { display: flex; flex-direction: column; }
.header-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #d4af37;
}
.header-sub {
  font-size: 11px;
  color: #888;
  font-weight: 500;
}
.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 16px;
  background: rgba(244, 67, 54, 0.06);
  border: 1px solid rgba(244, 67, 54, 0.1);
  transition: all 0.25s;
}
.header-btn:active {
  background: rgba(244, 67, 54, 0.15);
  color: #ff6b6b;
}

/* ============================================================
   CONTENT
   ============================================================ */
.app-content {
  padding: 76px 16px 24px;
}

/* ============================================================
   GREETING
   ============================================================ */
.greeting { margin-bottom: 20px; }
.greeting h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.greeting h1 span { color: #d4af37; }
.greeting p { font-size: 13px; color: #666; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
}
.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stat-card-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.stat-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.stat-card-icon.gold { background: rgba(212, 175, 55, 0.1); color: #d4af37; }
.stat-card-icon.blue { background: rgba(100, 200, 255, 0.1); color: #64c8ff; }
.stat-card-icon.green { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.stat-card-icon.red { background: rgba(244, 67, 54, 0.1); color: #ff6b6b; }
.stat-card-value {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.stat-card-delta {
  font-size: 11.5px;
  color: #4caf50;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.stat-mini {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
}
.stat-mini-label {
  font-size: 10.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 6px;
}
.stat-mini-value {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #f5d08a;
}
.stat-mini-sub {
  font-size: 10.5px;
  color: #555;
  margin-top: 4px;
}

/* ============================================================
   PANEL
   ============================================================ */
.panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-title {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title i { color: #d4af37; font-size: 14px; }
.chart-wrap { position: relative; height: 200px; }

/* ============================================================
   REFRESH BUTTON
   ============================================================ */
.refresh-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.1);
  color: #d4af37;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
}
.refresh-btn:active {
  background: rgba(212, 175, 55, 0.12);
  transform: scale(0.98);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-bar {
  position: relative;
  margin-bottom: 14px;
}
.search-bar i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
}
.search-bar input {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0 16px 0 42px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}
.search-bar input:focus {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.03);
}
.search-bar input::placeholder { color: #555; }

/* ============================================================
   USER CARD
   ============================================================ */
.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.user-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.user-card:active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.1);
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  color: #050505;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #888;
  flex-wrap: wrap;
}
.user-balance {
  font-size: 12px;
  font-weight: 700;
  color: #f5d08a;
  font-family: 'Share Tech Mono', monospace;
  margin-top: 4px;
}
.user-chev {
  color: #444;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge.gold { background: rgba(212, 175, 55, 0.12); color: #d4af37; }
.badge.blue { background: rgba(100, 200, 255, 0.12); color: #64c8ff; }
.badge.success { background: rgba(76, 175, 80, 0.12); color: #4caf50; }
.badge.pending { background: rgba(255, 193, 7, 0.12); color: #ffc107; }
.badge.failed { background: rgba(244, 67, 54, 0.12); color: #ff6b6b; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #888;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.page-btn:active { transform: scale(0.95); }
.page-btn.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 68px;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #555;
  font-size: 10px;
  font-weight: 500;
  padding: 8px 4px;
  transition: color 0.25s;
  position: relative;
  cursor: pointer;
}
.nav-item i {
  font-size: 19px;
  transition: color 0.25s, transform 0.25s;
}
.nav-item.active { color: #d4af37; }
.nav-item.active i {
  color: #d4af37;
  transform: translateY(-1px);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  border-radius: 0 0 3px 3px;
}

/* ============================================================
   PAGE
   ============================================================ */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 92vh;
  background: linear-gradient(180deg, #0f0f0f 0%, #080808 100%);
  border-radius: 24px 24px 0 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px;
  height: 4px;
  background: #333;
  border-radius: 4px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}
.sheet-header {
  padding: 12px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}
.sheet-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sheet-subtitle {
  font-size: 12.5px;
  color: #666;
}
.sheet-tabs {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sheet-tabs::-webkit-scrollbar { display: none; }
.sheet-tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
  cursor: pointer;
}
.sheet-tab.active { color: #d4af37; }
.sheet-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%; right: 20%;
  height: 2px;
  background: #d4af37;
  border-radius: 2px 2px 0 0;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 24px;
}
.sheet-body::-webkit-scrollbar { width: 3px; }
.sheet-body::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
.sheet-tab-content { display: none; }
.sheet-tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ============================================================
   USER DETAIL
   ============================================================ */
.user-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.user-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #050505;
  flex-shrink: 0;
}
.user-detail-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 5px;
}
.user-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 12.5px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.info-label i { color: #d4af37; width: 14px; font-size: 12px; }
.info-value {
  font-size: 13px;
  color: #ddd;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.info-value.mono {
  font-family: 'Share Tech Mono', monospace;
  color: #f5d08a;
  font-weight: 700;
}

/* ============================================================
   BALANCE BOX
   ============================================================ */
.balance-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  text-align: center;
}
.balance-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.balance-amount {
  font-size: 30px;
  font-weight: 700;
  color: #f5d08a;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.5px;
}

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 12px;
  color: #888;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  height: 48px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-size: 14.5px;
  outline: none;
  transition: all 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.form-textarea {
  height: auto;
  min-height: 80px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(212, 175, 55, 0.25);
  background: #0f0f0f;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color: #444; }
.form-select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
.form-nominal { position: relative; }
.form-nominal .prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-weight: 700;
  font-size: 15px;
  font-family: 'Share Tech Mono', monospace;
  pointer-events: none;
}
.form-nominal input {
  padding-left: 58px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 17px;
  font-weight: 600;
}

/* Type toggle */
.type-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.type-btn {
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #777;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.type-btn:active { transform: scale(0.96); }
.type-btn.active {
  background: linear-gradient(180deg, #f5d08a, #d4af37);
  color: #050505;
}

/* Quick amounts */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.qa-btn {
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #999;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
  text-align: center;
  transition: all 0.2s;
}
.qa-btn:active { transform: scale(0.95); }

/* Switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  margin-bottom: 14px;
}
.switch-info { flex: 1; }
.switch-title { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.switch-desc { font-size: 11px; color: #666; }
.switch {
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #333;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
}
.switch.on { background: #4caf50; }
.switch.on::after { transform: translateX(18px); }

/* Preview */
.preview-box {
  background: rgba(212, 175, 55, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.preview-value {
  font-size: 15px;
  font-weight: 700;
  color: #f5d08a;
  font-family: 'Share Tech Mono', monospace;
}
.preview-arrow { color: #d4af37; font-size: 18px; }

/* Buttons */
.btn {
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #f5d08a, #d4af37);
  color: #050505;
  font-weight: 700;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ============================================================
   HISTORY LIST
   ============================================================ */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px;
}
.history-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.history-item-type { font-size: 12.5px; font-weight: 700; }
.history-item-type.add { color: #4caf50; }
.history-item-type.sub { color: #ff6b6b; }
.history-item-type.set { color: #d4af37; }
.history-item-amount {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}
.history-item-amount.add { color: #4caf50; }
.history-item-amount.sub { color: #ff6b6b; }
.history-item-amount.set { color: #d4af37; }
.history-item-detail { font-size: 11.5px; color: #777; line-height: 1.5; }
.history-item-detail strong { color: #aaa; }

/* ============================================================
   LOADING / EMPTY
   ============================================================ */
.loading-state, .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #555;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-state i { font-size: 24px; color: #d4af37; }
.empty-state i { font-size: 40px; color: #333; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 16px;
  right: 16px;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  border: 1px solid rgba(76, 175, 80, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.toast.show { transform: translateY(0); }
.toast i { color: #4caf50; font-size: 18px; flex-shrink: 0; }
.toast.error { border-color: rgba(244, 67, 54, 0.15); }
.toast.error i { color: #ff6b6b; }

/* ============================================================
   TOTAL CARD (overview)
   ============================================================ */
.total-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
  border-color: rgba(212, 175, 55, 0.15);
  margin-bottom: 16px;
}
.total-card .stat-card-value {
  font-size: 32px;
  color: #f5d08a;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

/* ============================================================
   BREAKDOWN GRID
   ============================================================ */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.breakdown-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.breakdown-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 8px;
}
.breakdown-icon.gold { background: rgba(212, 175, 55, 0.1); color: #d4af37; }
.breakdown-icon.blue { background: rgba(100, 200, 255, 0.1); color: #64c8ff; }
.breakdown-icon.green { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.breakdown-icon.red { background: rgba(244, 67, 54, 0.1); color: #ff6b6b; }
.breakdown-label {
  font-size: 10.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 4px;
}
.breakdown-value {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #f5d08a;
  margin-bottom: 2px;
}
.breakdown-count {
  font-size: 10px;
  color: #555;
}

/* ============================================================
   CHART TOGGLES
   ============================================================ */
.chart-toggles {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 3px;
}
.chart-toggle {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: #777;
  transition: all 0.25s;
}
.chart-toggle.active {
  background: rgba(212, 175, 55, 0.15);
  color: #d4af37;
}

/* ============================================================
   CHIPS ROW (filter)
   ============================================================ */
.chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #777;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.25s;
  cursor: pointer;
}
.chip:active { transform: scale(0.96); }
.chip.active {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.15);
  color: #d4af37;
  font-weight: 600;
}

/* ============================================================
   TRANSACTION LIST
   ============================================================ */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tx-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.tx-card:active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.1);
}
.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.tx-icon.gold { background: rgba(212, 175, 55, 0.1); color: #d4af37; }
.tx-icon.blue { background: rgba(100, 200, 255, 0.1); color: #64c8ff; }
.tx-icon.green { background: rgba(76, 175, 80, 0.1); color: #4caf50; }
.tx-icon.red { background: rgba(244, 67, 54, 0.1); color: #ff6b6b; }
.tx-info { flex: 1; min-width: 0; }
.tx-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-detail {
  font-size: 11px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.tx-amount {
  font-size: 14px;
  font-weight: 700;
  color: #f5d08a;
  font-family: 'Share Tech Mono', monospace;
}
.tx-bot-badge {
  font-size: 9px;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.tx-bot-badge.bot1 { background: rgba(212, 175, 55, 0.12); color: #d4af37; }
.tx-bot-badge.bot2 { background: rgba(100, 200, 255, 0.12); color: #64c8ff; }

/* ============================================================
   BOT CARDS (Bots page)
   ============================================================ */
.bot-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bot-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.bot-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
}
.bot-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.bot-card-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bot-card-title i {
  color: #d4af37;
  font-size: 14px;
}
.bot-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #4caf50;
  font-weight: 600;
  background: rgba(76, 175, 80, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
}
.bot-status .dot {
  width: 6px;
  height: 6px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.bot-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.bot-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 10px 12px;
}
.bot-stat-label {
  font-size: 9.5px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 4px;
}
.bot-stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #f5d08a;
}
.bot-stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.bot-stage-item {
  text-align: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.bot-stage-item .stage-name {
  font-size: 9px;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.bot-stage-item .stage-count {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #ddd;
}
.bot-stage-item.active {
  background: rgba(212, 175, 55, 0.08);
}
.bot-stage-item.active .stage-count { color: #d4af37; }

/* ============================================================
   PULSE DOT animation
   ============================================================ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   HEADER MENU BUTTON (drawer)
   ============================================================ */
.header-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-size: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: all 0.25s;
  margin-right: 12px;
}
.header-menu-btn:active {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(0.95);
}

/* ============================================================
   DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: linear-gradient(180deg, #080808 0%, #0d0d0d 100%);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(212, 175, 55, 0.08);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.drawer-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #050505;
  flex-shrink: 0;
}
.drawer-brand {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.drawer-brand span {
  display: block;
  font-size: 10px;
  color: #666;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.25s;
}
.drawer-close:active {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
}
.drawer-user {
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #050505;
  flex-shrink: 0;
}
.drawer-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.drawer-role {
  font-size: 10.5px;
  color: #d4af37;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.drawer-menu {
  flex: 1;
  padding: 12px;
}
.drawer-label {
  font-size: 9.5px;
  text-transform: uppercase;
  color: #444;
  letter-spacing: 2px;
  padding: 14px 12px 8px;
  font-weight: 700;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #888;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.25s;
  cursor: pointer;
  margin-bottom: 2px;
}
.drawer-item:active {
  background: rgba(212, 175, 55, 0.08);
  color: #f5d08a;
  transform: translateX(3px);
}
.drawer-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: #666;
}
.drawer-item:active i {
  color: #d4af37;
}

/* ============================================================
   BOT SELECTOR TABS
   ============================================================ */
.chips-row .chip[onclick^="switchBotTab"],
.chips-row .chip[onclick^="switchLogTab"] {
  cursor: pointer;
}

/* ============================================================
   FORM in pages
   ============================================================ */
.app-content .panel .form-group {
  margin-bottom: 10px;
}
.app-content .panel .form-input,
.app-content .panel .form-select {
  height: 44px;
  font-size: 14px;
}
.app-content .panel .form-textarea {
  font-size: 13px;
  min-height: 80px;
}

/* ============================================================
   BROADCAST LIST
   ============================================================ */
.bcast-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bcast-item-info { flex: 1; min-width: 0; }
.bcast-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcast-item-detail {
  font-size: 10.5px;
  color: #666;
}
.bcast-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bcast-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.12);
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.bcast-delete-btn:active { transform: scale(0.92); }

/* ============================================================
   AUTO REPLY LIST
   ============================================================ */
.ar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ar-trigger {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
}
.ar-reply {
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.4;
  word-break: break-word;
}
.ar-actions {
  flex-shrink: 0;
}

/* ============================================================
   USER ID LIST (ban/mute)
   ============================================================ */
.id-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.id-chip {
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.12);
  color: #ff6b6b;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.id-chip.mute {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.12);
  color: #ffc107;
}
.id-chip .id-chip-remove {
  color: inherit;
  opacity: 0.5;
  font-size: 10px;
  cursor: pointer;
}
.id-chip .id-chip-remove:active { opacity: 1; }

/* ============================================================
   STAGE USERS GRID
   ============================================================ */
.stage-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.stage-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stage-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #f5d08a;
}
.stage-section-count {
  font-size: 11px;
  color: #666;
}
.stage-id-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}
.stage-id-list::-webkit-scrollbar { width: 3px; }
.stage-id-list::-webkit-scrollbar-thumb { background: #222; border-radius: 3px; }
.stage-id-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #999;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ============================================================
   STAGE TEMPLATE EDITOR
   ============================================================ */
.stage-template-item {
  margin-bottom: 12px;
}
.stage-template-label {
  font-size: 11px;
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stage-template-text {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
  color: #bbb;
  font-size: 11.5px;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  min-height: 70px;
}

/* ============================================================
   TOP USER LIST
   ============================================================ */
.top-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 6px;
}
.top-user-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.top-user-rank.gold { background: rgba(212, 175, 55, 0.2); color: #f5d08a; }
.top-user-info { flex: 1; min-width: 0; }
.top-user-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-user-meta {
  font-size: 10.5px;
  color: #666;
}
.top-user-amount {
  font-size: 13px;
  font-weight: 700;
  color: #f5d08a;
  font-family: 'Share Tech Mono', monospace;
  flex-shrink: 0;
}

/* ============================================================
   LOG ITEMS
   ============================================================ */
.log-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.log-action {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
}
.log-time {
  margin-left: auto;
  font-size: 10px;
  color: #555;
}
.log-detail {
  font-size: 11.5px;
  color: #888;
  line-height: 1.4;
}
.log-detail strong { color: #ccc; }

/* ============================================================
   ADMIN LIST
   ============================================================ */
.admin-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 8px;
}
.admin-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5d08a, #d4af37);
  color: #050505;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.admin-info { flex: 1; min-width: 0; }
.admin-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.admin-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #666;
}
.admin-role-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.admin-role-badge.super_admin { background: rgba(212, 175, 55, 0.15); color: #d4af37; }
.admin-role-badge.admin { background: rgba(100, 200, 255, 0.12); color: #64c8ff; }
.admin-role-badge.viewer { background: rgba(255, 255, 255, 0.06); color: #888; }
.admin-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(244, 67, 54, 0.08);
  border: 1px solid rgba(244, 67, 54, 0.12);
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.admin-delete-btn:active { transform: scale(0.92); }

/* ============================================================
   RANGE RESULT
   ============================================================ */
.range-summary {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.range-summary-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.range-summary-value {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
  color: #f5d08a;
  margin-top: 4px;
}
.range-summary-count {
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

/* ============================================================
   TOAST OVERRIDE — lebih simpel & auto remove
   ============================================================ */
.toast {
  position: fixed !important;
  bottom: 100px !important;
  left: 16px !important;
  right: 16px !important;
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f) !important;
  border: 1px solid rgba(76, 175, 80, 0.3) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: #fff !important;
  font-size: 13px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  z-index: 99999 !important;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}
.toast i {
  color: #4caf50 !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}
.toast.error {
  border-color: rgba(244, 67, 54, 0.3) !important;
}
.toast.error i {
  color: #ff6b6b !important;
}
