/* ==========================================
   Ethalixx Studio — Theme Cyan/Purple/Dark
   Premium redesign — Vercel/Linear inspired
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,500;0,600;1,300&display=swap');

:root {
  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  /* Couleurs Ethalixx - Cyan/Violet/Sombre */
  --bg-void:    #06060e;
  --bg-base:    #0a0a18;
  --bg-surface: #0e0e20;
  --bg-elevated:#141428;
  --bg-card:    #111122;
  --bg-card-hover: #181832;
  --bg-glass:   rgba(100,200,255,0.03);

  --accent-cyan:    #00d4ff;
  --accent-purple:  #8b5cf6;
  --accent-pink:    #c471ed;
  --accent-gold:    #f5a623;
  --accent-danger:  #ff4d6d;
  --accent-success: #00d4a0;

  /* Gradient principal du logo */
  --grad-main:  linear-gradient(135deg, #00d4ff, #8b5cf6, #c471ed);
  --grad-text:  linear-gradient(135deg, #5de0e6, #8b5cf6);
  --grad-glow:  rgba(0,212,255,0.15);
  --grad-purple-glow: rgba(139,92,246,0.15);

  --text-primary:   #e8f4ff;
  --text-secondary: #8aa4c8;
  --text-muted:     #4a5a78;
  --text-inverse:   #06060e;

  --border-subtle:  rgba(0,212,255,0.06);
  --border-default: rgba(0,212,255,0.12);
  --border-emphasis:rgba(0,212,255,0.35);
  --border-purple:  rgba(139,92,246,0.35);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-full:999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-cyan: 0 0 40px rgba(0,212,255,0.15);
  --shadow-purple: 0 0 40px rgba(139,92,246,0.15);

  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base: 250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 400ms cubic-bezier(0.4,0,0.2,1);

  --sidebar-width: 240px;
  --nav-height: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Noise texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 99px; }

::selection { background: rgba(0,212,255,0.25); color: var(--text-primary); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-purple); }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6,6,14,0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.5rem;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

/* Scrolled state — added via JS */
.navbar.scrolled {
  background: rgba(6,6,14,0.95);
  border-bottom-color: var(--border-default);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0,0,0,0.4);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.navbar-brand img.brand-logo {
  height: 36px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.07);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}
