@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Cinzel:wght@600;700;800;900&display=swap');

:root {
  /* ===================================================
     MODERN SANAKNET QASIDAH PALETTE (2026 REFINED)
     Harmonized Prestige: Modern Royal Emerald + Luminous 3D Gold + Deep Slate
     =================================================== */
  /* Modern Core Brand System */
  --primary-dark: #064e3b;       /* Deep Royal Emerald */
  --primary: #047857;            /* Elegant Emerald */
  --primary-hover: #059669;      /* Bright Vibrant Emerald */
  --primary-light: #10b981;      /* Crisp Mint */
  --primary-subtle: #ecfdf5;     /* Soft Mint Glass Tint */

  --secondary: #0f172a;          /* Deep Slate Midnight */
  --secondary-light: #1e293b;    /* High-contrast Slate */

  --accent-gold: #d97706;        /* Luminous Warm Amber Gold */
  --accent-gold-hover: #b45309;  /* Deep Gold */
  --gold-subtle: #fffbeb;        /* Warm Cream Card Tint */

  --border-color: #e2e8f0;       /* Crisp Modern Border */
  --text-muted: #64748b;         /* Muted Slate Caption */

  /* Crimson Accent */
  --crimson-950: #380415;
  --crimson-900: #4c0519;
  --crimson-800: #701a35;
  --crimson-700: #881337;
  --crimson-600: #9f1239;
  --crimson-500: #be123c;
  --crimson-100: #ffe4e6;
  --crimson-50:  #fff1f2;

  /* Royal Emerald Green */
  --emerald-950: #021a14;
  --emerald-900: #022c22;
  --emerald-800: #064e3b;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;

  /* Ornate 3D Gold */
  --gold-800: #78350f;
  --gold-700: #92400e;
  --gold-600: #b45309;
  --gold-500: #d97706;
  --gold-400: #f59e0b;
  --gold-300: #fbbf24;
  --gold-200: #fde68a;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Neutral Slate & Dark */
  --dark-950: #090d16;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --dark-600: #475569;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -4px rgba(6, 78, 59, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px -8px rgba(6, 78, 59, 0.16);
  --shadow-gold: 0 4px 20px rgba(217, 119, 6, 0.22);

  --font-serif: 'Cinzel', serif;
  --font-arabic: 'Amiri', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  overflow-x: hidden !important;
  max-width: 100vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--dark-800);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Islamic Geometric Top Accent Ribbon */
.top-pattern-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--crimson-800) 0%, var(--gold-400) 25%, var(--emerald-800) 50%, var(--gold-400) 75%, var(--crimson-800) 100%);
  box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

/* ===================================================
   PROFESSIONAL HEADER & NAVBAR (REDESIGNED)
   =================================================== */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* Brand Logo Section */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.brand-wrapper:hover .navbar-logo-img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--crimson-900);
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-text h1 span.year-badge {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.brand-text .brand-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--emerald-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1px;
}

/* Navbar Menu Items (Clean, No-Wrap, Sleek) */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  justify-content: flex-end;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-700);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  position: relative;
}

.nav-link i {
  font-size: 0.95rem;
  color: var(--slate-400);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--crimson-800);
  background-color: var(--crimson-50);
}

.nav-link:hover i {
  color: var(--crimson-700);
}

