:root {
  --bg-color: #0b0f19;
  --text-color: #f8fafc;
  --hint-color: #94a3b8;
  --brand-blue: #38bdf8;
  --brand-green: #34d399;
  --brand-red: #f87171;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Glassmorphism Variables */
  --glass-bg: rgba(22, 30, 46, 0.65);
  --glass-bg-subtle: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-hover: rgba(56, 189, 248, 0.4);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px) saturate(180%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(52, 211, 153, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #080c14 100%);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

/* Ambient glow backgrounds */
.glass-bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 260px;
  height: 260px;
  background: rgba(56, 189, 248, 0.15);
  top: -60px;
  right: -40px;
}
.glow-2 {
  width: 240px;
  height: 240px;
  background: rgba(52, 211, 153, 0.12);
  bottom: 80px;
  left: -50px;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 90px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* GLASS PANEL UTILITY */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(25, 33, 50, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-btn:active {
  transform: scale(0.97);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11.5px;
  color: var(--hint-color);
}

/* HEADER */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-radius: 0 0 18px 18px;
  border-top: none;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glass-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(52, 211, 153, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.user-id {
  font-size: 11px;
  color: var(--hint-color);
  margin-top: 1px;
}

.balance-badge {
  border-radius: 12px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bal-col {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.bal-label {
  font-size: 9.5px;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.bal-amount {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1.2;
}

.topup-plus-btn {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

/* TABS CONTAINER */
.tab-content {
  display: none;
  padding: 16px 14px;
  animation: fadeIn 0.25s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SEARCH BOX */
.search-box {
  position: relative;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--hint-color);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 13.5px;
  outline: none;
}

.search-box input::placeholder {
  color: var(--hint-color);
  font-size: 13px;
}

.clear-btn {
  position: absolute;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--hint-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* SERVER SEGMENTED TABS */
.server-tabs {
  display: flex;
  border-radius: 13px;
  padding: 4px;
  gap: 5px;
  margin-bottom: 12px;
}

.server-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--hint-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.srv-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hint-color);
  opacity: 0.4;
  transition: all 0.2s;
}

.server-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.server-btn.active .srv-indicator {
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
  opacity: 1;
}

.srv-tag {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hint-color);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.server-btn.active .srv-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* FILTER & SORT BAR */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--hint-color);
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  gap: 6px;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hint-color);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
}

.filter-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--brand-blue);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* SECTION TITLES */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 2px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-color);
}

.refresh-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
}

/* COUNTRIES GRID */
.countries-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.country-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(22, 30, 48, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.country-card:hover {
  background: rgba(30, 41, 65, 0.7);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.country-card:active {
  transform: scale(0.985);
}

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

/* Real Flag Image */
.flag-wrapper {
  width: 32px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.country-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.country-flag-fallback {
  font-size: 16px;
  line-height: 1;
}

.country-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.country-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.dial-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.stock-tag {
  font-size: 11px;
  color: var(--hint-color);
}

.country-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.country-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-green);
  letter-spacing: -0.2px;
}

.buy-btn {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-blue);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.country-card:hover .buy-btn {
  background: var(--brand-blue);
  color: #0b0f19;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* ORDERS LIST */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.order-card {
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}

.order-time {
  font-size: 11px;
  color: var(--hint-color);
}

.order-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  padding: 8px 12px;
  border-radius: 9px;
}

.order-phone {
  font-family: monospace;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.copy-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.copy-pill:active {
  background: rgba(255, 255, 255, 0.2);
}

.order-sms-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 9px;
  padding: 9px 12px;
}

.sms-code {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-green);
  font-family: monospace;
}

.sms-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hint-color);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* WALLET TAB */
.wallet-card {
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.wallet-title {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--hint-color);
  font-weight: 700;
}

.wallet-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-green);
  margin: 6px 0;
  letter-spacing: -0.5px;
}

.wallet-desc {
  font-size: 12px;
  color: var(--hint-color);
}

.topup-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.preset-btn {
  border-radius: 11px;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.preset-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.custom-amount-box {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.custom-amount-box input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 13.5px;
  outline: none;
}

.glass-action-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
  transition: all 0.2s;
}

.glass-action-btn:active {
  transform: scale(0.98);
}

.wallet-history-section {
  margin-top: 24px;
}

.topups-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* HELP TAB */
.help-card {
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 20px;
}

.glass-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--brand-blue);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.help-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.help-card p {
  font-size: 12.5px;
  color: var(--hint-color);
  margin-bottom: 16px;
}

.contact-btn {
  text-decoration: none;
  display: inline-flex;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  cursor: pointer;
  overflow: hidden;
}

.faq-q {
  padding: 13px 14px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-chevron {
  color: var(--hint-color);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 14px 13px;
  font-size: 12px;
  color: var(--hint-color);
  line-height: 1.5;
}

.faq-item.open .faq-a {
  display: block;
}

/* BOTTOM NAVIGATION */
.bottom-nav, .glass-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  z-index: 900;
  background: rgba(13, 17, 26, 0.96) !important;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
  pointer-events: auto !important;
}

.nav-item {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--hint-color);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 6px;
  min-height: 48px;
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  pointer-events: auto !important;
  user-select: none;
}

