/* ==========================================================================
   SAFMAX VPN STORE - HIGH-TECH CYBER THEME STYLESHEET
   ========================================================================== */

:root {
  --bg-main: #060913;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(24, 34, 61, 0.85);
  --bg-card-border: rgba(34, 224, 28, 0.15);
  --bg-card-border-hover: rgba(34, 224, 28, 0.4);
  
  --primary: #22e01c;
  --primary-glow: rgba(34, 224, 28, 0.35);
  --secondary: #8afb0b;
  --accent-purple: #9333ea;
  --accent-purple-glow: rgba(147, 51, 234, 0.3);
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-glow: 0 0 25px rgba(34, 224, 28, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(34, 224, 28, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 85% 35%, rgba(138, 251, 11, 0.05) 0%, transparent 45%),
              radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
              var(--bg-main);
  background-attachment: fixed;
  line-height: 1.5;
}

/* Background grid effect */
.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(6, 9, 19, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(34, 224, 28, 0.35));
}
.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #ffffff 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  background: rgba(34, 224, 28, 0.15);
  border: 1px solid rgba(34, 224, 28, 0.3);
  color: var(--primary);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(34, 224, 28, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.currency-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.currency-select:hover, .currency-select:focus {
  border-color: var(--primary);
}

.currency-select option {
  background: #0d1322;
  color: #fff;
}

.btn-icon {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(34, 224, 28, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.badge-counter {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* View Sections Switcher */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.view-section.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   WELCOME / HERO VIEW
   ========================================================================== */

.welcome-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 90px);
  padding: 2rem 1rem;
}

.welcome-card {
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(34, 224, 28, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 224, 28, 0.1);
  border-radius: 24px;
  animation: welcome-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcome-appear {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(34, 224, 28, 0.08);
  border: 1px solid rgba(34, 224, 28, 0.3);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.welcome-logo-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0;
}

.welcome-logo-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(34, 224, 28, 0.45) 0%, transparent 70%);
  filter: blur(14px);
  border-radius: 50%;
}

.welcome-logo-box img {
  position: relative;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.welcome-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 340px;
}

.welcome-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: all 0.25s ease;
}

.welcome-feature:hover {
  background: rgba(34, 224, 28, 0.06);
  border-color: rgba(34, 224, 28, 0.25);
  transform: translateX(3px);
}

.wf-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 224, 28, 0.12);
  border: 1px solid rgba(34, 224, 28, 0.25);
  color: var(--primary);
}

.wf-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.wf-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-primary.welcome-btn {
  width: 100%;
  height: 52px;
  justify-content: center;
  padding: 0 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #060913;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(34, 224, 28, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(34, 224, 28, 0.6);
  filter: brightness(1.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  text-decoration: none;
}

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

/* ==========================================================================
   DASHBOARD VIEW
   ========================================================================== */

.dashboard-header {
  padding: 2rem 0 1.5rem;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.dash-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  backdrop-filter: blur(10px);
}

.stat-chip-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.stat-chip-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

/* Dashboard Filter & Search Bar */
.filter-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: var(--shadow-card);
}

.filter-row-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(34, 224, 28, 0.04);
  box-shadow: 0 0 15px rgba(34, 224, 28, 0.15);
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.filter-select option {
  background: #0d1322;
  color: #fff;
}

/* Protocol Pills */
.protocol-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.pill-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.pill-btn.active {
  background: linear-gradient(135deg, rgba(34, 224, 28, 0.18), rgba(138, 251, 11, 0.2));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px rgba(34, 224, 28, 0.25);
}

/* ==========================================================================
   VPN FILES CARDS GRID
   ========================================================================== */

.vpn-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.vpn-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.vpn-card:hover {
  transform: translateY(-5px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 15px 35px -10px rgba(34, 224, 28, 0.2);
  background: var(--bg-card-hover);
}

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

.server-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.server-flag {
  font-size: 1.7rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.server-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.server-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.protocol-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(34, 224, 28, 0.12);
  border: 1px solid rgba(34, 224, 28, 0.3);
  color: var(--primary);
  white-space: nowrap;
}

.protocol-tag.openvpn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
}

.protocol-tag.v2ray {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.3);
  color: #c084fc;
}

.protocol-tag.ssh {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

/* Specs pills row */
.specs-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.spec-badge.speed {
  color: var(--primary);
  border-color: rgba(34, 224, 28, 0.2);
}

.spec-badge.ping {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Features list inside card */
.card-features-list {
  list-style: none;
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-features-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-features-list li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Duration Selector Pills */
.duration-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.duration-opt {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
  user-select: none;
}

.duration-opt:hover {
  color: var(--text-main);
}

.duration-opt.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Card Bottom Footer */
.vpn-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.price-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.price-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.price-kes {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.1rem;
}

.btn-get-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #060913;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.05rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(34, 224, 28, 0.3);
}

.btn-get-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 224, 28, 0.5);
  filter: brightness(1.1);
}