/* Active Nav State with Theme Harmony */
.nav-link.active {
  color: var(--crimson-900);
  background: linear-gradient(135deg, var(--crimson-50), #fff);
  border: 1px solid var(--crimson-100);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(136, 19, 55, 0.06);
}

.nav-link.active i {
  color: var(--crimson-700);
}

/* User Account Pill */
.nav-user-pill {
  background: linear-gradient(135deg, var(--slate-50), #ffffff);
  border: 1px solid var(--slate-200);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-900);
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.nav-user-pill .role-badge {
  background: var(--gold-100);
  color: var(--gold-800);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  border: 1px solid var(--gold-200);
  text-transform: uppercase;
}

.nav-user-pill .role-badge.admin {
  background: var(--crimson-100);
  color: var(--crimson-900);
  border-color: var(--crimson-100);
}

.nav-user-pill .role-badge.juri {
  background: var(--emerald-100);
  color: var(--emerald-900);
  border-color: var(--emerald-100);
}

/* Logout Button */
.btn-nav-logout {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: var(--crimson-700);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-nav-logout:hover {
  background: var(--crimson-700);
  color: #ffffff;
  border-color: var(--crimson-700);
  box-shadow: 0 4px 10px rgba(159, 18, 57, 0.25);
}

/* Mobile Toggle Hamburger */
.nav-toggle-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.7rem;
  font-size: 1.25rem;
  color: var(--crimson-900);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-toggle-btn:hover {
  background: var(--crimson-50);
}

/* ===================================================
   HERO SECTION (ELEGANT WITH OFFICIAL EMBLEM)
   =================================================== */
.hero-section {
  background: linear-gradient(145deg, #022c22 0%, #064e3b 45%, #0f172a 100%);
  color: #ffffff;
  padding: 3.5rem 1.4rem 4.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(159, 18, 57, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-centerpiece {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
}

.hero-logo-large {
  width: 200px;
  height: auto;
  max-width: 90%;
  margin: 0 auto 1.4rem;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.65)) drop-shadow(0 0 25px rgba(245, 158, 11, 0.35));
  animation: floatLogo 4.5s ease-in-out infinite;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef08a;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.hero-theme {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold-200);
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-meta-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #fce7f3;
  margin-top: 1rem;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-cta-btns {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================================================
   CONTAINERS & CARDS
   =================================================== */
.main-content {
  max-width: 1400px;
  width: 100%;
  margin: -2.2rem auto 3rem;
  padding: 0 1.4rem;
  position: relative;
  z-index: 10;
}

.container-standard {
  max-width: 1400px;
  width: 100%;
  margin: 2rem auto 3.5rem;
  padding: 0 1.4rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header-styled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================
   BUTTONS (TOUCH-FRIENDLY & THEMED)
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary = Royal Emerald Prestige */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.35);
  color: #ffffff;
}

/* Emerald Green Button */
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  box-shadow: 0 6px 20px rgba(6, 78, 59, 0.35);
  color: #ffffff;
}

/* Gold Button */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--dark-800);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-200);
  color: var(--dark-900);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-200);
  color: var(--dark-700);
}

.btn-outline:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--dark-900);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  min-height: 36px;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
  min-height: 52px;
  border-radius: var(--radius-sm);
}

/* ===================================================
   STAT CARDS & STAGE CONTROLLER
   =================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--primary);
}

.stat-card.emerald::after { background: var(--emerald-700); }
.stat-card.gold::after { background: var(--gold-500); }
.stat-card.blue::after { background: #0284c7; }

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--emerald-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-card.emerald .stat-icon { background: var(--emerald-50); color: var(--emerald-700); }
.stat-card.gold .stat-icon { background: var(--gold-100); color: var(--gold-700); }
.stat-card.blue .stat-icon { background: #e0f2fe; color: #0284c7; }

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--dark-600);
  font-weight: 600;
  margin-top: 2px;
}

/* Stage Control Banner */
.stage-control-box {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 32px rgba(6, 78, 59, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.stage-badge {
  background: #dc2626;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.stage-info h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.5rem;
}

.stage-info p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ===================================================
   TABLES & CHIPS
   =================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  background: #ffffff;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.styled-table thead tr {
  background: var(--slate-50);
  color: var(--dark-800);
  border-bottom: 2px solid var(--slate-200);
}

.styled-table th {
  padding: 0.65rem 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--dark-700);
  vertical-align: middle;
}

.styled-table td {
  padding: 0.65rem 0.65rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--dark-800);
  vertical-align: middle;
}

.styled-table tbody tr:hover {
  background: var(--primary-subtle);
}

.styled-table tbody tr:last-child td {
  border-bottom: none;
}

