/* ============================================
   CONFIG SHOP - Main Stylesheet
   Dark: Black/Blue/Green
   Light: White/Blue/Green
   ============================================ */

/* CSS Variables */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(20, 20, 30, 0.8);
  --bg-glass: rgba(15, 15, 25, 0.6);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  --accent-primary: #00d4ff;
  --accent-secondary: #00ff88;
  --accent-tertiary: #7b2fff;
  --gradient-primary: linear-gradient(135deg, #00d4ff, #00ff88);
  --gradient-secondary: linear-gradient(135deg, #7b2fff, #00d4ff);
  --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0d1117 50%, #0a0f1a 100%);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-primary: 0 8px 32px rgba(0, 212, 255, 0.15);
  --shadow-secondary: 0 4px 16px rgba(0, 255, 136, 0.1);
  --glow-primary: 0 0 30px rgba(0, 212, 255, 0.3);
  --glow-secondary: 0 0 30px rgba(0, 255, 136, 0.3);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --hover-bg: rgba(0, 212, 255, 0.1);
  --success: #00ff88;
  --warning: #ffaa00;
  --error: #ff4466;
  --info: #00d4ff;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --accent-primary: #0099cc;
  --accent-secondary: #00cc6a;
  --accent-tertiary: #6b1fdf;
  --gradient-primary: linear-gradient(135deg, #0099cc, #00cc6a);
  --gradient-secondary: linear-gradient(135deg, #6b1fdf, #0099cc);
  --gradient-bg: linear-gradient(180deg, #f8f9fc 0%, #e8ecf1 50%, #f0f4f8 100%);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 8px 32px rgba(0, 153, 204, 0.12);
  --shadow-secondary: 0 4px 16px rgba(0, 204, 106, 0.08);
  --glow-primary: 0 0 30px rgba(0, 153, 204, 0.2);
  --glow-secondary: 0 0 30px rgba(0, 204, 106, 0.15);
  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.1);
  --hover-bg: rgba(0, 153, 204, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease, color 0.3s ease;
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
  font-family: 'Vazir', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

[dir="rtl"] .plan-features {
  text-align: right;
}

[dir="rtl"] .plan-features li {
  flex-direction: row-reverse;
}

/* 3D Animated Background */
.bg-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  perspective: 1000px;
}

/* Floating gradient orbs */
.bg-3d .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-3d .orb:nth-child(1) {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
  animation-duration: 25s;
}

.bg-3d .orb:nth-child(2) {
  width: 500px;
  height: 500px;
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.2), transparent 70%);
  animation-duration: 20s;
  animation-delay: -5s;
}

.bg-3d .orb:nth-child(3) {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(123, 47, 255, 0.15), transparent 70%);
  animation-duration: 30s;
  animation-delay: -10s;
}

/* 3D rotating rings */
.bg-3d .ring {
  position: absolute;
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 50%;
  animation: ringRotate 30s linear infinite;
  transform-style: preserve-3d;
  pointer-events: none;
}

.bg-3d .ring:nth-child(4) {
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  margin: -400px 0 0 -400px;
  border-color: rgba(0, 212, 255, 0.06);
  animation-duration: 40s;
  transform-origin: center center;
}

.bg-3d .ring:nth-child(5) {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  margin: -250px 0 0 -250px;
  border-color: rgba(0, 255, 136, 0.05);
  animation-duration: 25s;
  animation-direction: reverse;
  transform-origin: center center;
}

.bg-3d .ring:nth-child(6) {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  margin: -150px 0 0 -150px;
  border-color: rgba(123, 47, 255, 0.06);
  animation-duration: 20s;
  transform-origin: center center;
}

/* Floating geometric shapes */
.bg-3d .shape {
  position: absolute;
  opacity: 0.06;
  animation: shapeFloat 30s ease-in-out infinite;
  transform-style: preserve-3d;
}

.bg-3d .shape:nth-child(7) {
  top: 15%;
  right: 20%;
  font-size: 120px;
  animation-duration: 35s;
}

.bg-3d .shape:nth-child(8) {
  bottom: 20%;
  left: 15%;
  font-size: 80px;
  animation-duration: 28s;
  animation-delay: -8s;
}

.bg-3d .shape:nth-child(9) {
  top: 40%;
  left: 30%;
  font-size: 60px;
  animation-duration: 32s;
  animation-delay: -15s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, -5%) scale(1.1); }
  50% { transform: translate(-3%, 3%) scale(0.95); }
  75% { transform: translate(4%, 2%) scale(1.05); }
}

@keyframes ringRotate {
  0% { transform: rotateX(60deg) rotateZ(0deg); }
  50% { transform: rotateX(60deg) rotateZ(180deg) scale(0.85); }
  100% { transform: rotateX(60deg) rotateZ(360deg); }
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-30px) rotate(5deg) scale(1.1); }
  50% { transform: translateY(10px) rotate(-3deg) scale(0.95); }
  75% { transform: translateY(-20px) rotate(3deg) scale(1.05); }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-secondary);
  text-shadow: var(--glow-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: var(--glow-primary);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--hover-bg);
  border-color: var(--accent-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 12px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-primary);
}

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

