/* ==========================================================================
   WEREWOLF OTP - TELEGRAM MINI APP STYLESHEET
   Design Theme: Obsidian Dark / Cyber Glassmorphism / Neon Accents
   ========================================================================== */

:root {
  --bg-main: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --bg-input: rgba(14, 18, 29, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.3);

  --accent-cyan: #00d2ff;
  --accent-blue: #3a7bd5;
  --accent-emerald: #00e676;
  --accent-emerald-glow: rgba(0, 230, 118, 0.25);
  --accent-purple: #9d4edd;
  --accent-amber: #ffb300;
  --accent-danger: #ff5252;
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --accent-gradient-purple: linear-gradient(135deg, #b5179e 0%, #7209b7 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 210, 255, 0.2);
}

/* Telegram theme variable overrides */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  min-height: 100vh;
  overflow-x: hidden;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Top Ambient Glow Elements */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.orb-primary {
  width: 250px;
  height: 250px;
  background: #3a7bd5;
  top: -80px;
  right: -50px;
}

.orb-secondary {
  width: 220px;
  height: 220px;
  background: #7209b7;
  top: 150px;
  left: -70px;
}

#app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 80px 16px;
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-wrapper {
  position: relative;
  width: 52px;
  height: 52px;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: pulse-ring 3s infinite linear;
}

.user-avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
  border: 2px solid var(--bg-main);
}

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

.greeting-sub {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.greeting-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.user-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-role {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-id {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ── BALANCE CARD ────────────────────────────────────────────────────────── */
.balance-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.balance-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.icon-svg {
  width: 14px;
  height: 14px;
}

.balance-amount-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.currency-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.balance-val {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  color: #ffffff;
}

.balance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-topup {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-topup:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.btn-icon {
  width: 15px;
  height: 15px;
}

.btn-icon-only {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon-only:active {
  transform: rotate(180deg) scale(0.9);
  color: var(--text-main);
}

.refresh-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease;
}

.btn-icon-only.spinning .refresh-icon {
  animation: spin 0.8s linear infinite;
}

/* ── NAV TABS ───────────────────────────────────────────────────────────── */
/* ── NAV TABS (SEGMENTED CONTROL) ────────────────────────────────────────── */
.nav-tabs {
  display: flex;
  background: rgba(15, 20, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 5px;
  gap: 5px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nav-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border-radius: var(--radius-md);
  position: relative;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.nav-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke 0.2s, filter 0.2s;
}

.nav-tab.active .nav-icon {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}

.active-pill {
  display: none;
}

/* ── TAB PANELS ─────────────────────────────────────────────────────────── */
.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px 0;
}

.section-heading {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.section-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── ACTIVE ORDER CARD & MULTI BULK ORDERS SECTION ──────────────────────── */
.active-orders-section {
  margin-bottom: 24px;
}

.active-orders-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-orders-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseCyan 1.8s infinite;
}

@keyframes pulseCyan {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.active-orders-heading {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-main);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-cancel-all-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.28);
  color: var(--accent-danger);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  height: 24px;
}

.btn-cancel-all-ghost svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.btn-cancel-all-ghost:hover {
  background: rgba(255, 82, 82, 0.2);
}

.active-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.active-order-box,
.active-order-card {
  background: linear-gradient(135deg, rgba(26, 34, 52, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.12);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.active-order-card.has-otp {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.18);
}

.active-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.active-order-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.service-app-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-app-icon svg,
.service-app-icon img,
.pill-app-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
}

.order-meta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.order-meta-service {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.order-meta-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.order-meta-country {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted, #cbd5e1);
  white-space: nowrap;
}

.order-meta-country .country-name-txt {
  white-space: nowrap;
}

.pill-flag-img {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-block;
  vertical-align: middle;
}

.order-meta-sep {
  font-size: 10px;
  color: var(--text-dim, #64748b);
  display: inline-block;
}

.order-meta-price-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan, #00d2ff);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.22);
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  display: inline-block;
  flex-shrink: 0;
}

.order-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.order-status-badge.waiting {
  color: var(--accent-amber, #fbbf24);
}

.order-status-badge.received {
  color: var(--accent-emerald, #10b981);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  animation: statusPulse 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.countdown-badge {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-amber, #fbbf24);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full, 9999px);
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.dot-separator {
  opacity: 0.4;
}

.phone-display-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.phone-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.phone-label {
  display: inline-block;
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}


.phone-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy svg {
  width: 13px;
  height: 13px;
}

.btn-copy:active {
  background: var(--accent-cyan);
  color: #000;
}

/* ── OTP RESULT CARD ─────────────────────────────────────────────────────── */
.otp-result-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(18, 24, 38, 0.9) 100%);
  border: 2px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: 0 0 30px var(--accent-emerald-glow);
  animation: popIn 0.3s ease;
}

.otp-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.otp-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.otp-code {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
  flex: 1;
  text-align: center;
}

.btn-copy-otp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent-emerald);
  color: #000;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  height: 34px;
}

.btn-copy-otp svg {
  width: 13px;
  height: 13px;
}

.btn-copy-otp:active {
  transform: scale(0.95);
}

/* Polling Radar Bar */
.radar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.3), transparent);
  animation: sweep 2s infinite linear;
}

