/* ============================================================
   ZAKROM Articles — Premium Dark SaaS Design System
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Backgrounds */
  --bg-base:       #09090b;
  --bg-surface:    #18181b;
  --bg-elevated:   #27272a;
  --bg-overlay:    rgba(0, 0, 0, 0.75);

  /* Borders */
  --border:        #27272a;
  --border-subtle: #3f3f46;
  --border-focus:  #6366f1;

  /* Accent */
  --accent:        #6366f1;
  --accent-hover:  #4f46e5;
  --accent-muted:  rgba(99, 102, 241, 0.12);
  --accent-ring:   rgba(99, 102, 241, 0.25);

  /* Text */
  --text-primary:  #fafafa;
  --text-secondary:#a1a1aa;
  --text-muted:    #71717a;
  --text-inverted: #09090b;

  /* Semantic */
  --success:       #22c55e;
  --success-muted: rgba(34, 197, 94, 0.12);
  --warning:       #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.12);
  --danger:        #ef4444;
  --danger-muted:  rgba(239, 68, 68, 0.12);
  --info:          #3b82f6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Radius */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   10px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow:    0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    150ms;
  --duration-md: 200ms;
}

/* === LIGHT THEME TOKENS === */
[data-theme="light"] {
  --bg-base:       #ffffff;
  --bg-surface:    #f4f4f5;
  --bg-elevated:   #e4e4e7;
  --border:        #e4e4e7;
  --border-subtle: #d4d4d8;
  --text-primary:  #09090b;
  --text-secondary:#52525b;
  --text-muted:    #71717a;
  --bg-overlay:    rgba(0, 0, 0, 0.5);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow:        0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

/* === BASE === */
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Kill grid overlay */
body::before {
  display: none !important;
}

/* Kill original particle/lightning canvases */
#particles-canvas,
#lightning-canvas {
  display: none !important;
}

/* 3D mesh background canvas */
#bg-3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  overflow-x: auto;
}

code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: 0.8125rem;
  color: var(--accent);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-6) 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  height: 56px;
  gap: var(--sp-4);
}

/* Brand */
.nav-brand {
  flex-shrink: 0;
}

.logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
}

/* Gooey nav container — reset all gooey effects, keep DOM for JS */
.gooey-nav-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: none !important;
}

/* Hide gooey effect spans — JS will still manipulate them but they won't render */
.gooey-nav-container .effect,
.gooey-nav-container .effect.filter,
.gooey-nav-container .effect.text {
  display: none !important;
}

/* Hide JS-spawned particle elements */
.gooey-nav-container .particle,
.gooey-nav-container .point {
  display: none !important;
}

.gooey-nav-container nav {
  display: flex;
  position: relative;
  transform: none;
}

.gooey-nav-container nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 3;
  filter: none;
}

.gooey-nav-container nav ul li {
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: none;
  box-shadow: none;
  color: var(--text-secondary);
}

.gooey-nav-container nav ul li::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.gooey-nav-container nav ul li.active::after {
  opacity: 1;
}

.gooey-nav-container nav ul li a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  white-space: nowrap;
}

.gooey-nav-container nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  text-decoration: none;
}

.gooey-nav-container nav ul li.active a {
  color: var(--text-primary);
  font-weight: 600;
}

/* Auth section */
.nav-auth {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Balance display */
.balance-display {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px var(--sp-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  backdrop-filter: none;
  box-shadow: none;
}

#userBalance {
  color: var(--accent);
}

/* Theme toggle */
.theme-toggle-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.theme-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: background var(--duration-md) var(--ease);
}

.theme-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: transform var(--duration-md) var(--ease),
              background var(--duration-md) var(--ease);
}

.theme-checkbox:checked + .theme-label .theme-slider {
  background: var(--accent);
  border-color: var(--accent);
}

.theme-checkbox:checked + .theme-label .theme-slider::before {
  transform: translateX(20px);
  background: #fff;
}

.theme-icon { display: none; }

/* Auth icon buttons */
.btn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  transform: none;
  box-shadow: none;
}

/* JS visibility rules — MUST be preserved */
body.logged-in .promotional-section {
  display: none !important;
}

