
.quiz-wrapper {
  max-width: 1000px;
  width: 90%;
  margin: 0 auto 1rem auto;
  padding: 2rem;
  box-sizing: border-box;
}
.quiz-card {
  border: 2px solid gold;
  border-radius: 2rem;
  padding: 2.5rem;
  background-color: #0c0c0c;
  width: 100%;
  box-sizing: border-box;
  color: #f7d99e;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}
.quiz-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #f7d99e;
  text-align: center;
}
.quiz-subtitle {
  color: #f7d99e;
  margin-bottom: 2rem;
  text-align: center;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-content: center;
}
.quiz-btn {
  background-color: #f7d99e;
  border: 1px solid gold;
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  color: black;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quiz-btn:hover {
  background-color: #1a1a1a;
  color: #f7d99e;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
}
.quiz-btn:hover .quiz-desc {
  color: #f7d99e;
}
.quiz-icon {
  max-width: 64px;
  height: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 4px gold);
}
.quiz-desc {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 0.5rem;
  color: black;
  transition: color 0.3s;
}



/* === CARDURI PREMIUM === */
.quiz-btn {
  background: linear-gradient(145deg, #111111, #1a1a1a);
  border: 2px solid gold;
  border-radius: 1.5rem;
  padding: 1.8rem 1.2rem;
  color: #f7d99e;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-btn:hover {
  background: linear-gradient(145deg, #3b2f00, #d6af36);
  color: black;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.7);
  transform: scale(1.03);
}

.quiz-btn:hover .quiz-desc {
  color: black;
}

.quiz-desc {
  color: #f7d99e;
  font-size: 0.9rem;
  opacity: 0.9;
  font-style: italic;
  transition: color 0.3s;
}

.quiz-btn div {
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 0 4px gold;
}



/* === TITLURI PREMIUM === */
.quiz-title, .quiz-subtitle, .quiz-selection h2 {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  letter-spacing: 0.5px;
}

.quiz-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.quiz-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* === BUTON ÎNAPOI === */
.back-btn {
  display: inline-block;
  margin: 2rem auto 1rem;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: bold;
  color: black;
  background-color: #ffd700;
  border: none;
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: black;
  color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7);
}


/* === STIL CARD ACTIV === */
.quiz-btn.active {
  background: linear-gradient(145deg, #4d3a00, #f7d99e);
  color: black;
  border: 2px solid #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  transform: scale(1.04);
}

/* === INFO SELECTIE === */
#quizSelectionInfo {
  font-size: 1rem;
  margin-top: 1rem;
  color: #ffd700;
  font-weight: 600;
  text-align: center;
}

/* === SELECTOARE === */
.selector-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.8rem;
  max-width: 320px;
  margin: 0 auto 1rem auto;
}

.selector-container label {
  font-size: 0.95rem;
  color: #ffd700;
  margin-bottom: 0.3rem;
  text-align: left;
}

.selector-container select.selector {
  background-color: #1a1a1a;
  color: #f7d99e;
  border: 1px solid #ffd700;
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  width: 100%;
  appearance: none;
}

/* === ACTIUNI === */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.quiz-action-btn {
  background-color: #ffd700;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.quiz-action-btn:hover {
  background-color: black;
  color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.7);
}


/* === SELECTOR CONTAINER FLEX LEFT-RIGHT === */
.selector-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.selector-label {
  min-width: 140px;
  text-align: left;
  color: #ffd700;
  font-size: 0.95rem;
  font-weight: 600;
}

.selector {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background-color: #1a1a1a;
  color: #f7d99e;
  border: 1px solid #ffd700;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  appearance: none;
}

