/* ----------------- Loader ----------------- */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 20px;
  animation: fadeIn 2s ease infinite alternate;
}

.loader-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 8px;
}

.dot {
  width: 16px;
  height: 16px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
}

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

/* ----------------- Gold Bar ----------------- */
.gold-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
  background-size: 200% 200%;
  animation: goldShimmer 3s linear infinite;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ----------------- General Body ----------------- */
body {
  color: white;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.4s ease-in-out;
}

body.fade-out { opacity: 0; transition: opacity 0.3s ease; }
body.fade-in { opacity: 1; transition: opacity 0.3s ease; }

header, footer {
  color: white;
}

/* ----------------- Header Gradient ----------------- */
header {
  background: linear-gradient(270deg, #3b82f6, #06b6d4, #3b82f6);
  background-size: 600% 600%;
  animation: gradientFlow 8s ease infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
 
}

header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  animation: shineMove 10s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shineMove {
  0% { left: -75%; }
  50%, 100% { left: 125%; }
}

/* ----------------- SCOP Pulse ----------------- */
#header-title {
  animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
  0%,100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
    text-shadow: 0 0 16px rgba(255,255,255,0.7);
  }
}
/* ----------------- Steaguri ----------------- */
#flag-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-left: auto;
  margin-right: auto;
}

