/* ============================================
   DarbiVPN — Premium Stylesheet
   Site Redesign 2025
   Dark theme · Glassmorphism · Premium Aesthetic
   ============================================ */

/* ============================================
   1. RESET + CSS VARIABLES
   ============================================ */

:root {
  --bg: #0a1210;
  --bg-elevated: #0f1a17;
  --bg-card: rgba(15, 26, 23, 0.7);
  --accent: #1a6b63;
  --accent-hover: #20857b;
  --accent-light: #2ac4b8;
  --accent-gradient: linear-gradient(135deg, #1a6b63, #2ac4b8);
  --text: #e8f0ed;
  --text-secondary: #8a9b95;
  --text-muted: #5a6b65;
  --border: rgba(26, 107, 99, 0.15);
  --border-hover: rgba(26, 107, 99, 0.3);
  --primary: #1a6b63;
  --success: #2ecc71;
  --success-bg: rgba(46, 204, 113, 0.1);
  --warning: #f1c40f;
  --warning-bg: rgba(241, 196, 15, 0.1);
  --error: #e74c3c;
  --error-bg: rgba(231, 76, 60, 0.1);
  --nav-height: 72px;
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(26, 107, 99, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

::selection {
  background: rgba(42, 196, 184, 0.25);
  color: var(--text);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ============================================
   2. GRID OVERLAY
   ============================================ */

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 107, 99, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 107, 99, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 40% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 0%, black 0%, transparent 100%);
}

/* ============================================
   3. CONTAINER
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   4. BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

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

/* Primary */
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 107, 99, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 107, 99, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.4);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  color: var(--text);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border-color: rgba(42, 196, 184, 0.25);
}

.btn-outline:hover {
  background: rgba(42, 196, 184, 0.08);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(42, 196, 184, 0.15);
}

/* Glass */
.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* Pulse glow */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(26, 107, 99, 0.3);
  }
  50% {
    box-shadow: 0 4px 40px rgba(26, 107, 99, 0.5), 0 0 60px rgba(26, 107, 99, 0.15);
  }
}

/* ============================================
   5. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 10px;
}

h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-light);
  background: rgba(42, 196, 184, 0.08);
  border: 1px solid rgba(42, 196, 184, 0.15);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* ============================================
   6. NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 18, 16, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
  user-select: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(26, 107, 99, 0.3);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   7. HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(42, 196, 184, 0.06);
  border: 1px solid rgba(42, 196, 184, 0.15);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  width: fit-content;
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px rgba(42, 196, 184, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

.badge-sep {
  color: rgba(42, 196, 184, 0.3);
}

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

@keyframes badgePulse {
  0%, 100% { border-color: rgba(42, 196, 184, 0.15); }
  50% { border-color: rgba(42, 196, 184, 0.35); }
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--accent-light);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item {
  flex: 1;
}

.stat-number {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  margin: 0 24px;
}

/* ============================================
   8. HERO VISUAL — Globe
   ============================================ */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.globe-preview {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(42, 196, 184, 0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.globe-ring-1 {
  width: 320px;
  height: 320px;
  border-color: rgba(42, 196, 184, 0.08);
  border-left-color: var(--accent-light);
  border-right-color: rgba(42, 196, 184, 0.04);
  animation: globeSpin 8s linear infinite;
}

.globe-ring-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(42, 196, 184, 0.06);
  border-top-color: var(--accent);
  border-bottom-color: rgba(42, 196, 184, 0.03);
  animation: globeSpin 12s linear infinite reverse;
}

.globe-ring-3 {
  width: 200px;
  height: 200px;
  border-color: rgba(42, 196, 184, 0.1);
  border-left-color: rgba(42, 196, 184, 0.3);
  border-right-color: rgba(42, 196, 184, 0.05);
  animation: globeSpin 6s linear infinite;
}

.globe-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 40% 40%, rgba(42, 196, 184, 0.10), rgba(26, 107, 99, 0.05) 60%, transparent 80%);
  border-radius: 50%;
}

.globe-core svg {
  width: 80px;
  height: 80px;
  animation: globeFloat 6s var(--ease-out) infinite;
}

@keyframes globeSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes globeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   9. SECTION
   ============================================ */

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   10. FEATURES
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  border-color: rgba(26, 107, 99, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(42, 196, 184, 0.08);
  border: 1px solid rgba(42, 196, 184, 0.15);
  color: var(--accent-light);
  margin-bottom: 18px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(42, 196, 184, 0.14);
  border-color: rgba(42, 196, 184, 0.3);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', monospace;
}

.metric-value small {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================
   11. PRICING
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 36px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(26, 107, 99, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.pricing-featured {
  border-color: rgba(42, 196, 184, 0.25);
  transform: translateY(-8px) scale(1.04);
  box-shadow: var(--shadow-card), 0 0 50px rgba(26, 107, 99, 0.12);
  position: relative;
  overflow: visible;
}

.pricing-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-featured:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(42, 196, 184, 0.35);
  box-shadow: var(--shadow-card), 0 0 60px rgba(26, 107, 99, 0.2);
}

.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 16px rgba(26, 107, 99, 0.3);
}