/* Order Action Buttons */
.order-action-buttons {
  display: flex;
  gap: 10px;
}

.btn-danger-outline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 82, 82, 0.1);
  color: var(--accent-danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline svg {
  width: 15px;
  height: 15px;
}

.btn-danger-outline:active {
  background: var(--accent-danger);
  color: #fff;
}

.btn-success {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--accent-emerald);
  color: #000;
  border: none;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 38px;
}

.btn-success:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

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

.btn-success svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.order-action-dual {
  display: flex;
  gap: 8px;
  width: 100%;
}

.order-action-dual button {
  flex: 1;
  min-width: 0;
}

.btn-repeat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.35);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 38px;
}

.btn-repeat:hover {
  background: rgba(0, 210, 255, 0.22);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

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

.btn-repeat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── SERVER SWITCHER (SERVER 1 & SERVER 2) ─────────────────────────────── */
.server-switcher-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.server-switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.server-switcher-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.server-active-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.server-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.server-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  outline: none;
  font-family: inherit;
}

.server-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.server-tab-btn:active {
  transform: scale(0.98);
}

.server-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12) 0%, rgba(58, 123, 213, 0.16) 100%);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.18);
}

.server-tab-icon {
  font-size: 20px;
  line-height: 1;
}

.server-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.server-tab-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.server-tab-btn.active .server-tab-name {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.server-tab-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-tab-btn.active .server-tab-sub {
  color: rgba(0, 210, 255, 0.85);
}

/* ── SERVICE SELECTOR ────────────────────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.service-card:active {
  transform: scale(0.97);
}

.service-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.svc-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.service-card:hover .svc-icon-box {
  transform: scale(1.06);
}

.official-app-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.pill-app-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 4px;
}

.modal-app-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: block;
  margin: 0 auto 10px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.svc-details {
  display: flex;
  flex-direction: column;
}

.svc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.svc-tag {
  font-size: 10px;
  color: var(--text-dim);
}

.country-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-refresh-prices-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-prices-ghost:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent-cyan);
}

.btn-refresh-prices-ghost svg.spinning {
  animation: spin 0.7s linear infinite;
}

/* ── PRICE UPDATE & NOTICE BANNER ────────────────────────────────────────── */
.price-update-banner {
  background: linear-gradient(135deg, rgba(20, 28, 48, 0.9) 0%, rgba(13, 20, 36, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.price-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.price-banner-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  white-space: nowrap;
  flex: 1;
}

.price-banner-item:last-child {
  justify-content: flex-end;
}

.banner-label {
  color: var(--text-dim);
  font-size: 10px;
  white-space: nowrap;
}

.banner-val {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.price-banner-notice {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--accent-amber);
  line-height: 1.35;
}

.price-banner-notice::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 5px var(--accent-amber);
  flex-shrink: 0;
}

/* ── SEARCH BOX ──────────────────────────────────────────────────────────── */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.btn-clear {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
}

/* ── COUNTRY LIST ────────────────────────────────────────────────────────── */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.country-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, rgba(18, 24, 38, 0.75));
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 14px 16px;
  gap: 12px;
  box-sizing: border-box;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.country-card:hover {
  background: var(--bg-card-hover, rgba(26, 34, 52, 0.85));
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.12);
  transform: translateY(-2px);
}

