/* ==========================================================================
   Harlink Typography: Vazirmatn & Vazirmatn-FD Official Persian Fonts
   ========================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn[wght].woff2') format('woff2-variations'),
       url('/fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Static Weights for broad browser support */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Farsi Digits Font (for statistics, numbers, badges) */
@font-face {
  font-family: 'Vazirmatn-FD';
  src: url('/fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn-FD';
  src: url('/fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn-FD';
  src: url('/fonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Harlink Persian Edition CSS (harlink.ir)
   World-Class Modern SaaS & Smart NFC Digital Business Card Aesthetics (RTL)
   ========================================================================== */

:root {
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Color Palette - Dark Obsidian Mode (Default) */
  --bg-base: #080A0F;
  --bg-surface: #0E121B;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 36, 56, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(102, 252, 241, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-cyan: #00F0FF;
  --accent-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-purple: #A855F7;
  --accent-blue: #3B82F6;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;
  --accent-amber: #F59E0B;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-cyan: 0 0 35px rgba(0, 240, 255, 0.2);
}

/* Light Mode Overrides */
[data-mode="light"] {
  --bg-base: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(0, 180, 200, 0.4);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --accent-cyan: #0284C7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.12);
  --shadow-cyan: 0 0 30px rgba(2, 132, 199, 0.15);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-fa);
  direction: rtl;
  text-align: right;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 10% 40%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
              var(--bg-base);
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--accent-cyan) 70%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-mode="light"] .gradient-text {
  background: linear-gradient(135deg, #0F172A 20%, #0284C7 70%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Navigation */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 10, 15, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
  transition: all 0.25s ease;
}

[data-mode="light"] .header-bar {
  background: rgba(255, 255, 255, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.84rem;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-domain-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  direction: ltr;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-fa);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #080A0F;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

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

.btn-outline-cyan {
  background: transparent;
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.1);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 22px;
}

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

@keyframes pulseAnimation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Interactive 3D NFC Card Simulator
   ========================================================================== */
.simulator-perspective-wrap {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.smart-card-preview {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  background: linear-gradient(145deg, #131722 0%, #090B10 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.15);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  user-select: none;
}

/* Theme Presets on Simulator */
.smart-card-preview[data-sim-theme="cyberpunk"] {
  background: linear-gradient(145deg, #10162A 0%, #170B26 100%);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 45px rgba(0, 240, 255, 0.25);
}

.smart-card-preview[data-sim-theme="emerald"] {
  background: linear-gradient(145deg, #071E17 0%, #03100C 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 45px rgba(16, 185, 129, 0.25);
}

.smart-card-preview[data-sim-theme="rosegold"] {
  background: linear-gradient(145deg, #241116 0%, #14070A 100%);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 45px rgba(244, 63, 94, 0.25);
}

.sim-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sim-nfc-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.sim-wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 9px;
  border-radius: 6px;
}

.sim-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.sim-avatar-wrap {
  position: relative;
  margin-bottom: 12px;
}

.sim-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.sim-verified-check {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3B82F6;
  border: 2px solid #080A0F;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sim-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.sim-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sim-slug-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  direction: ltr;
}

.sim-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  transform: translateX(-3px);
}

.sim-action-btn.primary {
  background: linear-gradient(135deg, #00F0FF, #3B82F6);
  color: #080A0F;
  font-weight: 800;
}

/* Simulator Themes Switcher Bar */
.sim-theme-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
}

.sim-theme-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: var(--font-fa);
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-theme-btn.active, .sim-theme-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Bento Grid Feature Showcase
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   Live Search & Directory Section
   ========================================================================== */
.search-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
}

.search-input-wrap {
  max-width: 680px;
  margin: 0 auto 40px;
  position: relative;
}

.search-input-container {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.search-icon-badge {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 1.05rem;
  padding: 10px 0;
}

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

.search-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.card-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.card-result-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.card-result-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.card-result-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle);
}

.card-result-badge-verified {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3B82F6;
  border: 1.5px solid var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.card-result-body {
  flex: 1;
  min-width: 0;
}

.card-result-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.card-result-title {
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-result-slug {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
  direction: ltr;
}

.card-result-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.card-result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.card-result-views {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.card-result-link-arrow {
  color: var(--accent-cyan);
  font-weight: 700;
}

.search-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   Pricing Section (Toman & Trials)
   ========================================================================== */
.pricing-section {
  padding: 80px 0;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06) 0%, var(--bg-card) 100%);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(135deg, #00F0FF, #3B82F6);
  color: #080A0F;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-plan-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 40px;
  line-height: 1.6;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.pricing-amount {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

.pricing-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-feature-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 60px 0 80px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.faq-toggle-icon {
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 50px;
  background: var(--bg-surface);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  direction: ltr;
}

.input-prefix {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  border-right: 1px solid var(--border-subtle);
}

.input-with-prefix .form-input {
  border: none;
  background: transparent;
  direction: ltr;
}

.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.payment-tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-fa);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.payment-tab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Digital Bank Card */
.digital-bank-card {
  background: linear-gradient(135deg, #161B26 0%, #0E121B 100%);
  border: 1.5px solid rgba(102, 252, 241, 0.3);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.digital-bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bank-name-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bank-official-badge {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 6px;
}

.card-number-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-align: center;
  display: block;
  padding: 10px 0;
  direction: ltr;
}

.digital-bank-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.card-holder-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-card-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: var(--font-fa);
  font-weight: 700;
  cursor: pointer;
}

/* Card & Crypto Modals */
.bank-card-modal {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.bank-card-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #FCD34D;
  text-align: center;
  display: block;
  padding: 8px 0;
  direction: ltr;
}

.crypto-card-modal {
  background: linear-gradient(135deg, #071E17 0%, #03100C 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.crypto-wallet-text {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  word-break: break-all;
  color: #6EE7B7;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  margin: 10px 0;
  display: block;
  direction: ltr;
  text-align: left;
}

.results-count-badge {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
}

/* Hero CTA Buttons */
.btn-hero-cta {
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn-hero-secondary {
  padding: 14px 22px;
}

/* Visibility toggles for header CTA button text */
.cta-mobile-text {
  display: none;
}
.cta-full-text {
  display: inline;
}

/* ==========================================================================
   Mobile Navigation Drawer & Hamburger Menu
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Aside */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: rgba(14, 18, 27, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-highlight);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
}

[data-mode="light"] .mobile-nav-drawer {
  background: rgba(255, 255, 255, 0.97);
  border-left-color: rgba(0, 0, 0, 0.1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.mobile-nav-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-nav-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-rose);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  transition: all 0.2s ease;
  background: transparent;
}

.mobile-nav-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  transform: translateX(-4px);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.mobile-action-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 11px 16px;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* 1. Tablets & Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.6rem);
  }
  .hero-subtitle {
    margin: 0 auto 28px;
    max-width: 600px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-bar {
    justify-content: center;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
    gap: 22px;
  }
}

/* 2. Small Tablets & Landscape Phones (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }
  .header-bar {
    padding: 10px 0;
  }
  .lang-switcher-pill {
    display: none;
  }
  .btn-header-login {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-cta-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .cta-full-text {
    display: none;
  }
  .cta-mobile-text {
    display: inline;
  }
  .brand-logo-img {
    height: 32px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .hero-section {
    padding: 35px 0 50px;
  }
  .hero-title {
    font-size: clamp(1.75rem, 5.5vw, 2.2rem);
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .hero-trust-bar {
    gap: 14px;
    padding-top: 18px;
  }
  .trust-item {
    font-size: 0.8rem;
  }
  .smart-card-preview {
    max-width: 340px;
    padding: 22px 18px;
  }
  .sim-actions-grid {
    gap: 8px;
  }
  .sim-action-btn {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
  .sim-theme-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .bento-card {
    padding: 22px 18px;
  }
  .search-section {
    padding: 50px 0;
  }
  .pricing-section {
    padding: 50px 0;
  }
  .pricing-card {
    padding: 28px 20px;
  }
  .pricing-amount {
    font-size: 1.95rem;
  }
  .faq-section {
    padding: 40px 0 60px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 18px;
  }
  .faq-item.active .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.86rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-col {
    max-width: 100% !important;
  }
}

/* 3. Standard Mobile Phones (max-width: 576px) */
@media (max-width: 576px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  .hero-badge {
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    font-size: 0.76rem;
    padding: 6px 12px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
    white-space: normal !important;
    text-align: center;
  }
  .hero-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .smart-card-preview {
    max-width: 100%;
    border-radius: 20px;
    padding: 18px 14px;
  }
  .sim-avatar {
    width: 68px;
    height: 68px;
  }
  .sim-name {
    font-size: 1.15rem;
  }
  .sim-role {
    font-size: 0.78rem;
  }
  .sim-slug-tag {
    font-size: 0.72rem;
  }
  .search-input-container {
    padding: 4px 10px;
  }
  .search-input {
    font-size: 0.88rem;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card-result-item {
    padding: 12px;
    gap: 10px;
  }
  .card-result-avatar {
    width: 46px;
    height: 46px;
  }
  .card-result-title {
    font-size: 0.88rem;
  }
  .modal-overlay {
    padding: 10px;
  }
  .modal-content {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .digital-bank-card {
    padding: 14px 12px;
  }
  .card-number-display {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }
}

/* 4. Compact Mobile Phones (max-width: 420px) */
@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }
  .header-actions {
    gap: 6px;
  }
  .brand-domain-pill {
    padding: 1px 4px;
    font-size: 0.65rem;
  }
  .brand-logo-img {
    height: 28px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .header-cta-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
    gap: 4px;
  }
  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-subtitle {
    font-size: 0.88rem;
  }
  .pricing-amount {
    font-size: 1.7rem;
  }
}

html, body, button, input, select, textarea, optgroup {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .bento-card-title, .pricing-plan-title {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 800 !important;
}

.stat-num, .pricing-price-num, .sim-views-count, .results-count-badge {
  font-family: 'Vazirmatn-FD', 'Vazirmatn', sans-serif !important;
}

/* ==== Mobile hardening (v8): closed drawer must not widen the document; clip instead of scroll container ==== */
@supports (overflow: clip) {
  html, body {
    overflow-x: clip;
  }
}
.mobile-nav-drawer {
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
}
.mobile-nav-drawer.open {
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* Header fits 360px phones with 44px tap targets */
@media (max-width: 768px) {
  .header-bar .theme-toggle-btn,
  .header-bar .mobile-menu-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .header-cta-btn {
    min-height: 44px;
  }
}
@media (max-width: 420px) {
  .header-bar .brand-domain-pill {
    display: none;
  }
  .header-bar .brand-wrap {
    min-height: 44px;
  }
}
