/* ==========================================
   DESIGN SYSTEM & CORE CSS - HẢO HẢO 2026
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --color-pink-hot: #FF2F92;
  --color-pink-hot-hover: #E01E78;
  --color-pink-soft: #FFF0F6;
  --color-pink-soft-hover: #FFD6E8;
  --color-supervisor: #00A859;
  --color-supervisor-hover: #008F4C;
  --color-supervisor-light: #E6F7EF;
  
  --color-success: #52C41A;
  --color-warning: #FAAD14;
  --color-error: #FF4D4F;
  --color-gold: #FFD700;
  
  --color-text: #2D3748;
  --color-text-dark: #1A202C;
  --color-muted: #718096;
  --color-border: #E2E8F0;
  
  /* Fonts & Shadows */
  --font-family: 'Be Vietnam Pro', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 4px 14px rgba(255, 47, 146, 0.3);
  --shadow-supervisor: 0 4px 14px rgba(0, 168, 89, 0.3);
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Layout */
  --app-max-width: 420px;
  --header-height: 60px;
}

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

html {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: #ECECEF;
  scroll-behavior: smooth;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background-color: #FAF5F7;
  box-shadow: 0 0 48px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #FFF0F6;
}
::-webkit-scrollbar-thumb {
  background: var(--color-pink-hot);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-pink-hot-hover);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* --- Layout Helper Classes --- */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

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

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

/* --- Common Components --- */

/* --- Modern Mobile Header --- */
header.app-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  position: relative;
}

.header-menu-btn {
  background: none;
  border: none;
  color: var(--color-pink-hot);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

body.supervisor-mode .header-menu-btn {
  color: var(--color-supervisor);
}

.header-logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-logo-container img {
  height: 36px;
  width: auto;
  pointer-events: auto;
}

.header-user-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 40px;
  height: 40px;
}

/* Horizontal pill navigation */
.pill-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #fff;
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pill-nav::-webkit-scrollbar {
  display: none;
}

.pill-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  background-color: var(--color-pink-soft);
  color: var(--color-text-dark);
  transition: all 0.2s ease;
}

.pill-item svg {
  flex-shrink: 0;
}

.pill-item:hover {
  background-color: rgba(255, 47, 146, 0.15);
}

.pill-item.active {
  background: var(--color-pink-hot);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

body.supervisor-mode {
  background-color: #F0F2F5;
}

body.supervisor-mode .pill-item {
  background-color: var(--color-supervisor-light);
}

body.supervisor-mode .pill-item:hover {
  background-color: rgba(0, 168, 89, 0.15);
}

body.supervisor-mode .pill-item.active {
  background: var(--color-supervisor);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-primary {
  background-color: var(--color-pink-hot);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-color: var(--color-pink-hot-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 47, 146, 0.4);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-pink-soft);
  color: var(--color-pink-hot);
}
.btn-secondary:hover {
  background-color: var(--color-pink-soft-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--color-border);
  background: #fff;
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-pink-hot);
  color: var(--color-pink-hot);
  transform: translateY(-2px);
}

.btn-supervisor {
  background-color: var(--color-supervisor);
  color: #fff;
  box-shadow: var(--shadow-supervisor);
}
.btn-supervisor:hover {
  background-color: var(--color-supervisor-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 84, 235, 0.4);
}

.btn-supervisor-outline {
  border-color: var(--color-border);
  background: #fff;
  color: var(--color-supervisor);
}
.btn-supervisor-outline:hover {
  border-color: var(--color-supervisor);
  background-color: var(--color-supervisor-light);
  transform: translateY(-2px);
}

.btn:disabled {
  background-color: #E2E8F0 !important;
  color: #A0AEC0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Card */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: all 0.2s ease;
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-pink-hot);
  box-shadow: 0 0 0 3px rgba(255, 47, 146, 0.15);
}

body.supervisor-mode .form-control:focus {
  border-color: var(--color-supervisor);
  box-shadow: 0 0 0 3px rgba(47, 84, 235, 0.15);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFF0F6 0%, #FFE3EC 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255,47,146,0.15) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--color-pink-hot) 0%, #FF6B6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 24px;
}

.hero-image-container img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  border: 4px solid #fff;
}

/* Countdown Clock */
.countdown-container {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 24px;
}

.countdown-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 70px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.countdown-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-pink-hot);
  display: block;
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
}

/* Search bar */
.search-container {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--color-border);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.search-form .form-control {
  padding: 10px 16px;
}

/* Grid Views */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 48px 0 24px 0;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-pink-hot);
  margin: 8px auto 0 auto;
  border-radius: var(--radius-full);
}

/* Top Submissions (Home) */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.podium-card.rank-1 {
  grid-column: span 2;
  order: -1;
}

.podium-card.rank-2 {
  order: 1;
}

.podium-card.rank-3 {
  order: 2;
}