body:not(.logged-in) .gooey-nav-container {
  display: none !important;
}

body.logged-in .gooey-nav-container {
  display: flex !important;
}

/* ============================================================
   MAIN CONTAINER & PAGES
   ============================================================ */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  z-index: 1;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-6);
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-4);
  height: 36px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  background: none;
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-subtle);
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-success:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-warning {
  background: var(--warning);
  color: #000;
  border-color: var(--warning);
}

.btn-large {
  height: 42px;
  font-size: 0.9375rem;
  padding: 0 var(--sp-6);
}

.btn-sm {
  height: 28px;
  font-size: 0.8125rem;
  padding: 0 var(--sp-3);
}

.btn-preview {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  height: 36px;
  padding: 0 var(--sp-4);
  animation: none;
}

.btn-preview::before {
  display: none;
}

.btn-preview:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

/* Alias buttons that used to have special treatment */
.pulse-btn,
.start-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-6);
  height: 40px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  animation: none;
  box-shadow: none;
  transition: background var(--duration) var(--ease);
}

.pulse-btn:hover,
.start-btn:hover,
.cta-button:hover {
  background: var(--accent-hover);
  transform: none;
  box-shadow: none;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--sp-5);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
  transition: none;
  text-shadow: none;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-input,
.form-select {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  backdrop-filter: none;
  box-shadow: none;
  appearance: auto;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-input:focus,
.form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

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

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-group select option,
.form-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-input,
[data-theme="light"] .form-select {
  background: #ffffff;
}

.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ============================================================
   HOME / HERO SECTION
   ============================================================ */

.hero {
  text-align: center;
  padding: var(--sp-16) var(--sp-6) var(--sp-10);
}

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-muted);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #818cf8;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.01em;
}

[data-theme="light"] .hero-badge {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.2);
}

.hero-title,
.lightning-text {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: var(--sp-4);
  /* Subtle gradient text for dark mode */
  background: linear-gradient(150deg, #ffffff 30%, #71717a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  animation: none;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .lightning-text {
  background: linear-gradient(150deg, #09090b 20%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto var(--sp-10);
  line-height: 1.7;
}

/* Preview section */
.preview-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  margin: 0 auto var(--sp-10);
  max-width: 780px;
  text-align: left;
  backdrop-filter: none;
  box-shadow: none;
}

.preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.preview-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-5);
}

.preview-form {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: flex-end;
}

.preview-input {
  flex: 1;
  min-width: 200px;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  height: 36px;
}

.preview-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

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

[data-theme="light"] .preview-input {
  background: #fff;
}

/* Loading bar */
.preview-loading {
  margin-top: var(--sp-5);
}

.loading-bar-container {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.loading-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: none;
  animation: none;
}

.loading-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Preview result */
.preview-result {
  margin-top: var(--sp-5);
}

.preview-content {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.preview-text {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.75;
  max-height: 240px;
  overflow: hidden;
  position: relative;
}

.preview-text-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-8) var(--sp-4) var(--sp-2);
  background: linear-gradient(to bottom, transparent, var(--bg-base));
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.preview-cta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.preview-cta-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Hero features */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: left;
  backdrop-filter: none;
  box-shadow: none;
  transition: border-color var(--duration-md) var(--ease),
              transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
  /* Entrance animation */
  opacity: 0;
  animation: cardEntrance 0.55s var(--ease) forwards;
}

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

.hf-1 { animation-delay: 0.08s; }
.hf-2 { animation-delay: 0.2s; }
.hf-3 { animation-delay: 0.32s; }

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6),
              0 0 0 1px rgba(99,102,241,0.12);
  transform: perspective(700px) rotateX(-4deg) rotateY(4deg) translateZ(8px);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  display: block;
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   PROMOTIONAL SECTIONS (shown to logged-out users only)
   ============================================================ */

.promotional-section {
  padding: var(--sp-12) 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--sp-8);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  letter-spacing: -0.02em;
}

/* ============================================================
   TESTİMONİAL 3D CAROUSEL
   ============================================================ */

.testimonial-section {
  padding: var(--sp-12) 0;
  text-align: center;
}

