:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --card-bg: #ffffff;
  --bg-card: #ffffff;
  --card-border: #e2e8f0;
  --primary-color: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.15);
  --accent-color: #0284c7;
  --violet-accent: #7c3aed;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --success-color: #10b981;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

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

html {
  font-size: 14px;
  color-scheme: light;
}

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 10% 15%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
                    radial-gradient(circle at 90% 85%, rgba(124, 58, 237, 0.04) 0%, transparent 45%);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 30px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Headings Normalization */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

h1 { font-size: 17px; font-weight: 800; }
h2 { font-size: 15.5px; font-weight: 800; }
h3 { font-size: 14px; font-weight: 700; }
h4 { font-size: 13px; font-weight: 700; }
h5 { font-size: 12px; font-weight: 600; }
h6 { font-size: 11px; font-weight: 600; }

p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

small { font-size: 10.5px; }

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 11.5px;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 14px calc(75px + env(safe-area-inset-bottom, 0px));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Brand Top Bar */
.brand-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-title-wrap {
  flex: 1;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* App Header & User Avatar (Balanced Version 1.44) */
.app-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}

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

.avatar-ring {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #00f2fe, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.25);
}

.user-avatar {
  width: 100%;
  height: 100%;
  max-width: 34px;
  max-height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-details h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.user-badge {
  font-size: 10px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 12px;
  display: inline-block;
}

/* Integrated Header Balance Pill (Version 1.39) */
.header-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
}

.header-balance-pill:hover, .header-balance-pill:active {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: scale(0.97);
}

.bal-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.bal-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
  font-family: monospace;
  direction: ltr;
}

.bal-plus-icon {
  font-size: 9px;
  background: var(--primary-color);
  color: #fff;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Header Brand Badge (Balanced Version 1.44) */
.header-brand-badge {
  display: flex;
  align-items: center;
  padding: 3px 8px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 12px;
}

.header-brand-title {
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:active {
  transform: scale(0.92);
  background: #e2e8f0;
}

/* Ultra-Stylish Luxury Charge Button */
.btn-user-charge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 35%, #818cf8 70%, #c084fc 100%);
  color: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35), 0 2px 8px rgba(192, 132, 252, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.btn-user-charge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.5s infinite ease-in-out;
}

@keyframes btn-shine {
  0%, 60% { left: -75%; }
  100% { left: 125%; }
}

.btn-user-charge:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}

.charge-icon {
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Navigation Tabs & Fixed Bottom Nav (Version 1.40) */
.nav-tabs {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.fixed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 1000;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-bottom: none;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 0;
  gap: 3px;
}

.fixed-bottom-nav .nav-tab {
  padding: 6px 2px;
  font-size: 10px;
  gap: 2px;
}

.fixed-bottom-nav .tab-icon {
  font-size: 18px;
}

.quick-devices-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  transition: all 0.25s ease;
}

.quick-devices-widget:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  gap: 2px;
}

.nav-tab.active {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.nav-tab[data-tab="tab-dashboard"].active,
#nav-tab-dashboard.active {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: none !important;
}

.nav-tab[data-tab="tab-dashboard"] .tab-icon,
#nav-tab-dashboard .tab-icon {
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.6));
}

.tab-icon {
  font-size: 16px;
}

/* Tab Content & Fluid Zero-Scroll Dashboard (Version 1.46) */
.tab-content {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

#tab-dashboard.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: clamp(6px, 1.3vh, 12px);
}

#sub-details-container:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.3vh, 12px);
  flex: 1;
  justify-content: space-between;
}

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

/* Glass Card (Balanced Version 1.44) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 13px 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Subscription Card (Balanced Version 1.44) */
.sub-card {
  display: flex;
  flex-direction: column;
  padding: 11px 13px;
  gap: 0;
}

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

.sub-title {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
  color: var(--text-main);
}

.sub-username {
  font-size: 12px;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  color: var(--primary-color);
  border: 1px solid #e2e8f0;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-block;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Circular Traffic Gauge */
.gauge-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.gauge-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.8s ease;
}

.gauge-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-percent {
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gauge-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats Grid (Fluid Zero-Scroll 4-Grid - Version 1.46) */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(4px, 1.2vw, 8px);
}

.wallet-breakdown {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 8px;
}

.wallet-breakdown dd {
  margin: 0;
}

.wallet-breakdown .stat-box-compact .stat-label {
  white-space: normal;
}

#dashboard-offers h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

#dashboard-offers-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#dashboard-offers-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
}

#dashboard-offers-list li + li {
  border-top: 1px solid var(--card-border);
}

#dashboard-offers-list strong,
#dashboard-offers-list small {
  display: block;
  font-size: 11px;
}

#dashboard-offers-list small {
  color: var(--text-muted);
}

#dashboard-offers-list button {
  flex-shrink: 0;
}

#tab-dashboard .dash-telemetry-strip {
  text-align: end;
}

.stat-box-compact {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: clamp(8px, 1.4vh, 12px) 4px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}

.stat-box-compact .stat-label {
  font-size: clamp(9px, 1.8vw, 10.5px);
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-box-compact .stat-value {
  font-size: clamp(12px, 2.3vw, 14px);
  font-weight: 800;
  white-space: nowrap;
}

/* Side-by-Side Quick Grid: Devices + Referral (Fluid Version 1.46) */
.dash-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(6px, 1.4vw, 10px);
}

.dash-mini-card {
  padding: clamp(10px, 1.4vh, 14px) 12px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-mini-card:hover, .dash-mini-card:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.mini-card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.mini-card-icon {
  font-size: 19px;
  background: rgba(56, 189, 248, 0.14);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-card-icon.text-purple {
  background: rgba(192, 132, 252, 0.15);
}

.mini-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.mini-card-info h4 {
  font-size: 12.5px;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.mini-card-info .text-muted {
  font-size: 10px;
  white-space: nowrap;
}

.mini-badge {
  font-size: 9px !important;
  padding: 1px 5px !important;
  width: fit-content;
}

.mini-card-chevron {
  font-size: 12px;
  color: var(--text-muted);
}

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

/* Compact Notice Banner Ticker (Fluid Version 1.46) */
.sub-notice-banner-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: clamp(8px, 1.2vh, 12px) 12px;
  border-radius: var(--radius-sm);
  margin-top: 2px;
}

.sub-notice-banner-compact .notice-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.sub-notice-banner-compact .notice-text {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.4;
  font-weight: 600;
}

.text-accent {
  color: var(--accent-color);
}

/* Action Buttons */
.sub-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 35%, #818cf8 70%, #c084fc 100%);
  color: #080c14;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
}

/* Banner Card */
.banner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.banner-icon {
  font-size: 28px;
}

.banner-text h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fde047;
}

