:root {
  --bg-dark: #050505;
  --bg-card: rgba(12, 12, 12, 0.82);
  --primary-red: #e6192e;
  --primary-red-bright: #ff3347;
  --accent-glow: rgba(230, 25, 46, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-main: #f5f5f5;
  --text-muted: #a0a0a0;
  --glass-blur: blur(16px);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Outfit', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-image {
  position: fixed;
  inset: 0;
  background: url('cet.png') center/cover no-repeat;
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.88) 0%, rgba(10, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.92) 100%);
  z-index: -2;
  animation: overlayBreath 8s ease-in-out infinite alternate;
}

@keyframes overlayBreath {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0.88
  }
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.03;
  width: 400px;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1);
}

header {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  padding: 18px 30px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header img {
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: transform 0.4s var(--transition-smooth);
}

header img:hover {
  transform: scale(1.08) rotate(-3deg);
}

.header-text h1 {
  font-size: x-large;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(90deg,
      #c21526 0%, #ff6b7a 18%, #ffffff 35%, #ffffff 50%, #ff6b7a 68%, #c21526 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 10s linear infinite;
}

.back-btn {
  justify-self: end;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 6px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.back-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.header-quote {
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  color: transparent;
  background-image: linear-gradient(90deg, #777 0%, #cccccc 35%, #ffffff 50%, #cccccc 65%, #777 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 7s linear infinite;
  position: relative;
  z-index: 10;
}

main {
  flex: 1;
  padding: 50px 20px;
  max-width: 850px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.main-title {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(110deg,
      #ffffff 0%, #ffffff 15%,
      #ff4d5e 28%, #e6192e 38%,
      #ffffff 52%, #ffffff 60%,
      #ffb3ba 72%, #ffffff 82%,
      #c0c0c0 95%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 10s linear infinite;
}

.main-quote {
  font-size: 1rem;
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(90deg,
      #e6192e 0%, #ff8a94 25%, #ffffff 50%, #ff8a94 75%, #e6192e 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 10s linear infinite;
}

.card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-red);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), border-color 0.4s;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(230, 25, 46, 0.15), transparent 40%, transparent 60%, rgba(230, 25, 46, 0.08));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--accent-glow);
}

select,
textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 15px 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  color: white;
  font-size: 15px;
  transition: all 0.35s var(--transition-smooth);
  font-family: 'Inter', sans-serif;
}

select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(230, 25, 46, 0.15), 0 0 20px -5px var(--accent-glow);
}

textarea {
  height: 160px;
  resize: none;
  line-height: 1.5;
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.paste-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(230, 25, 46, 0.15);
  border: 1px solid rgba(230, 25, 46, 0.3);
  color: #ff6b7a;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s var(--transition-smooth);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paste-btn:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.paste-btn i {
  font-size: 12px;
}

.paste-btn.success {
  background: #25D366;
  border-color: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

button#calcBtn {
  position: relative;
  overflow: hidden;
  font-weight: 800;
  cursor: pointer;
  padding: 18px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 100%;
  transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
  background: linear-gradient(100deg,
      #8b0000 0%, #c21526 15%, #e6192e 30%,
      #ff8a94 45%, #ffffff 55%,
      #ff8a94 65%, #e6192e 78%, #c21526 90%, #8b0000 100%);
  background-size: 220% auto;
  color: #1a0005;
  font-weight: 900;
  animation: shimmer 5s linear infinite;
}

button#calcBtn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 35px rgba(230, 25, 46, 0.55), 0 8px 25px rgba(0, 0, 0, 0.4);
}

button#calcBtn:active {
  transform: translateY(0) scale(0.98);
}

button#calcBtn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
}

button#calcBtn:hover::after {
  animation: sweep 0.65s ease forwards;
}

#result {
  margin-top: 35px;
  animation: slideUp 0.5s var(--transition-smooth);
}