.pricing-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-amount {
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price {
  font-size: 44px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

.period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent-light);
  width: 16px;
  height: 16px;
}

.pricing-btn {
  width: 100%;
}

/* Pricing options (multi-duration) */
.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0 8px;
}

.pricing-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.15);
  border: 1px solid transparent;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-option.featured {
  border-color: rgba(42,196,184,0.15);
  background: rgba(42,196,184,0.05);
}

.option-label {
  font-weight: 500;
  color: var(--text-muted);
}

.option-value {
  font-weight: 700;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================
   12. SERVERS
   ============================================ */

.servers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: default;
}

.server-card:hover {
  border-color: rgba(26, 107, 99, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.server-flag {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

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

.server-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.server-city {
  font-size: 12px;
  color: var(--text-muted);
}

.server-ping {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  flex-shrink: 0;
}

.ping-low {
  color: var(--success);
}

.ping-mid {
  color: var(--warning);
}

.ping-high {
  color: var(--error);
}

/* Ping dot */
.ping-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   13. FAQ
   ============================================ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: rgba(26, 107, 99, 0.25);
}

.faq-item.active {
  border-color: rgba(42, 196, 184, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   14. CTA
   ============================================ */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(42, 196, 184, 0.12);
  border-radius: var(--radius-xl);
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(26, 107, 99, 0.06), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 12px;
  position: relative;
}

.cta-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-card p strong {
  color: var(--accent-light);
  font-weight: 600;
}

.cta-card .btn {
  position: relative;
}

/* ============================================
   15. FOOTER
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 196, 184, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(42, 196, 184, 0.12);
  border-color: rgba(42, 196, 184, 0.3);
  color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   16. DASHBOARD LAYOUT + SIDEBAR
   ============================================ */

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.sidebar-link svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: all var(--transition);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-link:hover svg {
  opacity: 0.9;
}

.sidebar-link.active {
  background: rgba(42, 196, 184, 0.08);
  color: var(--accent-light);
  border: 1px solid rgba(42, 196, 184, 0.12);
}

.sidebar-link.active svg {
  opacity: 1;
  color: var(--accent-light);
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-logout {
  color: var(--text-muted) !important;
}

.btn-logout:hover {
  color: var(--error) !important;
  background: rgba(231, 76, 60, 0.08) !important;
}

.btn-logout:hover svg {
  color: var(--error) !important;
  opacity: 1 !important;
}

/* ============================================
   17. MOBILE NAV
   ============================================ */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 18, 16, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  justify-content: space-around;
}

.mobile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.mobile-link svg {
  opacity: 0.5;
  transition: all var(--transition);
}

.mobile-link:hover {
  color: var(--text-secondary);
}

.mobile-link.active {
  color: var(--accent-light);
}

.mobile-link.active svg {
  opacity: 1;
  color: var(--accent-light);
}

/* ============================================
   18. MAIN CONTENT
   ============================================ */

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: pageIn 0.4s var(--ease-out);
}

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

/* ============================================
   19. PAGE HEADER
   ============================================ */

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

.page-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(42, 196, 184, 0.2);
  flex-shrink: 0;
  user-select: none;
}

/* ============================================
   20. STATS GRID
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(26, 107, 99, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

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

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.stat-badge.active {
  background: var(--success-bg);
  border-color: rgba(46, 204, 113, 0.2);
  color: var(--success);
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-footer {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   21. CONNECTION CARD
   ============================================ */

.connection-card {
  padding: 28px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: all var(--transition);
}

.connection-card:hover {
  border-color: rgba(26, 107, 99, 0.25);
}

.connection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.connection-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
}

.status-dot.offline {
  background: var(--text-muted);
}

.connection-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.connection-select {
  margin-bottom: 16px;
}

.connection-select label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.server-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(10, 18, 16, 0.5);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a9b95' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.server-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 107, 99, 0.1);
}

.server-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.connection-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

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

.conn-metric .metric-label {
  display: block;
  margin-bottom: 4px;
}

.conn-metric .metric-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================
   22. QUICK ACTIONS
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.quick-action:hover {
  border-color: rgba(26, 107, 99, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.qa-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(42, 196, 184, 0.08);
  border: 1px solid rgba(42, 196, 184, 0.12);
  color: var(--accent-light);
  transition: all var(--transition);
}

.quick-action:hover .qa-icon {
  background: rgba(42, 196, 184, 0.14);
  border-color: rgba(42, 196, 184, 0.25);
}

.qa-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   23. TABLES
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.transactions-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 18, 16, 0.3);
}

