/* ==================== Design System & Tokens ==================== */
:root {
  /* Colors - Cyberpunk/Futuristic Palette */
  --primary-color: #6c5ce7;
  --primary-glow: rgba(108, 92, 231, 0.4);
  --secondary-color: #00d2d3;
  --accent-color: #ff9f43;
  --background-color: #0b0b1a;
  --surface-color: #1a1a2e;
  --surface-hover: #23233e;
  --text-primary: #f8f9fa;
  --text-secondary: #a0a0c0;
  --error-color: #ff7675;
  --success-color: #55efc4;
  
  /* Glassmorphism */
  --glass-bg: rgba(26, 26, 46, 0.8);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  /* Layout */
  --border-radius: 16px;
  --header-height: 72px;
  --nav-height: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --background-color: #f1f2f6;
  --surface-color: #ffffff;
  --surface-hover: #f8f9fa;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(108, 92, 231, 0.1);
}

/* ==================== Reset & Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 20px);
  min-height: 100vh;
}

h1, h2, h3, .logo-text {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* ==================== Header ==================== */
.header {
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

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

.install-btn {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--glass-border);
}

/* ==================== Search & Filters ==================== */
.search-section {
  padding: 32px 0;
  background: linear-gradient(to bottom, var(--surface-color), transparent);
}

.search-box-container {
  max-width: 700px;
  margin: 0 auto 24px;
}

.search-box {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 20px;
  font-size: 16px;
  outline: none;
}

.search-box button {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 16px;
  font-size: 20px;
}

.filter-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 10px 20px;
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: 100px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.chip.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==================== Video Grid ==================== */
.main-content {
  padding: 24px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  color: var(--text-primary);
}

.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--glass-bg);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error-color);
  box-shadow: 0 0 8px var(--error-color);
}