.ts-carousel-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  margin: 0 auto;
  max-width: 820px;
}

/* 3D Stage */
.ts-stage {
  flex: 1;
  position: relative;
  height: 280px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-7) var(--sp-8);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.55s ease,
              box-shadow 0.55s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

/* Active: front, center */
.testimonial-slide.ts-active {
  transform: translateX(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 20px 48px -12px rgba(0,0,0,0.55),
              0 0 0 1px rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.25);
}

/* Right peek */
.testimonial-slide.ts-next {
  transform: translateX(62%) rotateY(-22deg) scale(0.87);
  opacity: 0.38;
  z-index: 2;
  box-shadow: none;
}

/* Left peek */
.testimonial-slide.ts-prev {
  transform: translateX(-62%) rotateY(22deg) scale(0.87);
  opacity: 0.38;
  z-index: 2;
  box-shadow: none;
}

/* Hidden */
.testimonial-slide.ts-hidden {
  transform: scale(0.75);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.ts-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  font-family: Georgia, serif;
  margin-bottom: var(--sp-2);
  display: block;
}

.ts-quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: var(--sp-5);
}

.ts-author-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ts-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-muted);
  border: 1px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.ts-author-info {
  flex: 1;
}

.ts-author-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.ts-author-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ts-stars {
  font-size: 0.875rem;
  color: #fbbf24;
  letter-spacing: 1px;
}

/* Stats row */
.ts-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-10);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-6) var(--sp-8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ts-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.ts-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

.ts-stat-num {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  /* Subtle gradient */
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .ts-stat-num {
  background: linear-gradient(135deg, #09090b 0%, #52525b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ts-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Legacy compat classes (mobile testimonials now hidden) */
.mobile-testimonials,
.testimonial-container,
.testimonial-stats {
  display: none;
}

/* ============================================================
   FEATURES SLİDER
   ============================================================ */

.interactive-features {
  text-align: center;
}

.features-slider-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
}

.features-slider-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.features-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Feature slide card */
.feature-slide {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-7);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
  min-height: 260px;
}

.feature-slide:hover {
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5),
              0 0 0 1px rgba(99,102,241,0.1);
  transform: translateY(-3px);
}

.fslide-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fslide-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.fslide-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.fslide-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ============================================================
   SLIDER ORTAK: OKLAR VE NOKTALAR
   ============================================================ */

/* Arrow buttons */
.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration), color var(--duration),
              border-color var(--duration), transform 0.2s var(--ease);
  z-index: 4;
}

.slider-arrow:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  transform: scale(1.08);
}

.slider-arrow:active {
  transform: scale(0.95);
}

/* Dots */
.slider-dots-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--duration-md), width var(--duration-md),
              border-color var(--duration-md);
  padding: 0;
  flex-shrink: 0;
}

.slider-dot.active {
  width: 24px;
  background: var(--accent);
  border-color: var(--accent);
}

/* Pricing comparison */
.pricing-comparison {
  text-align: center;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  position: relative;
  text-align: center;
  transform: none;
  box-shadow: none;
  backdrop-filter: none;
}

.comparison-card.highlighted {
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: none;
}

.competitor-card {
  opacity: 0.75;
}

.ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  animation: none;
  box-shadow: none;
}

.comparison-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
  letter-spacing: -0.03em;
}

.price-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -8px;
}

.feature-list {
  list-style: none;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Feature banner */
.feature-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-10);
  overflow: hidden;
  position: relative;
}

.banner-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
}

.banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
  letter-spacing: -0.02em;
}

.banner-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--sp-6);
}

.banner-stats {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.stat-item-inline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
  letter-spacing: -0.02em;
}

.stat-label-inline {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.banner-visual {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.floating-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  box-shadow: none;
  min-width: 160px;
  animation: floatCard 3.5s ease-in-out infinite;
}

.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1.1s; }
.card-3 { animation-delay: 2.2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.card-icon {
  font-size: 1.25rem;
}

.card-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Interactive features grid */
.interactive-features {
  text-align: center;
}

.mixed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: var(--sp-4);
  text-align: left;
}

