:root {
  --primary-color: #00d4ff;
  --secondary-color: #0066ff;
  --dark-bg: #0a0e27;
  --darker-bg: #050814;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --accent-purple: #b24bf3;
  --accent-pink: #ff3366;
  --neon-green: #00ff88;
  --gradient-blue: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --gradient-neon: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--darker-bg);
  color: var(--text-light);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--darker-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-blue);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* ---------- Layout ---------- */
.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container main {
  flex: 1;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ---------- Texte en dégradé ---------- */
.gradient-text {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Titres de section ---------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Boutons ---------- */
.btn-custom {
  position: relative;
  display: inline-block;
  padding: 12px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 50px;
  background: var(--gradient-blue);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #00d4ff80;
  color: #fff;
}

.btn-outline-custom {
  display: inline-block;
  padding: 12px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-outline-custom:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00d4ff4d;
  color: var(--primary-color);
}

/* ---------- Cartes glassmorphism ---------- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px #00d4ff4d;
}

/* ---------- Badge ---------- */
.badge-neon {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ---------- Navbar ---------- */
.navbar-custom {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar-custom.scrolled {
  background: rgba(5, 8, 20, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 0;
}

.navbar-custom .container-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 900;
}

.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050814;
  font-weight: 900;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

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

.nav-icon {
  font-size: 1rem;
}

.nav-cta {
  margin-left: 10px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.mobile-menu {
  display: none;
}

/* ---------- Sélecteur de langues ---------- */
.lang-selector {
  position: relative;
}

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-gray);
  padding: 7px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.lang-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 150px;
  z-index: 1100;
  box-shadow: 0 10px 30px #0005;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.lang-item:hover,
.lang-item.active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mockup téléphone */
.hero-phone-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  background: linear-gradient(160deg, #12162e 0%, #0a0e1a 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  padding: 15px;
  position: relative;
  box-shadow: 0 20px 60px #00d4ff33, 0 0 40px rgba(0, 212, 255, 0.15) inset;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.12), transparent 70%), #050814;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.screen-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

.phone-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: #050814;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
}

.phone-label {
  position: relative;
  z-index: 2;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

/* ---------- Bandeau services ---------- */
.services-banner {
  max-width: 1140px;
  margin: 110px auto 0;
  padding: 15px 25px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(178, 75, 243, 0.18));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  animation: servicesPulse 2.5s ease-in-out infinite;
}

.services-banner:hover {
  box-shadow: 0 0 35px #00d4ff99;
}

.services-banner .badge-new {
  background: var(--gradient-neon);
  color: #050814;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.services-banner-text {
  font-weight: 600;
}

.services-banner-sub {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.services-banner-cta {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Promo banner ---------- */
.promo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  color: #fff;
  padding: 8px 40px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 0.9rem;
  font-weight: 600;
}

.promo-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.promo-close {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
}

.promo-close:hover {
  opacity: 1;
}

/* ---------- Features (home) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.feature-icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats-section {
  padding: 80px 0;
}

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

.stat-card {
  text-align: center;
  padding: 35px 20px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ---------- Avis ---------- */
.reviews-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a0e27, #0a0e1a);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.review-card {
  padding: 25px;
}

.review-stars {
  color: #ffc107;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-text {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050814;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
}

.author-date {
  color: var(--text-gray);
  font-size: 0.8rem;
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(103, 58, 183, 0.12));
  border: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 0 20px 60px #00d4ff66;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.cta-text {
  color: var(--text-gray);
  font-size: 1.2rem;
  margin-bottom: 35px;
}

/* ---------- Footer ---------- */
.footer-custom {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.9) 50%, rgba(5, 8, 20, 1) 100%);
  padding: 60px 0 30px;
  position: relative;
  text-align: center;
}

.footer-wave {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  animation: waveFloat 4s ease-in-out infinite;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-gray);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.3);
  color: #fff;
  font-size: 1.2rem;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #5865f2;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px #5865f24d;
  color: #fff;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 25px 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--text-gray);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-separator {
  opacity: 0.4;
}

