/* ==========================================================================
   VPN live-dev - LUXURY CYBER-FINTECH DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Rich Cosmic Background */
  --bg-primary: #090d16;
  --bg-secondary: #0e1322;
  --bg-tertiary: #141c30;
  
  /* Glassmorphism Panels */
  --bg-card: rgba(18, 25, 42, 0.72);
  --bg-card-hover: rgba(28, 38, 64, 0.88);
  --bg-glass-input: rgba(14, 20, 34, 0.8);
  
  /* Borders & Gradients */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(16, 185, 129, 0.4);
  --border-focus: rgba(6, 182, 212, 0.6);
  
  /* Vivid Color Accents */
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-violet: #8b5cf6;
  --accent-violet-glow: rgba(139, 92, 246, 0.4);
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.4);
  --accent-rose: #f43f5e;
  
  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Fonts */
  --font-brand: 'Space Grotesk', 'Outfit', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --tr-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================
   AMBIENT AURORA BLOBS & BACKGROUND CANVAS
   ========================================== */
.aurora-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.42;
  mix-blend-mode: screen;
  animation: aurora-float 16s ease-in-out infinite alternate;
}

.blob-1 {
  top: -12%;
  left: -8%;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45), rgba(6, 182, 212, 0.25) 55%, transparent 75%);
  animation-duration: 18s;
}

.blob-2 {
  top: 10%;
  right: -10%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), rgba(236, 72, 153, 0.2) 60%, transparent 80%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.blob-3 {
  bottom: -15%;
  left: 20%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.15) 60%, transparent 80%);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes aurora-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, 35px) scale(1.08); }
  100% { transform: translate(-35px, 55px) scale(0.94); }
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================
   NAVIGATION & BRANDING (No CAPS on live-dev)
   ========================================== */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 13, 22, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity var(--tr-fast);
}

.logo-brand:hover {
  opacity: 0.95;
}

.logo-gem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth);
}

.logo-brand:hover .logo-gem {
  transform: scale(1.06) rotate(3deg);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.55);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-vpn {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.brand-sub {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: lowercase; /* explicitly NOT caps */
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

.nav-miniapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  text-decoration: none;
  transition: all var(--tr-fast);
}

.nav-miniapp-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

/* ==========================================
   GLASSMORPHISM CARDS WITH COLOR INSERTS
   ========================================== */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.35rem;
  padding: 1.6rem;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth), border-color var(--tr-smooth);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Color Accent Top Ribbons (Цветные вставки) */
.card-accent-emerald::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
}

.card-accent-cyan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 100%);
}

.card-accent-violet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
}

.card-accent-amber::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

/* ==========================================
   HERO POWER SECTION & 60FPS PULSE BUTTON
   ========================================== */
.vpn-power-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1rem 3rem;
  position: relative;
}

.server-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 25, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all var(--tr-smooth);
}

.server-selector-pill:hover {
  background: rgba(28, 38, 64, 0.95);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.ping-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: ping-pulse 2s infinite ease-in-out;
}

@keyframes ping-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.power-btn-container {
  position: relative;
  width: 176px;
  height: 176px;
  margin: 1.8rem auto 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.power-btn-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, #10b981 0deg, #06b6d4 90deg, #8b5cf6 180deg, #f43f5e 270deg, #10b981 360deg);
  opacity: 0.85;
  filter: blur(8px);
  animation: rotate-conic 8s linear infinite;
}

@keyframes rotate-conic {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.power-btn {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #18233a 0%, #0d121e 80%);
  border: 2px solid rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 35px var(--accent-emerald-glow), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #34d399;
  cursor: pointer;
  user-select: none;
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth), border-color var(--tr-smooth);
}

.power-btn:hover {
  transform: scale(1.04);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 45px rgba(6, 182, 212, 0.55), inset 0 2px 6px rgba(255, 255, 255, 0.25);
}

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

.power-btn.disconnected {
  border-color: rgba(244, 63, 94, 0.6);
  color: #fb7185;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.35);
}

.power-btn.disconnected + .power-btn-ring {
  background: #f43f5e;
  filter: blur(12px);
  opacity: 0.4;
}