.country-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.country-flag-box {
  width: 44px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

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

.country-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.country-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.country-sub-desc {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-sub-desc .sub-stock {
  color: var(--text-dim, #94a3b8);
  font-weight: 500;
}

.country-sub-desc .sub-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.country-sub-desc .sub-price {
  color: var(--accent-cyan, #00d2ff);
  font-weight: 700;
}

.country-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-country-buy {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--accent-gradient, linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%));
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-country-buy:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
  transform: translateY(-1px);
}

.btn-country-buy:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-country-buy.btn-disabled,
.btn-country-buy:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.btn-country-select {
  width: 100%;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: rgba(0, 210, 255, 0.06);
  color: #00d2ff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-country-select:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.45);
}

.btn-country-select.active {
  background: rgba(0, 210, 255, 0.16);
  border-color: #00d2ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
}

.btn-country-select:active {
  transform: scale(0.98);
}

.select-caret {
  font-size: 11px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

/* ── Country Inline Dropdown Panel (Select / Hide) ── */
.country-dropdown-panel {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(10, 14, 22, 0.65);
  border: 1px solid rgba(0, 210, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeInDown 0.22s ease-out;
}

.country-dropdown-panel.hidden {
  display: none !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px 8px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-table-header .th-cost {
  text-align: right;
  padding-right: 6px;
}

.dropdown-table-header .th-count {
  text-align: left;
  padding-left: 2px;
}

.dropdown-table-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}

.dropdown-table-body::-webkit-scrollbar {
  width: 4px;
}

.dropdown-table-body::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.25);
  border-radius: 4px;
}

.dropdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s ease;
}

.dropdown-row:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.25);
}

.dropdown-row.row-empty {
  opacity: 0.55;
}

/* Rank Badges - Styled to match Obsidian Cyber Theme */
.badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

.badge-rank.gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-rank.silver {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(100, 116, 139, 0.3) 100%);
  color: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, 0.4);
  box-shadow: 0 0 8px rgba(148, 163, 184, 0.12);
}

.badge-rank.bronze {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.2) 0%, rgba(120, 53, 15, 0.3) 100%);
  color: #fed7aa;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 8px rgba(180, 83, 9, 0.12);
}

.server-id-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 3px;
}

.server-caret-sub {
  font-size: 10px;
  color: #00d2ff;
  opacity: 0.8;
}

.count-text {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
  text-align: center;
}

.col-cost {
  display: flex;
  justify-content: flex-end;
}

.btn-row-cost {
  background: var(--accent-gradient, linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%));
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading, inherit);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.28);
  transition: all 0.15s ease;
  text-align: center;
}

.btn-row-cost:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.45);
}