.table-compact th,
.table-compact td {
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-waiting { background: var(--slate-100); color: var(--dark-600); }
.badge-performing { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-completed { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-100); }
.badge-disqualified { background: #fef2f2; color: #991b1b; }

.badge-gold { background: var(--gold-100); color: var(--gold-800); border: 1px solid var(--gold-200); }
.badge-silver { background: var(--slate-100); color: var(--dark-700); border: 1px solid var(--slate-200); }
.badge-bronze { background: #ffedd5; color: #c2410c; border: 1px solid #fed7aa; }

/* Filter Chips */
.score-chip {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-600);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.score-chip:hover {
  background: var(--crimson-50);
  color: var(--crimson-800);
  border-color: var(--crimson-500);
}

.score-chip.active {
  background: var(--crimson-800);
  color: #ffffff;
  border-color: var(--crimson-800);
}

/* ===================================================
   SCORING INPUTS
   =================================================== */
.score-card-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.score-card-item:hover, .score-card-item:focus-within {
  border-color: var(--crimson-600);
  box-shadow: 0 4px 18px rgba(112, 26, 53, 0.08);
}

.score-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  gap: 0.8rem;
}

.score-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-900);
}

.score-range-tag {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-600);
  flex-shrink: 0;
}

.score-input-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.score-slider {
  flex: 1;
  min-width: 180px;
  accent-color: var(--crimson-700);
  height: 10px;
  cursor: pointer;
}

.score-stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.score-stepper-btn:hover {
  background: var(--crimson-50);
  color: var(--crimson-800);
  border-color: var(--crimson-500);
}

.score-number-box {
  width: 85px;
  height: 44px;
  padding: 0.4rem;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-sm);
  color: var(--crimson-900);
  background: #ffffff;
  transition: border-color 0.2s;
}

.score-number-box:focus {
  border-color: var(--crimson-700);
  outline: none;
  background: var(--crimson-50);
}

.score-chips-row {
  display: flex;
  gap: 6px;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* Live Score Summary Sticky Panel */
.live-score-summary {
  background: linear-gradient(135deg, var(--crimson-900), var(--crimson-800));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: sticky;
  top: 85px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.live-score-total {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--gold-200);
  line-height: 1;
  margin: 0.5rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ===================================================
   SINGLE-SCREEN JURY SCORING SYSTEM (1 LAYAR TERPADU)
   =================================================== */
.scoring-screen-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.4rem 0.8rem 2rem;
}

.participant-top-bar {
  background: linear-gradient(135deg, #022c22, #064e3b);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}

.participant-no-badge {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.participant-no-badge span {
  font-size: 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.9;
}

.participant-info-meta {
  flex: 1;
  min-width: 260px;
}

.participant-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.participant-group-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.participant-song-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.song-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-full);
  color: #f1f5f9;
}

.song-pill strong {
  color: var(--gold-200);
}

.participant-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Quick Fill Toolbar */
.quick-fill-toolbar {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.quick-fill-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-fill-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--dark-700);
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-quick-fill {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--dark-800);
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-quick-fill:hover {
  background: var(--crimson-800);
  color: #ffffff;
  border-color: var(--crimson-800);
  transform: translateY(-1px);
}

.btn-quick-delta {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-300);
  color: var(--emerald-800);
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-quick-delta:hover {
  background: var(--emerald-600);
  color: #ffffff;
}

/* Mode Switcher */
.view-mode-toggle {
  display: inline-flex;
  background: var(--slate-100);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
}

.view-mode-btn {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dark-600);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.view-mode-btn.active {
  background: #ffffff;
  color: var(--crimson-800);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Master 1-Screen Score Table */
.score-table-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.score-table-full {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.score-table-full thead th {
  background: linear-gradient(135deg, #022c22, #064e3b);
  color: #ffffff;
  padding: 0.7rem 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  border: none;
  text-align: left;
}

.score-table-full thead th.text-center {
  text-align: center;
}

.score-table-section-row td {
  background: #f8fafc;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--dark-800);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  letter-spacing: 0.03em;
}

.score-table-section-row.special-section td {
  background: #f5f3ff;
  color: #6b21a8;
  border-top: 2px solid #ddd6fe;
}

.score-table-row {
  border-bottom: 1px solid var(--slate-100);
  transition: background-color 0.15s ease;
}

.score-table-row:hover {
  background-color: var(--primary-subtle);
}

.score-table-row td {
  padding: 0.55rem 0.9rem;
  vertical-align: middle;
}

.criterion-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.criterion-name {
  font-weight: 800;
  color: var(--dark-900);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.criterion-desc {
  font-size: 0.76rem;
  color: var(--dark-600);
  line-height: 1.3;
}

.weight-range-pill {
  display: inline-block;
  background: var(--slate-100);
  color: var(--dark-700);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--slate-200);
  white-space: nowrap;
}

/* Quick Chips in Table */
.table-chips-group {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip-btn-sm {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dark-700);
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1.2;
}

.chip-btn-sm:hover {
  background: var(--crimson-50);
  border-color: var(--crimson-400);
  color: var(--crimson-800);
}

.chip-btn-sm.active {
  background: var(--crimson-800);
  border-color: var(--crimson-800);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(112, 26, 53, 0.25);
}

/* Compact Table Stepper & Input */
.table-stepper-control {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.btn-step-sm {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark-800);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s;
  flex-shrink: 0;
}

.btn-step-sm:hover {
  background: var(--crimson-600);
  color: #ffffff;
  border-color: var(--crimson-600);
}

.score-box-sm {
  width: 58px;
  height: 32px;
  padding: 0.2rem;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xs);
  color: var(--crimson-900);
  background: #ffffff;
  transition: all 0.15s;
}

.score-box-sm:focus {
  border-color: var(--crimson-700);
  background: var(--crimson-50);
  outline: none;
  box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.15);
}

.live-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 0.45rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 1rem;
  color: var(--crimson-800);
}

/* Bottom Control Dock */
.score-bottom-dock {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.score-notes-box {
  flex: 1;
  min-width: 260px;
}

.score-notes-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  background: var(--slate-50);
  resize: vertical;
  min-height: 44px;
  max-height: 75px;
  transition: border-color 0.2s;
}

.score-notes-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
}

.score-summary-cluster {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(135deg, #022c22, #064e3b);
  color: #ffffff;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.score-counter-item {
  text-align: center;
}

.score-counter-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-200);
  font-weight: 800;
}