.transactions-table td {
  padding: 14px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.transactions-table tr:last-child td {
  border-bottom: none;
}

.transactions-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tx-status.completed {
  background: var(--success-bg);
  color: var(--success);
}

.tx-status.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.tx-status.failed {
  background: var(--error-bg);
  color: var(--error);
}

/* ============================================
   24. SETTINGS
   ============================================ */

.settings-section {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.settings-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.settings-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-options .btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

/* Toggle Switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: rgba(42, 196, 184, 0.2);
  border-color: rgba(42, 196, 184, 0.3);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
  background: var(--accent-light);
  box-shadow: 0 0 8px rgba(42, 196, 184, 0.4);
}

.toggle-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   25. SUBSCRIPTION DETAIL CARD
   ============================================ */

.subscription-detail-card {
  padding: 28px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.subscription-detail-card:hover {
  border-color: rgba(26, 107, 99, 0.25);
}

/* ============================================
   26. DEVICES LIST
   ============================================ */

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

.devices-list > * {
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.devices-list > *:hover {
  border-color: rgba(26, 107, 99, 0.25);
}

/* ============================================
   27. REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   27b. TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.toast-success {
  background: rgba(46, 204, 113, 0.9);
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.toast-error {
  background: rgba(231, 76, 60, 0.9);
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.toast-warning {
  background: rgba(241, 196, 15, 0.9);
  border: 1px solid rgba(241, 196, 15, 0.4);
  color: #1a1a1a;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   27c. STATUS & TRANSACTION HELPERS
   ============================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.amount-positive {
  font-weight: 600;
  color: var(--success);
}

.amount-negative {
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   27d. SUBSCRIPTION DETAIL
   ============================================ */

.subscription-detail-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
}

.sub-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.sub-price {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  margin-bottom: 12px;
}

.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.sub-status.active {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(46, 204, 113, 0.2);
}

.sub-dates {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sub-dates > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sub-dates span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sub-features-list {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.sub-features-list h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.sub-features-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.sub-features-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  flex-shrink: 0;
}

/* ============================================
   27e. DEVICES LIST
   ============================================ */

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

.device-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.device-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.device-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

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

.device-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.device-type {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   27f. NAVBAR (login/register pages)
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(10, 18, 16, 0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.navbar-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-user:hover {
  border-color: var(--border-hover);
}

.navbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  overflow: hidden;
}

.navbar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.navbar-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 220px;
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-card);
  z-index: 200;
}

.navbar-dropdown.show {
  display: block;
}

.navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.navbar-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.navbar-dropdown-item.danger {
  color: var(--error);
}

.navbar-dropdown-item.danger:hover {
  background: var(--error-bg);
}

.navbar-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

.navbar-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: rgba(10, 18, 16, 0.98);
  backdrop-filter: blur(24px);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.navbar-mobile a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.navbar-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.nav-hide-mobile {
  display: inline;
}

/* ============================================
   28. RESPONSIVE
   ============================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-badge {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }

  .pricing-featured {
    transform: translateY(-4px) scale(1.02);
  }

  .pricing-featured:hover {
    transform: translateY(-4px) scale(1.02);
  }

  .servers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
  }

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

/* Tablet small — 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-buttons .btn-ghost {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }

  .navbar-links {
    gap: 12px;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    border-top: none;
    padding-top: 0;
  }

  .stat-divider {
    width: 48px;
    height: 1px;
    margin: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-featured {
    transform: none;
  }

  .pricing-featured:hover {
    transform: none;
  }

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

  .cta-card {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Sidebar hidden, mobile nav shown */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease-out);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-nav {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 24px 16px 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .connection-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 90px 0 40px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .servers-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .price {
    font-size: 36px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .stat-value {
    font-size: 22px;
  }

  .section-header h2 {
    font-size: 24px;
  }
}

/* ============================================
   Dashboard — Tickets & Forms
   ============================================ */

/* Form elements */
.form-group {
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(42, 196, 184, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  color: var(--error);
  font-size: 13px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--error-bg);
  border-radius: var(--radius-sm);
}

.settings-form {
  max-width: 400px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-open {
  background: rgba(42, 196, 184, 0.12);
  color: var(--accent-light);
}

.badge-closed {
  background: rgba(90, 107, 101, 0.15);
  color: var(--text-muted);
}

/* Stat badge */
.stat-badge.active {
  background: var(--success-bg);
  color: var(--success);
}

.stat-badge.inactive {
  background: rgba(231, 76, 60, 0.1);
  color: var(--error);
}

/* Status badge */
.status-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

/* Traffic bar */
.traffic-bar {
  margin: 12px 0;
}

.traffic-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.traffic-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.traffic-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out);
}

/* Config download */
.sub-config {
  margin: 16px 0;
}

.config-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tickets */
.ticket-create-form {
  margin-top: 8px;
}

.ticket-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ticket-detail-header h3 {
  margin-bottom: 0;
  flex: 1;
}

.ticket-messages {
  margin-bottom: 20px;
}

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

.ticket-msg-admin {
  border-left: 3px solid var(--accent-light);
  background: rgba(42, 196, 184, 0.04);
}

.ticket-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.ticket-msg-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

.ticket-reply {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-reply-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}

.ticket-reply-input:focus {
  border-color: var(--accent-light);
}

/* Sub detail empty state */
.sub-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.sub-empty p {
  margin-bottom: 16px;
}

/* Device empty state */
.device-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}

/* Toggle in subscription detail */
.sub-autopay {
  margin-top: 12px;
}

/* Amount colors */
.amount-positive {
  color: var(--success);
}

.amount-negative {
  color: var(--error);
}