#finalScore {
  margin-bottom: 20px;
  text-align: center;
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(90deg, #ffffff 0%, #ff8a94 30%, #e6192e 50%, #ff8a94 70%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.1rem;
  animation: shimmer 5s linear infinite;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
}

th {
  padding: 12px;
  background: linear-gradient(90deg, #e6192e 0%, #ff8a94 45%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

td {
  padding: 14px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  transition: background 0.3s, transform 0.3s;
}

tr:hover td {
  background: rgba(230, 25, 46, 0.06);
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 70px;
  z-index: 10;
  animation: pulseLogo 2s infinite ease-in-out;
}

.loader-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top: 3px solid var(--primary-red);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.analyzing {
  letter-spacing: 4px;
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(90deg, #ffffff 0%, #ffb3ba 20%, #e6192e 40%, #ffffff 55%, #e6192e 70%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.sub-text {
  font-size: 10px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #606060, #bbbbbb, #ffffff, #bbbbbb, #606060);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

.progress-bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #c21526, #ff8a94, #ffffff, #ff8a94, #c21526);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: loadingBar 2s infinite ease-in-out;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s var(--transition-smooth);
}

.modal-content {
  background: linear-gradient(160deg, #0d0d0d 0%, #0a0a0a 50%, #0d0508 100%);
  padding: 45px 35px;
  border-radius: 16px;
  border: 1px solid rgba(230, 25, 46, 0.3);
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 0 60px var(--accent-glow), 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(230, 25, 46, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.modal-label {
  font-size: 12px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #888, #dddddd, #ffffff, #dddddd, #888);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}

#modalTotalScore {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  margin: 15px 0;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 25%, #ff8a94 55%, #e6192e 78%, #c21526 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subject-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 10px;
  border-bottom: 2px solid var(--primary-red);
  transition: transform 0.3s, background 0.3s;
}

.subject-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.sub-name {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
  background: linear-gradient(90deg, #888, #cccccc, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-score {
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #ffb3ba 35%, #e6192e 65%, #c21526 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content h2 {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 22%, #ff6b7a 44%, #e6192e 55%, #ffffff 75%, #cccccc 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-weight: 900;
  animation: shimmer 5s linear infinite;
}

.out-of-label {
  background: linear-gradient(90deg, #e6192e 0%, #ff8a94 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg,
      #146b32 0%, #25D366 18%, #5effa0 38%, #ffffff 50%,
      #5effa0 62%, #25D366 80%, #146b32 100%);
  background-size: 220% auto;
  color: #01200a;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: shimmer 4s linear infinite;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(37, 211, 102, 0.5), 0 0 8px rgba(255, 255, 255, 0.15);
}

.whatsapp-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
}

.whatsapp-btn:hover::after {
  animation: sweep 0.65s ease forwards;
}

.join-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg,
      #146b32 0%, #25D366 18%, #5effa0 38%, #ffffff 50%,
      #5effa0 62%, #25D366 80%, #146b32 100%) !important;
  background-size: 220% auto !important;
  color: #01200a !important;
  border: none !important;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: shimmer 4s linear infinite;
}

.join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.5) !important;
}

.join-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.join-btn:hover::after {
  animation: sweep 0.65s ease forwards;
}

footer {
  padding: 50px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.88);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contacts-list {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  border-right: 3px solid var(--primary-red);
  padding-right: 20px;
}

.contacts-list strong {
  background: linear-gradient(90deg, #e6192e 0%, #ff8a94 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

select option {
  background-color: #1a1a1a;
  color: white;
  padding: 10px;
}

.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-scale {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 220% center;
  }
}

@keyframes sweep {
  0% {
    left: -75%;
  }

  100% {
    left: 130%;
  }
}

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

  100% {
    transform: rotate(360deg)
  }
}

@keyframes pulseLogo {

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

  50% {
    transform: scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--accent-glow));
  }
}

@keyframes loadingBar {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(250%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeOut {
  from {
    opacity: 1
  }

  to {
    opacity: 0
  }
}

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

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

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

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

@keyframes floatParticle {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-15px) rotate(180deg);
    opacity: 1;
  }
}

@media(max-width:768px) {
  header {
    grid-template-columns: 45px 1fr 45px;
    padding: 12px 16px;
  }

  header img {
    height: 32px;
  }

  .header-text h1 {
    font-size: 0.95rem;
    letter-spacing: 1px;
  }

  .back-btn {
    padding: 5px 10px;
    font-size: 9px;
  }

  .header-quote {
    font-size: 10px;
    padding: 8px 10px;
  }

  main {
    padding: 30px 16px;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .main-quote {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 10px;
  }

  select,
  textarea {
    padding: 13px 14px;
    font-size: 14px;
    border-radius: 6px;
  }

  textarea {
    height: 140px;
  }

  button#calcBtn {
    padding: 15px;
    font-size: 12px;
    letter-spacing: 1.5px;
    border-radius: 8px;
  }

  table {
    font-size: 12px;
  }

  th {
    font-size: 9px;
    padding: 8px 4px;
  }

  td {
    padding: 10px 4px;
    font-size: 12px;
  }

  #finalScore {
    font-size: 0.95rem;
  }

  footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 35px 20px;
  }

  .contacts-list {
    text-align: center;
    border-right: none;
    padding-right: 0;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 15px;
  }

  .modal-content {
    padding: 30px 20px;
    width: 92%;
    border-radius: 14px;
  }

  #modalTotalScore {
    font-size: 52px;
  }

  #subjectGrid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .subject-box {
    padding: 10px;
  }

  .sub-score {
    font-size: 15px;
  }

  .sub-name {
    font-size: 9px;
  }

  .whatsapp-btn {
    padding: 12px;
    font-size: 11px;
  }

  .watermark {
    width: 250px;
  }

  .social-icons a {
    font-size: 22px;
  }
}