.nav-dropdown.open .nav-dropdown-toggle::after { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.nav-dropdown-item:hover {
  background: rgba(0,212,255,0.07);
  color: var(--accent-cyan);
}
.nav-dropdown-item .di-icon { font-size: 1rem; }
.nav-dropdown-item .di-info { display: flex; flex-direction: column; }
.nav-dropdown-item .di-label { font-weight: 600; font-size: 0.875rem; }
.nav-dropdown-item .di-desc { font-size: 0.75rem; color: var(--text-muted); }

.nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.35rem 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: 5px;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--accent-cyan); color: var(--bg-void); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Auth nav buttons */
.nav-auth-btns { display: flex; align-items: center; gap: 0.5rem; }
.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 5px 14px 5px 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nav-user-pill:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.nav-user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 5rem) 2rem 7rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  animation: orb-float 10s ease-in-out infinite;
}
.hero-orb-1 {
  width: 800px; height: 800px;
  background: var(--accent-cyan);
  top: -300px; left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 600px; height: 600px;
  background: var(--accent-purple);
  bottom: -120px; right: -180px;
  animation: orb-float2 12s ease-in-out infinite;
  animation-delay: -4s;
  opacity: 0.1;
}
.hero-orb-3 {
  width: 400px; height: 400px;
  background: var(--accent-pink);
  top: 30%; left: -120px;
  animation: orb-float2 9s ease-in-out infinite;
  animation-delay: -7s;
  opacity: 0.08;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-50px) translateX(-50%); }
}
@keyframes orb-float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 2.25rem;
  animation: fade-up 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-title {
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.75rem;
  animation: fade-up 0.6s ease 0.1s both;
  letter-spacing: 0.01em;
}
.hero-title-accent {
  background: linear-gradient(135deg, #5de0e6 0%, #8b5cf6 50%, #c471ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0,212,255,0.35));
}

.hero-subtitle {
  font-size: 1.175rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fade-up 0.6s ease 0.2s both;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.6s ease 0.3s both;
}

/* Hero inline stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  animation: fade-up 0.6s ease 0.45s both;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.03em;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.hero-stats-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  gap: 0;
  flex-wrap: wrap;
}
.stats-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 3rem;
  border-right: 1px solid var(--border-subtle);
  flex: 1;
  min-width: 140px;
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}
.stats-bar-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════
   FEATURE CARDS
═══════════════════════════════════════ */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(0,212,255,0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan), 0 16px 40px rgba(0,0,0,0.4);
  border-color: var(--border-default);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(139,92,246,0.12));
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.feature-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.07) 0%, rgba(139,92,246,0.1) 50%, rgba(196,113,237,0.07) 100%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.cta-section p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   TRUST LOGOS
═══════════════════════════════════════ */
.trust-logos {
  text-align: center;
  padding: 3rem 0;
}
.trust-logos-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.trust-logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-logo-item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}
.trust-logo-item:hover { opacity: 0.9; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Shimmer effect on btn-primary */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(0,212,255,0.25);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 160%; }
.btn-primary:hover {
  box-shadow: 0 6px 36px rgba(0,212,255,0.45);
  filter: brightness(1.1);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.05);
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn-danger {
  background: rgba(255,77,109,0.1);
  color: var(--accent-danger);
  border-color: rgba(255,77,109,0.3);
}
.btn-danger:hover { background: rgba(255,77,109,0.2); }

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.82rem; }
.btn-lg { padding: 0.95rem 2.4rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.badge-new      { background: rgba(245,166,35,0.15);   color: var(--accent-gold);    border: 1px solid rgba(245,166,35,0.3); }
.badge-featured { background: rgba(0,212,255,0.12);    color: var(--accent-cyan);    border: 1px solid rgba(0,212,255,0.3); }
.badge-free     { background: rgba(0,212,160,0.12);    color: var(--accent-success); border: 1px solid rgba(0,212,160,0.3); }
.badge-premium  { background: rgba(139,92,246,0.15);   color: var(--accent-purple);  border: 1px solid rgba(139,92,246,0.3); }

/* ═══════════════════════════════════════
   SECTION LAYOUT
═══════════════════════════════════════ */
.section { padding: 6rem 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
  letter-spacing: 0.03em;
}
.section-title .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ═══════════════════════════════════════
   PLUGIN CARDS
═══════════════════════════════════════ */
.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  animation: fade-up 0.5s ease both;
}

/* Gradient border on hover via pseudo-element */
.plugin-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}
.plugin-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.1), var(--shadow-cyan), 0 20px 50px rgba(0,0,0,0.55);
}
.plugin-card:hover::after { opacity: 1; }

.plugin-card.is-featured {
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(160deg, rgba(0,212,255,0.04), var(--bg-card));
}

.card-image {
  width: 100%; height: 188px;
  object-fit: cover;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.plugin-card:hover .card-image img { transform: scale(1.07); }
.card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), rgba(0,212,255,0.06));
  font-size: 3.5rem;
}

.card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.card-body { padding: 1.4rem; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.card-version { font-size: 0.75rem; color: var(--text-muted); font-family: monospace; }
.card-clicks  { font-size: 0.78rem; color: var(--accent-cyan); }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tag {
  font-size: 0.7rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.tag:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); cursor: pointer; }
.tag.active { background: rgba(0,212,255,0.1); border-color: var(--accent-cyan); color: var(--accent-cyan); }

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

/* Most popular section */
.popular-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-void) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.popular-header-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.popular-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(139,92,246,0.2));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* ═══════════════════════════════════════
   SEARCH & FILTERS
═══════════════════════════════════════ */
.plugins-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; pointer-events: none; }
.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.search-input::placeholder { color: var(--text-muted); }

.filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
}
.filter-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.filter-btn.active { background: var(--accent-cyan); border-color: var(--accent-cyan); color: var(--bg-void); }

.sort-select {
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.sort-select:focus { outline: none; border-color: var(--accent-cyan); }

/* ═══════════════════════════════════════
   PLUGIN DETAIL PAGE
═══════════════════════════════════════ */
.plugin-detail-wrap { padding-top: calc(var(--nav-height) + 2rem); min-height: 100vh; }
.plugin-hero { background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 3rem 0; }
.plugin-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.plugin-header-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.plugin-header-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.plugin-header-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--text-secondary); }
.meta-label { color: var(--text-muted); font-size: 0.8rem; }

