:root {
  --bg: #070d18;
  --card: #0d1527;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --cyan: #38bdf8;
  --ok: #10b981;
  --fail: #ef4444;
  --warn: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 15% 10%, #0f1d36 0%, #080d19 55%, #050811 100%);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(8, 13, 25, 0.5);
}

/* Chrome, Edge, Safari Custom Scrollbar (Dọc & Ngang) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 13, 25, 0.6);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
  border: 1.5px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background: rgba(56, 189, 248, 0.8);
}

::-webkit-scrollbar-corner {
  background: rgba(8, 13, 25, 0.6);
}

.container,
.user-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header {
  background: rgba(13, 21, 39, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.25rem 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

#cartModalCountBadge {
  padding: 5px 10px;
  border-radius: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  background: rgba(13, 21, 39, 0.65);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
  flex: 1;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.tab.active {
  /* background: linear-gradient(135deg, #0284c7, #0369a1); */
  border-color: #17252b;
  color: #ffffff;
  /* box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4); */
}

.tab.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.7);
}

.tab.is-hidden-feature {
  display: none;
}

.feature-offline {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.9rem;
}

.feature-offline.hidden {
  display: none;
}

.panel {
  background: #0d1527;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.panel label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #f8fafc;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.restart-quota-box {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.15), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
}

.quota-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.quota-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.quota-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.quota-badge {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  line-height: 1;
}

.quota-badge.low {
  color: var(--warn);
}

.quota-badge.empty {
  color: var(--fail);
}

.quota-slots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quota-slot {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid #334155;
  transition: background 0.3s, border-color 0.3s;
}

.quota-slot.used {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  border-color: #22d3ee;
}

.quota-slot.free {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
}

.quota-ready {
  font-size: 0.9rem;
  color: var(--ok);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.quota-countdown-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.quota-countdown-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.quota-countdown-time {
  font-family: ui-monospace, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warn);
  letter-spacing: 0.05em;
}

.quota-status-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ban-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.55), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.15);
}

.ban-notice.hidden {
  display: none;
}

.ban-notice-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ban-notice-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fecaca;
  margin-bottom: 0.35rem;
}

.ban-notice-text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #fecaca;
  line-height: 1.45;
}

.ban-notice-remain {
  margin: 0;
  font-size: 0.85rem;
  color: #fde68a;
}

