/* وایم (Vime) — VPN storefront brand */
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  --vime-ink: #e8eef6;
  --vime-ink-soft: #cbd5e1;
  --vime-teal: #0d9488;
  --vime-teal-deep: #2dd4bf;
  --vime-sky: #0891b2;
  --vime-sky-soft: #22d3ee;
  --vime-mist: #121a2b;
  --vime-cloud: #0b1220;
  --vime-line: rgba(148, 163, 184, 0.14);
  --vime-muted: #94a3b8;
  --vime-ok: #34d399;
  --vime-warn: #fbbf24;
  --vime-danger: #f87171;
  --vime-radius: 18px;
  --vime-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --vime-font: "Vazirmatn", "iransans", Tahoma, sans-serif;
  --vime-display: "Vazirmatn", "iransans", Tahoma, sans-serif;
  --vime-mesh:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 148, 136, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(8, 145, 178, 0.32), transparent 50%),
    radial-gradient(ellipse 60% 45% at 70% 85%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(165deg, #071018 0%, #0b1220 42%, #0f2a36 100%);
}

.vime-page,
.vime-page h1,
.vime-page h2,
.vime-page h3,
.vime-page h4,
.vime-hero,
.vime-section {
  font-family: var(--vime-font);
}

/* Motion */
@keyframes vime-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vime-mesh-drift {
  0%,
  100% {
    background-position: 0% 40%, 100% 0%, 80% 100%, 0 0;
  }
  50% {
    background-position: 12% 30%, 88% 12%, 70% 90%, 0 0;
  }
}

@keyframes vime-pulse-soft {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.04);
  }
}

.vime-fade-up {
  animation: vime-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.vime-fade-up-delay-1 {
  animation-delay: 0.12s;
}
.vime-fade-up-delay-2 {
  animation-delay: 0.24s;
}
.vime-fade-up-delay-3 {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .vime-fade-up,
  .vime-hero-mesh,
  .vime-orb {
    animation: none !important;
  }
}

/* Full-bleed hero */
.vime-hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f8fafc;
  background: var(--vime-ink);
}

.vime-hero-mesh {
  position: absolute;
  inset: 0;
  background: var(--vime-mesh);
  background-size: 140% 140%, 120% 120%, 130% 130%, 100% 100%;
  animation: vime-mesh-drift 18s ease-in-out infinite;
}

.vime-hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}

.vime-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: vime-pulse-soft 7s ease-in-out infinite;
}
.vime-orb--a {
  width: 280px;
  height: 280px;
  background: rgba(13, 148, 136, 0.35);
  top: 12%;
  left: 8%;
}
.vime-orb--b {
  width: 220px;
  height: 220px;
  background: rgba(8, 145, 178, 0.3);
  bottom: 18%;
  right: 10%;
  animation-delay: 1.5s;
}

.vime-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4.5rem 0 3.5rem;
  max-width: 720px;
}

.vime-brand {
  display: inline-block;
  font-family: var(--vime-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1rem;
  background: linear-gradient(120deg, #ecfeff 0%, #5eead4 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vime-hero-title {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 0.75rem;
  color: #e2e8f0;
  max-width: 28ch;
}

.vime-hero-lead {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.78);
  margin: 0 0 1.75rem;
  max-width: 36ch;
  line-height: 1.7;
}

.vime-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.vime-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.vime-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.vime-btn--primary {
  background: linear-gradient(120deg, var(--vime-teal), var(--vime-sky));
  color: #fff;
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.35);
}
.vime-btn--primary:hover {
  color: #fff;
}
.vime-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.vime-btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.vime-btn--outline {
  background: transparent;
  color: #e8eef6;
  border: 1.5px solid rgba(13, 148, 136, 0.35);
}
.vime-btn--outline:hover {
  background: rgba(13, 148, 136, 0.08);
  color: #e8eef6;
}
.vime-btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Sections */
.vime-section {
  padding: 3.25rem 0;
  background: #0b1220;
}
.vime-section--alt {
  background: linear-gradient(180deg, #0b1220 0%, #121a2b 100%);
}
.vime-section-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.vime-section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #e8eef6;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.vime-section-head p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

/* Protocol tiles */
.vime-proto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 767px) {
  .vime-proto-grid {
    grid-template-columns: 1fr;
  }
}
.vime-proto {
  display: block;
  padding: 1.35rem 1.25rem;
  border-radius: var(--vime-radius);
  background: #121a2b;
  border: 1px solid var(--vime-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.vime-proto:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--vime-shadow);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}
.vime-proto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(8, 145, 178, 0.18));
  color: var(--vime-teal-deep);
  font-size: 1.15rem;
}
.vime-proto h3 {
  font-size: 1.1rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
  color: #e8eef6;
}
.vime-proto p {
  margin: 0;
  color: var(--vime-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Plan / config cards */
.vime-plan-grid,
.vime-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.vime-plan-card,
.vime-config-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #121a2b;
  border: 1px solid var(--vime-line);
  border-radius: var(--vime-radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(8, 47, 73, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.vime-plan-card:hover,
.vime-config-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vime-shadow);
}

.vime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.vime-badge--wg {
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
}
.vime-badge--cisco {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
}
.vime-badge--plus {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
}
.vime-badge--ok {
  background: rgba(5, 150, 105, 0.12);
  color: var(--vime-ok);
}
.vime-badge--off {
  background: rgba(220, 38, 38, 0.1);
  color: var(--vime-danger);
}

.vime-plan-name {
  display: block;
  margin: 0.85rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: #e8eef6;
  text-decoration: none;
}
.vime-plan-name:hover {
  color: var(--vime-teal-deep);
  text-decoration: none;
}
.vime-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--vime-muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.vime-plan-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--vime-mist);
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
}
.vime-plan-price {
  margin-top: auto;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8eef6;
}
.vime-plan-price small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vime-muted);
}
.vime-plan-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