.plugin-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-width: 240px;
  display: flex; flex-direction: column; gap: 0.875rem;
}

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; cursor: pointer; border: 1px solid var(--border-subtle); transition: all var(--transition-base); }
.gallery-item:hover { border-color: var(--accent-cyan); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.plugin-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 3rem 0; }
.content-block { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem; }
.content-block h3 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-subtle); }
.content-block p { color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }
.changelog-entry { margin-bottom: 1.25rem; padding-left: 1rem; border-left: 2px solid var(--accent-cyan); }
.changelog-entry h4 { font-size: 0.9rem; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.changelog-entry p { font-size: 0.875rem; color: var(--text-secondary); }

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity var(--transition-base); }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-primary); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.lightbox-close:hover { background: var(--accent-danger); border-color: var(--accent-danger); }

/* ═══════════════════════════════════════
   AUTH MODAL (Inscription / Connexion)
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 460px;
  margin: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--transition-base);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { font-size: 1.3rem; letter-spacing: 0.03em; }
.modal-close {
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--accent-danger); border-color: var(--accent-danger); color: #fff; }

.modal-body { padding: 1.75rem; }
.modal-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-subtle); margin-bottom: 1.75rem; }
.modal-tab {
  flex: 1; padding: 0.75rem; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  letter-spacing: 0.04em;
}
.modal-tab.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }

.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.45rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.7rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group.full { grid-column: 1 / -1; }

.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-cyan); cursor: pointer; flex-shrink: 0; }
.form-check span { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.4; }
.form-check a { color: var(--accent-cyan); }

.form-error { font-size: 0.8rem; color: var(--accent-danger); margin-top: 0.4rem; display: none; }
.form-error.visible { display: block; }

.auth-divider { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 1.2rem 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border-subtle); }
.auth-divider span { background: var(--bg-surface); padding: 0 1rem; position: relative; }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #fff; color: #3c4043; border: 1px solid #dadce0;
  font-weight: 500; font-size: 0.9rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 4px rgba(0,0,0,0.15); color: #3c4043; }
.btn-google svg { flex-shrink: 0; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-alert.error { background: rgba(255,77,109,0.1); border: 1px solid rgba(255,77,109,0.25); color: var(--accent-danger); }
.auth-alert.success { background: rgba(0,212,160,0.1); border: 1px solid rgba(0,212,160,0.25); color: var(--accent-success); }
.auth-alert.visible { display: block; }

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-purple), transparent);
  opacity: 0.4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.875rem;
  max-width: 280px;
  line-height: 1.7;
}
.footer-brand-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.footer-logo img { height: 32px; width: auto; }

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 1.25rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.social-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.07);
  transform: translateY(-2px);
}

/* Admin hidden link at the very bottom */
.footer-admin-link {
  font-size: 0.72rem;
  color: transparent;
  transition: color 0.3s;
  cursor: pointer;
  user-select: none;
}
.footer-admin-link:hover { color: var(--text-muted); }

/* ═══════════════════════════════════════
   ADMIN LAYOUT
═══════════════════════════════════════ */
.admin-wrap { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto; z-index: 50;
  display: flex; flex-direction: column;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0.5rem 1.5rem 1.5rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary); text-decoration: none;
  border-bottom: 1px solid var(--border-subtle); margin-bottom: 1rem;
}
.sidebar-nav { padding: 0 0.75rem; flex: 1; }
.sidebar-section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; padding: 0.75rem 0.75rem 0.4rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 0.625rem 0.875rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text-secondary);
  text-decoration: none; transition: all var(--transition-fast);
  margin-bottom: 2px; cursor: pointer; background: none; border: none;
  width: 100%; font-family: var(--font-body);
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(0,212,255,0.08); color: var(--accent-cyan); }
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; }
.sidebar-footer { padding: 1rem 0.75rem 0; border-top: 1px solid var(--border-subtle); margin-top: auto; }