/* Grid cards */
.large-card,
.medium-card,
.wide-card,
.tall-card,
.small-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  animation: none;
  box-shadow: none;
  backdrop-filter: none;
  transition: border-color var(--duration-md) var(--ease);
}

.large-card:hover,
.medium-card:hover,
.wide-card:hover,
.tall-card:hover,
.small-card:hover {
  border-color: var(--border-subtle);
  transform: none;
  box-shadow: none;
}

.large-card {
  grid-column: span 2;
  grid-row: span 2;
}

.wide-card {
  grid-column: span 2;
}

.tall-card {
  grid-row: span 2;
}

.gradient-card {
  background: var(--bg-surface);
}

.bounce-card,
.pulse-card,
.slide-card {
  animation: none;
}

.mega-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--sp-4);
}

.card-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.card-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

.card-features {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.feature-tag {
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.card-emoji {
  font-size: 1.75rem;
  display: block;
  margin-bottom: var(--sp-3);
}

.medium-card h4,
.small-card h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.medium-card p,
.small-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.slide-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.slide-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

/* Flip card — simplified */
.flip-card {
  perspective: 600px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  text-align: center;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--accent-muted);
  border-radius: var(--radius-lg);
}

.big-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--sp-3);
}

.flip-card-front h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.flip-card-back p {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.small-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.mini-icon {
  font-size: 1.25rem;
}

.mini-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */

.balance-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  backdrop-filter: none;
  box-shadow: none;
}

.balance-card h3 {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}

.balance-amount {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

#dashboardBalance {
  color: var(--text-primary);
}

.article-form-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  max-width: 680px;
  margin: 0 auto;
  backdrop-filter: none;
  box-shadow: none;
}

.form-header {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.form-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  text-shadow: none;
}

.form-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.article-form .form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Language selector */
.language-selector {
  position: relative;
}

.dropdown-container {
  position: relative;
}

.language-dropdown-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  cursor: pointer;
  outline: none;
  height: 40px;
  transition: border-color var(--duration) var(--ease);
  backdrop-filter: none;
  box-shadow: none;
}

.language-dropdown-btn:hover,
.language-dropdown-btn:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

[data-theme="light"] .language-dropdown-btn {
  background: #fff;
}

.selected-language {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.dropdown-arrow {
  font-size: 0.6875rem;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.language-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
  display: none;
  max-height: 280px;
}

.language-dropdown-menu.open {
  display: flex;
  flex-direction: column;
}

.language-search {
  width: 100%;
  padding: var(--sp-3);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
}

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

.language-options {
  overflow-y: auto;
  flex: 1;
}

.language-option {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.language-option:hover {
  background: var(--bg-elevated);
}

.language-option.selected {
  background: var(--accent-muted);
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   ARTICLES PAGE
   ============================================================ */

.articles-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
  backdrop-filter: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.filter-row {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  gap: var(--sp-2);
  flex: 1;
  min-width: 240px;
}

.search-box .form-input {
  flex: 1;
  height: 36px;
}

.filter-options {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}

.filter-options .form-select {
  height: 36px;
  width: auto;
  min-width: 140px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group input,
.filter-group select {
  height: 36px;
  min-width: 160px;
}

.tags-input {
  flex: 1;
}

.filter-actions {
  display: flex;
  gap: var(--sp-2);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.order-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color var(--duration-md) var(--ease);
  backdrop-filter: none;
  box-shadow: none;
}

.order-card:hover {
  border-color: var(--border-subtle);
  transform: none;
  box-shadow: none;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.order-header h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.order-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.order-details {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.order-details span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.order-details strong {
  color: var(--text-primary);
  font-weight: 600;
}

.order-meta {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}

.order-tags {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}

/* Tags */
.tag {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* SEO score */
.seo-score {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Favorite button */
.favorite-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.favorite-btn:hover {
  background: var(--bg-surface);
  transform: none;
}

.favorite-btn.active {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
}

/* ============================================================
   DEPOSITS PAGE
   ============================================================ */

.deposits-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.deposit-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  backdrop-filter: none;
  box-shadow: none;
  flex-wrap: wrap;
}

.deposit-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.deposit-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.deposit-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-6);
  max-width: 860px;
}

.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  backdrop-filter: none;
  box-shadow: none;
}

.profile-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  text-shadow: none;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-info p {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.profile-info p:last-child {
  border-bottom: none;
}

.profile-info strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.admin-stats .stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: left;
  backdrop-filter: none;
  box-shadow: none;
}

.admin-stats .stat-card h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
  text-shadow: none;
}

.admin-stats .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  text-shadow: none;
  animation: none;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  padding-bottom: 0;
}

.tab-btn {
  padding: var(--sp-2) var(--sp-4);
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  position: relative;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.tab-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 0;
  box-shadow: none;
}

.tab-content {
  min-height: 200px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Admin table */
.admin-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  backdrop-filter: none;
  font-size: 0.875rem;
}

.admin-table th,
.data-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.admin-table td,
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td,
.data-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td,
.data-table tr:hover td {
  background: var(--bg-elevated);
}

/* Admin settings */
.settings-category {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  backdrop-filter: none;
  box-shadow: none;
}

.settings-category h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  text-shadow: none;
}

/* Stripe settings */
.stripe-settings-header {
  margin-bottom: var(--sp-6);
}

.stripe-settings-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  text-shadow: none;
}