.status-dot.online {
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.video-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
  opacity: 0.8;
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.video-details {
  padding: 20px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-channel {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-stats {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
}

/* ==================== Modal System ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface-color);
  width: 100%;
  max-width: 1000px;
  border-radius: 24px;
  position: relative;
  padding: 32px;
  border: 1px solid var(--glass-border);
  animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--surface-hover);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  z-index: 10;
}

.player-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-info h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.video-info p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.video-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  background: var(--surface-hover);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.action-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==================== Bottom Nav ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 24px;
  transition: var(--transition);
}

.nav-item.active .nav-icon {
  transform: translateY(-4px);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==================== Settings Specialized ==================== */
.settings-content h2 {
  margin-bottom: 32px;
  text-align: center;
}

.settings-group {
  margin-bottom: 40px;
}

.settings-group h3 {
  font-size: 14px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

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

.input-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.input-group input {
  width: 100%;
  padding: 14px;
  background: var(--background-color);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  outline: none;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.toggle-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-secondary {
  padding: 12px;
  background: var(--surface-hover);
  color: var(--text-secondary);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modal-content {
    padding: 20px;
    border-radius: 0;
    height: 100%;
    max-height: 100%;
  }

  .logo-text {
    font-size: 18px;
  }
}

/* ==================== Animations ==================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--surface-hover);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* ==================== PHASE 2: AdSense & Premium Styles ==================== */

/* ==================== Ad Container Styles ==================== */
.ad-container {
  margin: 20px 0;
  width: 100%;
}

.ad-wrapper {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 16px 0;
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: var(--transition);
}

.ad-wrapper:hover {
  border-color: rgba(108, 92, 231, 0.4);
}

.ad-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  opacity: 0.6;
}

/* Header Ad */
.header-ad {
  max-width: 100%;
  text-align: center;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border: 1px dashed rgba(108, 92, 231, 0.3);
}

/* In-Feed Ad Card */
.ad-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border: 2px dashed rgba(108, 92, 231, 0.3);
  border-radius: var(--border-radius);
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ad-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(108, 92, 231, 0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.ad-card .ad-label {
  background: rgba(108, 92, 231, 0.15);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
}

.ad-card:hover {
  border-color: rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(108, 92, 231, 0.2);
}

/* Sidebar Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.content-main {
  min-width: 0; /* Prevents grid overflow */
}

.content-sidebar {
  display: none; /* Hidden on mobile by default */
}

/* Sidebar Ad */
.sidebar-ad {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.sidebar-ad.sticky {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--surface-color);
}

.sidebar-ad.sticky::-webkit-scrollbar {
  width: 6px;
}

.sidebar-ad.sticky::-webkit-scrollbar-track {
  background: var(--surface-color);
}

.sidebar-ad.sticky::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

/* Sidebar Widget */
.sidebar-widget {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-widget h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--primary-color);
  font-weight: 600;
}

.trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trending-list li {
  margin-bottom: 12px;
}

.trending-list a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 14px;
}

.trending-list a:hover {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Modal Ad */
.modal-ad {
  margin: 24px 0;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
  border-radius: var(--border-radius);
  border: 1px dashed rgba(108, 92, 231, 0.3);
}

/* AdSense Responsive Adjustments */
.adsbygoogle {
  display: block;
  text-align: center;
}

/* Desktop View (1024px and up) */
@media (min-width: 1024px) {
  .content-sidebar {
    display: block;
  }
}

/* Tablet View */
@media (max-width: 1023px) {
  .content-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar-ad {
    display: none;
  }
  
  .sidebar-widget {
    display: none;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .ad-wrapper {
    padding: 12px;
    margin: 12px 0;
  }
  
  .header-ad {
    margin: 12px 0;
  }
  
  .ad-card {
    min-height: 250px;
    padding: 16px;
  }
}

/* Hide ads for premium users */
body.premium-mode .ad-container,
body.premium-mode .ad-card,
body.premium-mode .ad-wrapper {
  display: none !important;
}

body.premium-mode .content-layout {
  grid-template-columns: 1fr;
}

/* ==================== Premium Modal Styles ==================== */
.premium-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.premium-modal.active {
  display: flex;
}

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

.premium-content {
  background: var(--surface-color);
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  padding: 48px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

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

.premium-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.premium-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.premium-header {
  text-align: center;
  margin-bottom: 48px;
}

.premium-header h2 {
  font-size: 42px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  font-weight: 800;
}

.premium-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.feature-item {
  text-align: center;
  padding: 28px 20px;
  background: rgba(108, 92, 231, 0.05);
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.feature-item:hover {
  transform: translateY(-8px);
  background: rgba(108, 92, 231, 0.1);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 12px 24px rgba(108, 92, 231, 0.2);
}

.feature-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.feature-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.pricing-card {
  background: var(--background-color);
  border: 2px solid rgba(108, 92, 231, 0.2);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card.popular {
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.3);
  transform: scale(1.05);
}

.pricing-card.popular::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
}

.price {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary-color);
  margin: 24px 0;
  line-height: 1;
}

.price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
}

.savings {
  color: var(--success-color);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 15px;
  background: rgba(81, 207, 102, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
}

.buy-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.buy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.buy-btn:active {
  transform: translateY(-1px);
}

.guarantee {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 24px;
  padding: 16px;
  background: rgba(81, 207, 102, 0.05);
  border-radius: 12px;
  border: 1px dashed rgba(81, 207, 102, 0.3);
}

/* Premium Features Comparison */
.features-comparison {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
  background: rgba(108, 92, 231, 0.1);
  font-weight: 600;
  color: var(--primary-color);
}

.comparison-table .check {
  color: var(--success-color);
  font-size: 20px;
}

.comparison-table .cross {
  color: var(--error-color);
  font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .premium-content {
    padding: 32px 20px;
  }
  
  .premium-header h2 {
    font-size: 32px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .pricing-card:hover {
    transform: translateY(-8px);
  }
  
  .price {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  .premium-header h2 {
    font-size: 28px;
  }
  
  .feature-icon {
    font-size: 42px;
  }
  
  .buy-btn {
    font-size: 14px;
    padding: 14px;
  }
}

/* ==================== Affiliate Styles ==================== */
.affiliate-container {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.05) 0%, rgba(0, 206, 201, 0.05) 100%);
  border-radius: var(--border-radius);
  padding: 32px;
  margin: 32px 0;
  border: 2px solid rgba(0, 184, 148, 0.2);
}

.affiliate-container h3 {
  color: var(--secondary-color);
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
}

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

.affiliate-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  border: 2px solid rgba(0, 184, 148, 0.2);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.affiliate-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 24px rgba(0, 184, 148, 0.3);
}

.affiliate-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.affiliate-card .price {
  font-size: 28px;
  color: var(--secondary-color);
  font-weight: 700;
  margin: 16px 0;
}

.affiliate-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.affiliate-btn:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

/* Light theme adjustments */
[data-theme="light"] .ad-wrapper {
  border-color: rgba(108, 92, 231, 0.3);
}

[data-theme="light"] .ad-card {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(102, 126, 234, 0.08) 100%);
  border-color: rgba(108, 92, 231, 0.4);
}

[data-theme="light"] .premium-content {
  background: #ffffff;
}

[data-theme="light"] .pricing-card {
  background: #f5f5f5;
}

/* ==================== Affiliate Styles ==================== */

.affiliate-container {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.08) 0%, rgba(0, 206, 201, 0.08) 100%);
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  border: 2px solid rgba(0, 184, 148, 0.25);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 184, 148, 0.15);
}