.banner-text p {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Plans List (Tab 2) */
.section-title {
  margin-bottom: 16px;
}

.section-title h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-title p {
  font-size: 12px;
  color: var(--text-muted);
}

.live-rate-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Redesigned Dynamic Plan Cards */
.plans-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card-redesigned {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.plan-card-redesigned:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.15);
}

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

.plan-card-redesigned.popular {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.28), rgba(15, 23, 42, 0.92));
  border: 1.5px solid #38bdf8;
  box-shadow: 0 6px 28px rgba(56, 189, 248, 0.28);
}

.plan-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.plan-volume-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
}

.plan-days-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 600;
}

.plan-title-bold {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.plan-desc-text {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.plan-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 10px;
  border-radius: 10px;
  margin: 10px 0;
  font-size: 10.5px;
  color: #475569;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.plan-bottom-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-price-large {
  font-size: 16px;
  font-weight: 900;
  color: #34d399;
}

.plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.plan-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-info p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.plan-price-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-color);
}

.payment-gateway-card {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-gateway-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.25);
}

/* Tutorial Cards (Tab 3) */
.tutorial-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tut-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tut-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tut-icon {
  font-size: 24px;
}

.tut-header h4 {
  font-size: 14px;
  font-weight: 700;
}

.tut-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   TELEGRAM-STYLE LIVE CHAT VIEWPORT (TAB 4)
   ======================================================== */

/* When in Support Tab, lock page and hide top app header and footer */
body.in-support-tab {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed;
  width: 100%;
}

body.in-support-tab .app-header,
body.in-support-tab .flash-sale-bar,
body.in-support-tab .app-footer,
#tab-support.active ~ .app-footer {
  display: none !important;
}

body.in-support-tab .app-container {
  padding: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

#tab-support.active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  height: auto !important;
  max-height: none !important;
  z-index: 80;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tg-chat-viewport {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #0e1621;
  position: relative;
  overflow: hidden;
}

/* 1. Telegram Chat Header */
.tg-chat-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  min-height: 52px;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 12px;
  z-index: 40;
  flex-shrink: 0;
}

.tg-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-back-btn {
  background: transparent;
  border: none;
  color: #64b5f6;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.tg-back-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.tg-avatar-wrap {
  position: relative;
  width: 36px;
  height: 36px;
}

.tg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2481cc, #1d6fa5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tg-online-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00c853;
  border: 2px solid #17212b;
  border-radius: 50%;
}

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

.tg-chat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.tg-chat-status {
  font-size: 10.5px;
  color: #4fa6eb;
  line-height: 1.3;
}

.tg-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-action-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 12px;
  font-size: 11px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.tg-action-btn:active {
  background: rgba(255, 255, 255, 0.14);
}

.tg-tg-link {
  color: #38bdf8;
  font-weight: 700;
}

/* 2. Telegram Collapsible FAQ Drawer */
.tg-faq-drawer {
  flex-shrink: 0;
  background: #17212b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  z-index: 25;
}

.tg-faq-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  background: rgba(36, 47, 61, 0.6);
  transition: background 0.2s ease;
}

.tg-faq-toggle-bar:hover, .tg-faq-toggle-bar:active {
  background: rgba(36, 47, 61, 0.9);
}

.tg-faq-toggle-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tg-faq-icon {
  font-size: 15px;
}

.tg-faq-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64b5f6;
}

.tg-faq-toggle-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tg-faq-badge {
  font-size: 10px;
  background: rgba(100, 181, 246, 0.15);
  color: #64b5f6;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid rgba(100, 181, 246, 0.3);
  font-weight: 600;
}

.tg-faq-arrow {
  font-size: 10px;
  color: #8e9ca8;
  transition: transform 0.25s ease;
}

.tg-faq-drawer.open .tg-faq-arrow {
  transform: rotate(180deg);
}

.tg-faq-content {
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 10px 10px;
  background: #0f1822;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tg-faq-content.hidden {
  display: none;
}

.tg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tg-faq-item {
  background: #17212b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tg-faq-item:hover {
  border-color: rgba(100, 181, 246, 0.3);
}

.tg-faq-q {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
}

.tg-faq-q-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(36, 129, 204, 0.25);
  color: #64b5f6;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-faq-q-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #e4ecf2;
  flex: 1;
}

.tg-faq-q-arrow {
  font-size: 11px;
  color: #8e9ca8;
  transition: transform 0.2s ease;
}

.tg-faq-item.open .tg-faq-q-arrow {
  transform: rotate(180deg);
}