.podium-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.podium-card.rank-1 {
  border-color: #FFE082;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
  transform: translateY(-10px);
}
.podium-card.rank-1:hover {
  transform: translateY(-15px);
}
.podium-card.rank-2 {
  border-color: #E2E8F0;
}
.podium-card.rank-3 {
  border-color: #E2E8F0;
}

.podium-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.rank-1 .podium-badge { background-color: var(--color-gold); color: #8A6D00; }
.rank-2 .podium-badge { background-color: #C0C0C0; color: #4A4A4A; }
.rank-3 .podium-badge { background-color: #CD7F32; color: #fff; }

.podium-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 12px;
}
.rank-1 .podium-img {
  height: 200px;
}

.podium-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.podium-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.podium-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 12px 0;
}

.podium-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.rank-1 .podium-actions {
  flex-direction: row;
}

.podium-actions button {
  flex: 1;
  padding: 8px;
  font-size: 0.85rem;
}

/* Submission card (Gallery) */
.gallery-card {
  overflow: hidden;
}

.gallery-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
}

.gallery-card-content {
  padding: 16px;
}

.gallery-card-title {
  font-size: 1.05rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Steps Section */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--color-pink-soft);
  color: var(--color-pink-hot);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 16px auto;
}

/* Accordion (FAQ & Rules) */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-pink-hot);
}

body.supervisor-mode details[open] {
  border-color: var(--color-supervisor);
}

summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none; /* Hide default triangle */
}

summary::-webkit-details-marker {
  display: none; /* Hide default triangle in Safari */
}

summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-pink-hot);
  transition: transform 0.2s ease;
}

body.supervisor-mode summary::after {
  color: var(--color-supervisor);
}

details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.details-content {
  padding: 0 20px 20px 20px;
  color: var(--color-text);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: 16px;
}

/* --- Modern Mobile Footer --- */
footer.app-footer {
  background-color: #fff;
  border-top: 1px solid var(--color-border);
  padding: 40px 16px 80px 16px; /* extra bottom padding for sticky bar */
  text-align: center;
  margin-top: auto;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin: 0 auto 12px auto;
  display: block;
}

.footer-text-muted {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.footer-hotline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}

.footer-email {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  word-break: break-all;
}

.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn.facebook {
  background-color: #1877F2;
}

.social-btn.tiktok {
  background-color: #000;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-link:hover {
  color: var(--color-pink-hot);
}

body.supervisor-mode .footer-link:hover {
  color: var(--color-supervisor);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* --- Drawer Menu --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--app-max-width));
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
}

.drawer-container {
  position: fixed;
  top: 0;
  left: calc(50% - min(100vw, var(--app-max-width))/2 - 280px);
  width: 280px;
  height: 100vh;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.drawer-container.active {
  left: calc(50% - min(100vw, var(--app-max-width))/2);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.drawer-header img {
  height: 32px;
  width: auto;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-muted);
  cursor: pointer;
}

.drawer-close:hover {
  color: var(--color-pink-hot);
}

body.supervisor-mode .drawer-close:hover {
  color: var(--color-supervisor);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: all 0.2s ease;
}

.drawer-link:hover {
  background-color: var(--color-pink-soft);
  color: var(--color-pink-hot);
}

body.supervisor-mode .drawer-link:hover {
  background-color: var(--color-supervisor-light);
  color: var(--color-supervisor);
}

.drawer-divider {
  border-top: 1px solid var(--color-border);
  margin: 16px 0;
}

/* Sticky Footer Menu (Mobile only) */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--app-max-width));
  max-width: var(--app-max-width);
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  z-index: 99;
  grid-template-columns: repeat(2, 1fr);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  border: none;
  background: none;
  cursor: pointer;
}
.mobile-nav-item.active {
  color: var(--color-pink-hot);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100vw, var(--app-max-width)) - 32px);
  max-width: calc(var(--app-max-width) - 32px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #fff;
  border-left: 4px solid var(--color-pink-hot);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.error { border-left-color: var(--color-error); }
.toast.supervisor { border-left-color: var(--color-supervisor); }

/* Dialog Modal styling */
dialog {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin: auto;
  padding: 24px;
  width: calc(100% - 40px);
  max-width: 450px;
  background: #fff;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dialog-title {
  font-size: 1.25rem;
}

.dialog-body {
  margin-bottom: 20px;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Auth Cards */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  background: linear-gradient(135deg, #FFF0F6 0%, #FFE3EC 100%);
}

body.supervisor-mode .auth-page {
  background: linear-gradient(135deg, #F0F5FF 0%, #D6E4FF 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.auth-card h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
}

.auth-card-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.auth-footer a {
  color: var(--color-pink-hot);
  font-weight: 700;
}
body.supervisor-mode .auth-footer a {
  color: var(--color-supervisor);
}

/* OTP modal styling */
.otp-input-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.otp-box {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
}
.otp-box:focus {
  border-color: var(--color-pink-hot);
  box-shadow: 0 0 0 3px rgba(255, 47, 146, 0.15);
}

/* Dashboard Header for Store & Supervisor */
.dashboard-nav {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  margin-bottom: 30px;
}

.dashboard-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-pink-soft);
  color: var(--color-pink-hot);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.supervisor-mode .avatar {
  background-color: var(--color-supervisor-light);
  color: var(--color-supervisor);
}

/* Camera simulation page */
.camera-box {
  background-color: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px auto;
  box-shadow: var(--shadow-lg);
}

.camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-canvas {
  display: none;
}

.camera-overlay {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  z-index: 10;
}

.shutter-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: #fff;
  border: 4px solid var(--color-pink-hot);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}
.shutter-btn:active {
  transform: scale(0.9);
}

.shutter-btn::after {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-pink-hot);
  display: block;
}

