/* =============================================
   Rados Medya v2.1 - Premium SMM Panel CSS
   Dark / Light Mode Support
   ============================================= */

/* =============================================
   CSS Variables - Theme System
   ============================================= */
:root {
  /* Dark Theme (default) */
  --primary: #6C63FF;
  --primary-dark: #5b4bf0;
  --primary-glow: rgba(108, 99, 255, 0.4);
  --secondary: #FF6584;
  --accent: #43E97B;
  
  --bg-dark: #0f0f1e;
  --bg-card: #1a1a2e;
  --bg-card-2: #16213e;
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.06);
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #4a5568;
  
  --border: rgba(108, 99, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  
  --navbar-bg: rgba(15, 15, 30, 0.85);
  --sidebar-bg: #1a1a2e;
  --card-bg: #1a1a2e;
  --toast-bg: rgba(26, 26, 46, 0.98);
}

/* Light Theme */
html.light-mode, [data-theme="light"] {
  --bg-dark: #f0f2f8;
  --bg-card: #ffffff;
  --bg-card-2: #f8f9fc;
  --bg-input: rgba(0, 0, 0, 0.04);
  --bg-hover: rgba(0, 0, 0, 0.04);
  
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #a0aec0;
  
  --border: rgba(108, 99, 255, 0.25);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
  
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --sidebar-bg: #ffffff;
  --card-bg: #ffffff;
  --toast-bg: rgba(255, 255, 255, 0.98);
}

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

html { scroll-behavior: smooth; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Selection */
::selection { background: rgba(108, 99, 255, 0.3); color: white; }

/* =============================================
   Theme Toggle Button
   ============================================= */
.theme-toggle {
  width: 40px; height: 22px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.theme-toggle:hover { border-color: var(--primary); }

.theme-toggle-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}

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

/* =============================================
   Glassmorphism Components
   ============================================= */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
  transform: translateY(-2px);
}

.glow-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08) 0%, rgba(255, 101, 132, 0.04) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .glow-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06) 0%, rgba(255, 101, 132, 0.03) 100%);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.1);
}

.glow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* =============================================
   Navbar
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  height: 64px;
}

#navbar .max-w-7xl {
  height: 64px;
  /* Prevent vertical jumps */
  align-items: center !important;
  display: flex !important;
}

/* Stabilize dropdown menu */
.dropdown-menu {
  transform-origin: top right;
  transition: opacity 0.15s ease, visibility 0.15s ease !important;
  z-index: 1100 !important;
  position: absolute !important;
}

/* Prevent sidebar toggle icon shift */
#sidebar-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

#navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(108, 99, 255, 0.1);
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
  background: linear-gradient(135deg, #6C63FF 0%, #9b59b6 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::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;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-success {
  background: linear-gradient(135deg, #43E97B, #38f9d7);
  color: #0f0f1e;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 0.4rem 0.875rem !important; font-size: 0.75rem !important; border-radius: 8px !important; }

/* =============================================
   Form Elements
   ============================================= */
.input-field {
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.3s;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.input-field:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.12);
}

.input-field::placeholder { color: var(--text-muted); }
.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button { -webkit-appearance: none; }

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

select.input-field option { background: var(--bg-card); color: var(--text-primary); }

/* =============================================
   3D Platform Icons
   ============================================= */
.platform-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  overflow: hidden;
}

.platform-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: 18px 18px 0 0;
}

.platform-icon:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

.icon-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.45);
}
.icon-tiktok {
  background: linear-gradient(135deg, #010101 0%, #69C9D0 50%, #EE1D52 100%);
  box-shadow: 0 8px 24px rgba(238, 29, 82, 0.45);
}
.icon-youtube {
  background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.45);
}
.icon-twitter {
  background: linear-gradient(135deg, #000000 0%, #1DA1F2 100%);
  box-shadow: 0 8px 24px rgba(29, 161, 242, 0.4);
}
.icon-spotify {
  background: linear-gradient(135deg, #1DB954 0%, #15803d 100%);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.45);
}
.icon-telegram {
  background: linear-gradient(135deg, #2CA5E0 0%, #0088cc 100%);
  box-shadow: 0 8px 24px rgba(44, 165, 224, 0.45);
}

/* =============================================
   Service Cards
   ============================================= */
.service-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.2);
}

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

.service-card.selected {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.speed-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: 0.02em;
}

.speed-instant { 
  background: rgba(67, 233, 123, 0.12); 
  color: #43E97B; 
  border: 1px solid rgba(67, 233, 123, 0.25); 
}
.speed-slow { 
  background: rgba(251, 191, 36, 0.12); 
  color: #FBBF24; 
  border: 1px solid rgba(251, 191, 36, 0.25); 
}

/* =============================================
   Dashboard Stat Cards
   ============================================= */
.stat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

[data-theme="dark"] .stat-card {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.07) 0%, rgba(255, 101, 132, 0.03) 100%);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12), transparent 70%);
}