.tg-faq-a {
  display: none;
  padding: 8px 10px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tg-faq-item.open .tg-faq-a {
  display: block;
  animation: tgFadeIn 0.2s ease;
}

.tg-faq-a p {
  font-size: 11.2px;
  color: #334155;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.tg-faq-a p b {
  color: #38bdf8;
}

.btn-ask-in-chat {
  background: #2481cc;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.btn-ask-in-chat:hover {
  opacity: 0.9;
}

/* 3. Telegram Scrollable Message Stream */
.tg-chat-stream {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 10px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: radial-gradient(circle at center, #111b26 0%, #0e1621 100%);
}

.tg-chat-welcome {
  margin: auto;
  text-align: center;
  background: rgba(23, 33, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 14px;
  max-width: 280px;
}

.tg-welcome-icon { font-size: 32px; margin-bottom: 6px; }
.tg-chat-welcome h4 { font-size: 13px; font-weight: 700; color: #4fa6eb; margin-bottom: 4px; }
.tg-chat-welcome p { font-size: 11px; color: #8e9ca8; line-height: 1.5; margin: 0; }

/* Telegram Bubble Designs */
.tg-msg {
  display: flex;
  max-width: 84%;
  position: relative;
  animation: tgFadeIn 0.2s ease-out;
}

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

.tg-msg.user {
  align-self: flex-end;
}

.tg-msg.admin {
  align-self: flex-start;
}

.tg-msg-bubble {
  padding: 8px 12px 6px 12px;
  border-radius: 14px;
  font-size: 12.8px;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.tg-msg.user .tg-msg-bubble {
  background: #2b5278;
  color: #ffffff;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tg-msg.admin .tg-msg-bubble {
  background: #182533;
  color: #e4ecf2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tg-admin-title {
  font-size: 11px;
  font-weight: 700;
  color: #5bb3f0;
  margin-bottom: 3px;
  display: block;
}

.tg-msg-text {
  font-size: 12.8px;
  line-height: 1.55;
}

.tg-msg-text b, .tg-msg-text strong {
  font-weight: 700;
  color: #0f172a;
}

.tg-msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 4px;
  float: left; /* In RTL, float timestamp to bottom left of bubble */
  padding-left: 2px;
}

.tg-msg-time {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.55);
}

.tg-msg-check {
  font-size: 11px;
  color: #4fa6eb;
  letter-spacing: -2px;
}

/* 4. Telegram Frozen Bottom Input Bar */
.tg-chat-input-bar {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  height: 52px;
  background: #17212b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  z-index: 40;
}

.tg-chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tg-emoji-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: transform 0.15s;
}

.tg-emoji-btn:active {
  transform: scale(1.2);
}

.tg-chat-input {
  flex: 1;
  background: #242f3d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 8px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  outline: none;
}

.tg-chat-input:focus {
  border-color: #2481cc;
}

.tg-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2481cc;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.tg-send-btn:active {
  transform: scale(0.92);
}

/* Modals */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 99999 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  color: var(--text-main);
  border-radius: var(--radius-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h2,
.modal-header h3,
.modal-header h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-close-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px auto;
  width: fit-content;
}

.qr-tip {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Referral Modal Styles (Version 1.48) */
.referral-modal-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.ref-modal-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.ref-share-telegram-btn {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #818cf8 100%) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35) !important;
  border: none !important;
}

.ref-share-telegram-btn:active {
  transform: scale(0.98);
}

.referral-modal-card {
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 18px !important;
}

.ref-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ref-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.ref-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.ref-stat-val {
  font-size: 13.5px;
  font-weight: 800;
}

.modal-ref-list-container {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.ref-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
}

.ref-user-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-user-avatar {
  font-size: 16px;
  background: rgba(56, 189, 248, 0.15);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-user-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ref-user-details strong {
  font-size: 12px;
  color: #0f172a;
}

.empty-ref-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 12px 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
}

/* Auto Connect & V2Ray App Import Modal (Version 1.52) */
#auto-connect-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

#auto-connect-modal.hidden {
  display: none !important;
}

.auto-connect-modal-card {
  width: 92% !important;
  max-width: 440px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  padding: 22px 20px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
  margin: auto !important;
  animation: popInAutoConnect 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes popInAutoConnect {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Announcement Banner */
.announcement-banner {
  display: flex;
  align-items: stretch;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.08);
  direction: ltr;
}

.announcement-icon-badge {
  background: linear-gradient(135deg, #ff7a00, #ff5100);
  color: #ffffff;
  width: 54px;
  min-width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-icon-badge svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
}

.announcement-content {
  padding: 10px 14px;
  flex: 1;
  text-align: right;
  direction: rtl;
}

.announcement-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #ff7a00;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 3px;
  direction: ltr;
}

.announcement-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  line-height: 1.6;
}

.auto-connect-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.auto-connect-banner-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.app-connect-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.app-connect-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: all var(--transition-fast);
}

.app-connect-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.4);
}

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

.app-item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

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

.app-item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-item-title-row strong {
  font-size: 12.5px;
  color: #ffffff;
}

.app-item-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.app-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

.badge-android {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-ios {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

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

.app-import-btn {
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  box-shadow: 0 3px 12px rgba(56, 189, 248, 0.3) !important;
}

.app-import-btn:active {
  transform: scale(0.95);
}

/* Admin User Detail Panel Modal (Version 1.54) */
.admin-user-detail-card {
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 18px !important;
  max-width: 480px;
}

.admin-user-panel-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================= PREMIUM SERVICES TEASER (VERSION 1.55) ================= */
.premium-nav-tab {
  position: relative;
}

.tab-badge-glow {
  position: absolute;
  top: -4px;
  right: 6px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
  animation: pulseGlow 1.8s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 14px rgba(236, 72, 153, 0.9); }
}

.premium-hero-card {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
  padding: 26px 18px !important;
}

.premium-glow-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(56, 189, 248, 0.1) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-6px) scale(1.05); }
}

.premium-large-icon {
  font-size: 36px;
}

.premium-badge-glow {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.5);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  display: inline-block;
}

.premium-categories-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-category-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 14px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-category-card:active {
  transform: scale(0.985);
  border-color: rgba(139, 92, 246, 0.5);
}

.premium-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.premium-card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cat-icon-accounts {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(236, 72, 153, 0.4);
}