.btn-row-cost:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-row-cost.btn-disabled,
.btn-row-cost:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.country-stock-tag {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.country-stock-tag.in-stock {
  color: var(--accent-cyan, #00d2ff);
  font-weight: 600;
}

.country-stock-tag.low-stock {
  color: #f59e0b;
  font-weight: 600;
}

.country-stock-tag.out-of-stock {
  color: #ef4444;
  font-weight: 600;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.btn-buy-country.btn-disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ── Server Options Modal ── */
.server-options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.server-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.server-option-card:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-1px);
}

.server-option-card.card-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.server-opt-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-badge-best {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan, #00d2ff);
  border: 1px solid rgba(0, 210, 255, 0.25);
  font-weight: 600;
}

.server-opt-stock {
  font-size: 11.5px;
  color: var(--text-dim, #94a3b8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.server-opt-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-opt-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-cyan, #00d2ff);
  font-family: var(--font-heading);
}

.btn-select-server {
  background: rgba(0, 210, 255, 0.15);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.server-option-card:hover .btn-select-server {
  background: #00d2ff;
  color: #0a0d14;
}

.btn-buy-country {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  min-width: 58px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.25);
  transition: all 0.15s ease;
}

.btn-buy-country:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-buy-country:active {
  transform: scale(0.95);
}

/* ── TAB 2: TOPUP QRIS ───────────────────────────────────────────────────── */
.topup-intro-card {
  background: rgba(26, 34, 52, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.qris-brand-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.qris-title {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
}

.qris-pill {
  font-size: 11px;
  color: var(--accent-cyan);
}

.qris-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Active QRIS Box */
.qris-active-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
  animation: popIn 0.3s ease;
}

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

.qris-status-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.qris-timer {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-amber);
}

.qr-code-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px auto;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.qris-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00d2ff;
  box-shadow: 0 0 10px #00d2ff;
  animation: scan 2s infinite alternate ease-in-out;
}

.qris-details-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-input);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.qris-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.qris-row.subtle {
  font-size: 11px;
  color: var(--text-dim);
}

.qris-total-amount {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--accent-emerald);
}

.qris-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Preset Amount Chips */
.preset-amounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.chip-amount {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 6px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.chip-amount.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.15);
}

.custom-amount-box {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-currency-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.input-currency-wrapper:focus-within {
  border-color: var(--accent-cyan);
}

.currency-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-right: 8px;
}

.input-currency-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #fff;
}

/* Generic Buttons */
.btn-primary,
.btn-primary-gradient {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:active,
.btn-primary-gradient:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-topup-action {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

.btn-topup-action:active {
  transform: scale(0.98) !important;
  opacity: 0.92 !important;
}

.btn-primary svg,
.btn-primary-gradient svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-large {
  padding: 14px 20px;
  font-size: 15px;
}

.full-width {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  padding: 8px;
  cursor: pointer;
}

/* ── TAB 3: RIWAYAT TRANSAKSI ────────────────────────────────────────────── */
.history-filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

.filter-pill.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.history-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.history-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.history-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-app-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.history-generic-icon {
  font-size: 20px;
}

.history-icon-box.topup {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
  color: var(--accent-emerald);
}

.history-icon-box.order {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
}

.history-icon-box.refund {
  background: rgba(255, 179, 0, 0.12);
  border-color: rgba(255, 179, 0, 0.25);
  color: var(--accent-amber);
}

.history-icon-box.bot {
  background: rgba(157, 78, 221, 0.12);
  border-color: rgba(157, 78, 221, 0.25);
  color: var(--accent-purple);
}

.history-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.history-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-service-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.history-badge-type {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 5px;
  text-transform: uppercase;
}

.badge-order {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.badge-topup {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.badge-refund {
  background: rgba(255, 179, 0, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 179, 0, 0.25);
}

.badge-bot {
  background: rgba(157, 78, 221, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.25);
}

.history-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 1px;
}

.history-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-phone-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.history-otp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(0, 210, 255, 0.14);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.history-otp-pill:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: rgba(0, 210, 255, 0.6);
  transform: translateY(-1px);
}

.history-otp-pill b {
  color: #fff;
  letter-spacing: 0.5px;
}

.history-copy-svg {
  width: 11px;
  height: 11px;
  opacity: 0.75;
}

.history-ref-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

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

.history-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.history-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: 10px;
  flex-shrink: 0;
}

.history-amount {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.history-amount.plus {
  color: var(--accent-emerald);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.history-amount.minus {
  color: #f1f5f9;
}

.history-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}

.status-success {
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

.status-warning {
  background: rgba(255, 179, 0, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 179, 0, 0.25);
}

.status-danger {
  background: rgba(255, 82, 82, 0.12);
  color: var(--accent-danger);
  border: 1px solid rgba(255, 82, 82, 0.25);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ── MODAL OVERLAY ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: #111624;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  animation: popIn 0.25s ease;
}

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

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.confirm-service-icon {
  font-size: 32px;
  text-align: center;
  margin-bottom: 6px;
}

.confirm-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.confirm-item-row.subtle {
  font-size: 11px;
  color: var(--text-dim);
}

.confirm-price {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--accent-emerald);
}

/* ── MODAL BULK QUANTITY CONTROLS ────────────────────────────────────────── */
.modal-qty-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2px;
}

.btn-qty-step {
  width: 32px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-qty-step:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-dim) !important;
  pointer-events: none !important;
}