.btn-trial-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-trial-file:hover {
  background: rgba(34, 224, 28, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   INTERACTIVE PING / SPEED TEST SECTION
   ========================================================================== */

.ping-tool-section {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-card);
}

.ping-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ping-tool-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.ping-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ping-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.ping-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-content {
  background: #0d1424;
  border: 1px solid rgba(34, 224, 28, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(34, 224, 28, 0.15);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(34, 224, 28, 0.1);
  border: 1px solid rgba(34, 224, 28, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Modal delivery tabs */
.delivery-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.delivery-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.delivery-tab-btn:hover {
  color: #fff;
}

.delivery-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Payment choices */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pay-btn-opt {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-btn-opt:hover,
.pay-btn-opt.active {
  border-color: var(--primary);
  background: rgba(34, 224, 28, 0.08);
}

.pay-icon {
  font-size: 1.3rem;
}

.pay-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.pay-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Code viewer */
.code-viewer-box {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.code-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: rgba(34, 224, 28, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.code-content {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 220px;
  overflow-y: auto;
}

/* QR Code Display Container */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #080c16;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.qr-code-box {
  background: #ffffff;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(34, 224, 28, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.qr-code-box canvas {
  display: block;
}

.qr-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* Order Summary Box */
.order-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.order-summary-row:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* Setup Guide Modal items */
.guide-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.guide-step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(34, 224, 28, 0.3);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: auto;
  max-width: 380px;
  animation: slide-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-toast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Floating Support Button */
.floating-support-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.25s;
}

.floating-support-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
  margin-top: 4rem;
  background: rgba(4, 7, 15, 0.7);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.8rem;
  max-width: 600px;
}

/* Responsive queries */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .vpn-cards-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-actions .btn-primary,
  .brand-badge {
    display: none;
  }

  /* Store page — compact phone layout */
  .dashboard-header {
    padding: 1.25rem 0 0.75rem;
  }

  .dash-title-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dash-title {
    font-size: 1rem;
  }

  .dash-status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }

  .dash-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .stat-chip {
    padding: 0.65rem 0.8rem;
  }

  .stat-chip-lbl {
    font-size: 0.64rem;
  }

  .stat-chip-val {
    font-size: 0.78rem;
  }

  .filter-toolbar {
    padding: 0.9rem;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .filter-row-top {
    gap: 0.6rem;
  }

  .search-box {
    min-width: 0;
    flex-basis: 100%;
  }

  .search-input {
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem 0.65rem 2.6rem;
  }

  .filter-select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }

  .pill-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }

  .vpn-cards-grid {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .vpn-card {
    padding: 1.1rem;
  }

  .vpn-card-top {
    gap: 0.6rem;
    margin-bottom: 0.9rem;
  }

  .server-identity {
    gap: 0.6rem;
  }

  .server-flag {
    font-size: 1.4rem;
  }

  .server-title {
    font-size: 0.88rem;
  }

  .server-location {
    font-size: 0.74rem;
  }

  .protocol-tag {
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
  }

  .spec-badge {
    font-size: 0.72rem;
  }

  .card-features-list li {
    font-size: 0.8rem;
  }

  .vpn-card-bottom {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .price-amount {
    font-size: 1rem;
  }

  .card-actions {
    width: 100%;
  }

  .card-actions button {
    flex: 1;
    justify-content: center;
    padding: 0.65rem 0.75rem;
  }

  .welcome-card {
    padding: 1.75rem 1.25rem;
  }

  .welcome-wrap {
    min-height: auto;
    padding: 1.25rem 1rem 5rem;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .floating-support-btn {
    bottom: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
}


/* Card action buttons */
.card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ==========================================================================
   CUSTOM DROPDOWN (styled replacement for native <select>)
   ========================================================================== */
.cselect {
  position: relative;
}

.cselect-native {
  display: none;
}

.cselect-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 190px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cselect-btn > svg:first-child {
  color: var(--primary);
  flex-shrink: 0;
}

.cselect-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.cselect-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cselect-btn:hover,
.cselect.open .cselect-btn {
  border-color: var(--primary);
  background: rgba(34, 224, 28, 0.05);
}

.cselect-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 224, 28, 0.25);
  border-color: var(--primary);
}

.cselect.open .cselect-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.cselect-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #0d1322;
  border: 1px solid rgba(34, 224, 28, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(34, 224, 28, 0.08);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  max-height: 300px;
  overflow-y: auto;
}

.cselect.open .cselect-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cselect-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.cselect-opt:hover,
.cselect-opt.focused {
  background: rgba(34, 224, 28, 0.08);
  color: var(--text-main);
}

.cselect-opt[aria-selected="true"] {
  color: var(--primary);
  font-weight: 700;
}

.cselect-check {
  opacity: 0;
  flex-shrink: 0;
}

.cselect-opt[aria-selected="true"] .cselect-check {
  opacity: 1;
}

@media (max-width: 768px) {
  .cselect {
    width: 100%;
  }

  .cselect-btn {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }

  .cselect-menu {
    left: 0;
  }
}

/* Warning toast (e.g. "get a file first") */
.toast.toast-warning {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(245, 158, 11, 0.25);
}

.toast svg {
  flex-shrink: 0;
}

/* Dashboard-only navbar items (hidden on the welcome page) */
body[data-view="welcome"] #nav-app-download {
  display: none;
}

/* ==========================================================================
   M-PESA PAYMENT STEP
   ========================================================================== */
.mpesa-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mpesa-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mpesa-input-wrap {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mpesa-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 224, 28, 0.18);
}

.mpesa-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  background: rgba(34, 224, 28, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mpesa-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
}

.mpesa-input::placeholder {
  color: var(--text-dim);
  font-weight: 500;
}

.mpesa-input:disabled {
  opacity: 0.6;
}

.btn-primary.mpesa-confirm-btn {
  width: 100%;
  justify-content: center;
  padding: 0.95rem;
  margin-top: 0.25rem;
}

.btn-primary.mpesa-confirm-btn:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
  filter: none;
}