@media(max-width:420px) {
  header {
    grid-template-columns: 35px 1fr 40px;
    padding: 10px 12px;
  }

  header img {
    height: 28px;
  }

  .header-text h1 {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .back-btn {
    padding: 4px 8px;
    font-size: 8px;
  }

  main {
    padding: 20px 12px;
  }

  .main-title {
    font-size: 1.5rem;
  }

  .main-quote {
    font-size: 0.85rem;
  }

  .card {
    padding: 18px 14px;
  }

  select,
  textarea {
    padding: 12px;
    font-size: 13px;
  }

  button#calcBtn {
    padding: 14px;
    font-size: 11px;
  }

  th {
    font-size: 8px;
    padding: 6px 2px;
    letter-spacing: 0.5px;
  }

  td {
    padding: 8px 3px;
    font-size: 11px;
  }

  #modalTotalScore {
    font-size: 42px;
  }

  .modal-content {
    padding: 25px 15px;
  }

  .out-of-label {
    font-size: 10px;
  }

  .whatsapp-btn {
    padding: 10px;
    font-size: 10px;
    gap: 6px;
  }

  .join-btn {
    padding: 10px 16px;
    font-size: 11px;
  }

  footer {
    padding: 25px 15px;
    gap: 25px;
  }

  .contacts-list {
    font-size: 12px;
  }
}

body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.step-badge {
  min-width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff6b7a 50%, var(--primary-red) 100%);
  background-size: 200% auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(230, 25, 46, 0.3);
  animation: shimmer 3s linear infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

body.maintenance-mode .maintenance-overlay {
  display: flex;
}

body.maintenance-mode {
  overflow: hidden;
}

.maintenance-content {
  max-width: 600px;
  animation: modalPop 0.8s var(--transition-smooth);
}

.maintenance-title {
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #ffffff, #ff8a94, #e6192e, #ff8a94, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
  line-height: 1.2;
}

.maintenance-sub {
  color: var(--text-muted);
  letter-spacing: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 40px;
}

.countdown-placeholder {
  padding: 15px 30px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  display: inline-block;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 1px;
}