.score-counter-val {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-top: 2px;
}

.score-counter-val.highlight {
  color: var(--gold-200);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.score-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-800);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-900);
  background-color: #ffffff;
  transition: all 0.2s ease;
  min-height: 44px;
}

.form-control:focus {
  border-color: var(--crimson-700);
  outline: none;
  box-shadow: 0 0 0 4px rgba(136, 19, 55, 0.15);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.4;
}

.alert-success { background: var(--emerald-50); color: var(--emerald-800); border: 1px solid var(--emerald-100); }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--gold-100); color: var(--gold-800); border: 1px solid var(--gold-200); }

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 1.25rem;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  padding: 2.2rem 1.4rem;
  text-align: center;
  color: var(--dark-600);
  font-size: 0.88rem;
  margin-top: auto;
}

/* ===================================================
   MOBILE BOTTOM DOCK
   =================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--slate-200);
  padding: 0.5rem 0.8rem;
  z-index: 800;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.mobile-dock-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--dark-600);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
}

.mobile-dock-item i {
  font-size: 1.15rem;
}

.mobile-dock-item.active, .mobile-dock-item:hover {
  color: var(--crimson-700);
}

/* ===================================================
   MEDIA QUERIES (PC vs SMARTPHONE)
   =================================================== */
@media (max-width: 1080px) {
  .nav-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--crimson-700);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1.4rem;
    gap: 1rem;
    display: none;
  }

  .nav-menu-wrapper.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .mobile-bottom-dock {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .main-content {
    margin-top: -1.4rem;
    padding: 0 1rem;
  }

  .container-standard {
    padding: 0 1rem;
    margin-top: 1.2rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 2.2rem 1rem 3.5rem;
  }

  .hero-logo-large {
    width: 110px;
  }

  .hero-meta-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

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

  .stage-control-box {
    padding: 1.3rem;
  }

  .btn-lg {
    width: 100%;
  }
}