/* Steps */
.vime-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 767px) {
  .vime-steps {
    grid-template-columns: 1fr;
  }
}
.vime-step {
  padding: 1.2rem;
  border-radius: var(--vime-radius);
  background: #121a2b;
  border: 1px solid var(--vime-line);
}
.vime-step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--vime-teal), var(--vime-sky));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.vime-step h3 {
  font-size: 1rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
  color: #e8eef6;
}
.vime-step p {
  margin: 0;
  color: var(--vime-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Usage meter */
.vime-meter {
  margin: 0.85rem 0;
}
.vime-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--vime-muted);
  margin-bottom: 0.35rem;
}
.vime-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.08);
  overflow: hidden;
}
.vime-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--vime-teal), var(--vime-sky));
  transition: width 0.45s ease;
}

/* Config detail */
.vime-detail-hero {
  background: var(--vime-mesh);
  color: #f8fafc;
  border-radius: 0 0 24px 24px;
  padding: 1.5rem 0 1.75rem;
  margin-bottom: 1.25rem;
}
.vime-detail-hero h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.4rem 0;
  color: #fff;
}
.vime-link-box {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 0.75rem 0 1rem;
}
.vime-link-box input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--vime-line);
  background: #121a2b;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  direction: ltr;
  text-align: left;
}
.vime-qr {
  max-width: 220px;
  margin: 1rem auto;
  padding: 0.75rem;
  background: #121a2b;
  border-radius: 16px;
  border: 1px solid var(--vime-line);
}
.vime-qr img {
  width: 100%;
  height: auto;
  display: block;
}
.vime-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.vime-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--vime-muted);
  background: #121a2b;
  border-radius: var(--vime-radius);
  border: 1px dashed rgba(13, 148, 136, 0.35);
}

/* Shop toolbar */
.vime-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.vime-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--vime-muted);
  background: #121a2b;
  border: 1px solid var(--vime-line);
  text-decoration: none;
}
.vime-chip:hover {
  color: #e8eef6;
  text-decoration: none;
}
.vime-chip.is-active {
  background: linear-gradient(120deg, var(--vime-teal), var(--vime-sky));
  color: #fff;
  border-color: transparent;
}

/* Product detail buy page */
.vime-buy {
  padding: 1.5rem 0 2.5rem;
}
.vime-buy-panel {
  background: #121a2b;
  border: 1px solid var(--vime-line);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--vime-shadow);
}
.vime-buy-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 575px) {
  .vime-buy-facts {
    grid-template-columns: 1fr;
  }
}
.vime-buy-fact {
  background: var(--vime-mist);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
}
.vime-buy-fact span {
  display: block;
  font-size: 0.78rem;
  color: var(--vime-muted);
  margin-bottom: 0.2rem;
}
.vime-buy-fact strong {
  color: #e8eef6;
  font-size: 1rem;
}

/* About */
.vime-about-hero {
  background: var(--vime-mesh);
  color: #fff;
  padding: 3rem 0 2.5rem;
  margin-bottom: 1.5rem;
}
.vime-about-hero .vime-brand {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.vime-about-card {
  background: #121a2b;
  border-radius: var(--vime-radius);
  border: 1px solid var(--vime-line);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
}
.vime-about-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8eef6;
  margin: 0 0 0.65rem;
}

/* Checkout digital note */
.vime-digital-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.12), rgba(8, 145, 178, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.22);
  margin-bottom: 1rem;
}
.vime-digital-note i {
  color: var(--vime-teal-deep);
  margin-top: 0.15rem;
}
.vime-digital-note strong {
  display: block;
  color: #e8eef6;
  margin-bottom: 0.15rem;
}
.vime-digital-note span {
  color: var(--vime-muted);
  font-size: 0.9rem;
}

/* Force dark surfaces for Vime pages */
html[theme-color="dark"] .vime-page,
html[theme-color="dark"] .vime-section--alt {
  color: var(--text);
}
html[theme-color="dark"] .vime-plan,
html[theme-color="dark"] .vime-proto,
html[theme-color="dark"] .vime-config-card,
html[theme-color="dark"] .vime-empty {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}
html[theme-color="dark"] .vime-digital-note strong,
html[theme-color="dark"] .vime-plan-name,
html[theme-color="dark"] .vime-section-head h2 {
  color: var(--text);
}
html[theme-color="dark"] .vime-digital-note span,
html[theme-color="dark"] .vime-muted,
html[theme-color="dark"] .vime-section-head p {
  color: var(--muted);
}

/* Hide light-mode toggle affordance */
#darkSwitch:disabled + label,
label[for="darkSwitch"] {
  opacity: 0.85;
}