/* ==========================================
   STATUS PILLS & CHIPS
   ========================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.pill-active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.pill-violet {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.pill-cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================
   BUTTONS & CONTROLS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--tr-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #0891b2 100%);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-cyber-incy {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.38);
}

.btn-cyber-incy:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #a855f7 100%);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================
   DASHBOARD GRID & SECTIONS
   ========================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.grid-full-width {
  grid-column: 1 / -1;
}

.balance-value {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.balance-currency {
  color: var(--accent-emerald);
  font-size: 1.7rem;
}

/* Modern Switch */
.switch-label {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  display: block;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  position: relative;
  transition: background var(--tr-smooth);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--tr-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

input:checked + .toggle-switch {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

input:checked + .toggle-switch::after {
  transform: translateX(22px);
}

/* Russian direct routing tags */
.ru-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 0.55rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   AUTH FORMS & INPUTS
   ========================================== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: calc(100vh - 160px);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.4rem;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
}

.auth-title {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-glass-input);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--tr-fast);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.25);
  background: rgba(20, 28, 48, 0.95);
}

.input-password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
}

.input-password-toggle:hover {
  color: #ffffff;
}

/* ==========================================
   MODAL WINDOWS
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-body {
  position: relative;
  background: #0f1525;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
  transition: transform var(--tr-smooth);
}

.modal-overlay.active .modal-body {
  transform: scale(1);
}

.server-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: all var(--tr-smooth);
}

.server-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.server-item-card.selected {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
#toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================
   SUPPORT CONTACT CARDS & FLOATING BUTTON
   ========================================== */
.support-channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--tr-smooth);
  cursor: pointer;
}

.support-channel-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.support-card-tg:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.support-card-wa:hover {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.support-card-phone:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* Floating Support Button in Bottom-Right Corner */
.floating-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 0.65rem 1.15rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.25);
  transition: all var(--tr-smooth);
}

.floating-support-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   TELEGRAM MINI APP NATIVE ADAPTATIONS (SINGLE UNIFIED FRONTEND)
   ========================================================================== */
.telegram-webapp .header-nav {
  display: none !important;
}

.telegram-webapp footer {
  display: none !important;
}

.telegram-webapp .floating-support-btn {
  display: none !important;
}

.telegram-webapp .app-wrapper {
  padding-top: 0.25rem !important;
  padding-bottom: 2rem !important;
}

.telegram-webapp .container {
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  max-width: 580px !important;
}

.telegram-webapp .hero-server-bar {
  margin-top: 0.25rem !important;
  margin-bottom: 0.75rem !important;
}

.telegram-webapp .hero-server-btn {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem !important;
}

.telegram-webapp .power-btn-container {
  margin-bottom: 1.25rem !important;
}

.telegram-webapp .dashboard-grid {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* ==========================================================================
   ADVANCED MOBILE RESPONSIVENESS (320px - 768px)
   ========================================================================== */

/* 1. Global Box Sizing & Fluid Container */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

input, button, select, textarea {
  max-width: 100%;
  font-family: inherit;
}

/* 2. Responsive Grids */
.pay-region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.days-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.quick-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.smart-connect-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.whitelist-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.guide-tabs-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.15rem !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  
  .pay-region-grid {
    grid-template-columns: 1fr;
  }

  .days-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modals: bottom-sheet appearance with full thumb reach */
  .modal-overlay {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .modal-body {
    padding: 1.35rem 1.15rem !important;
    border-radius: 1.35rem 1.35rem 0.85rem 0.85rem !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Guides: smooth horizontally swipeable tab bar */
  .guide-tabs-container {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem !important;
  }
  .guide-tabs-container::-webkit-scrollbar {
    display: none;
  }
  .guide-tabs-container .btn-guide-tab {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 0.55rem 0.85rem !important;
  }

  .whitelist-status-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .whitelist-status-row .status-pill,
  .whitelist-status-row button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .auth-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .header-nav {
    padding: 0.55rem 0 !important;
  }
  .nav-content {
    gap: 0.5rem;
  }
  .logo-brand {
    gap: 0.5rem;
  }
  .logo-gem {
    width: 34px !important;
    height: 34px !important;
  }
  .brand-text {
    font-size: 1.05rem !important;
  }
  .brand-sub {
    font-size: 0.65rem !important;
  }
  .hero-server-btn {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.75rem !important;
  }
  .balance-value {
    font-size: 2.1rem !important;
  }
  .balance-currency {
    font-size: 1.4rem !important;
  }
  .smart-connect-btns {
    grid-template-columns: 1fr !important;
  }
  .quick-pay-grid {
    grid-template-columns: 1fr !important;
  }
  .server-item-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .server-item-card > div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 0.5rem !important;
  }
  .floating-support-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
  }
}

/* Extra small screens (iPhone SE 1st gen / 320px - 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 0.65rem !important;
  }
  .nav-miniapp-btn span {
    display: none;
  }
  .nav-miniapp-btn::after {
    content: '📱';
  }
  .quick-action-grid {
    grid-template-columns: 1fr !important;
  }
  .status-pill {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.65rem !important;
  }
}


