/* ==========================================================================
   THUNDER SHELL ANTICHEAT - COMPLETE CSS SYSTEM (LANDING + DOCS V3 SIDEBAR)
   ========================================================================== */

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

:root {
  --bg: #070304;
  --bg-dark: #040102;
  --card-bg: rgba(20, 8, 10, 0.65);
  --card-hover: rgba(35, 12, 15, 0.85);
  --primary: #ff1a1a;
  --primary-hover: #e60000;
  --primary-glow: rgba(255, 26, 26, 0.4);
  --secondary: #ff4d4d;
  --text: #f8fafc;
  --text-muted: #a8a2a6;
  --border: rgba(255, 26, 26, 0.12);
  --border-bright: rgba(255, 26, 26, 0.35);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Stil specific pentru pagina de documentație (previne dublu scrollbar) */
.docs-page-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7%;
  position: sticky;
  top: 0;
  background: rgba(7, 3, 4, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.docs-navbar {
  padding: 0.8rem 5%;
  position: relative;
  z-index: 1001;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  transition: var(--transition);
}

.logo a:hover .logo-img {
  transform: scale(1.05) rotate(-3deg);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), #ff8a8a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:not(.btn-nav):hover::after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-back-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-back-link:hover {
  color: #fff;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #b30000);
  color: #fff !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px var(--primary-glow);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 26, 26, 0.6);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
  padding: 8rem 5% 6rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% -20%, rgba(255, 26, 26, 0.25), transparent 70%);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.trust {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #b30000);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 26, 26, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-bright);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 26, 26, 0.1);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ==========================================================================
   4. SECTIONS COMMON
   ========================================================================== */
.section {
  padding: 6rem 7%;
  text-align: center;
}

.section.dark {
  background: var(--bg-dark);
  position: relative;
}

.section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   5. FEATURES GRID
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--primary-glow), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  background: var(--card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 0.2;
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   6. PRICING GRID
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2rem 2.2rem;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.price-card:hover {
  border-color: var(--border-bright);
}

.price-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(35, 12, 15, 0.95), rgba(15, 5, 5, 0.95));
  box-shadow: 0 0 35px rgba(255, 26, 26, 0.25);
  transform: scale(1.04);
}