.mpesa-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.mpesa-status {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.45;
}

.mpesa-status[hidden] {
  display: none;
}

.mpesa-status.waiting {
  background: rgba(34, 224, 28, 0.07);
  border: 1px solid rgba(34, 224, 28, 0.3);
  color: var(--text-main);
}

.mpesa-status.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.mpesa-status strong {
  color: var(--primary);
}

.pay-spinner {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  border: 2px solid rgba(34, 224, 28, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}

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

.pay-success-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(34, 224, 28, 0.1);
  border: 1px solid rgba(34, 224, 28, 0.35);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

#order-step-pay[hidden],
#order-step-deliver[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .delivery-tab-btn {
    font-size: 0.8rem;
    padding: 0.55rem 0.4rem;
  }
}

.order-summary-row span:last-child {
  text-align: right;
}

/* ==========================================================================
   AFTER PAYMENT: "What to do next" steps
   ========================================================================== */
.next-steps {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.next-steps-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.8rem;
}

.next-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.next-steps-list strong {
  color: var(--text-main);
}

.step-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 224, 28, 0.12);
  border: 1px solid rgba(34, 224, 28, 0.35);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.inline-icon {
  display: inline-block;
  vertical-align: -2px;
  color: var(--primary);
}

.btn-outline.next-steps-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
}

/* Download icon glows when the customer is sent to it */
#nav-app-download.attention {
  border-color: var(--primary);
  color: var(--primary);
  animation: attention-pulse 1s ease-in-out 4;
}

@keyframes attention-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 224, 28, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34, 224, 28, 0); }
}

/* Setup guide: Proceed to Install (WireGuard store link) */
.guide-install {
  margin-top: 1.25rem;
}

.guide-install[hidden] {
  display: none;
}

.btn-primary.guide-install-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

.guide-install-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.guide-install-locked {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
}

.guide-install-locked[hidden] {
  display: none;
}

.guide-install-locked strong {
  color: var(--primary);
}

/* ==========================================================================
   STORE: "How to get your file" (one simple line of steps)
   ========================================================================== */
.how-to-get {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
}

.how-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.how-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.how-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.how-list strong {
  color: var(--primary);
}

.how-num {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #060913;
  font-size: 0.7rem;
  font-weight: 800;
}

@media (max-width: 768px) {
  .how-to-get {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }

  .how-list {
    flex-direction: column;
    gap: 0.45rem;
  }
}

/* Mid-size screens (tablets): keep the top bar on one line */
@media (max-width: 1024px) {
  .brand-badge {
    display: none;
  }

  .nav-link,
  .nav-actions .btn-primary {
    white-space: nowrap;
  }
}

/* ==========================================================================
   PHONES: server cards in 2 columns (compact cards)
   ========================================================================== */
