/* ID Card Form - Premium Design System v2.1.0 */
:root {
  --bg: #0f172a;
  --card: rgba(15, 23, 42, 0.45);
  --card-border: rgba(148, 163, 184, 0.35);
  --accent: #38bdf8;
  --accent-dark: #0ea5e9;
  --muted: #d1d5db;
  --text: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  --glass: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(56, 189, 248, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
  z-index: -1;
}

/* --- Modes --- */
body.student-mode {
  --bg: #0f172a;
}

body.teacher-mode {
  --bg: #1c1917;
  --accent: #fb923c;
  --accent-dark: #f97316;
}

body.teacher-mode::before {
  background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 40%);
}

/* --- Layout --- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- Premium Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  z-index: 2;
  animation: scan 4s linear infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(56, 189, 248, 0.03) 2px,
      rgba(56, 189, 248, 0.03) 4px);
  pointer-events: none;
}

.logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  animation: breathe 4s ease-in-out infinite;
}

.logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(45deg, var(--accent), var(--accent-dark), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
  animation: oceanGlow 3s ease-in-out infinite;
}

body.teacher-mode .logo::before {
  animation: divineGlow 3s ease-in-out infinite;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  z-index: 1;
}

.hero-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

.version-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 800;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  opacity: 0.8;
}

/* --- Form Styles --- */
.form {
  background: var(--card);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.field {
  display: block;
  margin-bottom: 24px;
}

.field span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Floating Labels --- */
.field-group {
  position: relative;
  margin-bottom: 24px;
}

.field-group input {
  width: 100%;
  padding: 16px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.field-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(148, 163, 184, 0.6);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
}

.field-group input:focus~label,
.field-group input:not(:placeholder-shown)~label {
  top: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  padding: 0 8px;
  transform: translateY(-50%) translateX(-4px);
}

.field-group .field-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.field-group input:focus~.field-border {
  width: 100%;
}

/* --- Fieldsets --- */
.fieldset {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.fieldset legend {
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

.option-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.option-pill {
  flex: 1;
  min-width: 120px;
  position: relative;
  cursor: pointer;
}

.option-pill input {
  position: absolute;
  opacity: 0;
}

.option-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.option-pill input:checked+span {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* --- Inputs & Selects --- */
input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* --- Photo Section --- */
.photo-drop {
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  background: rgba(15, 23, 42, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.photo-drop:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.camera-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.camera-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.photo-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.photo-drop.live {
  border-color: var(--accent);
  background: #000;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.photo-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  padding: 0 20px;
}

.capture-btn,
.upload-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.capture-btn {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.capture-btn:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.upload-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.live-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  z-index: 10;
  animation: pulse 1s infinite;
}

.photo-preview {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.photo-preview img {
  width: 100%;
  display: block;
}

/* --- Buttons --- */
.actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

#submitBtn {
  width: 100%;
  max-width: 400px;
  padding: 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

#submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
  filter: brightness(1.1);
}

.option-pill input:checked+span {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* --- Inputs & Selects --- */
input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* --- Photo Section --- */
.photo-drop {
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  background: rgba(15, 23, 42, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.photo-drop:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.05);
}

.camera-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

.camera-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.photo-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.photo-drop.live {
  border-color: var(--accent);
  background: #000;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.photo-actions {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  padding: 0 20px;
}

.capture-btn,
.upload-btn {
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.capture-btn {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.capture-btn:disabled {
  background: #475569;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.upload-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.live-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ef4444;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  z-index: 10;
  animation: pulse 1s infinite;
}

.photo-preview {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.photo-preview img {
  width: 100%;
  display: block;
}

/* --- Buttons --- */
.actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

#submitBtn {
  width: 100%;
  max-width: 400px;
  padding: 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

#submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
  filter: brightness(1.1);
}

#submitBtn:active {
  transform: translateY(0);
}

/* --- Success Panel Premium Styles --- */
.success-panel {
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.success-panel__scrollwrap {
  max-width: 500px;
  margin: 0 auto;
}

.success-panel__title {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.success-panel__title-line {
  display: block;
}

.success-panel__title-school {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 8px;
  font-weight: 600;
}

/* Success Loader */
.success-loader {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.success-loader__spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(56, 189, 248, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.success-loader__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.success-loader__bar-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent);
}

.success-loader__hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Success Checkmark Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 30px auto;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4CAF50;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotatePlaceholder 4.25s ease-in;
}

.icon-line {
  height: 5px;
  background-color: #4CAF50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(76, 175, 80, 0.5);
  box-sizing: content-box;
  position: absolute;
}

.icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }

  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }

  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }

  100% {
    width: 25px;
    left: 14px;
    top: 46px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }

  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }

  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* Success Details Refined */
.success-details {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  align-items: baseline;
}

.success-details p {
  margin: 0;
  display: contents;
  /* Allows grid to handle children */
}

.success-details strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  opacity: 0.7;
}

.success-details span {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.success-photo {
  margin: 24px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.success-photo img {
  width: 100%;
  display: block;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.success-actions button {
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-actions button:not(.secondary) {
  background: var(--accent);
  color: #0f172a;
  border: none;
}

.success-actions button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-actions button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* --- Queue & Modal Premium Styles --- */
.queue-indicator {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #0f172a;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

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

.queue-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.queue-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
}

.queue-modal__content {
  position: relative;
  background: #1e293b;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.queue-modal__header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.queue-modal__subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.queue-modal__close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.queue-modal__body {
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
}

.queue-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.queue-modal__item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-modal__footer {
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  gap: 12px;
}

.queue-modal__footer-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.queue-modal__footer-btn.primary {
  background: var(--accent);
  color: #0f172a;
}

.queue-modal__footer-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Animations --- */
@keyframes scan {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes oceanGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
  }
}

@keyframes divineGlow {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(251, 146, 60, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.6);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* --- Responsive --- */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 16px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .form {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .option-row {
    flex-wrap: nowrap; /* Force side-by-side on mobile */
  }

  .option-pill {
    min-width: 0; /* Allow shrinking below 120px */
    flex: 1;
  }

  .photo-actions {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 20px 0 0;
    gap: 10px;
  }
  
  .capture-btn, .upload-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 14px 10px;
    white-space: nowrap;
  }

  .photo-drop {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
  }

  .success-details {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  
  .success-details p {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .success-details strong {
    margin-bottom: 0;
  }
}

.hidden {
  display: none !important;
}