.qty-display {
  min-width: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.quick-qty-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.chip-qty {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  padding: 5px 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.chip-qty.active,
.chip-qty:hover:not(:disabled):not(.chip-disabled) {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.chip-qty.chip-disabled,
.chip-qty:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-dim) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.confirm-item-row.total-highlight {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin: 4px 0;
  align-items: center;
}

.confirm-item-row.total-highlight .confirm-price {
  font-size: 17px;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.confirm-note {
  font-size: 11.5px;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.modal-footer .btn-ghost {
  flex: 0 0 84px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-footer .btn-ghost:active {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(0.97);
}

.modal-footer button:not(.btn-ghost) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CANCEL ALL CONFIRM MODAL STYLES ── */
.cancel-all-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.3);
  margin: 4px auto 10px auto;
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.15);
}

.cancel-all-summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
}

.btn-danger-gradient {
  background: linear-gradient(135deg, #ff5252 0%, #c62828 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 82, 82, 0.35);
  transition: all 0.2s ease;
}

.btn-danger-gradient:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5);
  transform: translateY(-1px);
}

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

.btn-danger-gradient:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── FLOATING TOAST ──────────────────────────────────────────────────────── */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(0, 210, 255, 0.15);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
  z-index: 999;
  max-width: min(90vw, 420px);
  width: max-content;
  text-align: center;
  line-height: 1.45;
  word-break: break-word;
  white-space: normal;
  animation: slideUpToast 0.25s ease;
  pointer-events: none;
}

/* ── UTILITIES & ANIMATIONS ──────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: var(--text-dim);
  font-size: 12px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(450%);
  }
}

@keyframes scan {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpToast {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0d14;
  overflow: hidden;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.ls-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

/* Ambient orbs */
.ls-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: ls-orb-appear 1s ease forwards;
}

.ls-orb-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #3a7bd5 0%, transparent 70%);
  top: -80px;
  right: -60px;
  animation-delay: 0.1s;
}

.ls-orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #7209b7 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  animation-delay: 0.25s;
}

.ls-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.4s;
}

@keyframes ls-orb-appear {
  to {
    opacity: 0.3;
  }
}

/* Inner content */
.ls-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px 32px;
  animation: ls-enter 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes ls-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Logo ── */
.ls-logo-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #00d2ff, #3a7bd5) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ls-spin 2.4s linear infinite;
}

.ls-logo-ring-2 {
  inset: 10px;
  border-width: 2px;
  background: linear-gradient(225deg, #b5179e, #7209b7) border-box;
  animation: ls-spin 3.6s linear infinite reverse;
  opacity: 0.7;
}

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

.ls-logo-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  background: rgba(0, 210, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 210, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.15),
    inset 0 0 20px rgba(0, 210, 255, 0.05);
  animation: ls-icon-pulse 2s ease-in-out infinite;
}

@keyframes ls-icon-pulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.35), inset 0 0 30px rgba(0, 210, 255, 0.12);
  }
}

/* ── Brand ── */
.ls-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ls-brand-main {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #00d2ff 0%, #ffffff 50%, #3a7bd5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ls-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Status text ── */
.ls-status-wrap {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ls-status-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: opacity 0.3s ease;
  text-align: center;
}

/* ── Progress bar ── */
.ls-progress-track {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.ls-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00d2ff, #3a7bd5);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ls-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: ls-shimmer 1.2s ease infinite;
}

@keyframes ls-shimmer {
  from {
    transform: translateX(-40px);
  }

  to {
    transform: translateX(200px);
  }
}

/* ── Step indicators ── */
.ls-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 220px;
  margin-top: 4px;
}

