/**
 * TIMSS School Party (حفلة المدرسة) — Dedicated Light EdTech Design System Stylesheet
 * Incorporates Circular Green Step Badges (#10B981 / #84cc16), Micro-Shadows, and Interactive Stage Controls
 */

/* ==========================================================================
   TOP BAR & CIRCULAR GREEN STEP BADGE
   ========================================================================== */
.timss-card-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 28px;
  background: linear-gradient(180deg, #182b47 0%, #132238 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px 20px 0 0;
}

.timss-step-badge-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Circular green step badge with emerald/lime gradient */
.timss-green-step-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 0 0 4px rgba(16, 185, 129, 0.14);
  flex-shrink: 0;
}

.timss-step-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timss-card-main-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.timss-card-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.timss-top-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.domain-tag {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid #BFDBFE;
  color: #60a5fa;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.cognitive-tag {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #FDE68A;
  color: #fbbf24;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.score-tag {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid #A7F3D0;
  color: #34d399;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   SIMULATION VIEWPORT CARD & STAGE
   ========================================================================== */
.sim-viewport-card {
  background: #182b47;
  border: none;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
}

.sim-view-header {
  padding: 18px 24px;
  background: #132238;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-header-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 4px solid #10B981;
  padding-right: 12px;
}

.badge-title {
  color: #f8fafc;
  font-size: 1.04rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-title i {
  color: #10B981;
}

.badge-subtitle {
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 500;
}

.sim-view-footer-info {
  margin-top: auto;
  padding: 14px 24px;
  background: #132238;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.info-pill {
  font-size: 0.84rem;
  color: #cbd5e1;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* SVG stages */
.svg-stage-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #0c1524 0%, #132238 100%);
}

.party-svg-stage, .conclusion-svg-stage {
  width: 100%;
  max-height: 430px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Narrative & Pillar Cards (Screen 1) */
.narrative-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(59, 130, 246, 0.14) 100%);
  border: 1px solid #A7F3D0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.narrative-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #182b47;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.narrative-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 6px;
}

.narrative-text p {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

.party-mission-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.pillar-item:hover {
  background: #182b47;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-sm);
}

.pillar-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-desc strong {
  display: block;
  font-size: 0.96rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.pillar-desc p {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* Sub-sections & Callouts */
.task-sub-section {
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid #BFDBFE;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.prompt-box {
  background: #132238;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 14px 0;
}

.prompt-label {
  font-size: 1rem;
  color: #f8fafc;
  display: block;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.hint-callout,
.budget-goal-banner,
.context-story-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #FDE68A;
  border-radius: 14px;
  padding: 14px 18px;
  color: #fde68a;
  font-size: 0.92rem;
}

.context-story-box {
  background: rgba(59, 130, 246, 0.16);
  border-color: #BFDBFE;
  color: #bfdbfe;
}

.current-spend-summary {
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #cbd5e1;
  text-align: center;
}

/* ==========================================================================
   TICKETS VIEW (SCREEN 2)
   ========================================================================== */
.tickets-showcase-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  flex: 1;
  justify-content: center;
  background: linear-gradient(180deg, #0c1524 0%, #132238 100%);
}

.ticket-card-realistic {
  display: flex;
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.2s ease;
}

.ticket-card-realistic:hover {
  transform: translateY(-2px);
}

.ticket-card-realistic::before,
.ticket-card-realistic::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: #132238;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.ticket-card-realistic::before { left: -12px; }
.ticket-card-realistic::after { right: -12px; }

.ticket-stub {
  width: 125px;
  background: linear-gradient(180deg, #3B82F6 0%, #2563EB 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: #FFFFFF;
  border-left: 2.5px dashed rgba(255, 255, 255, 0.55);
  text-align: center;
}

.stub-gold {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
}

.stub-year {
  font-size: 0.88rem;
  font-weight: 800;
}

.stub-num {
  font-size: 0.78rem;
  opacity: 0.92;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.ticket-body {
  flex: 1;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticket-header-row h4 {
  margin: 0;
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 800;
}

.ticket-price-pill {
  background: rgba(59, 130, 246, 0.16);
  border: 1.5px solid #93C5FD;
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

.highlight-gold {
  background: rgba(245, 158, 11, 0.16);
  border-color: #FCD34D;
  color: #fbbf24;
}

.ticket-details p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #94a3b8;
}

.math-expr-tag {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.math-expr-tag.highlight {
  color: #fbbf24;
  font-weight: 700;
}

.ticket-barcode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: #94A3B8;
  font-family: 'JetBrains Mono', monospace;
}

.price-increase-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.increase-arrow {
  background: rgba(16, 185, 129, 0.16);
  border: 1.5px solid #6EE7B7;
  color: #34d399;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 6px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   TICKETS GRID 12 (SCREEN 3)
   ========================================================================== */
.fraction-meter-bar {
  padding: 14px 22px;
  background: #182b47;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fraction-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.16);
  border: 1.5px solid #BFDBFE;
  padding: 6px 16px;
  border-radius: 999px;
  color: #93c5fd;
  font-weight: 700;
  font-size: 0.92rem;
}

.fraction-count-pill.target-reached {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10B981;
  color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.btn-clear-tickets {
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-clear-tickets:hover {
  color: #f87171;
  border-color: #FCA5A5;
  background: rgba(239, 68, 68, 0.16);
}

.tickets-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px;
  flex: 1;
  background: #132238;
}

.ticket-grid-item {
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.ticket-grid-item:hover {
  transform: translateY(-3px);
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
}

.ticket-grid-item.selected {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2), var(--shadow-md);
  transform: translateY(-2px);
}

.item-ticket-stub {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

.item-ticket-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ticket-icon {
  font-size: 1.65rem;
  color: #F59E0B;
}

.ticket-grid-item.selected .ticket-icon {
  color: #10B981;
}

.ticket-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.item-check-indicator {
  font-size: 1rem;
  color: #CBD5E1;
}

.ticket-grid-item.selected .item-check-indicator {
  color: #10B981;
}

.fraction-visual-explanation {
  padding: 14px 22px;
  background: #182b47;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.explain-card {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cbd5e1;
}

.math-fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: #60a5fa;
  font-size: 1.1rem;
  line-height: 1;
}

.math-fraction .den {
  border-top: 2px solid #2563EB;
  padding-top: 2px;
}

/* ==========================================================================
   BUDGET & DECORATIONS (SCREEN 4)
   ========================================================================== */
.budget-status-panel {
  padding: 18px 24px;
  background: #182b47;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.budget-meter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.budget-bar-track {
  height: 14px;
  background: #0f1c30;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.budget-bar-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.fill-good { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.fill-optimal { background: linear-gradient(90deg, #10B981, #34D399); }
.fill-danger { background: linear-gradient(90deg, #F43F5E, #EF4444); }

.budget-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.budget-alert.alert-info {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid #BFDBFE;
}

.budget-alert.alert-success {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid #6EE7B7;
}

.budget-alert.alert-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid #FCA5A5;
}

.decorations-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.decoration-pick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.decoration-pick-card input {
  display: none;
}

.decoration-pick-card:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.decoration-pick-card.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.deco-card-icon {
  font-size: 1.9rem;
}

.deco-card-info {
  flex: 1;
}

.deco-card-info h4 {
  margin: 0 0 2px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #f8fafc;
}

.deco-card-info .price-tag {
  font-size: 0.86rem;
  color: #fbbf24;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.check-icon {
  font-size: 1.25rem;
  color: #CBD5E1;
}

.decoration-pick-card.active .check-icon {
  color: #10B981;
}

.decorations-visual-preview {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #132238;
}

.preview-backdrop {
  width: 100%;
  height: 240px;
  background: linear-gradient(180deg, #132238 0%, #0c1524 100%);
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.03);
}

.deco-table-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.deco-element {
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.lights-deco {
  background: rgba(245, 158, 11, 0.22);
  border: 1.5px solid #F59E0B;
  color: #fde68a;
}

.banner-deco {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  color: #f8fafc;
}

.balloons-deco {
  background: rgba(244, 63, 94, 0.22);
  border: 1.5px solid #FB7185;
  color: #fda4af;
}

.flowers-deco {
  background: rgba(168, 85, 247, 0.22);
  border: 1.5px solid #C084FC;
  color: #d8b4fe;
}

.preview-placeholder {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   PIZZA SHOWCASE & SORTING (SCREEN 5)
   ========================================================================== */
.pizza-cards-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
  flex: 1;
  background: #132238;
}

.pizza-size-card {
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.pizza-size-card.highlight-cheapest {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
}

.size-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid #10B981;
}

.pizza-icon-graphic {
  font-size: 2rem;
}

.pizza-size-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #f8fafc;
}

.pizza-size-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #94a3b8;
}

.pizza-calc-box {
  margin-top: 4px;
  padding: 9px 12px;
  background: #132238;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
}

.pizza-calc-box .calc-cost {
  color: #fbbf24;
  font-weight: 800;
}

.pizza-calc-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 12px;
}

.row-label {
  font-size: 0.94rem;
  font-weight: 700;
  color: #f8fafc;
}

.row-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-display-cost {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid #FDE68A;
  color: #fbbf24;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.9rem;
}

.sortable-pizza-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.sort-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #182b47;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.sort-card-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.order-rank-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.order-card-content {
  flex: 1;
}

.order-card-content strong {
  display: block;
  font-size: 0.96rem;
  color: #f8fafc;
}

.order-card-content .cost-note {
  font-size: 0.82rem;
  color: #94a3b8;
}

.order-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-move-order {
  width: 30px;
  height: 26px;
  border-radius: 8px;
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-move-order:hover:not(:disabled) {
  background: #3B82F6;
  border-color: #60a5fa;
  color: #FFFFFF;
}

.btn-move-order:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   PIE CHART (SCREEN 6)
   ========================================================================== */
.pie-interactive-workspace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  flex: 1;
  background: #132238;
}

.fruit-token-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selector-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f8fafc;
}

.fruit-tokens-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.token-btn {
  flex: 1;
  min-width: 140px;
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #f8fafc;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.token-btn:hover {
  border-color: #93C5FD;
  transform: translateY(-2px);
}

.token-btn.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.token-icon {
  font-size: 1.35rem;
}

.token-name {
  font-size: 0.84rem;
  font-weight: 700;
  flex: 1;
  text-align: right;
}

.token-badge {
  font-size: 0.76rem;
  font-weight: 800;
  background: #0f1c30;
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.token-btn.active .token-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.btn-reset-pie {
  align-self: flex-start;
  background: #182b47;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #94a3b8;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-reset-pie:hover {
  color: #f87171;
  border-color: #FCA5A5;
  background: rgba(239, 68, 68, 0.16);
}

.pie-svg-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pie-chart-svg {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.1));
}

.sector-path {
  transition: fill 0.22s ease, transform 0.2s ease;
}

.pie-sector-group:hover .sector-path {
  filter: brightness(1.06);
}

/* ==========================================================================
   DRINKS & NUMBER LINE (SCREEN 7)
   ========================================================================== */
.drinks-meter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 18px 20px 8px;
  background: #132238;
}

.drink-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.lemonade-card.is-valid {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
}

.lemonade-card.is-warning {
  border-color: #FCA5A5;
  background: rgba(239, 68, 68, 0.16);
}

.stat-icon {
  font-size: 1.9rem;
}

.stat-info {
  flex: 1;
}

.stat-title {
  display: block;
  font-size: 0.86rem;
  color: #94a3b8;
  font-weight: 700;
}

.stat-cases {
  font-size: 1.08rem;
  font-weight: 800;
  color: #f8fafc;
}

.stat-bottles {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-right: 4px;
}

.stat-req {
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
  color: #34d399;
}

.lemonade-card.is-warning .stat-req {
  color: #f87171;
}

.stat-cost {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #cbd5e1;
  background: #132238;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.number-line-interactive-box {
  padding: 18px 22px;
  background: #182b47;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin: 10px 20px;
  box-shadow: var(--shadow-sm);
}

.nl-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.legend-item.yellow { color: #fbbf24; }
.legend-item.blue { color: #60a5fa; }

.custom-nl-slider {
  width: 100%;
  accent-color: #F59E0B;
  cursor: pointer;
  height: 8px;
  border-radius: 999px;
  background: #20375a;
}

.nl-svg-stage {
  margin-top: 12px;
}

.number-line-svg {
  width: 100%;
  height: auto;
  max-height: 150px;
}

/* ==========================================================================
   CARTESIAN GRAPH (SCREEN 8)
   ========================================================================== */
.graph-svg-wrapper {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: #132238;
}

.cartesian-line-graph {
  width: 100%;
  max-height: 390px;
  background: #182b47;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   INPUTS & FORMULAS IN QUESTION PANEL
   ========================================================================== */
.timss-number-input, .timss-short-input {
  background: #182b47;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.timss-number-input:focus, .timss-short-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.timss-short-input {
  width: 145px;
}

.input-with-unit-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-badge {
  background: #0f1c30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #cbd5e1;
  font-weight: 700;
}

/* Formula Selection Cards */
.formula-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.formula-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #182b47;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 13px 18px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.formula-card:hover {
  border-color: #93C5FD;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.formula-card.selected {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.card-formula-expr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.02rem;
  font-weight: 700;
  color: #f8fafc;
  direction: ltr;
}

.check-ico {
  font-size: 1.2rem;
  color: #CBD5E1;
}

.formula-card.selected .check-ico {
  color: #10B981;
}

/* Help Pulse Button */
.help-pulse {
  animation: pulseHelp 1.8s infinite;
}

@keyframes pulseHelp {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Button Start Party Intro */
.btn-start-party-flow {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 14px 30px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-start-party-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Unified Menu & Switcher Dropdown */
.experiment-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.experiment-switcher-item:hover {
  background: #0f1c30;
  color: #f8fafc;
}

.experiment-switcher-item.active-lab {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-weight: 800;
}