.price-card.popular:hover {
  transform: scale(1.06);
  box-shadow: 0 0 45px rgba(255, 26, 26, 0.35);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #b30000);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #fff;
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.save-text {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.price-card ul {
  list-style: none;
  margin-bottom: 2.2rem;
  flex-grow: 1;
}

.price-card ul li {
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-card .btn {
  width: 100%;
}

/* ==========================================================================
   7. FAQ ACCORDION
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-bright);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 1.3rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-q span {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 0, 0, 0.2);
}

.faq-a p {
  padding: 1.2rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-a {
  max-height: 300px;
  transition: max-height 0.35s ease-in-out;
}

.faq-item.open .faq-q span {
  transform: rotate(45deg);
}

/* ==========================================================================
   8. DOCUMENTATION V3 (SIDEBAR + MAIN CONTENT AREA)
   ========================================================================== */
.main-docs-wrapper {
  display: flex;
  flex: 1;
  height: calc(100vh - 70px);
}

/* --- SIDEBAR --- */
.docs-sidebar {
  width: 270px;
  background: var(--bg-dark);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  transition: var(--transition);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.version-badge {
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid rgba(255, 26, 26, 0.3);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.sidebar-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.sidebar-nav ul {
  list-style: none;
}

.nav-category {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.sidebar-nav a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-nav a code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.sidebar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav a.active {
  background: rgba(255, 26, 26, 0.08);
  color: var(--secondary);
  border: 1px solid rgba(255, 26, 26, 0.2);
}

/* --- CONTENT AREA --- */
.docs-content-area {
  flex: 1;
  background: radial-gradient(circle at 30% 0%, rgba(255, 26, 26, 0.05), transparent 60%);
  overflow-y: auto;
  padding: 4rem 10% 5rem 6%;
}

.docs-section {
  display: none;
}

.docs-section.active-section {
  display: block;
}

.docs-section-header {
  margin-bottom: 2.5rem;
}

.docs-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.docs-section-content {
  background: rgba(12, 4, 6, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.docs-content-area p {
  margin-bottom: 1.2rem;
  color: #d1d5db;
  font-size: 1rem;
}

.docs-list {
  margin-left: 1.5rem;
  margin-bottom: 1.8rem;
  color: #d1d5db;
}

.docs-list li {
  margin-bottom: 0.9rem;
  padding-left: 0.3rem;
}

.docs-bullets {
  margin-left: 1.8rem;
  margin-bottom: 1.8rem;
  color: #d1d5db;
}

.docs-bullets li {
  margin-bottom: 0.6rem;
}

.docs-content-area h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  color: #fff;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

.docs-content-area code {
  background: rgba(255, 26, 26, 0.12);
  color: #ff8a8a;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 26, 26, 0.2);
}

.code-block-wrapper {
  position: relative;
  margin: 1.2rem 0;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-bright);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.docs-content-area pre {
  background: #030102;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.docs-content-area pre code {
  background: transparent;
  color: #34d399;
  border: none;
  padding: 0;
}

.docs-content-area a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   9. ALERTE (WARNING, DANGER, INFO)
   ========================================================================== */
.alert {
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius-md);
  margin: 1.8rem 0;
  font-size: 0.98rem;
  border-left: 4px solid;
}

.alert.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
  color: #fde68a;
}

.alert.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #fca5a5;
}

.alert.info {
  background: rgba(59, 130, 246, 0.08);
  border-color: #3b82f6;
  color: #bfdbfe;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-dark);
  padding: 4rem 7% 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  text-align: left;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* ==========================================================================
   11. RESPONSIVE / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  .price-card.popular { transform: scale(1); }
  .price-card.popular:hover { transform: scale(1.02); }
  .docs-sidebar { width: 230px; }
  .docs-content-area { padding-left: 5%; padding-right: 5%; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(7, 3, 4, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  .nav-links.active { transform: translateY(0); }
  .hero { padding-top: 6rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
  
  /* Responsive Adaptat pentru Docs V3 */
  .docs-page-body { overflow: auto; height: auto; }
  .main-docs-wrapper { flex-direction: column; height: auto; }
  .docs-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
    overflow-y: visible;
  }
  .sidebar-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .nav-category { width: 100%; text-align: center; }
  .sidebar-header { justify-content: center; }
  .docs-content-area { height: auto; padding-top: 3rem; }
  .docs-section h2 { font-size: 2rem; }
}

/* ==========================================================================
   REDESIGN — stil "panou modern" (navy + chihlimbar)
   ========================================================================== */
body {
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(255, 26, 26, 0.14), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(255, 26, 26, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.navbar { padding: 0.9rem 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-left: max(5%, calc((100% - 1280px) / 2)); padding-right: max(5%, calc((100% - 1280px) / 2)); }
.docs-navbar { display: flex; justify-content: space-between; padding: 0.8rem 5%; }
.logo a { font-weight: 500; font-size: 1.5rem; }
.logo a .highlight { font-weight: 600; }
.nav-links { gap: 2.4rem; justify-self: center; }
.nav-links a { color: #e7e9f2; font-weight: 500; }
.nav-actions { display: flex; gap: 0.8rem; justify-self: end; align-items: center; }
.nav-actions-mobile { display: none; }
.btn-ghost { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 0.65rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); transition: var(--transition); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-nav { color: #fff !important; border-radius: var(--radius-sm); }
.btn-nav.discord-btn { color: #fff !important; }
.btn { border-radius: var(--radius-sm); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); }
.btn-secondary:hover { border-color: var(--primary); background: rgba(255,26,26,0.08); }
.btn-secondary .play { font-size: 0.7rem; }

/* HERO 2 coloane */
.hero { text-align: left; padding: 6.5rem 0 5rem; background: none;
  padding-left: max(5%, calc((100% - 1280px) / 2)); padding-right: max(5%, calc((100% - 1280px) / 2)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; }
.hero-content { max-width: none; margin: 0; }
.hero h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.hero h1 .gold { background: linear-gradient(90deg, #ff5a5a, #ff1a1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { margin: 0 0 2.2rem; font-size: 1.1rem; max-width: 520px; }
.hero-buttons { justify-content: flex-start; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 1.6rem; align-items: center; }
.hero-stats strong { display: block; font-size: 1.15rem; font-weight: 600; }
.hero-stats span { color: var(--text-muted); font-size: 0.92rem; }
.hero-stats .divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* Mockup */
.mock { background: #0d0709; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4); font-size: 10px; }
.mock small { color: #8d93a8; font-size: 8.5px; display: block; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mock-brand { display: flex; gap: 6px; align-items: center; color: #fff; font-size: 11px; }
.mock-brand img { height: 14px; }
.mock-pill { background: rgba(255,255,255,0.06); padding: 3px 8px; border-radius: 5px; color: #aab; font-size: 8px; }
.mock-body { display: grid; grid-template-columns: 105px 1fr; min-height: 340px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid rgba(255,255,255,0.05); }
.mock-side span { padding: 6px 8px; color: #9aa0b5; border-radius: 5px; }
.mock-side span.on { background: rgba(255,26,26,0.12); color: #ff1a1a; }
.mock-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #0a0506; }
.mock-head small { color: #ff1a1a; font-weight: 700; }
.mock-head b { color: #fff; font-size: 10px; font-weight: 600; }
.mock-tabs { display: flex; gap: 6px; justify-content: center; }
.mock-tabs i { width: 26px; height: 7px; border-radius: 3px; background: rgba(255,255,255,0.08); }
.mock-tabs i.on { background: rgba(255,255,255,0.22); }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; }
.mock-stats div, .mock-chart, .mock-lists > div { background: #160a0d; border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; padding: 8px; }
.mock-stats b { color: #fff; font-size: 11px; }
.mock-stats .warn b { color: #fff; }
.mock-stats .warn { border-left: 2px solid #ef5a5a; }
.mock-charts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; }
.mock-chart b { position: absolute; right: 8px; top: 8px; color: #fff; }
.mock-chart { position: relative; min-height: 100px; }
.mock-chart svg { width: 100%; height: 60px; margin-top: 6px; }
.donut { width: 62px; height: 62px; border-radius: 50%; margin: 8px auto 0; position: relative; }
.donut::after { content: ""; position: absolute; inset: 11px; background: #160a0d; border-radius: 50%; }
.d1 { background: conic-gradient(#ef5a5a 0 30%, #ff1a1a 0 55%, #4f8bff 0 72%, #e86aa0 0 100%); }
.d2 { background: conic-gradient(#ff1a1a 0 35%, #4f8bff 0 55%, #ff8a3c 0 100%); }
.mock-lists { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.mock-lists p { margin-top: 6px; color: #dfe3f2; }
.mock-lists p em { color: #ff1a1a; font-style: normal; }
.mock-lists p u { text-decoration: none; background: rgba(239,90,90,0.2); color: #ef8a8a; padding: 1px 5px; border-radius: 3px; margin-left: 8px; font-size: 8px; }
.mock-lists p.muted { color: #8d93a8; }

/* Secțiune funcționalități */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; text-align: left; }
.section-head .eyebrow { color: #ff1a1a; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; }
.section .section-head h2 { text-align: left; font-size: 2.3rem; line-height: 1.2; max-width: 720px; margin: 0.6rem 0 0; }
.fw-pills { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fw-pills span { color: var(--text-muted); font-size: 0.9rem; margin-right: 0.3rem; }
.fw-pills b { padding: 0.5rem 1rem; border: 1px solid rgba(255,26,26,0.35); border-radius: 999px; color: #ff6b6b; font-size: 0.85rem; font-weight: 600; background: rgba(255,26,26,0.06); }

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .fw-pills { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .navbar { display: flex; justify-content: space-between; padding-left: 5%; padding-right: 5%; }
  .nav-actions { display: none; }
  .nav-actions-mobile { display: block; }
  .hero { padding-top: 3.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-buttons { align-items: stretch; }
  .section .section-head h2 { font-size: 1.7rem; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* Corecturi */
.hero .mock p { font-size: 9.5px; margin: 6px 0 0; max-width: none; color: #dfe3f2; }
.hero .mock p.muted { color: #8d93a8; }
.section { padding-left: max(7%, calc((100% - 1280px) / 2)); padding-right: max(7%, calc((100% - 1280px) / 2)); }
.logo-img, .mock-brand img { filter: drop-shadow(0 0 8px var(--primary-glow)); }
.features-grid { max-width: none; }
button { font-family: inherit; }

/* ==========================================================================
   CONTURI + ADMIN PANEL
   ========================================================================== */
.simple-nav { display: flex; justify-content: space-between; }
[hidden] { display: none !important; }
.auth-wrap { min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 3rem 5%; }
.auth-card { width: 100%; max-width: 440px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem; backdrop-filter: blur(12px); box-shadow: 0 30px 80px rgba(0,0,0,0.45); }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.auth-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.auth-sub { color: var(--text-muted); margin-bottom: 1.6rem; font-size: 0.95rem; }
.auth-card label { display: block; font-size: 0.82rem; font-weight: 500; color: #d8d3d6; margin-bottom: 1rem; }
.auth-card input, .admin-head input { display: block; width: 100%; margin-top: 0.4rem; padding: 0.8rem 0.95rem; font: inherit; font-size: 0.95rem;
  color: #fff; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); outline: none; transition: var(--transition); }
.auth-card input:focus, .admin-head input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.auth-card .btn { width: 100%; margin-top: 0.4rem; }
.auth-alt { text-align: center; margin-top: 1.4rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-alt a { color: var(--primary); text-decoration: none; font-weight: 600; }
.form-msg { display: none; padding: 0.7rem 0.95rem; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 1rem; }
.form-msg.show { display: block; }
.form-msg.err { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.4); color: #fca5a5; }
.form-msg.ok { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.4); color: #6ee7b7; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.6rem; }
.info-grid dt { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-grid dd { font-weight: 500; word-break: break-all; }
.row-actions { display: flex; gap: 0.8rem; }
.row-actions .btn { margin-top: 0; }
.sep { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.admin-wrap { max-width: 1280px; margin: 0 auto; padding: 3rem 5% 5rem; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.admin-head h1 { font-size: 2rem; font-weight: 700; }
.admin-head .eyebrow { color: var(--primary); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; }
.admin-head input { max-width: 340px; margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.8rem; }
.stat { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.stat small { display: block; color: var(--text-muted); font-size: 0.78rem; }
.stat b { font-size: 1.8rem; font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card-bg); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th { text-align: left; padding: 0.9rem 1rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table .strong { font-weight: 600; }
.admin-table .muted, .muted { color: var(--text-muted); }
.admin-table td.actions { min-width: 300px; }
.admin-table .actions .mini { margin: 2px 4px 2px 0; }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(255,255,255,0.07); color: #cfcbd0; }
.tag-admin { background: rgba(255,26,26,0.15); color: #ff6b6b; }
.tag-ok { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.tag-ban { background: rgba(239,68,68,0.18); color: #fca5a5; }
.mini { font: inherit; font-size: 0.75rem; font-weight: 600; padding: 0.35rem 0.7rem; color: #e6e1e4; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; cursor: pointer; transition: var(--transition); }
.mini:hover { border-color: var(--primary); color: #fff; }
.mini.warn:hover { border-color: #f59e0b; }
.mini.danger { color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.mini.danger:hover { background: rgba(239,68,68,0.15); border-color: #ef4444; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } .row-actions { flex-direction: column; } }

/* ===== Efect hover pe mockup (tilt 3D + glow roșu care urmărește cursorul) ===== */
.hero-visual { perspective: 1200px; }
.mock { position: relative; transform-style: preserve-3d; transition: transform 0.15s ease-out, box-shadow 0.35s ease, border-color 0.35s ease; will-change: transform; }
.mock::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 26, 26, 0.22), transparent 45%); }
.hero-visual:hover .mock { border-color: rgba(255, 26, 26, 0.55); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 26, 26, 0.28); }
.hero-visual:hover .mock::before { opacity: 1; }
.hero-visual:not(:hover) .mock { transition: transform 0.6s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
@media (prefers-reduced-motion: reduce) { .mock { transition: none; transform: none !important; } }


/* ==========================================================================
   FX — efecte avansate (doar pagina principală)
   ========================================================================== */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero, .section, .footer, .marquee, .stats-band { position: relative; z-index: 1; }
.section.dark { background: rgba(4, 1, 2, 0.72); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.13), transparent 62%); will-change: transform; }
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 2000;
  background: linear-gradient(90deg, #ff1a1a, #ff8a3c); box-shadow: 0 0 12px #ff1a1a; }
.navbar.scrolled { background: rgba(7, 3, 4, 0.92); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 26, 26, 0.25); }

/* Hero: grilă + orb pulsatoriu */
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 26, 26, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 26, 26, 0.07) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(circle, rgba(255, 26, 26, 0.45), transparent 65%); animation: orb 5s ease-in-out infinite; }
@keyframes orb { 0%, 100% { opacity: 0.55; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.08); } }

.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 0.45rem 1rem; margin-bottom: 1.6rem; font-size: 0.82rem; font-weight: 500;
  border: 1px solid rgba(255, 26, 26, 0.4); border-radius: 999px; background: rgba(255, 26, 26, 0.08); color: #ffb3b3; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ff1a1a; box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255, 26, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0); } }

/* Titlu cu sclipire */
.hero h1 .gold { background: linear-gradient(100deg, #ff1a1a 20%, #ff9a7a 40%, #fff 50%, #ff9a7a 60%, #ff1a1a 80%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 4.5s linear infinite; filter: drop-shadow(0 0 22px rgba(255, 26, 26, 0.35)); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Butoane: sclipire + puls */
.btn, .btn-nav { position: relative; overflow: hidden; }
.btn::after, .btn-nav::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); }
.btn:hover::after, .btn-nav:hover::after { left: 130%; transition: left 0.7s ease; }
.hero .btn-primary { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse { 0%, 100% { box-shadow: 0 4px 20px rgba(255, 26, 26, 0.35); } 50% { box-shadow: 0 6px 38px rgba(255, 26, 26, 0.75); } }

/* Mockup: linie de scanare, grafic desenat, donut-uri rotative, valori live */
.mock::after { content: ""; position: absolute; left: 0; right: 0; top: -90px; height: 90px; pointer-events: none; z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(255, 26, 26, 0.14), transparent); animation: scan 5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.mock-chart path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s 0.6s ease forwards; filter: drop-shadow(0 0 4px rgba(255, 26, 26, 0.8)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.donut { animation: spin 16s linear infinite; }
.d2 { animation-duration: 22s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.bump { animation: bump 0.5s ease; }
@keyframes bump { 40% { transform: scale(1.25); color: #ff6b6b; } }
.feed-in { animation: feedin 0.6s ease; }
@keyframes feedin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#m-feed p { white-space: nowrap; overflow: hidden; }

/* Chip-uri plutitoare */
.chip { position: absolute; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 0.55rem 0.9rem; font-size: 0.78rem; font-weight: 500; white-space: nowrap;
  color: #fff; background: rgba(20, 8, 10, 0.75); border: 1px solid rgba(255, 26, 26, 0.4); border-radius: 12px; backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 26, 26, 0.2); animation: float 6s ease-in-out infinite; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #ff1a1a; box-shadow: 0 0 10px #ff1a1a; }
.chip small { color: #9a9296; font-size: 0.7rem; }
.chip.c1 { top: -4%; left: -7%; }
.chip.c2 { bottom: 18%; right: -6%; animation-delay: -2s; }
.chip.c3 { bottom: -5%; left: 8%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(255, 26, 26, 0.04); padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 3rem; animation: marquee 32s linear infinite; }
.marquee-track span { font-weight: 600; font-size: 0.95rem; color: #c9c2c6; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: "✦"; color: #ff1a1a; text-shadow: 0 0 10px #ff1a1a; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bandă statistici */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 4rem max(5%, calc((100% - 1280px) / 2)) 1rem; }
.stat-item { text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card-bg); }
.stat-item b { display: block; font-size: 2.6rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(180deg, #fff, #ff8a8a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item b i { font-style: normal; font-size: 1.2rem; margin-left: 4px; }
.stat-item small { color: var(--text-muted); font-size: 0.88rem; }

/* Carduri: spotlight care urmărește cursorul */
.card::after, .price-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(255, 26, 26, 0.2), transparent 60%); }
.card:hover::after, .price-card:hover::after { opacity: 1; }
.card .icon { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s; }
.card:hover .icon { transform: scale(1.25) rotate(-8deg); filter: drop-shadow(0 0 14px rgba(255, 26, 26, 0.8)); }

/* Card „popular”: bordură rotativă */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.price-card.popular::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, #ff1a1a 75%, #ff9a7a 88%, transparent 100%); animation: angspin 3.5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes angspin { to { --ang: 360deg; } }

/* Apariție la scroll */
.js .reveal { opacity: 0; transform: translateY(36px) scale(0.97); filter: blur(6px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

@media (max-width: 992px) { .stats-band { grid-template-columns: repeat(2, 1fr); } .chip.c1 { left: 0; } .chip.c2 { right: 0; } }
@media (max-width: 600px) { .chip { display: none; } .stat-item b { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .mock-chart path { stroke-dashoffset: 0; }
}
.hero-stats strong span { font-size: inherit; color: inherit; }
.chip.c2 { bottom: auto; top: 14%; right: -7%; }

/* ==========================================================================
   LANGUAGE SELECTOR (floating, left side) — markup is injected by i18n.js
   ========================================================================== */
html.i18n-pending body { visibility: hidden; }

.lang-switch {
  --flag: 40px;
  --ty: -50%;
  position: fixed;
  left: 6px;
  top: 50%;
  transform: translateY(var(--ty));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 58px;
  padding: 0.75rem 0.3rem 0.85rem;
  background: linear-gradient(180deg, rgba(28, 10, 13, 0.82), rgba(10, 4, 6, 0.86));
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 26, 26, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: lang-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes lang-in {
  from { opacity: 0; transform: translate(-22px, var(--ty)); }
  to   { opacity: 1; transform: translate(0, var(--ty)); }
}

.lang-globe { display: grid; place-items: center; color: #ff6b6b; opacity: 0.9; }
.lang-sep { width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.5), transparent); margin-top: -0.2rem; }

.lang-opt {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; margin: 0; padding: 0;
  font: inherit; color: var(--text-muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.42rem;
  width: 100%; border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s ease;
}
.lang-flag {
  position: relative; display: block;
  width: var(--flag); height: var(--flag);
  padding: 2px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.13);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background 0.35s ease;
}
.lang-flag img {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  filter: saturate(0.65) brightness(0.8);
  transition: filter 0.35s ease;
  user-select: none; -webkit-user-drag: none;
}
.lang-name { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }

.lang-opt:hover { color: var(--text); }
.lang-opt:hover .lang-flag {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 0 1.5px var(--border-bright), 0 10px 20px rgba(0, 0, 0, 0.55);
}
.lang-opt:hover .lang-flag img { filter: saturate(1) brightness(1); }
.lang-opt:active .lang-flag { transform: scale(0.95); }
.lang-opt:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* currently selected language */
.lang-opt.is-active { color: #fff; cursor: default; }
.lang-opt.is-active .lang-flag {
  background: linear-gradient(135deg, var(--primary), #7a0000);
  box-shadow: 0 0 0 1.5px rgba(255, 70, 70, 0.95), 0 0 0 5px rgba(255, 26, 26, 0.16), 0 0 24px var(--primary-glow);
}
.lang-opt.is-active .lang-flag img { filter: none; }
.lang-opt.is-active .lang-flag::after {
  content: ""; position: absolute; right: -4px; bottom: -3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
  box-shadow: 0 0 0 2px #0b0305, 0 0 10px var(--primary-glow);
}

/* compact floating pill: small / short screens and the docs page */
.lang-switch--compact {
  --flag: 32px;
  --ty: 0px;
  top: auto; bottom: 16px; left: 12px;
  flex-direction: row; width: auto;
  gap: 0.55rem; padding: 0.4rem 0.6rem;
  border-radius: 999px;
}
.lang-switch--compact .lang-globe,
.lang-switch--compact .lang-sep { display: none; }
.lang-switch--compact .lang-opt { width: auto; }
.lang-switch--compact .lang-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.lang-switch--compact .lang-opt.is-active .lang-flag::after { width: 12px; height: 12px; right: -3px; bottom: -2px; background-size: 7px; }
@media (max-width: 480px) { .lang-switch--compact { bottom: 12px; left: 10px; --flag: 30px; } }

@media (prefers-reduced-motion: reduce) {
  .lang-switch { animation: none; }
  .lang-flag, .lang-flag img, .lang-opt { transition: none; }
  .lang-opt:hover .lang-flag { transform: none; }
}

/* The hero glow spills past the viewport edge on phones, which widens the layout viewport and pushes
   fixed elements (like the language pill) off-screen. Clip it horizontally only. */
@supports (overflow: clip) { .hero { overflow-x: clip; } }


/* ---- COȘ DE CUMPĂRĂTURI ---- */
.cart-open { overflow: hidden; }
.cart-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; justify-content: flex-end; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); animation: cartFade .2s ease; }
.cart-overlay[hidden] { display: none; }
.cart { width: min(440px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--bg-dark); border-left: 1px solid var(--border-bright); box-shadow: -20px 0 60px rgba(0,0,0,.6); animation: cartIn .3s cubic-bezier(0.16,1,0.3,1); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.cart-head h3 { font-size: 1.15rem; }
.cart-x { background: none; border: 0; color: var(--text-muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.cart-x:hover { color: var(--text); }
.cart-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; overflow-y: auto; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-info small { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.cart-item-info b { font-size: 1.1rem; }
.cart-remove { background: none; border: 0; color: var(--secondary); cursor: pointer; font: inherit; font-size: .85rem; }
.cart-remove:hover { text-decoration: underline; }
.cart-switch small { display: block; color: var(--text-muted); font-size: .78rem; margin-bottom: .5rem; }
.cart-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cart-chip { cursor: pointer; font: inherit; font-size: .82rem; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .4rem .85rem; transition: var(--transition); }
.cart-chip:hover { border-color: var(--border-bright); }
.cart-chip.on { background: rgba(255,26,26,.15); border-color: var(--primary); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 1.05rem; }
.cart-total b { font-size: 1.6rem; }
.cart-pay { width: 100%; justify-content: center; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.cart-note { color: var(--text-muted); font-size: .82rem; text-align: center; }
.cart-error { color: #ff8080; font-size: .85rem; text-align: center; }
.cart-error[hidden] { display: none; }
.cart-empty { color: var(--text-muted); text-align: center; padding: 2rem 0 .5rem; }
@keyframes cartFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes cartIn { from { transform: translateX(40px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .cart, .cart-overlay { animation: none; } }

.cart-wallets { color: var(--text-muted); font-size: .76rem; text-align: center; margin-top: -.6rem; }
.cart-or { display: flex; align-items: center; gap: .8rem; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.cart-or::before, .cart-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cart-error a { color: var(--secondary); text-decoration: underline; }
.cart-pay:disabled { opacity: .6; cursor: wait; }
.license-note { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid rgba(16,185,129,.4); background: rgba(16,185,129,.1); border-radius: var(--radius-md); font-size: .9rem; }

/* ---- PANOU CLIENT: licență ---- */
.auth-card.panel { max-width: 780px; }
.lic { margin: 0 0 1.5rem; padding: 1.4rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--radius-lg); --lic: var(--text-muted); }
.lic[data-state="active"] { --lic: #10b981; }
.lic[data-state="soon"] { --lic: #f59e0b; }
.lic[data-state="expired"] { --lic: #ef4444; }
.lic-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.lic-top h2 { margin: 0; }
.lic-badge { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; color: var(--lic); border: 1px solid var(--lic); background: color-mix(in srgb, var(--lic) 14%, transparent); }
.lic-main { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.lic-num { min-width: 110px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.lic-num b { font-size: 3.4rem; font-weight: 800; color: var(--lic); }
.lic-num small { color: var(--text-muted); font-size: .8rem; margin-top: .25rem; }
.lic-info { flex: 1; min-width: 0; }
.lic-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: .8rem; }
.lic-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lic); transition: width .6s cubic-bezier(0.16,1,0.3,1); }
.lic-date { margin: 0; color: var(--text-muted); font-size: .95rem; }
.lic-date strong { color: var(--text); }
.lic-alert { margin-bottom: 1.2rem; padding: .8rem 1rem; border-radius: var(--radius-md); font-size: .9rem; color: var(--text); border: 1px solid var(--lic); background: color-mix(in srgb, var(--lic) 12%, transparent); }
.lic-alert[hidden] { display: none; }
.lic .row-actions { margin-bottom: 1.8rem; }
.lic .row-actions .btn { width: auto; padding-left: 1.6rem; padding-right: 1.6rem; }
.lic-h { font-size: 1rem; margin-bottom: .8rem; }
.lic .table-scroll { margin-top: 0; }
select.mini { color-scheme: dark; cursor: pointer; }
@media (max-width: 600px) { .lic-main { flex-direction: column; align-items: stretch; } .lic-num b { font-size: 2.8rem; } }

/* ===== Zona clientului (account.html): profil, taburi, carduri ===== */
.ca-wrap { max-width: 1100px; margin: 0 auto; padding: 2.4rem 5% 5rem; }
.ca-head { margin-bottom: 1.6rem; }
.ca-head h1 { font-size: 2rem; font-weight: 700; }
.ca-crumbs { color: var(--text-muted); font-size: .88rem; margin-top: .3rem; }
.ca-crumbs a { color: var(--text-muted); text-decoration: none; }
.ca-crumbs a:hover { color: var(--primary); }
.ca-crumbs span { margin: 0 .3rem; }
.ca-crumbs strong { color: var(--text); font-weight: 500; }

.ca-profile { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; padding: 1.4rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(12px); }
.ca-avatar { width: 68px; height: 68px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 1.8rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #7a0000); box-shadow: 0 0 24px var(--primary-glow); }
.ca-profile-main { flex: 1; min-width: 220px; }
.ca-name-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.ca-name-row h2 { font-size: 1.3rem; margin: 0; }
.ca-pill { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px;
  color: var(--text-muted); border: 1px solid currentColor; }
.ca-pill[data-state="active"] { color: #10b981; }
.ca-pill[data-state="soon"] { color: #f59e0b; }
.ca-pill[data-state="expired"] { color: #ef4444; }
.ca-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin: .3rem 0 .8rem; color: var(--text-muted); font-size: .85rem; }
.ca-minis { display: flex; gap: .8rem; flex-wrap: wrap; }
.ca-mini { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.02); }
.ca-mini b { display: block; font-size: 1.2rem; line-height: 1.2; }
.ca-mini small { color: var(--text-muted); font-size: .72rem; }
.ca-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.ca-actions .btn { width: auto; margin: 0; }
.btn-ghost-dark { color: #fff; text-decoration: none; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); }
.btn-ghost-dark:hover { border-color: var(--primary); }
.btn-light { color: #111; text-decoration: none; background: #fff; border: 1px solid #fff; }
.btn-light:hover { background: #f1eaea; }

.ca-tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: 1.6rem; border-bottom: 1px solid var(--border); }
.ca-tabs a { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; padding: .85rem 1.1rem; color: var(--text-muted);
  text-decoration: none; font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.ca-tabs a:hover { color: var(--text); }
.ca-tabs a.active { color: #fff; border-bottom-color: var(--primary); }
.ca-count { font-style: normal; font-size: .7rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: rgba(255,26,26,.18); color: #ff8a8a; }

.ca-panel h2 { font-size: 1.3rem; margin-bottom: .3rem; }
.ca-sub { color: var(--text-muted); margin-bottom: 1.4rem; font-size: .93rem; }
.ca-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.ca-card { padding: 1.2rem; text-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.ca-card.left { text-align: left; }
.ca-card.left h3 { margin: .3rem 0 .4rem; }
.ca-card.left p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }
.ca-card.left .btn { width: auto; }
.ca-ico { font-size: 1.5rem; margin-bottom: .4rem; }
.ca-card b { display: block; font-size: 1.7rem; font-weight: 700; }
.ca-card small { color: var(--text-muted); font-size: .8rem; }
.ca-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.plan-card { display: flex; flex-direction: column; gap: .3rem; padding: 1.3rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.plan-card.current { border-color: #10b981; box-shadow: 0 0 0 1px rgba(16,185,129,.4); }
.plan-card h4 { font-size: 1rem; }
.plan-price { font-size: 1.9rem; font-weight: 800; }
.plan-card small { color: var(--text-muted); margin-bottom: .8rem; }
.plan-card .btn { width: 100%; margin-top: auto; text-align: center; }

.ca-form { max-width: 420px; margin-top: 1.6rem; }
.ca-form h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.ca-form label { display: block; font-size: .82rem; font-weight: 500; color: #d8d3d6; margin-bottom: 1rem; }
.ca-form input { display: block; width: 100%; margin-top: .4rem; padding: .8rem .95rem; font: inherit; font-size: .95rem; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); outline: none; transition: var(--transition); }
.ca-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.ca-info { margin-bottom: 0; }
@media (max-width: 600px) { .ca-profile { flex-direction: column; align-items: flex-start; } .ca-actions { width: 100%; } .ca-actions .btn { flex: 1; text-align: center; } }

/* ---- chei de licență ---- */
.lk-sec{margin-top:40px}
.lk-new{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}
.lk-new input{min-width:220px}
.lk-key{font-family:ui-monospace,Consolas,monospace;letter-spacing:.5px;user-select:all;white-space:nowrap}