.card-glow {
  box-shadow: var(--glow-primary);
}

/* Glass Effect */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 48px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle::after {
  transform: translateX(20px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--accent-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translate(0, 0); }
  50% { transform: translateY(-50%) translate(0, -20px); }
}

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

/* Features Section */
.features {
  padding: 100px 0;
}

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

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

.section-header p {
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 40px 32px;
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: var(--glow-primary);
}

.feature-card h3 {
  margin-bottom: 12px;
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-item p {
  font-weight: 500;
}

/* Plans Section */
.plans {
  padding: 100px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plan-card {
  position: relative;
  padding: 40px 32px;
  text-align: center;
}

.plan-card.popular {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-size {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  margin: 32px 0;
  text-align: left;
}

.plan-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-features li::before {
  content: '✓';
  color: var(--accent-secondary);
  font-weight: 700;
}

/* Custom Plan Input */
.custom-input {
  margin: 24px 0;
}

.custom-input label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.custom-input input {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.custom-input input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.custom-price-display {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin: 16px 0;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

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

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-card {
  padding: 40px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
}

.auth-link a {
  font-weight: 600;
}

/* Dashboard Layout */
.dashboard {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
}

.sidebar {
  width: 280px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--hover-bg);
  color: var(--accent-primary);
}

.sidebar-nav a.active {
  background: var(--gradient-primary);
  color: #000;
}

.sidebar-section {
  margin-top: 32px;
  margin-bottom: 16px;
  padding: 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:hover {
  background: var(--hover-bg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(0, 255, 136, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(255, 170, 0, 0.15);
  color: var(--warning);
}

.badge-error {
  background: rgba(255, 68, 102, 0.15);
  color: var(--error);
}

.badge-info {
  background: rgba(0, 212, 255, 0.15);
  color: var(--info);
}

/* Config Card */
.config-card {
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.config-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.config-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.config-details h4 {
  margin-bottom: 4px;
}

.config-details p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.config-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.config-meta-item {
  text-align: center;
}

.config-meta-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.config-meta-item strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.config-actions {
  display: flex;
  gap: 8px;
}

/* Payment Page */
.payment-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.wallet-address {
  background: var(--bg-tertiary);
  border: 2px dashed var(--accent-primary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
  word-break: break-all;
}

.wallet-address code {
  font-family: 'Fira Code', monospace;
  font-size: 1.125rem;
  color: var(--accent-primary);
}

.payment-amount {
  text-align: center;
  padding: 24px;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin: 24px 0;
}

.payment-amount h3 {
  color: #000;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.payment-amount p {
  color: rgba(0, 0, 0, 0.7);
}

.payment-status {
  text-align: center;
  padding: 32px;
  border-radius: 16px;
  margin: 24px 0;
}

.payment-status.success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success);
}

.payment-status.pending {
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid var(--warning);
}

.payment-status.failed {
  background: rgba(255, 68, 102, 0.1);
  border: 1px solid var(--error);
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Language Selector Modal */
.lang-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lang-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.5s ease;
}

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

.lang-modal h2 {
  margin-bottom: 8px;
}

.lang-modal p {
  margin-bottom: 32px;
}

.lang-options {
  display: flex;
  gap: 16px;
}

.lang-option {
  flex: 1;
  padding: 24px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-option:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
}

.lang-option.selected {
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.lang-option-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.lang-option-name {
  font-weight: 600;
  font-size: 1.125rem;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 100px;
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

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

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

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: #000;
}

/* Smooth Page Transitions */
.page-transition {
  animation: pageSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Scroll Animations - Enhanced */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delay for grid items */
.features-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.features-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.plans-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.plans-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.plans-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.plans-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.plans-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* Glow pulse effect for gradient elements */
@keyframes glowPulse {
  0%, 100% { box-shadow: var(--glow-primary); }
  50% { box-shadow: 0 0 50px rgba(0, 212, 255, 0.5); }
}

.card.popular {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Hover shine effect for cards */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .main-content {
    margin-left: 0;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
  }

  .hero-visual {
    display: none;
  }

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

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

  .lang-options {
    flex-direction: column;
  }

  .config-meta {
    flex-direction: column;
    gap: 8px;
  }

  .config-card {
    flex-direction: column;
    text-align: center;
  }

  .config-info {
    flex-direction: column;
  }

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 8px;
}

.mobile-nav-links a {
  display: block;
  padding: 16px;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
  background: var(--hover-bg);
  color: var(--accent-primary);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

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

/* Selection */
::selection {
  background: var(--accent-primary);
  color: #000;
}