/* === ACTION BUTTONS REFINED === */
.action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quiz-action-btn {
  background-color: #ffd700;
  color: black;
  font-weight: bold;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.quiz-action-btn:hover {
  background-color: black;
  color: #ffd700;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}


.custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 240px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  pointer-events: none;
}


.button-with-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1e1e1e;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.info-icon:hover {
  background-color: #444;
  color: #ffd700;
}



/* DOAR pentru selecția de 5 categorii quizuri */
.quiz-card.quiz-selector-mode {
  max-width: 860px;
  padding: 1.5rem 1rem;
  margin: 0 auto 2rem auto;
}


/* === PROFIL & SCORURI PREMIUM - OVERRIDE === */
.scores-premium-bar {
  display: flex !important;
  justify-content: center;
  align-items: flex-end;
  gap: 2.2rem;
  margin-bottom: 1.1rem;
  margin-top: 2rem;
}
.scores-premium-bar .score-medal {
  background: linear-gradient(150deg, #fff6bf 60%, #f7e57c 100%);
  border-radius: 1.3rem;
  border: 2.5px solid #c6a64d;
  box-shadow: 0 2px 12px #ffd70044, 0 1px 2px #fff8c2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 74px;
  padding: 10px 0 9px 0;
}
.scores-premium-bar .score-medal .score-icon {
  font-size: 2.2rem;
  line-height: 2.4rem;
  margin-bottom: 2px;
}
.scores-premium-bar .score-medal .score-value {
  color: #6a5400;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 2px;
  text-shadow: 0 1px 8px #fff5b4;
}
.scores-premium-bar .score-medal .score-label {
  color: #bda033;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
  text-shadow: 0 1px 8px #fff8d0;
  letter-spacing: 0.04em;
}

.profile-compact-premium {
  background: rgba(254, 247, 191, 0.93);
  border: 1.8px solid #edd271;
  border-radius: 1.4rem;
  padding: 10px 18px;
  margin: 0 auto 1.8rem auto;
  width: fit-content;
  box-shadow: 0 2px 16px #ffe57c33;
  display: flex !important;
  gap: 1.3rem;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 700;
  color: #514218;
  text-shadow: 0 1px 8px #fff8d0;
}
.profile-compact-premium .profile-icon {
  font-size: 1.18rem;
  margin-right: 0.18rem;
}
.profile-compact-premium .profile-value {
  color: #876c0e;
  font-weight: 900;
  margin-right: 1.2rem;
}
@media (max-width: 700px) {
  .scores-premium-bar { gap: 0.9rem !important; }
  .scores-premium-bar .score-medal { width: 60px; padding: 8px 0; }
  .profile-compact-premium { font-size: 0.98rem; padding: 8px 4px; gap: 0.55rem; }
}


/* === SCORURI BARĂ PREMIUM === */
.scores-bar-premium {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  padding: 0.3rem 1.5rem;
  margin-bottom: 0.7rem;
  margin-top: 2rem;
  background: rgba(255,255,255,0.23);
  box-shadow: 0 2px 18px #c7ad4a2c, 0 1.5px 18px #fff8db19;
  border-radius: 2rem;
  font-size: 1.07rem;
  font-weight: 600;
  color: #4a3906;
  backdrop-filter: blur(5px);
  border: 1.5px solid #e8deae;
  letter-spacing: 0.04em;
}
.scores-bar-premium span {
  display: flex;
  align-items: center;
  gap: 0.33em;
  font-size: 1.11rem;
  font-weight: 700;
  text-shadow: 0 1px 6px #fffde0, 0 0 1px #c7a740;
}

.profile-bar-premium {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  padding: 0.27rem 1.2rem;
  margin: 0 auto 1.5rem auto;
  background: rgba(254,247,191,0.41);
  border-radius: 1.4rem;
  box-shadow: 0 2px 10px #ffe57c19;
  font-size: 1.04rem;
  font-weight: 600;
  color: #6c5506;
  text-shadow: 0 1px 4px #fff8d0;
  border: 1.2px solid #f1e6be;
}
.profile-bar-premium span {
  display: flex;
  align-items: center;
  gap: 0.20em;
  font-size: 1.02rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .scores-bar-premium, .profile-bar-premium {
    font-size: 0.92rem;
    gap: 0.55rem;
    padding: 0.17rem 0.25rem;
  }
}

/* === FIX pentru card Instrumente – încadrare perfectă a butoanelor */
#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;
}


/* === Stil dedicat pentru butoanele din cardul Instrumente === */
.quiz-tool-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-tool-group .quiz-action-btn {
  width: 90%;
  max-width: 260px;
}


.quiz-odometer {
  display: inline-block;
  font-family: 'Roboto Mono', 'Consolas', monospace;
  font-size: 2.2rem;
  letter-spacing: 0.07em;
  color: #ffd700;
  background: #181e2a;
  border-radius: 1.05em;
  padding: 5px 18px 5px 18px;
  min-width: 75px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
  vertical-align: middle;
}
.quiz-odometer .digit-od {
  display: inline-block;
  transition: transform 0.38s cubic-bezier(.68,-0.6,.32,1.6);
  will-change: transform;
}


.quiz-odometer {
  display: inline-block;
  font-family: 'Roboto Mono', 'Consolas', monospace;
  font-size: 1.27rem;
  letter-spacing: 0.06em;
  color: #39ff14;
  background: #181e2a;
  border-radius: 1.05em;
  padding: 3px 12px 3px 12px;
  min-width: 46px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  transition: box-shadow 0.3s;
  vertical-align: middle;
}
.quiz-odometer .digit-od {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(.68,-0.6,.32,1.6);
  will-change: transform;
}
/* Forțează padding zero DOAR pentru containerul cu trend */
#tab-trend .quiz-frame,
#tab-trend .chart-trend {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.quiz-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em 1em;
  align-items: center;
  margin-bottom: 1.2em;
}

.quiz-filter-row > * {
  margin-bottom: 0.3em;
}

.quiz-filter-row .reset-btn {
  margin-left: 1.3em;
  min-width: 7em;
  background: #282e31;
  border-radius: 0.7em;
  color: #ffe082;
  border: 1.2px solid #bda25c88;
  font-weight: 600;
  font-size: 1.03em;
  padding: 0.43em 1.2em;
  transition: background 0.14s, border 0.14s;
}

.quiz-filter-row .reset-btn:hover {
  background: #ffe08222;
  color: #23232e;
  border: 1.2px solid #ffe082;
}

@media (max-width: 950px) {
  .quiz-filter-row {
    flex-wrap: wrap;
    gap: 0.4em 0.6em;
  }
  .quiz-filter-row > * {
    min-width: 110px;
  }
  .quiz-filter-row .reset-btn {
    margin-left: 0;
    width: 100%;
    margin-top: 0.5em;
  }
}
.scop-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,19,27, 0.80);
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.scop-modal-main {
  animation: scop-modal-fadein 0.18s cubic-bezier(.67,-0.13,.37,1.13);
}
@keyframes scop-modal-fadein {
  from { opacity: 0; transform: translateY(60px) scale(.95);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