.affiliate-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

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

.affiliate-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.affiliate-header h3 {
  color: var(--secondary-color);
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 800;
}

.affiliate-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

.affiliate-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.affiliate-close:hover {
  background: rgba(255, 77, 77, 0.2);
  color: #ff4d4d;
  transform: rotate(90deg);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.affiliate-card {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  border: 2px solid rgba(0, 184, 148, 0.2);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.affiliate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00b894, #00cec9);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.affiliate-card:hover {
  transform: translateY(-12px);
  border-color: var(--secondary-color);
  box-shadow: 0 16px 32px rgba(0, 184, 148, 0.25);
}

.affiliate-card:hover::before {
  transform: scaleX(1);
}

.affiliate-image {
  font-size: 72px;
  text-align: center;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 184, 148, 0.3));
  transition: var(--transition);
}

.affiliate-card:hover .affiliate-image {
  transform: scale(1.1) rotate(5deg);
}

.affiliate-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.affiliate-category {
  display: inline-block;
  background: rgba(0, 184, 148, 0.15);
  color: var(--secondary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.affiliate-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.affiliate-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.affiliate-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.affiliate-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary-color);
}

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

.affiliate-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.rating-value {
  color: var(--text-secondary);
  font-weight: 600;
}

.affiliate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  transition: var(--transition);
}

.affiliate-card:hover .affiliate-cta {
  background: linear-gradient(135deg, #00cec9 0%, #00b894 100%);
  transform: translateX(4px);
}

.cta-arrow {
  font-size: 20px;
  transition: var(--transition);
}

.affiliate-card:hover .cta-arrow {
  transform: translateX(4px);
}

.affiliate-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 184, 148, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.affiliate-disclaimer {
  text-align: center;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.affiliate-disclaimer small {
  color: var(--text-secondary);
  font-size: 12px;
  opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .affiliate-container {
    padding: 24px 16px;
    margin: 24px 0;
  }
  
  .affiliate-header h3 {
    font-size: 22px;
  }
  
  .affiliate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .affiliate-card {
    padding: 20px;
  }
  
  .affiliate-image {
    font-size: 56px;
  }
  
  .price-amount {
    font-size: 24px;
  }
}

/* Light theme adjustments */
[data-theme="light"] .affiliate-container {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12) 0%, rgba(0, 206, 201, 0.12) 100%);
  border-color: rgba(0, 184, 148, 0.3);
}

[data-theme="light"] .affiliate-card {
  background: #ffffff;
  border-color: rgba(0, 184, 148, 0.25);
}