@media (max-width: 768px) {
  .vpn-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .vpn-card {
    padding: 0.75rem;
    border-radius: var(--radius-md);
  }

  .vpn-card:hover {
    transform: none;
  }

  .vpn-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }

  .server-identity {
    gap: 0.4rem;
  }

  .server-flag {
    font-size: 1rem;
  }

  .server-title {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 0.1rem;
  }

  .server-location {
    font-size: 0.65rem;
  }

  .server-location svg {
    display: none;
  }

  .protocol-tag {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  .specs-row {
    gap: 0.3rem;
    margin-bottom: 0.65rem;
  }

  .spec-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    gap: 0.2rem;
  }

  .spec-badge svg {
    width: 9px;
    height: 9px;
  }

  .spec-badge .pulse-dot {
    width: 5px;
    height: 5px;
  }

  .card-features-list {
    gap: 0.3rem;
    margin-bottom: 0.7rem;
  }

  .card-features-list li {
    font-size: 0.66rem;
    line-height: 1.35;
    gap: 0.3rem;
    align-items: flex-start;
  }

  .card-features-list li svg {
    width: 10px;
    height: 10px;
    margin-top: 2px;
  }

  .duration-selector {
    gap: 0.15rem;
    padding: 0.2rem;
    margin-bottom: 0.65rem;
  }

  .duration-opt {
    font-size: 0.6rem;
    padding: 0.3rem 0.1rem;
  }

  .vpn-card-bottom {
    gap: 0.5rem;
    padding-top: 0.6rem;
  }

  .price-sub {
    font-size: 0.55rem;
  }

  .price-amount {
    font-size: 0.95rem;
  }

  .price-kes {
    font-size: 0.68rem;
  }

  .card-actions button {
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .duration-opt {
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .vpn-cards-grid {
    gap: 0.5rem;
  }

  .vpn-card {
    padding: 0.65rem;
  }

  .duration-opt {
    font-size: 0.55rem;
    padding: 0.3rem 0;
  }
}

/* ==========================================================================
   STORE (VPN-project layout): server row + 3 plan cards + features note
   ========================================================================== */
.store-panel {
  max-width: 520px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Server row */
.server-select-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.server-select-row:hover {
  border-color: var(--bg-card-border-hover);
  background: var(--bg-card-hover);
}

.ssr-flag {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.ssr-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ssr-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ssr-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.ssr-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(34, 224, 28, 0.1);
  border: 1px solid rgba(34, 224, 28, 0.3);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}

.ssr-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.ssr-stats > span:nth-child(2) {
  color: var(--primary);
}

.ssr-stats > span:nth-child(3) {
  color: var(--text-muted);
}

.ssr-change {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Plans box */
.plans-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(34, 224, 28, 0.25);
  border-radius: var(--radius-md);
}

.plans-box-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.plans-box-title strong {
  color: var(--text-main);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.4rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-card:hover,
.plan-card:focus-visible {
  outline: none;
  background: rgba(34, 224, 28, 0.06);
  border-color: rgba(34, 224, 28, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.plan-card.popular {
  border-color: rgba(34, 224, 28, 0.45);
  background: rgba(34, 224, 28, 0.05);
}

.plan-card.best-val {
  border-color: rgba(245, 158, 11, 0.35);
}

.plan-tag {
  position: absolute;
  top: -8px;
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #060913;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.plan-tag.gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.plan-dur {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.plan-devices {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(34, 224, 28, 0.08);
  border: 1px solid rgba(34, 224, 28, 0.2);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  margin: 0.1rem 0;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.plan-curr {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-amt {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-usd {
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-top: -0.2rem;
}

.plan-select-btn {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.35rem 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.plan-card:hover .plan-select-btn,
.plan-select-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #060913;
}

.plans-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.plans-note strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Server list modal */
.server-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.server-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.server-pick-item:hover {
  background: rgba(34, 224, 28, 0.06);
  border-color: rgba(34, 224, 28, 0.3);
}

.server-pick-item.selected {
  border-color: var(--primary);
  background: rgba(34, 224, 28, 0.08);
}

.spi-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.spi-left > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.spi-flag {
  font-size: 1rem;
  font-weight: 700;
  width: 1.6rem;
  flex-shrink: 0;
}

.spi-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.spi-proto {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spi-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
}

.spi-ping {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.spi-speed {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 480px) {
  .store-panel {
    margin-bottom: 2rem;
  }

  .plans-box {
    padding: 0.85rem 0.65rem;
  }

  .plan-card {
    padding: 0.8rem 0.35rem 0.55rem;
  }

  .plan-name {
    font-size: 0.78rem;
  }

  .plan-amt {
    font-size: 1.02rem;
  }

  .ssr-stats {
    gap: 0.55rem;
    font-size: 0.7rem;
  }
}

/* Store: title + steps in the same centred column as the plans */
#dashboard-view .dashboard-header {
  max-width: 520px;
  margin: 0 auto;
}

#dashboard-view .how-to-get {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

#dashboard-view .how-list {
  flex-direction: column;
  gap: 0.45rem;
}

.plan-select-btn {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .plan-select-btn {
    font-size: 0.68rem;
  }
}