.stripe-settings-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stripe-config-section,
.stripe-status-section,
.stripe-help-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.stripe-config-section h4,
.stripe-status-section h4,
.stripe-help-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
}

.status-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
}

.status-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
}

.status-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.help-step strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.help-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* IP Whitelist */
.whitelist-header,
.ip-history-header,
.email-logs-header,
.activity-logs-header {
  margin-bottom: var(--sp-6);
}

.whitelist-header h3,
.ip-history-header h3,
.email-logs-header h3,
.activity-logs-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  text-shadow: none;
}

.whitelist-header p,
.ip-history-header p,
.email-logs-header p,
.activity-logs-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.email-logs-actions,
.activity-logs-actions {
  margin-top: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
}

.add-ip-form,
.whitelist-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.add-ip-form h4,
.whitelist-list h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.history-filters {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.history-results {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.activity-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.test-email-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.test-email-form h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.email-logs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

.badge,
.status-badge,
.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-success,
.status-success,
.action-success {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning,
.status-pending,
.action-pending {
  background: var(--warning-muted);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger,
.status-error,
.action-error {
  background: var(--danger-muted);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-default {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  padding: var(--sp-6);
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

/* When shown by JS (style.display = 'block'), center content */
.modal[style*="block"] {
  display: flex !important;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  width: 100%;
  max-width: 480px;
  margin: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 200ms var(--ease);
}

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

.modal-content h2,
.modal h2 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: var(--sp-5) !important;
  text-shadow: none !important;
  background: none !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  letter-spacing: -0.01em;
}

.modal-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Close button */
.close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  cursor: pointer;
  float: none;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
  text-shadow: none;
  line-height: 1;
  border: 1px solid var(--border);
}

.close:hover {
  background: var(--danger-muted);
  color: var(--danger);
  text-shadow: none;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Large modal */
.modal-content.large {
  max-width: 720px;
}

/* Extra large (article view) */
.modal-content.extra-large {
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
}

/* Form in modal */
.modal-content .form-group {
  margin-bottom: var(--sp-4);
}

.form-links {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  text-align: center;
}

.form-links a {
  font-size: 0.875rem;
  color: var(--accent);
}

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

/* ============================================================
   ARTICLE VIEW MODAL
   ============================================================ */

.article-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.article-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  line-height: 1.4;
}

.article-modal-meta {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.article-toolbar {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.article-toolbar .btn-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.article-toolbar .btn-icon:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.article-toolbar .dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 300;
  min-width: 160px;
  overflow: hidden;
}

.dropdown-item {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.article-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-content {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-y: auto;
  flex: 1;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-primary);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-content h1 { font-size: 1.75rem; }
.article-content h2 { font-size: 1.375rem; }
.article-content h3 { font-size: 1.125rem; }

.article-content p {
  margin-bottom: var(--sp-4);
  color: var(--text-primary);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-6);
  color: var(--text-primary);
}

.article-content li {
  margin-bottom: var(--sp-2);
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-5);
  background: var(--accent-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-style: italic;
  color: var(--text-secondary);
}

.article-editor {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: var(--sp-5);
  flex: 1;
  resize: none;
  outline: none;
  line-height: 1.7;
}

.article-editor:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Article footer in modal */
.article-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Tags in article modal */
.article-tags-container {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}

.add-tag-input {
  height: 28px;
  padding: 0 var(--sp-2);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8125rem;
  outline: none;
  width: 120px;
}

.add-tag-input:focus {
  border-color: var(--border-focus);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  top: var(--sp-5);
  right: var(--sp-5);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 360px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-md);
  animation: toastSlideIn 200ms var(--ease);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.5;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 3px solid var(--success);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.toast.warning {
  border-left: 3px solid var(--warning);
}

.toast.info {
  border-left: 3px solid var(--info);
}

/* ============================================================
   ARTICLE PROGRESS POPUP
   ============================================================ */

.article-progress-popup {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  width: 320px;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  backdrop-filter: none;
  animation: toastSlideIn 200ms var(--ease);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}

.progress-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: none;
}

.progress-percentage {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-bar-wrapper {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: none;
  animation: none;
}

.progress-step {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.btn-view-article {
  display: none;
  width: 100%;
  padding: var(--sp-2) var(--sp-4);
  height: 36px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  animation: none;
  transition: background var(--duration) var(--ease);
}

.btn-view-article:hover {
  background: var(--accent-hover);
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */

#loadingOverlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  text-align: center;
  padding: var(--sp-8);
}

.loading-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  animation: none;
  text-shadow: none;
  letter-spacing: -0.02em;
}

.loading-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.loading-particles {
  display: none;
}

.typing-dots {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: none;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
  max-width: 320px;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.progress-step-item.active {
  color: var(--text-primary);
}

.progress-step-item.done {
  color: var(--success);
}

.overlay-progress-bar {
  width: 100%;
  max-width: 320px;
}

.overlay-progress-bar .loading-bar {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.overlay-progress-bar .loading-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  flex-wrap: wrap;
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--duration), color var(--duration),
              border-color var(--duration);
}

.pagination-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.pagination-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   INVOICE MODAL
   ============================================================ */

.invoice-preview {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.invoice-company {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.invoice-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-4);
}

.invoice-table th {
  text-align: left;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.invoice-table td {
  padding: var(--sp-3);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.invoice-total {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-4);
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

/* ============================================================
   STRIPE PAYMENT MODAL
   ============================================================ */

#stripe-card-element,
.stripe-card-element {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  transition: border-color var(--duration) var(--ease);
}

#stripe-card-element:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.stripe-error {
  color: var(--danger);
  font-size: 0.8125rem;
  margin-top: var(--sp-2);
}

/* ============================================================
   EMAIL VERIFICATION MODAL
   ============================================================ */

.verification-code-inputs {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin: var(--sp-5) 0;
}

.verification-code-inputs input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration) var(--ease);
}

.verification-code-inputs input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ============================================================
   ADD FUNDS / BANK TRANSFER MODALS
   ============================================================ */

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.amount-option {
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  color: var(--text-primary);
  transition: background var(--duration), border-color var(--duration);
}

.amount-option:hover,
.amount-option.selected {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
}

.bank-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.bank-detail:last-child {
  border-bottom: none;
}

.bank-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.bank-detail-value {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.copy-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.75rem;
  transition: background var(--duration), color var(--duration);
}

.copy-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ============================================================
   ABOUT / FAQ / TERMS PAGES
   ============================================================ */

.about-content,
.faq-content,
.terms-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content h2,
.faq-content h2,
.terms-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.about-content p,
.faq-content p,
.terms-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}

.faq-question {
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-surface);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--duration) var(--ease);
}

.faq-question:hover {
  background: var(--bg-elevated);
}

.faq-answer {
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--sp-16);
  background: var(--bg-base);
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-8);
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.footer-section p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--sp-4) var(--sp-6);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: var(--sp-2);
}