.flag-img {
  width: 48px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flag-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.flag-img.selected {
  animation: bounceSelect 0.5s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

@keyframes bounceSelect {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ----------------- Fundal Main (fix) ----------------- */
.main-background {
  background-color: #e0f2f1; /* un ton vibrant în mod grafic */
  transition: background 0.5s ease-in-out;
}

/* ----------------- Butoane Generale ----------------- */
button, select {
  min-width: 220px;
  max-width: 220px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  transition: all 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

header button, header select {
  min-width: 120px;
  max-width: 120px;
  height: 36px;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
}

button::after, select::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.2) 100%);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
}

button:hover::after, select:hover::after {
  left: 125%;
}

button:hover, select:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active, select:active {
  transform: scale(0.98);
}
/* ----------------- Temă Default (fallback) ----------------- */
body:not(.theme-dark):not(.theme-light):not(.theme-nordic):not(.theme-normand):not(.theme-epic),
header, footer {
  background-color: #e0f2fe !important;
  color: #10b981 !important;
}

body:not(.theme-dark):not(.theme-light):not(.theme-nordic):not(.theme-normand):not(.theme-epic) button,
body:not(.theme-dark):not(.theme-light):not(.theme-nordic):not(.theme-normand):not(.theme-epic) select {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* ----------------- Tema Dark ----------------- */
.theme-dark body, .theme-dark header, .theme-dark footer {
  background-color: #0f172a !important;
  background-image: none !important;
  color: #94a3b8 !important;
}
.theme-dark #header-title {
  color: #facc15 !important; /* galben contrastant */
  text-shadow: 0 0 4px rgba(255, 255, 0, 0.4);
}

.theme-dark button, .theme-dark select {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

.theme-dark .main-background {
  background-color: rgba(15, 23, 42, 0.85) !important; /* 85% opacitate */
}

/* ----------------- Tema Light ----------------- */
.theme-light body, .theme-light header, .theme-light footer {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
}

.theme-light button, .theme-light select {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

.theme-light .main-background {
  background-color: #ffffff !important;
}

/* ----------------- Tema Nordic ----------------- */
.theme-nordic body, .theme-nordic header, .theme-nordic footer {
  background-color: #5e81ac !important;
  background-image: none !important;
  color: #eceff4 !important;
}

.theme-nordic button, .theme-nordic select {
  background-color: #81a1c1 !important;
  color: #0f172a !important;
}

.theme-nordic .main-background {
  background-color: #5e81ac !important;
}

/* ----------------- Tema Normand ----------------- */
.theme-normand body, .theme-normand header, .theme-normand footer {
  background-color: #b45309 !important;
  background-image: none !important;
  color: #fef9c3 !important;
}

.theme-normand button, .theme-normand select {
  background-color: #ea580c !important;
  color: #ffffff !important;
}

.theme-normand .main-background {
  background-color: #b45309 !important;
}

/* ----------------- Tema Epic ----------------- */
.theme-epic body, .theme-epic header, .theme-epic footer {
  background: linear-gradient(135deg, #f43f5e, #8b5cf6, #10b981) !important;
  color: #f9fafb !important;
}

.theme-epic button, .theme-epic select {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.theme-epic .main-background {
  background: linear-gradient(135deg, #f43f5e, #8b5cf6, #10b981) !important;
}

/* ----------------- Tranziție Generală ----------------- */
body, main, header, footer {
  transition: all 0.4s ease-in-out;
}
/* ───── Etapa 1: Gradient Flow animat pe <main> doar în Mod Full Grafic ───── */
body.graphic main.main-background {
  background: linear-gradient(135deg, #4f46e5, #06b6d4, #3b82f6, #4f46e5);
  background-size: 400% 400%;
  animation: gradientFlowMain 20s ease infinite;
}

@keyframes gradientFlowMain {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
/* ───── Etapa 2: Parallax „particle” layers în background (doar în Mod Full Grafic) ───── */
body.graphic main.main-background {
  position: relative;
  overflow: hidden;
}

/* Layer 1: fine grid de particule */
body.graphic main.main-background::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: moveParticles1 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Layer 2: particule mai rare, viteza diferită */
body.graphic main.main-background::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: moveParticles2 120s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes moveParticles1 {
  from { transform: translate(0,0); }
  to   { transform: translate(-50%, -50%); }
}

@keyframes moveParticles2 {
  from { transform: translate(0,0); }
  to   { transform: translate(-25%, -25%); }
}

/* Asigură conținutul peste particule */
body.graphic main.main-background > * {
  position: relative;
  z-index: 1;
}
/* ───── Etapa 3: Pulse îmbunătățit + Light-Sweep pe logo SCOP (doar în Mod Full Grafic) ───── */
body.graphic header #header-title {
  position: relative;
  display: inline-block;
  animation: softPulse2 6s cubic-bezier(0.4, 0.0, 0.6, 1.0) infinite;
  overflow: hidden;
}

/* Light-Sweep pseudo peste text */
body.graphic header #header-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-25deg);
  animation: sweepLogo 8s ease-in-out infinite;
}

/* Pulse mai fluid */
@keyframes softPulse2 {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
  }
  50% {
    transform: scale(1.03);
    opacity: 0.92;
    text-shadow: 0 0 20px rgba(255,255,255,0.8);
  }
}

/* Light-Sweep mișcarea glisantă */
@keyframes sweepLogo {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}
/* ───── Theme-aware gradient stops ───── */
body.graphic {
  --main-bg-stop1: #4f46e5;
  --main-bg-stop2: #06b6d4;
  --main-bg-stop3: #3b82f6;
  --main-bg-stop4: #4f46e5;
}
body.graphic.theme-dark {
  --main-bg-stop1: #0f172a;
  --main-bg-stop2: #1e293b;
  --main-bg-stop3: #334155;
  --main-bg-stop4: #0f172a;
}
body.graphic.theme-light {
  --main-bg-stop1: #e0f2fe;
  --main-bg-stop2: #bae6fd;
  --main-bg-stop3: #7dd3fc;
  --main-bg-stop4: #e0f2fe;
}
body.graphic.theme-nordic {
  --main-bg-stop1: #64748b;
  --main-bg-stop2: #cbd5e1;
  --main-bg-stop3: #94a3b8;
  --main-bg-stop4: #64748b;
}
body.graphic.theme-normand {
  --main-bg-stop1: #c084fc;
  --main-bg-stop2: #f9a8d4;
  --main-bg-stop3: #f472b6;
  --main-bg-stop4: #c084fc;
}
body.graphic.theme-epic {
  --main-bg-stop1: #7f1d1d;
  --main-bg-stop2: #b91c1c;
  --main-bg-stop3: #dc2626;
  --main-bg-stop4: #7f1d1d;
}

/* ───── Updated Gradient Flow using variables ───── */
body.graphic main.main-background {
  background: linear-gradient(
    135deg,
    var(--main-bg-stop1),
    var(--main-bg-stop2),
    var(--main-bg-stop3),
    var(--main-bg-stop4)
  );
  background-size: 400% 400%;
  animation: gradientFlowMain 20s ease infinite;
}

@keyframes gradientFlowMain {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
/* ───── Etapa 4: Tooltip și Bounce rafinat pe steaguri ───── */

/* Tooltip basic la hover pe Desktop */
.flag-img {
  position: relative;
}

.flag-img::after {
  content: attr(data-lang); /* Folosim atributul data-lang */
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

/* Afișare la hover */
.flag-img:hover::after {
  opacity: 1;
}

/* Bounce rafinat când selectezi un steag */
.flag-img.selected {
  animation: bounceFlag 0.6s ease;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
}

@keyframes bounceFlag {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.15); }
  50%  { transform: scale(0.95); }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
/* ───── Etapa 5: Glow & Ripple Effect pe Butoane (doar în Mod Full Grafic) ───── */

/* Glow general la hover */
body.graphic button:hover, 
body.graphic select:hover {
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8), 0 0 24px rgba(59, 130, 246, 0.6);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  transform: translateY(-2px);
}

/* Ripple effect: container relativ */
body.graphic button, 
body.graphic select {
  position: relative;
  overflow: hidden;
}

/* Pseudo-element pentru ripple */
body.graphic button::before, 
body.graphic select::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

/* Activăm ripple la click */
body.graphic button:active::before, 
body.graphic select:active::before {
  width: 200%;
  height: 200%;
  opacity: 0;
  transition: width 0s, height 0s, opacity 0.6s ease;
}
/* ───── Etapa 6: Fade-Out / Fade-In & Page Reveal pentru SCOP (Full Graphic Mode) ───── */

/* Fază 1: Body fade out/in */
body.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.fade-in {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Fază 2: Page Reveal la încărcare principală */
body.graphic main.main-background > * {
  opacity: 0;
  transform: translateY(30px);
  animation: pageReveal 0.8s ease forwards;
  animation-delay: 0.6s;
}

@keyframes pageReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───── Etapa 7: Scroll Animations Premium pentru SCOP (Full Graphic Mode) ───── */

/* Pregătim animațiile */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Când devin vizibile */
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* Variante suplimentare pentru efecte diferite */
[data-animate="left"] {
  transform: translateX(-30px);
}
[data-animate="right"] {
  transform: translateX(30px);
}
[data-animate="left"].animated,
[data-animate="right"].animated {
  transform: translateX(0);
}
/* ───── Etapa 8: Sticky Gold Progress Bar de Scroll pentru SCOP (Full Graphic Mode) ───── */

/* Container Gold Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #d4af37, #f1c40f, #d4af37);
  background-size: 200% 200%;
  animation: goldShimmerBar 3s linear infinite;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
}

/* Animație sclipire a Gold Bar */
@keyframes goldShimmerBar {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ───── Etapa 9: Loader Avansat SCOP Premium ───── */

/* Loader principal - ecran full */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Text SCOP */
.loader-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: #ffffff;
  animation: softPulse2 4s ease-in-out infinite;
}

/* Subtitlu motivațional */
.loader-subtitle {
  margin-top: 12px;
  font-size: 1.2rem;
  color: #94a3b8;
  opacity: 0.8;
  animation: fadeMessage 6s infinite;
}

/* Dot animat */
.dot {
  margin-top: 24px;
  width: 16px;
  height: 16px;
  background-color: #3b82f6;
  border-radius: 50%;
  animation: pulseDot 1.5s infinite ease-in-out;
}

/* Pulse SCOP */
@keyframes softPulse2 {
  0%, 100% { transform: scale(1); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
  50% { transform: scale(1.05); text-shadow: 0 0 20px rgba(255,255,255,0.9); }
}

/* Pulse Dot */
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

/* Fade pentru mesaje */
@keyframes fadeMessage {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}



/* === SCOP: quizPractice.html - premium dark gold === */
.quiz-wrapper {
  padding: 2rem;
  text-align: center;
  color: gold;
}
.quiz-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: gold;
}
.quiz-subtitle {
  color: #d4af37aa;
  margin-bottom: 2rem;
}
.quiz-card {
  border: 1px solid gold;
  border-radius: 2rem;
  padding: 2rem;
  max-width: 860px;
  margin: 0 auto;
  background-color: #0c0c0c;
}
.quiz-toggle {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.quiz-btn {
  border: 1px solid gold;
  border-radius: 1rem;
  padding: 1rem 2rem;
  color: gold;
  cursor: pointer;
  transition: all 0.3s ease;
}
.quiz-btn.active,
.quiz-btn:hover {
  background-color: gold;
  color: black;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.quiz-select {
  background: transparent;
  border: 1px solid gold;
  color: gold;
  padding: 0.75rem;
  border-radius: 0.75rem;
  width: 100%;
}
.quiz-select option {
  background: black;
  color: gold;
}
.section-header {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 1rem;
  border-bottom: 1px solid gold;
  padding-bottom: 0.5rem;
}
.quiz-action {
  margin-top: 1.5rem;
  background: transparent;
  color: gold;
  border: 1px solid gold;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.quiz-action:hover {
  background: gold;
  color: black;
}


/* === FIX suplimentar – încadrare corectă pentru butoanele cardului Instrumente în mod grafic === */
#quiz-category-tools .quiz-action-btn {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

#quiz-category-tools .quiz-desc {
  text-align: center;
  margin-bottom: 1rem;
}

#quiz-category-tools div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* === Stiluri pentru interfața quizului activ === */
.quiz-frame {
  padding: 2rem;
  max-width: 860px;
  margin: auto;
  color: #f5d776;
  background-color: #0f0f0f;
  border-radius: 1.5rem;
  box-shadow: 0 0 12px rgba(245, 215, 118, 0.2);
  font-family: 'Segoe UI', sans-serif;
}

.quiz-frame .quiz-question {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #f5d776;
  text-shadow: 0 0 3px #f5d77699;
}

.quiz-frame .quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-frame .quiz-answer {
  padding: 1rem 1.5rem;
  border: 2px solid #f5d776;
  border-radius: 1rem;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  text-align: center;
}

.quiz-frame .quiz-answer:hover {
  background-color: #f5d776;
  color: #0f0f0f;
  box-shadow: 0 0 12px #f5d776aa;
}

.quiz-frame .quiz-answer.correct {
  background-color: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.quiz-frame .quiz-answer.incorrect {
  background-color: #f44336;
  color: #fff;
  border-color: #f44336;
}

.quiz-frame .quiz-progress {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  color: #ffd87c;
}
.quiz-back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #f5d776;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  padding: 0.3rem 0.6rem;
  border: 1px solid #f5d776;
  border-radius: 6px;
  background-color: rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}
.quiz-back-btn:hover {
  background-color: #f5d776;
  color: #0f0f0f;
}
.quiz-btn, .quiz-btn-small {
  cursor: pointer;
  background: #4fd1c5;
  color: #222;
  border: none;
  border-radius: 0.8rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  margin-top: 0.2rem;
  transition: background 0.2s;
}
.quiz-btn:hover, .quiz-btn-small:hover {
  background: #38a169;
}
.text-gold {
  color: #FFD700 !important;
}
.border-gold {
  border-color: #FFD700 !important;
}

.text-gold {
  color: #FFD700 !important;
}
.border-gold {
  border-color: #FFD700 !important;
}

.header-btn-gold:hover {
  background: #FFD700;
  color: #222 !important;
}
.header-btn-gold {
  color: #FFD700 !important;
  font-weight: 600;
  padding: 10px 24px;
  border: none !important;
  border-radius: 20px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 1.09rem;
  transition: background 0.2s, color 0.2s, box-
/* Desktop: text + border */
.header-btn-gold {
  color: #FFD700 !important;
  font-weight: 600;
  padding: 10px 24px;
  border:  none !important;
  border-radius: 20px;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  font-size: 1.09rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: transparent;
  box-shadow: 0 2px 8px rgba(212,175,55,0.10);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

/* Mobil: doar icon, fără border, font mic, padding mic */
@media (max-width: 800px) {
  .header-btn-gold {
    border: none !important;
    box-shadow: none !important;
    font-size: 1.45em;
    padding: 6px 10px;
    background: transparent !important;
    letter-spacing: 0;
  }
  .header-btn-gold span { display: none; }
}
.header-btn-gold.noborder {
  border: none !important;
  box-shadow: none !important;
}

header {
  z-index: 20; /* sau chiar mai mare dacă vrei */
}

#languageSelector .lang-option {
  cursor: pointer;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  color: #facc15;
}

#languageSelector .lang-option:hover {
  text-decoration: underline;
  color: #ffd700;
}

#languageSelector .lang-option.active {
  color: #FFD700 !important;
  text-decoration: underline;
  font-weight: bold;
}

.lang-counter {
  display: inline-flex;
  gap: 4px;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.lang-counter .digit-od {
  display: inline-block;
  transition: transform 0.3s ease;
}
#langOdometer {
  position: relative;
  z-index: 99999 !important;
  display: inline-flex;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: #FFD700;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

#langOdometer .digit-od {
  display: inline-block;
  transition: transform 0.3s ease;
}
#langOdometer {
  margin-left: 16px; /* sau 24px pentru mai mult spațiu */
}
/* CSS pentru lista badge-urilor - stil premium elegant */
#allBadgesList {
  background: #1e1e1e;
  border: 2px solid #FFD700; /* bordură gold */
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-height: 70vh;
  overflow-y: auto;
  font-family: 'Poppins', sans-serif;
}

.badge-card {
  background: #2c2f33;
  color: #f9e79f; /* galben pal */
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  width: calc(20% - 1rem);
  box-shadow: 0 3px 10px rgba(255 215 0 / 0.5);
  display: inline-block;
  vertical-align: top;
  text-align: center;
  transition: background 0.3s ease;
}

.badge-card.badge-locked {
  color: #b3a26d; /* galben pal mai estompat */
  background: #1a1a1a;
  box-shadow: none;
}

.badge-card:hover:not(.badge-locked) {
  background: #3a3d42;
  box-shadow: 0 0 15px #FFD700;
}

.badge-card div {
  line-height: 1.3;
}

.badge-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.badge-card .name {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.badge-card .desc {
  font-size: 0.9rem;
  opacity: 0.85;
  min-height: 2.6em;
  margin-bottom: 0.5rem;
}

.badge-progress-bar {
  background: #555;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.3rem 0;
}

.badge-progress-fill {
  background: #FFD700;
  height: 100%;
  transition: width 0.5s;
}

.badge-status {
  font-size: 1.3rem;
  opacity: 0.9;
}

.badge-status.locked {
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .badge-card {
    width: calc(50% - 1rem) !important;
  }
}
@media (max-width: 480px) {
  .badge-card {
    width: 100% !important;
  }
}
/* --- Agenda planner responsive layout --- */
.agenda-flex-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 960px) {
  .agenda-flex-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
  #agendaList { flex: 1 1 0; min-width: 0; }
  #agendaFormContainer { width: 360px; min-width: 300px; }
}

/* Carduri eveniment premium */
#agendaList .planner-section-card {
 padding: 1.2em 1.5em;
  background: #1b1c25 !important;
  color: #fff !important;
  border-radius: 1.1em;
  box-shadow: 0 2px 14px 0 #0000000a;
  margin-bottom: 2rem;
}
#agendaList .gold-gradient,
#agendaFormContainer .gold-gradient,
.agenda-form-label-gold {
  background: linear-gradient(90deg,#ffd700 30%,#ffe587 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

/* Formular premium */
#agendaFormContainer .planner-section-card {
  background: #23243a !important;
  color: #fff !important;
  border-radius: 1.1em;
  box-shadow: 0 2px 14px 0 #00000011;
  margin-bottom: 2rem;
}
#agendaForm input,
#agendaForm select {
  background: #181b25 !important;
  color: #fff !important;
  border: 1.5px solid #ffd70055;
  border-radius: 0.6em;
  padding: 0.65em 1em;
  margin-bottom: 0.2em;
  font-size: 1em;
  width: 100%;
  transition: border 0.17s;
}
#agendaForm label {
  margin-top: 0.5em;
  color: #ffd700;
  font-weight: 500;
  letter-spacing: .01em;
  font-size: 1em;
  display: block;
}
#agendaForm input[type="color"] {
  width: 60px;
  height: 34px;
  padding: 0.1em;
  border: 1.5px solid #ffd70099;
  background: none !important;
  margin-bottom: 0.4em;
}
#agendaForm button.scop-btn {
  margin-top: 0.7em;
}

/* Responsive: pe mobil formularul sub listă */
@media (max-width: 959px) {
  .agenda-flex-main { flex-direction: column; }
  #agendaFormContainer, #agendaList { width: 100%; min-width: 0; }
}


.main-buttons-premium {
  display: grid;
  grid-template-columns: repeat(3, 320px);  /* 3 coloane, fiecare fixă */
  gap: 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
  justify-content: center;
  place-items: center;
}

.main-buttons-premium button {
  width: 100%;
  max-width: 320px;
  min-width: 0;
  min-height: 60px;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  font-size: 1.17rem;
  padding: 1.1em 1.2em;
  border-radius: 1em;
  background: linear-gradient(92deg,#181d2b 65%,#242a3a 100%);
  color: #ffd700;
  font-weight: 700;
  border: 2.5px solid #333;
  box-shadow: 0 5px 24px #000b;
  transition: box-shadow 0.18s, background 0.17s, color 0.14s, transform 0.14s;
  display: flex;
  align-items: center;
  gap: 1.18em;
  justify-content: flex-start;
  overflow: hidden;
  margin: 0 auto;
}

@media (max-width: 1050px) {
  .main-buttons-premium {
    grid-template-columns: repeat(2, 320px); /* 2 coloane pe ecrane mai mici */
    max-width: 700px;
  }
}

@media (max-width: 700px) {
  .main-buttons-premium {
    grid-template-columns: 1fr;
    gap: 18px 0;
    padding: 0 .2rem 1.2rem .2rem;
    max-width: 99vw;
  }
  .main-buttons-premium button {
    max-width: 99vw;
    justify-content: center;
    text-align: center;
  }
}


.main-buttons-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* Centrează TOATE rândurile! */
  gap: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem 1rem;
}

.main-buttons-flex button {
  flex: 0 1 320px;
  width: 320px;
  min-width: 240px;
  max-width: 320px;
  min-height: 60px;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;
  font-size: 1.17rem;
  padding: 1.1em 1.2em;
  border-radius: 1em;
  background: linear-gradient(92deg,#181d2b 65%,#242a3a 100%);
  color: #ffd700;
  font-weight: 700;
  border: 2.5px solid #333;
  box-shadow: 0 5px 24px #000b;
  transition: box-shadow 0.18s, background 0.17s, color 0.14s, transform 0.14s;
  display: flex;
  align-items: center;
  gap: 1.18em;
  justify-content: flex-start;
  overflow: hidden;
  margin: 0;
}

/* Pe mobil: un buton pe rând, full width, centrat */
@media (max-width: 700px) {
  .main-buttons-flex {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 .2rem 1.2rem .2rem;
    max-width: 99vw;
  }
  .main-buttons-flex button {
    width: 100%;
    max-width: 99vw;
    justify-content: center;
    text-align: center;
  }
}
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
header {
  overflow: hidden !important;
}
.main-background {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}
#scop-particles-bg {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

@media (max-width: 800px) {
  #scop-particles-bg {
    display: none !important;
  }
  body {
    background: linear-gradient(135deg, #1e293b 0%, #4f46e5 100%);
  }
}
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.main-background {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}
* {
  box-sizing: border-box;
}

.disabled-btn {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(80%);
}