.admin-main { margin-left: var(--sidebar-width); padding: 2rem; min-height: 100vh; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.5rem; }
.admin-header-sub { color: var(--text-secondary); font-size: 0.875rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; opacity: 0.07; }
.stat-card.cyan::before   { background: var(--accent-cyan); }
.stat-card.purple::before { background: var(--accent-purple); }
.stat-card.gold::before   { background: var(--accent-gold); }
.stat-card.danger::before { background: var(--accent-danger); }
.stat-card-icon { font-size: 1.5rem; margin-bottom: 0.875rem; }
.stat-card-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 0.25rem; }
.stat-card.cyan .stat-card-number   { color: var(--accent-cyan); }
.stat-card.purple .stat-card-number { color: var(--accent-purple); }
.stat-card.gold .stat-card-number   { color: var(--accent-gold); }
.stat-card.danger .stat-card-number { color: var(--accent-danger); }
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); }

.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table-header { padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); }
.admin-table-header h3 { font-size: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 0.75rem 1rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); text-align: left; }
.admin-table td { padding: 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,212,255,0.02); }
.admin-table-actions { display: flex; gap: 6px; }

/* ═══════════════════════════════════════
   EMAIL COMPOSER (admin)
═══════════════════════════════════════ */
.email-composer {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
}
.email-composer h3 { margin-bottom: 1.25rem; font-size: 1.1rem; }
.email-preview-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  min-height: 100px;
}
.email-send-info {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; }
.login-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: 3rem; width: 100%; max-width: 400px; position: relative; z-index: 1; box-shadow: var(--shadow-lg), var(--shadow-cyan); }
.login-card .logo-wrap { text-align: center; margin-bottom: 2rem; }
.login-card h1 { font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; }
.login-card .subtitle { color: var(--text-secondary); text-align: center; font-size: 0.875rem; margin-bottom: 2rem; }

/* ═══════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════ */
.legal-wrap {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  min-height: 100vh;
}
.legal-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-date { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.25rem; margin: 2.5rem 0 1rem;
  color: var(--accent-cyan); letter-spacing: 0.03em;
}
.legal-content h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
.legal-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.legal-content ul { color: var(--text-secondary); line-height: 1.8; margin: 0.5rem 0 1rem 1.5rem; font-size: 0.95rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent-cyan); }
.legal-content strong { color: var(--text-primary); }

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1.5rem;
  z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 0.875rem 1.25rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  pointer-events: all;
  transform: translateX(120%);
  transition: transform var(--transition-base);
  display: flex; align-items: center; gap: 10px;
  min-width: 260px; max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(0); }
.toast-success { background: rgba(0,212,160,0.12); border: 1px solid rgba(0,212,160,0.3); color: var(--accent-success); }
.toast-error   { background: rgba(255,77,109,0.12); border: 1px solid rgba(255,77,109,0.3); color: var(--accent-danger); }
.toast-info    { background: rgba(0,212,255,0.1);   border: 1px solid rgba(0,212,255,0.3);  color: var(--accent-cyan); }

/* ═══════════════════════════════════════
   STATES
═══════════════════════════════════════ */
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem; gap: 1.25rem; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--bg-elevated); border-top-color: var(--accent-cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-text { color: var(--text-muted); font-size: 0.875rem; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem 2rem; text-align: center; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.35; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); font-size: 0.875rem; }

/* ═══════════════════════════════════════
   ANALYTICS BAR
═══════════════════════════════════════ */
.bar-chart { margin-top: 1rem; }
.bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.bar-label { width: 150px; font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; background: var(--bg-elevated); border-radius: 99px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); border-radius: 99px; transition: width 0.8s ease; }
.bar-value { width: 50px; font-size: 0.8rem; color: var(--text-muted); text-align: right; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); box-shadow: 0 0 10px currentColor; } }
@keyframes spin { to { transform: rotate(360deg); } }

.page-main { padding-top: var(--nav-height); min-height: 100vh; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .plugin-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plugin-hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .navbar-nav {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column; padding: 1rem; gap: 0.25rem;
  }
  .navbar-nav.open { display: flex; }
  .hamburger { display: flex; }
  .plugins-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .nav-dropdown-menu { left: 0; transform: translateX(0) translateY(-8px); }
  .nav-dropdown.open .nav-dropdown-menu { transform: translateX(0) translateY(0); }
  .hero-title { font-size: clamp(2.4rem, 9vw, 4rem); }
  .stats-bar-item { padding: 0.75rem 1.5rem; }
  .hero-stats { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; }
  .stats-bar-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stats-bar-item:last-child { border-bottom: none; }
}

/* AdSense */
.adsense-wrap { text-align: center; padding: 1rem 0; }