.ban-notice-remain strong {
  font-family: ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hint code {
  background: #0f1419;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

textarea,
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1419;
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

textarea {
  resize: vertical;
  min-height: 180px;
}

.row {
  margin-top: 0.75rem;
}

.inline {
  font-weight: normal;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.restart-run-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.875rem;
  color: var(--warn);
  line-height: 1.45;
}

.btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn.primary {
  background: #0891b2;
  border-color: #22d3ee;
  color: #fff;
}

.btn:hover:not(:disabled):not(.is-quota-blocked) {
  filter: brightness(1.08);
}

.btn.primary:disabled,
.btn.primary.is-quota-blocked {
  opacity: 0.55;
  cursor: not-allowed;
  background: #334155;
  border-color: #475569;
  color: #94a3b8;
  filter: none;
  box-shadow: none;
}

.stats {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stats span strong {
  color: var(--accent);
}

.results {
  margin-top: 1rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

table td:nth-child(5),
table td:nth-child(6) {
  max-width: 220px;
  word-break: break-word;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.status-live {
  color: var(--ok);
}

.status-dead {
  color: var(--fail);
}

.status-warn {
  color: var(--warn);
}

.restart-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #0a0e14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.restart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.restart-phase {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.spinner.hidden {
  display: none;
}

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

.progress-wrap {
  height: 6px;
  background: #1a2332;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0891b2, #22d3ee);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.log-console {
  max-height: 280px;
  overflow-y: auto;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 0.75rem;
  background: #06090d;
  border: 1px solid #1e293b;
  border-radius: 8px;
}

.log-line {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(45, 58, 79, 0.35);
}

.log-line:last-child {
  border-bottom: none;
}

.log-line.info {
  color: #94a3b8;
}

.log-line.ok {
  color: var(--ok);
}

.log-line.err {
  color: var(--fail);
}

.log-line.warn {
  color: var(--warn);
}

.log-time {
  color: #64748b;
  margin-right: 0.5rem;
}

.btn.primary.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.error {
  color: var(--fail);
  margin-top: 1rem;
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  margin-top: 1rem;
  font-weight: 500;
}

.loading.hidden {
  display: none !important;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.check-row-enter {
  animation: checkRowIn 0.28s ease;
}

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

  to {
    opacity: 1;
    transform: none;
  }
}

.banner-section-wrap {
  margin-top: 1.5rem;
}

.footer {
  margin-top: 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.35rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(14, 116, 144, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(8, 145, 178, 0.45);
}

.visit-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.visit-stat strong {
  color: var(--accent);
  font-weight: 600;
}

.visit-sep {
  opacity: 0.45;
  user-select: none;
}

.visit-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
  background: var(--muted);
}

.visit-dot.online {
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
}

@media (max-width: 600px) {
  .tabs {
    flex-direction: column;
  }

  .visit-sep {
    display: none;
  }

  .visit-stats {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ========================================================
   MODERN RESPONSIVE NAVBAR & HEADER
   ======================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5, 8, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
  transition: all 0.25s ease;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  position: relative;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.header-brand:hover .header-logo {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.header-brand-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.btn-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-auth:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* User Header Group (When Logged In) */
.user-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav Cart Button */
.btn-nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-cart:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.cart-badge-count {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  text-align: center;
  padding: 0 5px;
  box-sizing: border-box;
}

/* Desktop Header Items (Row visible on screen >= 860px) */
.desktop-header-items {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-user-dash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 10px;
  background: rgba(13, 21, 39, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-user-dash:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.user-dash-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  object-fit: cover;
  flex-shrink: 0;
}

.user-dash-name {
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  white-space: nowrap;
  flex-shrink: 0;
}

.user-balance-pill:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.45));
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.user-bal-label {
  font-size: 12px;
  opacity: 0.85;
}

.user-bal-value {
  color: #34d399;
  font-size: 13px;
}

.btn-header-deposit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-header-deposit:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-header-store,
.btn-header-logout {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 10px;
  flex-shrink: 0;
}

.btn-header-logout {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-header-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
}

/* ========================================================
   MOBILE MENU TOGGLE & POPUP DROPDOWN (MODERN & CLEAN)
   ======================================================== */
.btn-mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  padding: 4px 8px 4px 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.btn-mobile-menu-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

.mobile-menu-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #38bdf8;
  object-fit: cover;
}

.mobile-menu-burger {
  font-size: 16px;
  line-height: 1;
  color: #38bdf8;
}

/* Dropdown Menu Modal/Popover */
.mobile-nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  width: min(300px, calc(100vw - 24px));
  background: rgba(10, 16, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.15);
  padding: 14px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-dropdown.active {
  display: flex !important;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.m-dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.m-dropdown-user-meta {
  overflow: hidden;
  flex: 1;
}

.m-dropdown-name {
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-dropdown-email {
  color: #94a3b8;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wallet Card inside Dropdown */
.m-dropdown-wallet-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.m-dropdown-bal-text {
  font-size: 11px;
  color: #94a3b8;
}

.m-dropdown-bal-val {
  color: #34d399;
  font-size: 15px;
  font-weight: 800;
}

.m-dropdown-btn-deposit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.m-dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.m-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.m-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.m-dropdown-item.danger {
  color: #f87171;
}

.m-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 860px) {
  .desktop-header-items {
    display: none !important; /* Ẩn toàn bộ thanh nút dài trên màn hình nhỏ */
  }

  .btn-mobile-menu-toggle {
    display: inline-flex; /* Bật nút menu Avatar ☰ siêu gọn gàng */
  }

  .btn-nav-cart .cart-label {
    display: none; /* Thu gọn chữ 'Giỏ hàng', chỉ hiện 🛒 [0] */
  }

  .header {
    padding: 0.55rem 0;
  }

  .nav-header {
    min-height: 44px;
  }

  .header-brand-title {
    font-size: 1.18rem;
    white-space: nowrap;
  }

  .header-logo {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .header-brand-title {
    font-size: 1.08rem;
  }

  .header-logo {
    width: 32px;
    height: 32px;
  }
}

/* ========================================================
   MODERN FINTECH PROXY PLAN CARDS & QUANTITY SELECTOR
   ======================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: radial-gradient(130% 120% at 50% 0%, #131e33 0%, #0a1120 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.plan-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.15);
  transform: translateY(-3px);
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.plan-type-icon {
  font-size: 1.35rem;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.plan-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 6px 0 0;
  line-height: 1.5;
}

.plan-desc:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
}

.plan-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.plan-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 600;
}

.spec-val {
  font-size: 0.86rem;
  color: #f8fafc;
  font-weight: 600;
}

.plan-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-unit-price-note {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: normal;
}

.tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tier-pill {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.95);
}

.tier-pill.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.card-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  overflow: hidden;
}

.btn-qty-step {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-qty-step:hover {
  background: rgba(56, 189, 248, 0.18);
}

.card-qty-input {
  width: 48px;
  height: 36px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.card-qty-input::-webkit-outer-spin-button,
.card-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

.qty-chip {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

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

.plan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.plan-footer-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.total-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.discount-tag {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.current-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.original-price {
  text-decoration: line-through;
  color: #64748b;
  font-size: 0.92rem;
  margin-left: 6px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.82rem 1.6rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.btn-buy:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.6);
  transform: translateY(-2px);
}

.btn-buy-qty-badge {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ========================================================
   COMPACT PLAN CARD & BUTTONS
   ======================================================== */
.plan-compact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.plan-compact-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-compact-price-label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.plan-compact-price-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.plan-compact-price-val small {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
}

.plan-compact-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-compact-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-compact-cart:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-compact-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-compact-buy:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

/* ========================================================
   NAV CART BUTTON
   ======================================================== */
.btn-nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #f8fafc;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-nav-cart:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.cart-badge-count {
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  text-align: center;
  padding: 0 4px;
}

/* ========================================================
   MODALS: CONFIG MODAL & CART MODAL
   ======================================================== */
.config-modal-box,
.cart-modal-box {
  background: radial-gradient(130% 120% at 50% 0%, #15243b 0%, #091120 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  width: 95%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.08);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.config-modal-header,
.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.btn-cfg-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.82rem 1.2rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-cfg-cart:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #fff;
}

/* Cart Items List */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  gap: 12px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.cart-item-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  background: #091120;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.cart-stepper button {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 14px;
  font-weight: 700;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.cart-stepper button:hover {
  background: rgba(56, 189, 248, 0.15);
}

.cart-stepper span {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  min-width: 24px;
  text-align: center;
}

.cart-item-subtotal {
  font-size: 14px;
  font-weight: 700;
  color: #38bdf8;
  min-width: 85px;
  text-align: right;
}

.btn-cart-del {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.15s;
}

.btn-cart-del:hover {
  color: #ef4444;
}

.cart-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: #64748b;
  font-size: 14px;
}

.cart-summary-card {
  background: rgba(2, 6, 23, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.cart-pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cart-pay-option:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

/* CATEGORY FILTER PILLS */
.categories-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 1.8rem auto;
  max-width: 960px;
}

.category-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.category-filter-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.3);
  color: #f1f5f9;
  transform: translateY(-1px);
}

.category-filter-pill.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.12) 100%);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.category-filter-pill .cat-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.category-filter-pill.active .cat-count {
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}

/* ========================================================
   RENEW PROXY MODAL & RADIO CARDS
   ======================================================== */
.renew-modal-box {
  max-width: 480px;
  width: 100%;
  background: radial-gradient(120% 120% at 50% 0%, #111a2e 0%, #080d1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.15);
  padding: 22px;
}

.renew-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.renew-info-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

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

.renew-info-label {
  color: #94a3b8;
}

.renew-info-ip {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.renew-info-bal {
  color: #34d399;
  font-weight: 700;
}

/* Radio Cards Grid */
.renew-cycle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 420px) {
  .renew-cycle-grid {
    grid-template-columns: 1fr;
  }
}

.renew-cycle-card {
  position: relative;
  background: rgba(13, 21, 39, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}

.renew-cycle-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(13, 21, 39, 0.95);
  transform: translateY(-1px);
}

.renew-cycle-card.active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.22));
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.cycle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cycle-radio-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cycle-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.renew-cycle-card.active .cycle-radio-circle {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.cycle-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: none;
}

.renew-cycle-card.active .cycle-radio-dot {
  display: block;
}

.cycle-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
}

.cycle-discount-pill {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.cycle-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.cycle-price {
  color: #38bdf8;
  font-weight: 800;
  font-size: 15px;
}

.renew-cycle-card.active .cycle-price {
  color: #34d399;
}

.cycle-orig-price {
  color: #64748b;
  font-size: 11.5px;
  text-decoration: line-through;
}

.cycle-per-month-text {
  font-size: 11px;
  color: #94a3b8;
}

/* Payment Summary Bar */
.renew-summary-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.renew-sum-label {
  font-size: 13px;
  color: #94a3b8;
  display: block;
}

.renew-sum-amount {
  font-size: 18px;
  color: #38bdf8;
  font-weight: 800;
}

.renew-duration-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.renew-low-bal-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #fca5a5;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.btn-renew-deposit-link {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-renew-deposit-link:hover {
  background: rgba(239, 68, 68, 0.4);
}

/* ========================================================
   RANDOMIZE & QUICK PROXY SETUP MODAL
   ======================================================== */
.rand-modal-box {
  max-width: 640px !important;
  width: 95% !important;
  box-sizing: border-box !important;
  background: radial-gradient(130% 120% at 50% 0%, #152238 0%, #0b1322 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.15);
  padding: 24px;
}

.rand-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rand-info-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.rand-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rand-info-label {
  font-size: 13px;
  color: #94a3b8;
}

.rand-info-ip {
  color: #38bdf8;
  font-family: monospace;
  font-size: 14.5px;
}

.rand-current-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.rand-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .rand-options-grid {
    grid-template-columns: 1fr;
  }
}

.rand-option-card {
  min-width: 0;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.rand-option-card:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.rand-option-card.active {
  background: radial-gradient(120% 120% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

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

.rand-mode-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.rand-mode-badge.http {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.rand-mode-badge.socks {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.rand-tag-auth {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.rand-option-card.active .rand-tag-auth {
  color: #38bdf8;
}

.rand-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rand-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.rand-card-preview {
  font-family: monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.35);
  color: #38bdf8;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.rand-whitelist-box {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.rand-userpass-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #6ee7b7;
  width: 100%;
  box-sizing: border-box;
}

/* ========================================================
   RENEW PROXY MODAL & RADIO CARDS
   ======================================================== */
.renew-modal-box {
  max-width: 480px;
  width: 100%;
  background: radial-gradient(120% 120% at 50% 0%, #111a2e 0%, #080d1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(56, 189, 248, 0.15);
  padding: 22px;
}

.renew-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.renew-info-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

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

.renew-info-label {
  color: #94a3b8;
}

.renew-info-ip {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.renew-info-bal {
  color: #34d399;
  font-weight: 700;
}

/* Radio Cards Grid */
.renew-cycle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 420px) {
  .renew-cycle-grid {
    grid-template-columns: 1fr;
  }
}

.renew-cycle-card {
  position: relative;
  background: rgba(13, 21, 39, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  user-select: none;
}

.renew-cycle-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(13, 21, 39, 0.95);
  transform: translateY(-1px);
}

.renew-cycle-card.active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.22));
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.cycle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cycle-radio-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cycle-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.renew-cycle-card.active .cycle-radio-circle {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.cycle-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: none;
}

.renew-cycle-card.active .cycle-radio-dot {
  display: block;
}

.cycle-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
}

.cycle-discount-pill {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.cycle-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}

.cycle-price {
  color: #38bdf8;
  font-weight: 800;
  font-size: 15px;
}

.renew-cycle-card.active .cycle-price {
  color: #34d399;
}

.cycle-orig-price {
  color: #64748b;
  font-size: 11.5px;
  text-decoration: line-through;
}

.cycle-per-month-text {
  font-size: 11px;
  color: #94a3b8;
}

/* Payment Summary Bar */
.renew-summary-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.renew-sum-label {
  font-size: 13px;
  color: #94a3b8;
  display: block;
}

.renew-sum-amount {
  font-size: 18px;
  color: #38bdf8;
  font-weight: 800;
}

.renew-duration-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.renew-low-bal-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #fca5a5;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.btn-renew-deposit-link {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-renew-deposit-link:hover {
  background: rgba(239, 68, 68, 0.4);
}