.stat-card:hover { transform: translateY(-2px); border-color: var(--primary); }

/* =============================================
   Hero Section
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 101, 132, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(67, 233, 123, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero-bg {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 101, 132, 0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(108, 99, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

/* =============================================
   Toast Notifications (Bottom-Right)
   ============================================= */
.toast {
  background: var(--toast-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 360px;
  box-shadow: var(--shadow);
  animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.toast-success::before { background: #43E97B; }
.toast-info::before { background: var(--primary); }
.toast-warning::before { background: #FBBF24; }
.toast-error::before { background: #ef4444; }
.toast-activity::before { background: var(--secondary); }

.toast.removing { animation: slideOutDown 0.3s ease-in forwards; }

/* =============================================
   Sidebar
   ============================================= */
#sidebar {
  width: 250px;
  min-height: calc(100vh - 64px);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  left: 0; top: 64px;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s ease;
  padding-bottom: 2rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 10px;
  margin: 1px 0.75rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: calc(100% - 1.5rem);
  text-align: left;
}

.sidebar-link:hover {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary);
}

.sidebar-link.active {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-link .icon {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* =============================================
   Main Content Area
   ============================================= */
.main-content {
  margin-left: 250px;
  padding-top: 88px !important;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

@media (max-width: 768px) {
  .main-content { margin-left: 0; }
  #sidebar { transform: translateX(-100%); }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); }
}

/* =============================================
   Table
   ============================================= */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

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

.data-table th {
  background: rgba(108, 99, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* =============================================
   Modal
   ============================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  animation: bounceIn 0.4s ease;
  box-shadow: var(--shadow);
}

/* =============================================
   Price Display
   ============================================= */
.price-display {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(255, 101, 132, 0.08));
  border: 1.5px solid rgba(108, 99, 255, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}

.price-display .price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #6C63FF, #FF6584);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* =============================================
   Membership Tiers
   ============================================= */
.tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
}

.tier-bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.35); }
.tier-silver { background: rgba(192, 192, 192, 0.15); color: #b0b0b0; border: 1px solid rgba(192, 192, 192, 0.35); }
.tier-gold { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.35); }
.tier-reseller { background: rgba(155, 89, 182, 0.15); color: #9b59b6; border: 1px solid rgba(155, 89, 182, 0.35); }

/* Status Badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pending { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.status-processing { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.status-completed { background: rgba(67, 233, 123, 0.12); color: #43E97B; }
.status-partial { background: rgba(249, 115, 22, 0.12); color: #fb923c; }
.status-cancelled { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.status-failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.status-maintenance { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.status-active { background: rgba(67, 233, 123, 0.12); color: #43E97B; }
.status-draft { background: rgba(160, 174, 192, 0.12); color: #a0aec0; }
.status-published { background: rgba(67, 233, 123, 0.12); color: #43E97B; }

/* =============================================
   Progress Bar
   ============================================= */
.progress-bar {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* =============================================
   Blog Cards
   ============================================= */
.blog-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.15);
}

.blog-cover {
  width: 100%; height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(255,101,132,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

/* =============================================
   Rich Text Editor Area
   ============================================= */
.rich-editor {
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  min-height: 300px;
  color: var(--text-primary);
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.rich-editor:focus { border-color: var(--primary); }

.editor-toolbar {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 0.5rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.editor-toolbar button {
  width: 30px; height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.editor-toolbar button:hover {
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
}

.editor-toolbar .divider {
  width: 1px; height: 20px;
  background: var(--border-subtle);
  align-self: center;
  margin: 0 2px;
}

/* =============================================
   Skeletons
   ============================================= */
.skeleton {
  background: linear-gradient(
    90deg, 
    var(--bg-hover) 25%, 
    rgba(108, 99, 255, 0.06) 50%, 
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* =============================================
   Lazy Load
   ============================================= */
.lazy-load { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.lazy-load.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   Section Tag
   ============================================= */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: #a78bfa;
  padding: 5px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* =============================================
   Text Utilities
   ============================================= */
.text-gradient {
  background: linear-gradient(135deg, #6C63FF 0%, #FF6584 50%, #43E97B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-2 {
  background: linear-gradient(135deg, #6C63FF, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.balance-display {
  font-weight: 900;
  background: linear-gradient(135deg, #6C63FF, #43E97B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 1.25rem 0;
}

.hover-lift { transition: transform 0.3s; }
.hover-lift:hover { transform: translateY(-4px); }

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ */
.faq-item { border: 1.5px solid var(--border-subtle); border-radius: 12px; overflow: hidden; margin-bottom: 0.5rem; }
.faq-header { padding: 1rem 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; background: var(--glass); transition: all 0.2s; font-weight: 600; font-size: 0.875rem; }
.faq-header:hover { background: var(--bg-hover); color: var(--primary); }
.faq-body { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--text-secondary); font-size: 0.875rem; }
.faq-body.open { max-height: 300px; padding: 0.875rem 1.25rem 1.125rem; }

/* Sidebar group labels */
.sidebar-group-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.5rem 1.75rem 0.25rem;
  margin-top: 0.5rem;
}

/* Copy button */
.copy-btn {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(108, 99, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(108, 99, 255, 0.25); }

/* =============================================
   Animations
   ============================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

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

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

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

@keyframes bounceIn {
  0% { transform: scale(0.75); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideIn {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =============================================
   Sidebar Overlay (Mobile)
   ============================================= */
#sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 39;
  backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
  #sidebar-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  #sidebar.open ~ #sidebar-overlay, #sidebar-overlay.active { opacity: 1; pointer-events: auto; }
}

/* Dropdown Menu */
.dropdown-menu {
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* =============================================
   Light Mode Text Color Fixes
   ============================================= */
[data-theme="dark"] .data-table th { color: #8892a4; }
[data-theme="dark"] body { background: #0f0f1e; }

/* Light mode specific fixes for Tailwind utility classes */
[data-theme="light"] .text-white { color: #1a1a2e !important; }
[data-theme="light"] .text-gray-400 { color: #6b7280 !important; }
[data-theme="light"] .text-gray-500 { color: #9ca3af !important; }
[data-theme="light"] .text-gray-300 { color: #4b5563 !important; }
[data-theme="light"] .text-gray-600 { color: #6b7280 !important; }
[data-theme="light"] .bg-dark-900 { background: #f0f2f8 !important; }

/* Light mode card backgrounds */
[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

[data-theme="light"] .stat-card {
  background: #ffffff;
  border-color: rgba(108, 99, 255, 0.15);
}

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

[data-theme="light"] .data-table td {
  color: #374151;
}

[data-theme="light"] .data-table th {
  color: #4b5563;
  background: rgba(108, 99, 255, 0.05);
}

[data-theme="light"] .service-card {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Toast text fix for light mode */
[data-theme="light"] .toast {
  color: #1a1a2e;
}

[data-theme="light"] .toast p {
  color: #1a1a2e;
}

/* Faq fix for light mode */
[data-theme="light"] .faq-header {
  background: rgba(0,0,0,0.02);
  color: #1a1a2e;
}

/* Input fix for light mode */
[data-theme="light"] .input-field {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: #1a1a2e;
}

[data-theme="light"] .input-field::placeholder {
  color: #9ca3af;
}

/* Balance display - visible in both modes */
.balance-display {
  font-weight: 900;
  background: linear-gradient(135deg, #6C63FF, #43E97B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Table row hover for light mode */
[data-theme="light"] .data-table tr:hover td {
  background: rgba(108, 99, 255, 0.04);
}

/* =============================================
   Additional Button Styles
   ============================================= */
.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.375rem 0.875rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s;
}
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.375rem 0.875rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s;
}
.btn-danger:hover { opacity: 0.9; }

/* Progress bar */
.progress-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Chat/Message bubbles */
.message-bubble {
  max-width: 75%;
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}
.message-bubble.sent {
  background: rgba(108, 99, 255, 0.2);
  border-bottom-right-radius: 0.25rem;
  margin-left: auto;
}
.message-bubble.received {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 0.25rem;
}

/* Selected state for payment cards */
.service-card.selected {
  border-color: var(--primary) !important;
  background: rgba(108, 99, 255, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3) !important;
}

/* Notification bell badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 4px;
  min-width: 14px;
  text-align: center;
}

/* Full announcement display */
.announcement-bar {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid;
  position: relative;
  z-index: 2;
}
.announcement-bar.info { border-color: var(--primary); background: rgba(108, 99, 255, 0.08); }
.announcement-bar.success { border-color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.announcement-bar.warning { border-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
.announcement-bar.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.08); }

#announcements-dash-container {
  position: relative;
  z-index: 20;
  margin-bottom: 1.5rem;
}

/* Textarea */
textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

/* Code blocks */
code {
  font-family: 'Courier New', monospace;
}

/* Light mode fixes for new elements */
[data-theme="light"] .btn-secondary {
  color: #374151;
}

/* Light mode: TikTok and X icons stay vibrant */
[data-theme="light"] .icon-tiktok {
  background: linear-gradient(135deg, #010101 0%, #69C9D0 50%, #EE1D52 100%) !important;
  box-shadow: 0 8px 24px rgba(238, 29, 82, 0.35) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
[data-theme="light"] .icon-tiktok::after {
  content: 'TikTok';
  display: none;
}
[data-theme="light"] .icon-twitter {
  background: linear-gradient(135deg, #000000 0%, #1DA1F2 60%, #0d8ecf 100%) !important;
  box-shadow: 0 8px 24px rgba(29, 161, 242, 0.35) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Fix: platform icon emoji visibility in light mode */
[data-theme="light"] .platform-icon {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Admin panel distinct styling */
.admin-layout .sidebar {
  background: linear-gradient(180deg, #1a0533 0%, #0d1117 100%);
  border-right: 1px solid rgba(108,99,255,0.3);
}

/* Sidebar admin section highlight */
#sidebar .admin-section-label {
  color: #f59e0b;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
}

/* Terms checkbox */
.terms-checkbox {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* API key display */
.api-key-display {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  word-break: break-all;
  color: var(--text-primary);
}

/* SMS Verify badge */
.sms-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
  border: 1px solid rgba(34,197,94,0.3);
  color: #22c55e;
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Provider edit form */
.provider-edit-form {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 0.75rem;
}

[data-theme="light"] .message-bubble.received {
  background: rgba(0,0,0,0.05);
  color: #1a1a2e;
}

/* =============================================
   Hero Orbs (Parallax) - home-anim.js
   ============================================= */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transition: transform 0.1s linear;
  will-change: transform;
}
.hero-orb.orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  top: -10%; left: -5%;
}
.hero-orb.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,101,132,0.12) 0%, transparent 70%);
  top: 40%; right: -8%;
}
.hero-orb.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(67,233,123,0.10) 0%, transparent 70%);
  bottom: 10%; left: 30%;
}

/* =============================================
   Scroll Reveal Animations - home-anim.js
   ============================================= */
[data-reveal],
.reveal, .reveal-up, .reveal-fade, .animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].reveal-in, [data-reveal].is-visible, [data-reveal].visible,
.reveal.reveal-in, .reveal.is-visible, .reveal.visible,
.reveal-up.reveal-in, .reveal-up.is-visible, .reveal-up.visible,
.reveal-fade.reveal-in, .reveal-fade.is-visible, .reveal-fade.visible,
.animate-on-scroll.reveal-in, .animate-on-scroll.is-visible, .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* #app hidden → visible after JS init */
#app.hidden { display: none !important; }
#app:not(.hidden) { display: block; }

body.no-scroll { overflow: hidden; }

/* =============================================
   Mobile Responsiveness Pack (User + Admin)
   Hedef: mevcut yapıyı bozmadan mobil uyumluluk
   ============================================= */

/* Prevent accidental horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; height: auto; }

/* Better touch targets on mobile */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary, .btn-danger {
    min-height: 44px;
  }
  .sidebar-link { padding-top: 0.8rem; padding-bottom: 0.8rem; }
}

/* Toasts: full-width on small screens */
@media (max-width: 640px) {
  #toast-container {
    left: 0 !important;
    right: 0 !important;
    bottom: 12px !important;
    max-width: none !important;
    padding: 0 12px !important;
  }
  .toast {
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }
}

/* Main content paddings on mobile */
@media (max-width: 768px) {
  .main-content { padding-left: 12px !important; padding-right: 12px !important; padding-top: 80px !important; }
  .glass-card { border-radius: 18px; }
}

/* Modal: safer sizing on very small screens */
@media (max-width: 480px) {
  .modal { padding: 1.25rem; border-radius: 16px; }
}

/* Admin Users header (search input) */
@media (max-width: 768px) {
  #admin-users-page > .flex {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  #user-search { width: 100% !important; }
}

/* Generic “two-column” flex rows -> stack on mobile */
@media (max-width: 768px) {
  .flex-row-mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Home hero orbs: reduce size for mobile performance */
@media (max-width: 640px) {
  .hero-orb.orb-1 { width: 320px; height: 320px; }
  .hero-orb.orb-2 { width: 260px; height: 260px; }
  .hero-orb.orb-3 { width: 220px; height: 220px; }
}

/* =============================================
   Mobile Order Bottom Sheet
   ============================================= */
.mobile-order-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -12px 50px rgba(0,0,0,0.5);
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  pointer-events: none;
  visibility: hidden;
}
.mobile-order-sheet.show {
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.mobile-order-handle {
  text-align: center;
  padding: 14px 0 6px;
  cursor: pointer;
}
.handle-bar {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--text-muted);
  margin: 0 auto;
  opacity: 0.4;
}
/* Mobil backdrop overlay */
#mobile-order-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mobile-order-backdrop.show {
  opacity: 1;
}
@media (min-width: 769px) {
  .mobile-order-sheet,
  #mobile-order-backdrop { display: none !important; }
}