.nav-item * {
  pointer-events: none !important;
}

.nav-item:active {
  transform: scale(0.94);
}

.nav-item.active {
  color: var(--brand-blue);
  background: rgba(56, 189, 248, 0.14);
}

.nav-item.active .nav-icon {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.6));
}

/* MODAL SHEETS */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  animation: modalFade 0.2s ease;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.glass-modal {
  background: rgba(18, 24, 38, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 18px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  animation: slideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
}

.glass-circle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--hint-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.glass-circle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-color);
}

/* EMPTY STATES & SPINNER */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--hint-color);
}

.loading-spinner {
  text-align: center;
  padding: 40px 20px;
  color: var(--hint-color);
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================
   ADMIN PANEL STYLES
   ========================================================== */
.admin-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 18px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-badge-btn:hover {
  background: rgba(56, 189, 248, 0.22);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.admin-stat-card {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 14px;
  transition: transform 0.2s;
}

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

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
  letter-spacing: -0.2px;
}

.stat-card-sub {
  font-size: 11px;
  color: var(--hint-color);
}

/* ADMIN SUBTABS */
.admin-subtabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.adm-subtab-btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--hint-color);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.adm-subtab-btn.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--brand-blue);
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ADMIN SECTIONS */
.adm-section {
  display: none;
  animation: fadeIn 0.2s ease;
}

.adm-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-form-card {
  padding: 16px;
  margin-bottom: 20px;
}

.adm-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.adm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.adm-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.adm-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.adm-input:focus {
  border-color: var(--brand-blue);
  background: rgba(56, 189, 248, 0.06);
}

.adm-input-hint {
  font-size: 11px;
  color: var(--hint-color);
  line-height: 1.4;
}

.adm-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
  color: #ffffff;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: inherit;
}

.adm-textarea:focus {
  border-color: var(--brand-blue);
}

.adm-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.adm-action-pill {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.adm-action-pill:active {
  transform: scale(0.97);
}

.adm-action-pill.green {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.adm-action-pill.red {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.adm-action-pill.orange {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

/* TOPUPS ADMIN LIST */
.adm-topup-card {
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-topup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.adm-topup-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.adm-mini-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}

.adm-mini-btn.approve {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.adm-mini-btn.reject {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

/* ==========================================================
   SEEN365 STYLE PROFILE TAB
   ========================================================== */
.user-greeting {
  font-size: 11px;
  color: var(--hint-color);
  font-weight: 500;
  line-height: 1.2;
}

.profile-hero {
  text-align: center;
  padding: 22px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-wrap {
  margin-bottom: 12px;
  position: relative;
}

.glass-avatar-lg {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(52, 211, 153, 0.2));
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
}

.profile-name {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.profile-username {
  font-size: 13.5px;
  color: var(--hint-color);
  margin-bottom: 11px;
  font-weight: 500;
}

.profile-id-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.15s;
}

.profile-id-pill:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.96);
}

/* 3-GRID METRICS */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 22px;
}

.prof-stat-card {
  text-align: center;
  padding: 13px 6px;
  border-radius: 14px;
  background: rgba(24, 32, 49, 0.65);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.prof-stat-card:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.06);
}

.prof-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.prof-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--hint-color);
}

/* MENYU LIST */
.profile-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hint-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
  padding-left: 4px;
}

.profile-menu-group {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(22, 30, 46, 0.7);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}

.prof-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.prof-menu-item:last-child {
  border-bottom: none;
}

.prof-menu-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.prof-menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prof-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bg-blue {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.bg-green {
  background: linear-gradient(135deg, #059669, #34d399);
}

.bg-orange {
  background: linear-gradient(135deg, #ea580c, #fb923c);
}

.bg-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.bg-red {
  background: linear-gradient(135deg, #dc2626, #f87171);
}

.bg-cyan {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.prof-menu-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
}

.prof-menu-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prof-menu-hint {
  font-size: 12px;
  color: var(--hint-color);
}

.prof-menu-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.prof-menu-badge.admin-badge {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.prof-chevron {
  color: #64748b;
}

/* ==========================================================
   TELEGRAPH / PLUS TIP BOX
   ========================================================== */
.telegraph-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

.tip-icon-glow {
  font-size: 20px;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.6));
  flex-shrink: 0;
  line-height: 1;
}

.tip-content {
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.5;
}

.tip-content strong {
  color: #fbbf24;
}

.tip-content b {
  color: #38bdf8;
}

/* MAINTENANCE BANNER */
.maintenance-banner {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  margin: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
}

/* ADMIN DATE FILTER */
.admin-date-filter {
  padding: 8px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.date-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.date-chip {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--hint-color);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.date-chip.active {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
}

.custom-date-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}

.adm-input-sm {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px 8px;
  color: #fff;
  font-size: 11.5px;
  outline: none;
}

.adm-btn-sm {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* TOP COUNTRIES LIST */
.top-countries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-c-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-c-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-c-rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-c-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.top-c-stat {
  text-align: right;
}

.top-c-cnt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-green);
}

.top-c-sum {
  font-size: 10.5px;
  color: var(--hint-color);
}

/* OVERRIDES TABLE */
.override-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

/* ORDER SEARCH RESULTS */
.order-search-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}