.copyright {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.heart-icon {
  color: var(--accent-pink);
  animation: pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

/* ---------- Page header (features, pricing...) ---------- */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.page-subtitle {
  color: var(--text-gray);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Features page ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.module-card {
  padding: 35px;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-neon);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.module-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.module-card > p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.module-list {
  margin-bottom: 20px;
}

.module-list li {
  color: var(--text-gray);
  font-size: 0.9rem;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-list li::before {
  content: "✓";
  color: var(--neon-green);
  font-weight: 800;
}

.module-stat {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-gray);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background: var(--gradient-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px #00d4ff66;
}

.save-badge {
  background: var(--neon-green);
  color: #050814;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.trial-badge {
  text-align: center;
  margin-bottom: 30px;
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 45px 40px;
  position: relative;
  border: 2px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 20px 60px #00d4ff66;
}

.pricing-card.popular {
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.1), rgba(103, 58, 183, 0.08));
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-neon);
  color: #050814;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.plan-name {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.plan-description {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.plan-price {
  text-align: center;
  margin-bottom: 30px;
}

.plan-price .amount {
  font-size: 4rem;
  font-weight: 900;
}

.plan-price .period {
  color: var(--text-gray);
  font-size: 1rem;
}

.plan-features {
  margin-bottom: 35px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.plan-features li .check {
  color: var(--neon-green);
  font-weight: 800;
}

.plan-features li.highlight {
  color: var(--text-light);
  font-weight: 600;
}

.plan-cta {
  width: 100%;
}

.comparison-table {
  max-width: 800px;
  margin: 60px auto 0;
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th {
  font-weight: 700;
  color: var(--primary-color);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  color: var(--text-light);
}

.comparison-table td {
  color: var(--text-gray);
}

.comparison-table .yes {
  color: var(--neon-green);
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 15px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-family: inherit;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-chevron.open {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-gray);
  line-height: 1.7;
  font-size: 0.95rem;
  padding: 0 25px;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 25px 22px;
}

/* ---------- Download ---------- */
.download-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 45px;
  text-align: center;
}

.download-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: inline-block;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.progress-bar-custom {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 25px 0 10px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-neon);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.progress-text {
  color: var(--text-gray);
  font-size: 0.85rem;
}

.install-steps {
  max-width: 700px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}

.install-step h4 {
  font-weight: 700;
  margin-bottom: 4px;
}

.install-step p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.ios-alert {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 15px 25px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffc107;
  text-align: center;
  font-size: 0.95rem;
}

.ios-alert a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* ---------- Tutorial ---------- */
.tutorial-steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutorial-step {
  border-radius: 15px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.tutorial-step:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.tutorial-step-header {
  width: 100%;
  padding: 25px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text-light);
  font-family: inherit;
  transition: color 0.3s;
}

.tutorial-step-header:hover {
  color: var(--primary-color);
}

.tutorial-step-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
}

.tutorial-step-body.open {
  max-height: 400px;
  padding: 0 25px 25px;
}

.tutorial-step-body li {
  color: var(--text-gray);
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tutorial-step-body li::before {
  content: "→";
  color: var(--primary-color);
  font-weight: 800;
  flex-shrink: 0;
}

.tutorial-step-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.tutorial-step-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-top: 3px;
}

.video-placeholder {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: linear-gradient(135deg, #12162e, #0a0e1a);
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px #00d4ff4d;
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
  animation: pulse 2s ease-in-out infinite;
  padding-left: 6px;
}

/* ---------- Login ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 45px 40px;
  box-shadow: 0 8px 32px #0000004d;
}

.auth-card h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
}

.form-control-custom {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.25s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--text-gray);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.auth-link:hover {
  color: var(--primary-color);
}

/* ---------- 404 ---------- */
.notfound-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.notfound-code {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  position: relative;
}

.notfound-code .digit {
  display: inline-block;
}

.notfound-code .digit-left {
  animation: oscillateLeft 3s ease-in-out infinite;
}

.notfound-code .digit-right {
  animation: oscillateRight 3s ease-in-out infinite;
}

.notfound-code .digit-center {
  animation: rotateSlow 6s linear infinite;
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.notfound-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.notfound-text {
  color: var(--text-gray);
  margin-bottom: 10px;
  max-width: 500px;
  line-height: 1.6;
}

.notfound-buttons {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
  justify-content: center;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

/* ---------- Leave review ---------- */
.rating-input {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 25px;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.star-btn.active {
  color: #ffc107;
  transform: scale(1.1);
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

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

@keyframes servicesPulse {
  0%, 100% { box-shadow: 0 0 20px #00d4ff4d; }
  50% { box-shadow: 0 0 35px #00d4ff99; }
}

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

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

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

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

@keyframes oscillateLeft {
  0%, 100% { transform: translateX(0) rotate(-3deg); }
  50% { transform: translateX(-10px) rotate(3deg); }
}

@keyframes oscillateRight {
  0%, 100% { transform: translateX(0) rotate(3deg); }
  50% { transform: translateX(10px) rotate(-3deg); }
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero-section {
    padding: 140px 0 60px;
  }

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

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .section-title,
  .page-title,
  .cta-title {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(5, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 90px 25px 30px;
    z-index: 1090;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

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

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1080;
  }

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

  .stat-value {
    font-size: 2.2rem;
  }

  .plan-price .amount {
    font-size: 3rem;
  }

  .notfound-code {
    font-size: 6rem;
  }

  .services-banner {
    margin-top: 90px;
    flex-direction: column;
    text-align: center;
  }

  .faq-question {
    font-size: 0.95rem;
  }

  .auth-card {
    padding: 35px 25px;
  }

  .cta-box {
    padding: 40px 25px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-custom,
  .btn-outline-custom {
    width: 100%;
    text-align: center;
  }
}

/* ---------- Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- User menu (navbar) ---------- */
.user-menu {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Google login ---------- */
.google-login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.google-btn-container {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.google-loading {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.google-hint {
  color: var(--text-gray);
  font-size: 0.85rem;
  text-align: center;
}

.google-missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.google-missing-icon {
  font-size: 2rem;
  color: #ea4335;
}

.google-missing p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.google-missing code {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

/* ==================== valt.exe dashboard / admin ==================== */

.page-subtitle {
  color: var(--text-gray);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.muted { color: var(--text-gray); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.25rem;
}
.section-title { font-size: 1.4rem; font-weight: 700; }
.head-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-custom, .btn-outline-custom, .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: 50px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-danger:hover { background: rgba(255, 51, 102, 0.3); }

.btn:disabled, .btn-custom:disabled, .btn-outline-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spin { animation: valt-spin 0.9s linear infinite; }
@keyframes valt-spin { to { transform: rotate(360deg); } }

/* discord login */
.btn-discord {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-discord:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.4);
}
.btn-discord-icon { font-size: 1.35rem; }
.login-error {
  margin-top: 1rem;
  color: var(--accent-pink);
  font-size: 0.9rem;
  text-align: center;
}

/* avatar */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-fallback, .user-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

/* slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.slot-card { padding: 1.5rem; }
.slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.slot-name { font-size: 1.15rem; margin: 0 0 0.15rem; }
.slot-id { font-size: 0.8rem; color: var(--text-gray); }
.badge-neon.is-online {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.4);
}
.badge-neon.is-offline {
  background: rgba(255, 51, 102, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 51, 102, 0.35);
}
.admin-badge {
  margin-left: 0.5rem;
  font-size: 0.65rem;
  background: rgba(178, 75, 243, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(178, 75, 243, 0.45);
}

.slot-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.slot-meta dt { font-size: 0.7rem; text-transform: uppercase; color: var(--text-gray); letter-spacing: 0.05em; }
.slot-meta dd { margin: 0.15rem 0 0; font-size: 0.9rem; font-weight: 600; }

.slot-action, .slot-shared, .slot-warning {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin: 0 0 0.6rem;
}
.slot-warning { color: #ffb347; }
.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}
.slot-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* create card */
.create-card { padding: 1.5rem; margin-top: 1.5rem; }
.create-card h3 { margin: 0 0 0.35rem; }
.create-row { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.create-row .form-control-custom { flex: 1; min-width: 240px; margin: 0; }

/* user list */
.user-list { display: flex; flex-direction: column; gap: 0.9rem; }
.user-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) minmax(220px, 2fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
}
.user-main { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.user-id-block { min-width: 0; }
.user-name { display: block; font-weight: 600; }
.user-discord-id { font-size: 0.75rem; color: var(--text-gray); }
.user-slots { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.slot-pill {
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
}
.slot-pill em { color: var(--text-gray); font-style: normal; }
.slot-pill.is-online { border-color: rgba(0, 255, 136, 0.45); color: var(--neon-green); }
.user-created { font-size: 0.78rem; }
.user-actions { display: flex; gap: 0.5rem; }

/* notos infinity (admin) */
.notos-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(200px, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
}
.notos-main { min-width: 0; }
.notos-main .user-name { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.notos-main .user-discord-id { display: block; margin-top: 0.25rem; word-break: break-all; }
.notos-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  min-width: 0;
}
.notos-assign { min-width: 165px; max-width: 200px; margin: 0; }

/* search */
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg {
  position: absolute;
  left: 0.8rem;
  color: var(--text-gray);
  pointer-events: none;
}
.search-box .form-control-custom { padding-left: 2.4rem; margin: 0; min-width: 220px; }

.empty-card { padding: 2.5rem; text-align: center; }
.empty-card h3 { margin: 0 0 0.5rem; }

.admin-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-cta h3 { margin: 0 0 0.25rem; }
.admin-cta p { margin: 0; }

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}
.modal {
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 1.75rem;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.modal-head h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--accent-pink); }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.slot-picker { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1rem; }
.slot-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.18s ease;
}
.slot-option:hover { background: rgba(255, 255, 255, 0.08); }
.slot-option.is-on {
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 0 1px var(--primary-color) inset;
}
.slot-option-name { font-weight: 600; }
.slot-option-name em { color: var(--text-gray); font-style: normal; font-size: 0.85rem; }
.slot-option-meta { font-size: 0.78rem; color: var(--text-gray); }
.slot-option-warn { font-size: 0.72rem; color: #ffb347; }

@media (max-width: 900px) {
  .user-row,
  .notos-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .slot-grid { grid-template-columns: 1fr; }
}

/* login form (identifiants / mot de passe) */
.form-label-custom {
  display: block;
  margin: 0.9rem 0 0.4rem;
  font-size: 0.85rem;
  color: var(--text-gray);
  letter-spacing: 0.03em;
}
.input-with-icon { position: relative; }
.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-with-icon .form-control-custom { padding-left: 42px; }
.auth-card .btn-discord { width: 100%; margin-top: 1.25rem; }

/* admin — credentials editor */
.creds-block {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.creds-block h4 { margin: 0 0 0.2rem; font-size: 0.95rem; color: var(--text-light); }
.creds-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.creds-row .form-control-custom,
.creds-row select { flex: 1; min-width: 150px; }
.creds-row select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
}
.create-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.badge-muted {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  color: var(--text-gray);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* settings page (tabs / sections / fields) */
.settings-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.settings-accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.settings-chip {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
}
.settings-chip:hover {
  color: var(--text-light);
  border-color: rgba(0, 212, 255, 0.4);
}
.settings-chip.active {
  background: rgba(0, 212, 255, 0.14);
  border-color: var(--primary-color);
  color: #fff;
}
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-border);
}
.settings-tabs button {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
}
.settings-tabs button:hover {
  color: var(--text-light);
}
.settings-tabs button.active {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.45);
  color: #fff;
}
.settings-tabs.sub {
  border-bottom: none;
  padding-bottom: 0;
}
.settings-tabs.sub button.active {
  background: rgba(178, 75, 243, 0.14);
  border-color: rgba(178, 75, 243, 0.5);
}
.settings-section h4 {
  margin: 0.5rem 0 0.15rem;
  font-size: 0.98rem;
  color: var(--text-light);
}
.settings-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}
.settings-field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-gray);
}
.settings-field-hint {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-gray);
  opacity: 0.85;
  font-style: italic;
}
.settings-field .form-control-custom {
  padding: 9px 12px;
  font-size: 0.9rem;
}
.settings-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 90, 0.5);
  background: rgba(255, 90, 90, 0.14);
  color: #ff9090;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: all 0.2s;
}
.settings-switch.on {
  border-color: rgba(0, 255, 136, 0.5);
  background: rgba(0, 255, 136, 0.14);
  color: var(--neon-green);
}
.settings-switch-knob {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.settings-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.settings-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-light);
  cursor: pointer;
}
.settings-check input {
  accent-color: var(--primary-color);
}
.settings-readonly {
  font-size: 0.85rem;
  color: var(--text-light);
  word-break: break-word;
}
.settings-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(5, 8, 20, 0.94);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.settings-actions .muted {
  margin-right: auto;
}
.settings-notos-group {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  overflow: hidden;
}
.settings-notos-group summary {
  cursor: pointer;
  padding: 0.7rem 0.95rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  list-style-position: inside;
  user-select: none;
}
.settings-notos-group summary:hover {
  color: #fff;
}
.settings-notos-group[open] summary {
  border-bottom: 1px solid var(--glass-border);
}
.settings-notos-group .settings-fields {
  padding: 0.9rem 0.95rem 0.5rem;
}
.settings-notos-group .settings-field {
  padding: 0;
  border: none;
  background: transparent;
}
.settings-json {
  width: 100%;
  min-height: 4.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  resize: vertical;
}
@media (max-width: 640px) {
  .settings-shell { padding: 1rem; }
  .settings-fields { grid-template-columns: 1fr; }
  .settings-actions { flex-wrap: wrap; justify-content: center; }
}