.cat-icon-numbers {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cat-icon-apple {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.cat-icon-gift {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cat-icon-ip {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.35));
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.cat-icon-vip {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.cat-icon-ai {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.cat-icon-gaming {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.35));
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.cat-icon-licenses {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.cat-icon-vps {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.35));
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.premium-card-info {
  flex: 1;
  min-width: 0;
}

.premium-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.premium-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.badge-soon-glow {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.premium-card-desc {
  font-size: 11px;
  color: #334155;
  line-height: 1.5;
  margin-top: 3px;
}

.premium-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.premium-item-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 700;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
}

.premium-card-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-soon-action {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-soon-action:hover, .btn-soon-action:active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.v2-notify-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
}

.premium-detail-modal-card {
  max-width: 440px;
  padding: 22px 18px !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* ================= VIRTUAL NUMBER SHOP (VERSION 1.57) ================= */
.premium-active-card {
  border: 2px solid #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.2) !important;
  position: relative;
  transition: all 0.25s ease;
}

.premium-coming-soon-card {
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  opacity: 0.88;
  transition: all 0.25s ease;
}

.active-vn-card {
  border: 2px solid #10b981 !important;
  background: linear-gradient(135deg, #f0fdf4, #ffffff) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.2) !important;
}

.vn-shop-modal-card {
  max-width: 480px;
  padding: 20px 16px !important;
  max-height: 92vh;
  overflow-y: auto;
}

.vn-step-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vn-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.vn-service-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vn-service-chip:active {
  transform: scale(0.96);
}

.vn-service-chip.selected {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.vn-service-chip .chip-icon {
  font-size: 22px;
}

.vn-service-chip .chip-name {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.vn-sort-bar {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.vn-sort-bar::-webkit-scrollbar {
  display: none;
}

.vn-sort-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vn-sort-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.vn-countries-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 16px;
}

.vn-country-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #0f172a;
}

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

.vn-country-card.selected {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.vn-country-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vn-country-flag {
  font-size: 20px;
}

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

.ref-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.ref-user-date {
  font-size: 10px;
  color: var(--text-muted);
}

.ref-user-reward {
  font-size: 12px;
  font-weight: 800;
}

/* ================= REFERRAL HUB & STORY BANNER (v9.2) ================= */
.ref-hero-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.12);
}

.ref-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.ref-hero-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.ref-hero-desc {
  font-size: 12px;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.ref-hero-desc span {
  font-weight: 800;
  color: #38bdf8;
}

.ref-hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ref-stat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ref-stat-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.ref-stat-num {
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
}

.ref-stat-title {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
  font-weight: 600;
}

.ref-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ref-tool-card {
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ref-tool-card:hover {
  transform: translateY(-2px);
}

.story-banner-card {
  background: linear-gradient(135deg, #fdf2f8, #ffffff) !important;
  border: 1px solid #fbcfe8 !important;
}

.telegram-share-card {
  background: linear-gradient(135deg, #f0f9ff, #ffffff) !important;
  border: 1px solid #bae6fd !important;
}

.ref-tool-inner {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ref-tool-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.ref-tool-info h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.ref-tool-info p {
  margin: 4px 0 0 0;
  font-size: 10.5px;
  color: #475569;
  line-height: 1.4;
}

.ref-tool-btn {
  margin-top: 10px;
  width: 100%;
  font-size: 11.5px !important;
  padding: 6px 10px !important;
  font-weight: 700 !important;
}

.ref-friends-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.ref-friend-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
}

/* Story Banner Canvas Preview */
.story-banner-modal-card {
  max-width: 360px;
  padding: 16px !important;
}

.story-canvas-preview-wrap {
  width: 220px;
  height: 390px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(192, 132, 252, 0.5);
  background: #000;
}

.story-canvas-preview-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vn-country-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.vn-country-prefix {
  font-size: 10px;
  color: var(--text-muted);
}

.vn-country-price {
  text-align: left;
}

.vn-country-price .price-toman {
  font-size: 11.5px;
  font-weight: 800;
  color: #34d399;
}

.vn-country-price .price-usd {
  font-size: 10px;
  color: var(--text-muted);
}

.vn-checkout-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 10px;
}

/* Active Order Live Screen */
.vn-active-order-box {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: #0f172a;
}

.vn-phone-display {
  background: #f8fafc;
  border: 1.5px solid #0284c7;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}

.vn-phone-number {
  font-family: monospace;
  font-size: 17px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 1px;
  direction: ltr;
}

.vn-timer-badge {
  display: inline-block;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.vn-sms-waiting-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.vn-sms-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(2, 132, 199, 0.2);
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.vn-sms-code-box {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 14px;
  padding: 18px 14px;
  margin: 14px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.vn-sms-code-digits {
  font-family: monospace;
  font-size: 28px;
  font-weight: 900;
  color: #059669;
  letter-spacing: 6px;
  direction: ltr;
  margin: 6px 0;
}

.card-info-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

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

.card-number-row code {
  font-size: 15px;
  font-weight: 700;
  color: #67e8f9;
  letter-spacing: 1px;
}

.card-holder-name {
  color: #9ca3af;
}

.payment-note {
  font-size: 11.5px;
  color: #fbbf24;
  line-height: 1.5;
}

/* Top Floating Toast Notification (Version 1.49) */
.toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
  animation: slideDownToast 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownToast {
  from { transform: translate(-50%, -24px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.hidden {
  display: none !important;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }

/* Subscription Notice Banner */
.sub-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  text-align: right;
}

.sub-notice-banner .notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sub-notice-banner .notice-text {
  font-size: 11.5px;
  line-height: 1.6;
  color: #334155;
}

.sub-notice-banner .notice-text strong {
  color: #38bdf8;
}

/* ================= ADMIN PANEL STYLES ================= */

.admin-nav-btn {
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(249, 115, 22, 0.3)) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

/* ================= PROFESSIONAL 2-TIER ADMIN NAVIGATION ================= */
.adm-nav-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Tier 1: 4 Category Tabs */
.adm-cat-tabs {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.adm-cat-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #475569;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.adm-cat-tab.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

.adm-cat-tab .adm-cat-icon {
  font-size: 13px;
}

/* Tier 2: Sub-module Pills */
.adm-sub-tier-container {
  width: 100%;
}

.adm-sub-tier {
  display: flex;
  gap: 6px;
  width: 100%;
}

.adm-sub-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.adm-sub-pill.active {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  font-weight: 800;
}

/* Settings Hub Tab Bar */
.adm-settings-tab-bar {
  display: flex;
  gap: 4px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.adm-set-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #475569;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.adm-set-tab-btn.active {
  background: #fbbf24;
  color: #78350f !important;
  border-color: #f59e0b;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

/* Compact Filter Bar for Menus */
.adm-compact-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px 10px;
}

.adm-filter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.adm-compact-select {
  width: 100%;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.adm-compact-select:focus {
  border-color: #0284c7;
}

/* Collapsible Accordion for Service Switch Groups */
.adm-switch-group-card {
  margin-bottom: 10px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.adm-switch-group-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  padding: 10px 14px;
}

.adm-switch-group-header:hover {
  background: #f8fafc;
}

.adm-group-chevron {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.adm-switch-group-card.collapsed .adm-group-rows {
  display: none !important;
}

.adm-switch-group-card.collapsed .adm-group-chevron {
  transform: rotate(90deg);
}

/* Legacy fallback support */
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: hidden !important;
  margin-bottom: 12px;
}

.admin-subnav-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  flex: 1 1 calc(33.33% - 6px);
  min-width: 90px;
  text-align: center;
}

.admin-subnav-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #ffffff;
}

.admin-subcontent {
  display: none;
}

.admin-subcontent.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.admin-stat-icon {
  font-size: 24px;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.admin-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.server-status-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.server-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.server-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.admin-search-bar input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.admin-search-bar input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.admin-user-item, .admin-order-item {
  padding: 14px;
  margin-bottom: 10px;
}

.admin-user-header, .admin-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-user-meta, .admin-order-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-user-actions, .admin-order-actions {
  display: flex;
  gap: 8px;
}

.admin-textarea {
  width: 100%;
  padding: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: vertical;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.admin-textarea:hover {
  border-color: rgba(56, 189, 248, 0.7);
}

.admin-textarea:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3), inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.adm-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  margin-top: 4px;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.adm-input:hover {
  border-color: rgba(56, 189, 248, 0.7);
}

.adm-input:focus {
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3), inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Editable Section Badges & Highlight Card (Version 1.13) */
.edit-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

.adm-cms-card {
  position: relative;
  border-right: 3.5px solid #0284c7 !important;
  background: #ffffff !important;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

.empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Tasks 5, 6, 7 Styles */
.admin-support-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-conv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.admin-conv-item {
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.admin-conv-item:hover, .admin-conv-item.active {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.12);
}

.admin-conv-name {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.admin-conv-snippet {
  font-size: 11.5px;
  margin-top: 4px;
}

.admin-chat-box {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.admin-chat-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
}

.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  max-height: 260px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-plan-item, .admin-backup-item {
  padding: 12px 14px;
}

.admin-plan-header, .admin-backup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-plan-actions {
  display: flex;
  gap: 6px;
}

.admin-plan-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ================= VERSION 1.00 ENTERPRISE STYLES ================= */

/* Flash Sale Bar */
.flash-sale-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.flash-sale-timer {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 11px;
}

/* Referral Box */
.referral-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.referral-box input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
  outline: none;
}

/* Coupon Box */
.coupon-box {
  display: flex;
  gap: 8px;
}

.coupon-box input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 12px;
  outline: none;
  text-transform: uppercase;
}

.coupon-box input:focus {
  border-color: #6366f1;
}

/* SVG Bar Charts */
.chart-container {
  padding: 10px 0;
}

.svg-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  gap: 6px;
  padding-top: 10px;
  border-bottom: 1px solid var(--border-color);
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill {
  width: 100%;
  max-width: 18px;
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.chart-bar-lbl {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Lucky Wheel Modal */
.wheel-graphic {
  font-size: 64px;
  display: inline-block;
  user-select: none;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.text-center {
  text-align: center;
}

/* ================= FEATURE SWITCHES (TOGGLES) ================= */
.feature-switches-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}

.switch-label {
  color: var(--text-main);
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ================= MULTI-DEVICE CARDS (Version 1.10) ================= */
.devices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.25s ease;
  position: relative;
}

.device-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
}

/* Master Mother Device Card (Highlighted) */
.device-card.mother-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1);
  padding-top: 18px;
}

.device-card.mother-card .device-icon-bubble {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.mother-top-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 10px 3px 12px;
  border-bottom-right-radius: 12px;
  letter-spacing: 0.2px;
}

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

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

.device-icon-bubble {
  font-size: 22px;
  width: 38px;
  height: 38px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.device-meta-text h5 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.device-meta-text span {
  font-size: 11px;
  color: var(--text-muted);
}

.device-actions-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.device-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.device-type-option {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  transition: all 0.2s ease;
}

.device-type-option:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--primary-color);
}

.device-type-option:has(input:checked) {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(99, 102, 241, 0.15));
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  color: #ffffff;
  font-weight: 700;
}

/* Device Quota Progress Bar (Version 1.12) */
.device-quota-info {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.device-quota-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.device-quota-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.device-quota-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #00f2fe);
  transition: width 0.3s ease;
}

.device-quota-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.device-quota-fill.danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* App Footer (Version 1.17) */
.app-footer {
  text-align: center;
  padding: 24px 0 36px;
  font-size: 11.5px;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.3px;
  user-select: none;
}

/* Logs & Changelog Modules (Version 1.17) */
.admin-log-item {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.admin-log-header, .admin-changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.log-message {
  display: block;
  font-family: monospace;
  font-size: 11.5px;
  color: #fca5a5;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  word-break: break-all;
}

.log-details {
  font-family: monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border-radius: 6px;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.admin-changelog-item {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
}

/* ================= SENT MESSAGES 7-DAY AUDIT (VERSION 1.32) ================= */

.admin-messages-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-msg-cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.msg-cat-pill {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.msg-cat-pill:hover,
.msg-cat-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.admin-msg-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-left: 2px;
}

.admin-msg-user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-msg-user-card:hover,
.admin-msg-user-card.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.admin-msg-user-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-msg-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.admin-msg-user-snippet {
  font-size: 0.76rem;
  color: var(--text-secondary);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-msg-user-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.msg-count-pill {
  padding: 2px 8px;
  font-size: 0.72rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary);
  font-weight: 600;
}

.msg-time-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Timeline Layout */
.admin-msg-timeline-box {
  min-height: 260px;
}

.admin-msg-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-user-info {
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-msg-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-left: 4px;
}

.admin-msg-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.admin-msg-bubble:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
}

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

.msg-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 10px;
}

.cat-user_click { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.cat-user_message { background: rgba(52, 211, 153, 0.18); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.4); }
.cat-billing { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.cat-order { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.cat-broadcast { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-support { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.cat-device { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-direct { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.cat-system { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }

.admin-msg-bubble.inbound {
  border-right: 3px solid #38bdf8;
  background: rgba(15, 23, 42, 0.65);
}

.admin-msg-bubble.outbound {
  border-right: 3px solid #a855f7;
}

.direction-badge-inbound {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.direction-badge-outbound {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.msg-action-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 4px;
}

.admin-msg-bubble-body {
  font-size: 0.84rem;
  line-height: 1.55;
  color: #0f172a;
  word-break: break-word;
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: 8px;
}

.admin-msg-bubble-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ================= NATIVE ANALYTICS & MONITORING (VERSION 1.35) ================= */

.analytics-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.analytics-live-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-status-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
}

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

.analytics-range-pills {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: 20px;
}

.range-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.range-pill:hover,
.range-pill.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.analytics-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tunnel-health-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

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

.tunnel-k {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.tunnel-v {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.analytics-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .analytics-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.apex-chart-wrapper {
  min-height: 240px;
  width: 100%;
}

.admin-heavy-users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.heavy-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.82rem;
}

.heavy-user-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 6px;
}

.heavy-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.heavy-user-usage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* ================= TOP PROMINENT QUICK CONNECT CARD (FLUID VERSION 1.46) ================= */

.top-connect-card {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.16);
  padding: clamp(10px, 1.4vh, 15px);
}

.top-connect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-connect-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.80rem, 1.8vw, 0.88rem);
  color: #fff;
}

.top-connect-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: clamp(2px, 0.6vh, 4px) 6px;
}

.top-sub-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #93c5fd;
  font-family: monospace;
  font-size: clamp(0.76rem, 1.8vw, 0.82rem);
  padding: clamp(4px, 0.8vh, 7px) 6px;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.btn-copy-top {
  white-space: nowrap;
  font-weight: 700;
  padding: clamp(4px, 0.8vh, 7px) 12px;
  font-size: clamp(0.76rem, 1.8vw, 0.82rem);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.top-connect-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-connect-actions-row .btn {
  flex: 1;
  font-size: clamp(0.74rem, 1.7vw, 0.78rem);
  padding: clamp(5px, 0.9vh, 8px) 10px;
}

/* ================= PREMIUM ACCOUNTS & SUBSCRIPTIONS STORE ================= */

.prem-cat-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 10px 2px;
  scrollbar-width: none;
}
.prem-cat-pills::-webkit-scrollbar {
  display: none;
}

.prem-cat-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.prem-cat-pill:active {
  transform: scale(0.96);
}

.prem-cat-pill.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: #7c3aed;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.prem-products-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.prem-product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.prem-product-card:hover {
  border-color: #c084fc;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
}

.prem-prod-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.prem-prod-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prem-prod-desc {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 10px;
  font-weight: 500;
  white-space: pre-line;
}

.prem-prod-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.prem-tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prem-tag-instant {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.prem-tag-custom {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.prem-tag-warranty {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.prem-prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 4px;
}

.prem-price-block {
  display: flex;
  flex-direction: column;
}

.prem-price-toman {
  font-size: 14.5px;
  font-weight: 800;
  color: #059669;
}

.prem-price-usd {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.prem-cred-box {
  background: #f8fafc;
  border: 1.5px dashed #93c5fd;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 12px;
  color: #0369a1;
  font-weight: 700;
  word-break: break-all;
  direction: ltr;
  text-align: left;
  margin: 8px 0;
  white-space: pre-wrap;
}

/* ================= SERVICE AVAILABILITY SWITCHES ================= */

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

.service-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.service-switch-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
}

.service-switch-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-switch-icon {
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 10px;
}

.service-switch-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.service-switch-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* iOS Toggle Switch */
.ios-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ios-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.ios-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.ios-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input:checked + .ios-slider {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

input:checked + .ios-slider:before {
  transform: translateX(22px);
}

.service-switch-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.switch-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.switch-label.active-label {
  color: #10b981;
}

.switch-label.visible-label {
  color: #38bdf8;
}

.ios-toggle.toggle-visibility input:checked + .ios-slider {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

@media (max-width: 520px) {
  .service-switch-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .service-switch-controls {
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
  }
}

/* ================= HIERARCHICAL TREE STYLES FOR SERVICES ================= */

.service-tree-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.service-tree-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.tree-master-node {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(56, 189, 248, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.tree-master-node.master-vpn {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(16, 185, 129, 0.05));
  border-color: rgba(56, 189, 248, 0.3);
}

.tree-master-node.master-payment {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.05));
  border-color: rgba(16, 185, 129, 0.3);
}

.tree-master-node.master-engagement {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(168, 85, 247, 0.05));
  border-color: rgba(236, 72, 153, 0.3);
}

.tree-master-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.tree-branch-container {
  margin-right: 18px;
  padding-right: 14px;
  border-right: 2px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.tree-branch-container.dimmed-branch {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.6);
}

.tree-parent-disabled-banner {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: #fca5a5;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.tree-sub-branch-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
}

.tree-leaf-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
}

/* ================= RBAC & LIVE USER PREVIEW (VIEW AS USER) ================= */

.user-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: hidden;
  padding-bottom: 2px;
}

.user-filter-btn {
  border-radius: 20px;
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}

.user-filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.badge-superadmin {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  font-weight: 800;
}

.badge-role-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 700;
}

.badge-role-user {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* User Live Viewport Modal */
.user-preview-modal-card {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.user-preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-preview-subnav {
  display: flex;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  gap: 6px;
  overflow-x: hidden;
}

.user-prev-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.user-prev-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.user-prev-nav-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.user-preview-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Replica Connect Card */
.prev-connect-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 14px;
  position: relative;
}

.prev-progress-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0;
}

.prev-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  border-radius: 6px;
}

.prev-stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
}

.admin-set-section {
  width: 100%;
  animation: fadeIn 0.2s ease-in-out;
  touch-action: pan-y;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.admin-user-item {
  width: 100%;
  touch-action: pan-y;
}

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

/* ========================================================
   TAB 3: TUTORIALS & KNOWLEDGE BASE (VERSION 2.0)
   ======================================================== */
.tut-hero-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.tut-hero-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tut-hero-icon-box {
  width: 42px;
  height: 42px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tut-hero-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 3px 0;
}

.tut-hero-desc {
  font-size: 11px;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.tut-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 2px 10px;
  transition: all 0.25s ease;
}

.tut-search-bar:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.tut-search-icon {
  font-size: 13px;
  color: #94a3b8;
  margin-left: 8px;
}

.tut-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 11.5px;
  padding: 7px 0;
  outline: none;
  font-family: inherit;
}

.tut-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
}

.tut-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tut-section-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* OS Selector Tabs (Single Row No-Scroll) */
.os-selector {
  display: flex;
  gap: 4px;
  width: 100%;
  overflow-x: hidden;
  padding-bottom: 4px;
}

.os-btn {
  flex: 1 1 0;
  min-width: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 8px;
  padding: 8px 2px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-btn.active {
  background: #2481cc;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(36, 129, 204, 0.35);
}

.tutorial-content-box {
  font-size: 12px;
  line-height: 1.7;
}

/* FAQ Category Filter Pills */
.faq-cat-filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.faq-cat-filter-pills::-webkit-scrollbar {
  display: none;
}

.faq-filter-btn {
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-filter-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

/* FAQ Accordion List (30 Items) */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-card-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-card-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.faq-card-num {
  width: 20px;
  height: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  flex: 1;
  line-height: 1.4;
}

.faq-card-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

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

.faq-card-body {
  display: none;
  padding: 10px 14px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-card-item.open .faq-card-body {
  display: block;
  animation: tgFadeIn 0.2s ease;
}

.faq-card-body p {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.faq-card-body p b {
  color: #38bdf8;
}

.faq-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-faq-ask {
  background: #2481cc;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.btn-faq-ask:hover {
  background: #1d6fa5;
}

/* ================= VIRTUAL NUMBERS ENHANCEMENTS (TABS, CONFIRM MODAL, MY NUMBERS) ================= */
.vn-sub-nav-tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
}

.vn-sub-tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vn-sub-tab-btn.active {
  background: #0284c7;
  border: 1px solid #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.vn-my-order-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
  color: #0f172a;
}

.vn-my-order-card:hover {
  border-color: #cbd5e1;
}

.vn-my-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vn-confirm-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 100005 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  animation: tgFadeIn 0.2s ease;
}

#vn-confirm-modal {
  z-index: 100005 !important;
}

#vn-confirm-modal .vn-confirm-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 22px !important;
  width: 100% !important;
  max-width: 375px !important;
  padding: 22px 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 20px rgba(2, 132, 199, 0.08) !important;
  text-align: center !important;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin: auto !important;
  color: #0f172a !important;
}

.vn-confirm-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 22px !important;
  width: 100% !important;
  max-width: 375px !important;
  padding: 22px 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
  text-align: center !important;
  animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  color: #0f172a !important;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vn-confirm-summary-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  margin: 14px 0 !important;
  text-align: right !important;
  font-size: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  color: #0f172a !important;
}

/* ================= COMPACT & MINIMAL ADMIN SERVICE SWITCHES ================= */
.adm-switch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

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

.adm-chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.adm-chip-btn:hover, .adm-chip-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.adm-switch-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: 12px 12px 0 0;
}

.adm-switch-group-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.adm-switch-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.adm-switch-group-title {
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.adm-compact-row:last-child {
  border-bottom: none;
}

.adm-compact-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.adm-compact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.adm-compact-icon {
  font-size: 17px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  flex-shrink: 0;
}

.adm-compact-title {
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-compact-key {
  font-size: 9.5px;
  color: #64748b;
  margin-right: 6px;
  direction: ltr;
  display: inline-block;
  font-family: monospace;
}

.adm-compact-toggles {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.adm-mini-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.adm-mini-toggle-label {
  font-size: 10px;
  font-weight: 700;
}

/* ==============================================================================
   PREMIUM LIGHT THEME DESIGN SYSTEM (WHITE / SLATE)
   ============================================================================== */

/* Document & Base Typography */
html, body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  color-scheme: light !important;
}

body {
  background-image: radial-gradient(circle at 12% 16%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
                    radial-gradient(circle at 88% 84%, rgba(124, 58, 237, 0.04) 0%, transparent 45%) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #0f172a !important;
}

p {
  color: #64748b !important;
}

.text-muted {
  color: #64748b !important;
}

/* Cards, Panels & Elevated Containers */
.card,
.glass-card,
.sub-card,
.tut-card,
.tut-hero-card,
.ref-hero-card,
.device-card,
.admin-stat-card,
.admin-user-item,
.admin-order-item,
.modal-card,
.top-connect-card,
.premium-hero-card,
.premium-category-card,
.vn-confirm-card,
.adm-switch-group-card,
.banner-card,
.plan-card-redesigned,
.v2-notify-card,
.prev-connect-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card:hover, .glass-card:hover, .plan-card-redesigned:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

/* Mother Card / Popular Plan highlight */
.device-card.mother-card {
  background: #fffbeb !important;
  border: 1.5px solid #fde68a !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08) !important;
}

.plan-card-redesigned.popular {
  border: 2px solid #0284c7 !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.12) !important;
}

.active-vn-card {
  border: 1.5px solid #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12) !important;
}

/* Headers & Navigation Bars */
.brand-bar,
.app-header,
.glass-header,
.admin-top-bar,
.tg-chat-header,
.tg-chat-input-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.fixed-bottom-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
}

.nav-tab {
  color: #64748b !important;
}

.nav-tab.active {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.2) !important;
}

#nav-tab-dashboard.active,
.nav-tab[data-tab="tab-dashboard"].active {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: none !important;
}

/* Modals & Overlays */
.modal-overlay,
.auth-gate-overlay,
.vn-confirm-backdrop {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

.modal-header h2,
.modal-header h3,
.modal-header h4 {
  color: #0f172a !important;
}

.modal-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

/* Form Inputs, Selects & Textareas */
input,
select,
textarea,
.adm-input,
.top-sub-input,
.tut-search-input,
.price-override-input,
.tg-chat-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
}

input:focus,
select:focus,
textarea:focus,
.adm-input:focus,
.price-override-input:focus,
.tg-chat-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #64748b !important;
}

/* Tab Switchers & Segmented Controls */
.dual-hub-switcher,
.triple-hub-switcher,
.admin-subnav,
.prem-cat-pills,
.vn-sub-nav-tabs,
.adm-switch-toolbar,
.admin-segmented-tabs,
.vn-sort-bar {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

.hub-btn,
.admin-subnav-btn,
.prem-cat-pill,
.vn-sub-tab-btn,
.adm-chip-btn,
.vn-sort-btn {
  color: #334155 !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.hub-btn.active,
.admin-subnav-btn.active,
.prem-cat-pill.active,
.vn-sub-tab-btn.active,
.adm-chip-btn.active,
.vn-sort-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  font-weight: 800 !important;
}

.hub-btn.active.hub-tg {
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

.hub-btn.active.hub-prem {
  color: #7c3aed !important;
  border-color: #7c3aed !important;
}

.hub-btn.active.hub-settings {
  color: #d97706 !important;
  border-color: #d97706 !important;
}

/* Tables & Lists */
th, .country-pricing-table th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #94a3b8 !important;
  font-weight: 800 !important;
}

/* High Contrast Telegram Services Hub */
#hub-container-tgservices .card {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  overflow: hidden !important;
}

#hub-container-tgservices .card-header {
  background: #f1f5f9 !important;
  border-bottom: 2px solid #cbd5e1 !important;
  padding: 14px 16px !important;
}

#hub-container-tgservices table th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 12.5px !important;
  border-bottom: 2px solid #94a3b8 !important;
}

#hub-container-tgservices table td {
  color: #0f172a !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

td, .country-pricing-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #0f172a !important;
}

.server-status-item,
.vn-country-card,
.ref-friend-card,
.plan-features-grid,
.card-info-box,
.vn-checkout-bar,
.vn-sms-waiting-box,
.device-quota-info,
.adm-compact-row,
.tut-search-bar,
.top-connect-box,
.vn-service-chip {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.vn-country-card.selected,
.vn-service-chip.selected {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

.device-type-option {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.device-type-option:has(input:checked) {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* Badges & Pills */
.badge-success {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

.badge-warning {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.badge-outline {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.badge-accent {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.premium-item-tag,
.plan-days-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

.sub-username {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
  border: 1px solid #e2e8f0 !important;
}

/* PIN Gate & Admin Components */
.pin-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

.pin-dot {
  border: 2px solid #cbd5e1 !important;
  background: transparent !important;
}

.pin-dot.filled {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35) !important;
}

.pin-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.pin-btn:active {
  background: #e2e8f0 !important;
}

/* Telegram Live Chat Viewport (Tab 4) */
.tg-chat-viewport,
.tg-chat-stream {
  background: #f8fafc !important;
}

.tg-chat-welcome {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.tg-msg.user .tg-msg-bubble {
  background: #e0f2fe !important;
  color: #0f172a !important;
  border: 1px solid #bae6fd !important;
}

.tg-msg.admin .tg-msg-bubble {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

.tg-chat-title {
  color: #0f172a !important;
}

.tg-msg-time {
  color: #64748b !important;
}

.tg-msg-text b,
.tg-msg-text strong {
  color: #0f172a !important;
}

.tg-faq-drawer,
.tg-faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

.tg-faq-toggle-bar {
  background: #f8fafc !important;
}

.tg-faq-q-text {
  color: #0f172a !important;
}

.tg-faq-a {
  background: #f8fafc !important;
  color: #475569 !important;
  border-top: 1px solid #f1f5f9 !important;
}

.tg-send-btn {
  background: #0284c7 !important;
  color: #ffffff !important;
}

/* Circular Traffic Gauge */
.progress-ring-bg {
  stroke: #e2e8f0 !important;
}

/* Slider Controls */
.slider {
  background-color: #cbd5e1 !important;
  border: 1px solid #94a3b8 !important;
}

.switch input:checked + .slider {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* Toast Notification */
.toast {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Master Typography & Color Contrast Guards */
.plan-title-bold,
.app-item-title-row strong,
.premium-card-title,
.vn-service-chip .chip-name,
.vn-country-name,
.admin-stat-val,
.admin-msg-user-name,
.top-connect-title,
.prem-prod-title,
.service-switch-title,
.adm-compact-title,
.tut-hero-title,
.tut-section-header h4,
.faq-card-title,
.ref-hero-title,
.ref-stat-num,
.ref-tool-info h4,
.ref-user-details strong,
.admin-user-header strong,
.admin-user-item strong,
.live-status-text,
.tunnel-v {
  color: #0f172a !important;
}

.ref-hero-desc,
.plan-desc-text,
.prem-prod-desc,
.service-switch-desc,
.faq-card-body p,
.ref-stat-title,
.app-item-sub,
.sub-notice-banner .notice-text,
.sub-notice-banner-compact .notice-text,
.plan-features-grid,
.plan-days-pill {
  color: #475569 !important;
}

.vn-sms-code-digits {
  color: #065f46 !important;
}

.ref-stat-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.admin-msg-user-card,
.heavy-user-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

.prem-product-card {
  color: #0f172a !important;
}

.prem-product-card.prem-card-active {
  border: 2.5px solid #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25) !important;
}

.prem-product-card.prem-card-coming-soon {
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  opacity: 0.88 !important;
}

/* ================= TOPUP PACKAGES SECTION ================= */
.topup-trust-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.topup-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 20px;
}

.topup-tiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 360px) {
  .topup-tiers-grid {
    grid-template-columns: 1fr;
  }
}

.topup-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px;
  padding: 13px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

.topup-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06) !important;
}

.topup-card:active {
  transform: scale(0.98);
}

.topup-card.popular {
  border-color: #38bdf8 !important;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}

.topup-card.has-gift {
  border-color: #f59e0b !important;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.09) !important;
}

.topup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 8px;
}

.topup-title-bold {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.3;
}

.topup-gift-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  white-space: nowrap;
  animation: pulseGift 2s infinite ease-in-out;
}

@keyframes pulseGift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.topup-badge-pill {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.topup-traffic-box {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
}

.traffic-symbol {
  font-size: 13px;
  color: #0284c7;
}

.traffic-text {
  font-size: 11px;
  color: #334155;
}

.traffic-text b {
  color: #0284c7;
  font-weight: 800;
}

.topup-unlimited-row {
  margin-bottom: 8px;
}

.topup-unlimited-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
}

.topup-total-credit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 6px;
  padding: 4px 7px;
  margin-bottom: 8px;
  color: #9a3412;
}

.topup-total-credit-banner strong {
  color: #c2410c;
  font-weight: 800;
}

.topup-sub-desc {
  font-size: 10px;
  color: #475569;
  margin-bottom: 8px;
}

.topup-select-btn {
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: auto;
}














/* ================= ABSOLUTE LIGHT THEME LAW (ZERO WHITE/FAINT TEXT ON LIGHT BG) ================= */
:root {
  --text-main: #0f172a !important;
  --text-muted: #475569 !important;
}

body,
.app-container,
.tab-content,
.card,
.glass-card,
.modal-card,
.modal-body,
.prem-product-card,
.device-card,
.sub-card,
.tut-card,
.ref-hero-card,
.ref-stat-card,
.topup-card,
.vn-country-card,
.vn-my-order-card {
  color: #0f172a !important;
}

/* All headings, titles and strong elements must be crisp dark */
h1, h2, h3, h4, h5, h6, strong, b,
.prem-prod-title,
.premium-card-title,
.service-switch-title,
.topup-title-bold,
.ref-stat-num,
.tut-hero-title,
.faq-card-title {
  color: #0f172a !important;
}

/* All paragraphs, labels, descriptions and notes must be clearly legible dark slate */
p, .text-muted,
.prem-prod-desc,
.premium-card-desc,
.service-switch-desc,
.topup-sub-desc,
.tut-hero-desc,
.ref-stat-title,
.faq-card-body p {
  color: #334155 !important;
}

/* High contrast inputs and placeholders */
input, textarea, select, .form-control {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

input::placeholder, textarea::placeholder {
  color: #64748b !important;
}

/* Category pills and chips */
.premium-item-tag {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
}

.prem-cat-pill {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
}

.prem-cat-pill.active {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}

/* Modals and Overlays in Light Theme */
.modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
}

.modal-header h3, .modal-header h4 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.modal-close-btn {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Lists and Content Elements */
ol, ul, li {
  color: #334155 !important;
}

.empty-state {
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
}

/* Telegram Services Modal Elements */
#telegram-services-modal .modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
}

#tg-service-recipient {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #0284c7 !important;
}

/* Glass cards light theme baseline */
.glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

/* Master White Theme Guarantee for ALL Modals & Dialogs */
.modal-card,
.vn-shop-modal-card,
.vn-confirm-card,
#vn-confirm-modal .vn-confirm-card,
#virtual-number-shop-modal .modal-card,
.checkout-modal-body,
.referral-modal-card,
.auto-connect-modal-card,
.story-banner-modal-card,
.user-preview-modal-card,
.premium-detail-modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}

.vn-confirm-summary-box,
.vn-checkout-bar,
.vn-service-chip,
.vn-country-card,
.ref-stat-box,
.user-preview-topbar,
.user-preview-subnav {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

/* Premium Subpages Navigation (Normal page views instead of popups) */
.prem-subpage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.25s ease forwards;
  width: 100%;
}

.prem-subpage.hidden {
  display: none !important;
}

.prem-subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-subpage-back:hover,
.btn-subpage-back:active {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(0.97);
}

.btn-subpage-back .back-icon {
  font-size: 13px;
  display: inline-block;
}

.prem-subpage-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ================= LIVE IN-APP UPDATE NOTIFICATION (v1.6.24) ================= */
.live-update-alert {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 999999;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: slideDownUpdateBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

@keyframes slideDownUpdateBanner {
  from { transform: translateY(-120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.update-alert-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.update-alert-content .update-icon {
  font-size: 16px;
  animation: pulseRocket 1.5s infinite;
}

@keyframes pulseRocket {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.btn-update-reload {
  background: #ffffff;
  color: #0284c7;
  border: none;
  font-weight: 800;
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
  font-family: inherit;
}

.btn-update-reload:active {
  transform: scale(0.95);
}

/* Major Update Modal Styles */
.major-update-card {
  max-width: 430px;
  width: 90%;
  border-radius: 20px;
  direction: rtl;
  text-align: right;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.major-update-header {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.major-update-body {
  padding: 18px 20px;
  max-height: 55vh;
  overflow-y: auto;
}

.major-update-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main, #0f172a);
}

.major-update-item-icon {
  font-size: 14px;
  margin-top: 2px;
}

/* ================= APP INITIAL LOADER (ZERO-FLASH ARCHITECTURE) ================= */
#app-initial-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary, #f8fafc);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  user-select: none;
  -webkit-user-select: none;
}

#app-initial-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.loader-logo-ring {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.loader-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(2, 132, 199, 0.12);
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: appSpin 0.85s linear infinite;
}

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

.loader-brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.loader-status-text {
  font-size: 11.5px;
  color: #64748b;
  font-family: inherit;
  direction: rtl;
}

#btn-lucky-wheel.hidden,
#btn-lucky-wheel[style*="display:none"],
#btn-lucky-wheel[style*="display: none"] {
  display: none !important;
}