/* ============================================================
   SCROLLBARS
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-subtle);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.hidden { display: none !important; }

.card-surface {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--sp-4);
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

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

/* Warning/info boxes */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.alert-warning {
  background: var(--warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.alert-danger {
  background: var(--danger-muted);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.alert-success {
  background: var(--success-muted);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
}

/* ============================================================
   KEYFRAME ANIMATIONS (only necessary ones)
   ============================================================ */

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

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-surface) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .mixed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .large-card {
    grid-column: span 2;
  }

  .banner-content {
    grid-template-columns: 1fr;
  }

  .banner-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--sp-4);
    gap: var(--sp-3);
  }

  .gooey-nav-container nav ul {
    gap: 0;
  }

  .gooey-nav-container nav ul li a {
    padding: var(--sp-2) var(--sp-2);
    font-size: 0.8125rem;
  }

  .container {
    padding: var(--sp-6) var(--sp-4);
  }

  .hero {
    padding: var(--sp-10) var(--sp-4) var(--sp-8);
  }

  .hero-title {
    font-size: 2rem;
  }

  .preview-form {
    flex-direction: column;
  }

  .preview-input {
    min-width: unset;
  }

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

  .large-card {
    grid-column: span 2;
    grid-row: auto;
  }

  .wide-card {
    grid-column: span 2;
  }

  .tall-card {
    grid-row: auto;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
    display: none;
  }

  .mobile-testimonials {
    display: block;
  }

  .balance-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .article-form-container {
    padding: var(--sp-5);
  }

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

  .modal-content {
    padding: var(--sp-5);
  }

  .modal-content.extra-large {
    height: 95vh;
    max-width: 100%;
    padding: var(--sp-4);
  }

  .article-progress-popup {
    width: calc(100vw - 32px);
    bottom: var(--sp-4);
    right: var(--sp-4);
    left: var(--sp-4);
  }
}