.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  height: 100%;
  gap: 12px;
}

/* Resize Slider */
.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
}

.scale-slider {
  flex: 1;
  accent-color: var(--color-pink-hot);
  height: 6px;
  border-radius: var(--radius-full);
}

/* Tabs */
.tabs-header {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: var(--color-pink-hot);
  border-bottom-color: var(--color-pink-hot);
}

body.supervisor-mode .tab-btn.active {
  color: var(--color-supervisor);
  border-bottom-color: var(--color-supervisor);
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Scoring Sliders */
.score-group {
  margin-bottom: 16px;
}
.score-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.score-slider {
  width: 100%;
  accent-color: var(--color-supervisor);
}

/* Detail submission page layout */
.submission-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

.detail-img-container img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.detail-info-box {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive Rules */
body {
  padding-bottom: 60px; /* space for mobile sticky nav */
}
.mobile-nav-bar {
  display: grid;
}

/* --- Supervisor Setup Reports & Checklist CSS --- */
.setup-report-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.setup-report-card {
  background: linear-gradient(135deg, var(--color-supervisor-light) 0%, #ffffff 100%);
  border: 1px solid rgba(0, 168, 89, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.setup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.setup-status-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.setup-status-tag.unscored {
  background-color: #ECECEF;
  color: var(--color-muted);
}
.setup-status-tag.scored {
  background-color: var(--color-supervisor-light);
  color: var(--color-supervisor);
  border: 1.5px solid var(--color-supervisor);
}

.setup-img-preview {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background-color: #fff;
  margin-bottom: 12px;
}

.setup-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--color-border);
  background-color: rgba(0, 168, 89, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.checklist-criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.checklist-criteria-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

.checklist-criteria-list li .points {
  font-weight: 700;
  color: var(--color-supervisor);
}

/* Checklist Checkbox Inputs */
.checklist-form-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.checklist-form-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background-color: rgba(0, 168, 89, 0.04);
  border: 1.5px solid rgba(0, 168, 89, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.checklist-form-item:hover {
  border-color: var(--color-supervisor);
  background-color: rgba(0, 168, 89, 0.08);
}

.checklist-form-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-supervisor);
  cursor: pointer;
}

.checklist-form-item .label-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}

.checklist-form-item .label-desc {
  font-size: 0.75rem;
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

/* --- Admin Control Panel CSS --- */
.admin-header-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.admin-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-subtitle {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

.admin-table-wrapper {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-bottom: 24px;
}

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

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--color-border);
  white-space: nowrap;
}

.admin-table th {
  background-color: #F7FAFC;
  font-weight: 700;
  color: var(--color-text-dark);
}

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

.admin-table tr:hover {
  background-color: #FAF5F7;
}

.admin-badge-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.admin-badge-tag.approved {
  background-color: rgba(82, 196, 26, 0.1);
  color: var(--color-success);
  border-color: rgba(82, 196, 26, 0.3);
}
.admin-badge-tag.pending {
  background-color: rgba(250, 173, 20, 0.1);
  color: var(--color-warning);
  border-color: rgba(250, 173, 20, 0.3);
}
.admin-badge-tag.rejected {
  background-color: rgba(255, 77, 79, 0.1);
  color: var(--color-error);
  border-color: rgba(255, 77, 79, 0.3);
}

.admin-action-row {
  display: flex;
  gap: 6px;
}

.admin-action-row button {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-reset-card {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.admin-reset-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* --- Mobile Responsive Header Optimizations --- */
#store-display-name, 
#sv-display-name, 
#admin-display-name {
  display: none !important;
}

/* --- Image Fallback Wrapper & Overlay --- */
.img-fallback-wrapper {
  position: relative;
  overflow: hidden;
  display: block;
}

.img-placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px;
  pointer-events: none;
  border-radius: inherit;
  box-sizing: border-box;
}