.ls-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-dim);
  transition: color 0.4s ease;
}

.ls-step.active {
  color: var(--text-muted);
}

.ls-step.done {
  color: var(--accent-emerald);
}

.ls-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.ls-step.active .ls-step-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
  animation: ls-dot-pulse 1s ease-in-out infinite;
}

.ls-step.done .ls-step-dot {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
  animation: none;
}

@keyframes ls-dot-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7;
  }
}

/* ── UNIVERSAL ACTION CONFIRMATION POPUP ──────────────────────────────────── */
.action-popup-card {
  max-width: 360px;
  background: linear-gradient(180deg, #161c2d 0%, #0d121f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 210, 255, 0.1);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  animation: popIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-popup-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px auto;
  position: relative;
  transition: all 0.25s ease;
}

.action-popup-icon-box.type-danger {
  background: rgba(255, 59, 92, 0.12);
  border: 1px solid rgba(255, 59, 92, 0.35);
  color: var(--accent-danger, #ff3b5c);
  box-shadow: 0 0 20px rgba(255, 59, 92, 0.25);
}

.action-popup-icon-box.type-warning {
  background: rgba(255, 171, 0, 0.12);
  border: 1px solid rgba(255, 171, 0, 0.35);
  color: var(--accent-warning, #ffab00);
  box-shadow: 0 0 20px rgba(255, 171, 0, 0.25);
}

.action-popup-icon-box.type-success {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--accent-emerald, #00e676);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.25);
}

.action-popup-icon-box.type-info {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--accent-cyan, #00d2ff);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.action-popup-details {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.action-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.action-popup-row strong {
  font-size: 12.5px;
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  word-break: break-all;
}

.action-popup-row strong.highlight-cyan {
  color: var(--accent-cyan, #00d2ff);
  font-weight: 700;
}

.action-popup-row strong.highlight-danger {
  color: var(--accent-danger, #ff3b5c);
  font-weight: 700;
}

.action-popup-row strong.highlight-success {
  color: var(--accent-emerald, #00e676);
  font-weight: 700;
}

/* ==========================================================================
   ANNOUNCEMENT MODAL (Pop-up Pengumuman Pertama Kali Buka)
   ========================================================================== */
.announcement-overlay {
  z-index: 99999 !important;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInAnnounce 0.3s ease;
}

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

.announcement-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(16, 21, 35, 0.96) 0%, rgba(9, 12, 19, 0.98) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 210, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popInAnnounce 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes popInAnnounce {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.announcement-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.announcement-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  z-index: 2;
}

.announcement-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan, #00d2ff);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.announcement-sound-btn:active {
  transform: scale(0.96);
}

.sound-wave-icon {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.sound-wave-icon span {
  width: 2.5px;
  background: var(--accent-cyan, #00d2ff);
  border-radius: 2px;
  animation: soundBarWave 0.7s ease-in-out infinite alternate;
}

.sound-wave-icon span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.sound-wave-icon span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.sound-wave-icon span:nth-child(3) { height: 7px; animation-delay: 0.2s; }
.sound-wave-icon span:nth-child(4) { height: 10px; animation-delay: 0.4s; }

@keyframes soundBarWave {
  0% { height: 3px; }
  100% { height: 12px; }
}

.announcement-sound-btn.muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-dim, #64748b);
}

.announcement-sound-btn.muted .sound-wave-icon span {
  animation: none;
  height: 2px;
  background: var(--text-dim, #64748b);
}

.announcement-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.announcement-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.announcement-close-btn:active {
  transform: scale(0.9);
}

.announcement-media-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0d14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
  max-height: 55vh;
}

.announcement-video {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.announcement-footer {
  width: 100%;
}

.announcement-dismiss-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}

.announcement-dismiss-btn:active {
  transform: scale(0.98);
}