@media (max-width: 600px) {
  .mixed-grid {
    grid-template-columns: 1fr;
  }

  .large-card,
  .wide-card {
    grid-column: auto;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    flex-direction: row;
  }

  .filter-options {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-options .form-select {
    min-width: unset;
    width: 100%;
  }

  .order-header {
    flex-direction: column;
  }

  .order-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0;
  }

  .tab-btn {
    flex-shrink: 0;
  }

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

  .profile-container {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .toast-container {
    left: var(--sp-4);
    right: var(--sp-4);
    top: var(--sp-4);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 var(--sp-3);
    gap: var(--sp-2);
  }

  .logo {
    font-size: 0.875rem;
  }

  .gooey-nav-container nav ul li a {
    font-size: 0.75rem;
    padding: var(--sp-1) var(--sp-2);
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero {
    padding: var(--sp-8) var(--sp-3) var(--sp-6);
  }

  .preview-section {
    padding: var(--sp-5);
  }

  .section-title {
    font-size: 1.375rem;
  }

  .banner-title {
    font-size: 1.25rem;
  }

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

  .admin-stats .stat-value {
    font-size: 1.375rem;
  }

  .verification-code-inputs input {
    width: 38px;
    height: 44px;
    font-size: 1.125rem;
  }

  .modal-content {
    padding: var(--sp-4);
    border-radius: var(--radius-lg);
  }

  .btn-large {
    height: 40px;
    font-size: 0.875rem;
  }
}

/* ============================================================
   MISC — dynamically rendered content
   ============================================================ */

/* Deposit confirmation info box */
.deposit-info-box {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin: var(--sp-4) 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* User management section in admin */
.user-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.user-email {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.user-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Admin order rows */
.admin-order-row {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.admin-order-row:last-child {
  border-bottom: none;
}

/* Article word count display */
.word-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Payment method cards in add funds modal */
.payment-method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.payment-method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration), background var(--duration);
  background: var(--bg-base);
}

.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.payment-method-card .pm-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: var(--sp-2);
}

.payment-method-card .pm-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.payment-method-card .pm-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Revision modal */
.revision-info {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Delete confirmation */
.delete-warning {
  background: var(--danger-muted);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: 0.875rem;
  color: #f87171;
}

/* Inline spinner for buttons */
.btn .spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

/* Copy success flash */
@keyframes flashGreen {
  0% { color: var(--success); }
  100% { color: var(--text-secondary); }
}

.copy-success {
  animation: flashGreen 1s ease;
}

/* ============================================================
   ADDITIONAL DYNAMIC CLASSES
   ============================================================ */

/* Empty / no-data state */
.no-data {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* btn-light alias */
.btn-light {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-light:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* btn-danger-active (delete confirm state) */
.btn-danger-active {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Payment methods in Add Funds modal */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin: var(--sp-4) 0;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--duration), background var(--duration);
  text-align: center;
  font-family: var(--font-sans);
}

.payment-method-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.method-icon {
  font-size: 2rem;
}

.method-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Bank details */
.bank-details {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: var(--sp-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.bank-details p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.bank-details p:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bank-details p strong {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 80px;
}

.bank-details p span {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.important {
  background: var(--warning-muted);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4) !important;
  color: var(--warning) !important;
  font-size: 0.875rem;
  display: block !important;
  justify-content: flex-start !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2) !important;
}

/* Btn copy */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px var(--sp-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration), color var(--duration);
  font-family: var(--font-sans);
}

.btn-copy:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Article header in modal */
.article-header {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
  flex-shrink: 0;
}

.article-header h2 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: var(--sp-2) !important;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.article-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-seo-score {
  display: flex;
  align-items: center;
}

.seo-badge {
  background: var(--success-muted);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Article toolbar layout */
.toolbar-left,
.toolbar-right {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}

.toolbar-right {
  margin-left: auto;
}

/* Article footer */
.article-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: var(--sp-3);
}

/* Dropdown open/show state */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
}

.dropdown.show .dropdown-menu,
.dropdown-open .dropdown-menu {
  display: block;
}

/* Help text (small notice below input or in modal) */
.help-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: var(--sp-2) 0;
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

/* Help section in verification modal */
.help-section {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
}

.help-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.help-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.help-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: var(--sp-4);
  position: relative;
}

.help-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Revision modal components */
.revision-info-panel {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.revision-stats {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.stat-item {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.revision-examples {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.revision-examples h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.template-buttons {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.template-btn {
  padding: var(--sp-1) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--duration), color var(--duration),
              border-color var(--duration);
}

.template-btn:hover {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Payment summary in Stripe modal */
.payment-summary {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.payment-summary h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-row span {
  color: var(--text-muted);
}

.payment-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Mobile device class (added by JS) */
body.mobile-device .navbar {
  padding: 0;
}

/* FAQ active state */
.faq-item.active .faq-answer {
  display: block;
}

.faq-item:not(.active) .faq-answer {
  display: none;
}

/* Admin inline forms */
.inline-form {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

/* Delete user modal */
.delete-user-info {
  background: var(--danger-muted);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
  font-size: 0.875rem;
  color: #f87171;
}

/* Dynamic order card action buttons */
.btn-view-order,
.btn-download-order {
  height: 30px;
  padding: 0 var(--sp-3);
  font-size: 0.8125rem;
}

/* Gooey nav — ensure nav text colors are right */
[data-theme="light"] .gooey-nav-container nav ul li a {
  color: var(--text-secondary);
}

[data-theme="light"] .gooey-nav-container nav ul li.active a {
  color: var(--text-primary);
}

/* Admin settings form */
#admin-settings .form-group {
  max-width: 480px;
}

/* Table action buttons */
.table-actions {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

/* Loading indicator in tables */
.table-loading {
  text-align: center;
  padding: var(--sp-8);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Stripe card element container */
.card-element-container {
  margin-bottom: var(--sp-4);
}

.card-element-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
  display: block;
}

/* Payment instructions h3 in add funds */
#paymentMethodSelection h3,
#paymentInstructions h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

/* Activity logs container */
.activity-logs-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Whois / IP table */
#whitelistTable,
#historyTable,
#emailLogsTable,
#activityLogsTable {
  overflow-x: auto;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table-wrapper .admin-table,
.table-wrapper .data-table {
  border: none;
  border-radius: 0;
}

/* Print styles */
@media print {
  .navbar,
  .article-toolbar,
  .article-footer,
  .close {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .article-content {
    border: none;
    padding: 0;
  }
}
