:root {
  --accent-dark: #f97316;
  --muted: #6b7280;
  --panel: #fffaf6;
  --side-w: 240px;
  --logo: 30px;
  --gpad: 6px;
  --card-r: 6px;
  --qbtn: 26px;
  --qgap: 4px;
  --fs-sm: 11px;
  --fs-md: 13px;
  --fs-lg: 14px;
}

html,
body {
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 13px;
}

* {
  box-sizing: border-box;
}

.app {
  height: 100vh;
  display: flex;
  gap: 6px;
  padding: 0px;
  background: linear-gradient(180deg, #fff9f5, #fff3ea);
  align-items: stretch;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-width: 0;
}

.side {
  width: var(--side-w);
  background: linear-gradient(180deg, #fff6f0, #fffaf7);
  padding: 8px;
  border-radius: 10px;
  border-left: 1px solid rgba(255, 215, 180, 0.6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.brand {
  display: flex;
  gap: 6px;
  align-items: center;
}

.brand img {
  width: var(--logo);
  height: var(--logo);
  border-radius: 8px;
}

.title {
  font-family: "Playfair Display", serif; /* 🔥 stylish curly */
  font-size: 20px; /* larger */
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--accent-dark);
  line-height: 1.2;
}

.subtitle {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

.timer {
  padding: 5px 7px;
  border-radius: 8px;
  background: #fff4ea;
  border: 1px solid rgba(255, 218, 180, 0.8);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-dark);
}

.question-card {
  flex: 1;
  background: #fff;
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  padding: 8px;
  border-radius: var(--card-r);
  overflow: auto;
  border: 1px solid rgba(250, 230, 210, 0.8);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.question-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.qno {
  font-weight: 800;
  font-size: var(--fs-md);
}

.meta-sm {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.question {
  margin-top: 6px;
  font-size: var(--fs-md);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  padding: 6px;
}

.question img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
}

.options {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.opt {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #fde8d6;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
}

.opt.selected {
  border: 1px solid var(--accent-dark);
  background: #fff6f0;
  color: var(--accent-dark);
}

.controls {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

button {
  font-weight: 800;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.08);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(200, 180, 160, 0.5);
  color: var(--muted);
}

.btn-danger {
  background: #ef4444;
  color: #fff;
}

.side h3 {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--accent-dark);
  font-weight: 800;
}

.seg {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.seg button {
  flex: 0 1 auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff5ec;
  border: 1px solid rgba(255, 220, 180, 0.5);
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  min-width: 0;
}

.seg button.active {
  background: linear-gradient(90deg, #fff2ea, #fff4ed);
  border-color: #ffd8a8;
  color: var(--accent-dark);
  box-shadow: 0 6px 12px rgba(249, 115, 22, 0.05);
}

.picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--qgap);
  margin-top: 8px;
  overflow: auto;
  max-height: calc(100% - 220px);
  padding-right: 6px;
}

.qbtn {
  height: var(--qbtn);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff6ec;
  border: 1px solid rgba(255, 220, 180, 0.7);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.qbtn.answered {
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  border-color: #bbf7d0;
  color: #0b9a6b;
}

.qbtn.review {
  background: linear-gradient(90deg, #eef2ff, #e0e7ff);
  border-color: #c7d2fe;
  color: #2b6ee6;
}

/* VIEWED state: non-filled but with small orange corner ribbon */
/* This creates a triangular ribbon at top-left */
.qbtn.viewed {
  background: #fff6ec;
  border-color: rgba(255, 200, 150, 0.8);
  color: #111;
}

.qbtn.viewed::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 20px solid var(--accent-dark);
  border-right: 20px solid transparent;
  border-left: 0;
  transform-origin: 0 0;
  border-bottom: 0;
  z-index: 2;
  border-top-left-radius: 4px;
}

.qbtn.viewed::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.25);
  z-index: 3;
  border-radius: 1px;
}

.legend {
  margin-top: 10px;
  font-size: 12px;
  color: #222;
}

.legend .item {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* make overlays scrollable when content taller than viewport */
/* ===============================
   FULL SCREEN MOCK START MODAL
   =============================== */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(180deg, #fff6ef, #fff2ea);
  padding: 0;
  overflow: auto;
}

.start-card {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-card {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border: 1px solid rgba(255, 220, 190, 0.9);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mock-card.inactive {
  opacity: 0.45;
  filter: grayscale(35%);
  pointer-events: none;
}

.mock-card.inactive::after {
  content: "Locked";
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  color: #b45309;
  border: 1px solid rgba(255, 200, 160, 0.7);
}


.mock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.18);
  border-color: #ffb680;
}

.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
background: linear-gradient(
  90deg,
  #ffd2b3 0%,     /* soft orange (left) */
  #fff6ee 45%,    /* clean white (middle) */
  #ffe0b3 100%    /* soft golden (right) */
);

  z-index: 2500;
  padding: 0px;
}

/* fullscreen layout (no floating card) */
.px-login-fullscreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  justify-content: center;
}

.px-login-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.03);
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 30%,
    #ffca8e 100%
  );
}

.px-login-top h1 {
  font-family: "Playfair Display", serif; /* 🔥 stylish curly */
  font-size: 28px; /* larger */
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--accent-dark);
  line-height: 1.2;
  margin: 10px 5px;
}

.px-login-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.px-login-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: auto;
}

.px-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  font-size: 12px;
  outline: none;
}

.px-input:focus {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  border-color: rgba(31, 120, 255, 0.12);
}

.px-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.px-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.px-btn.primary {
  background: linear-gradient(90deg, #ff7a16, #ff9a4b);
  color: #fff;
}

.px-help {
  color: #ef4444;
  font-size: 13px;
  min-height: 18px;
}

.px-login-visual {
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #fff6f0, #fff2ec);
  border-radius: 12px;
  border: 1px solid rgba(255, 230, 210, 0.8);
}
.px-login-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 420px 1fr;
  gap: 32px;
  align-items: center;
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 980px) {
  .px-login-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    max-width: 100%;
  }
}
.history-card {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(250, 240, 230, 0.9);
}

#detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;

  align-items: stretch;
  justify-content: stretch;

  background: rgba(8, 10, 12, 0.45);
  backdrop-filter: blur(6px) saturate(105%);

  padding: 0;
}


.detail-card {
  width: 100vw;
  height: 100vh;
  max-width: none;
  min-height: 100vh;

  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border-radius: 0;

  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;

  box-shadow: none;
  border: 0;
}


.detail-left {
  padding: 18px;
  overflow-y: auto;
  height: 100vh;
}

.detail-right {
  background: linear-gradient(180deg, #fff6f0, #fff2ec);
  padding: 18px;
  border-left: 1px solid rgba(255, 230, 210, 0.7);

  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;

  min-width: 260px;
  height: 100vh;
}


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

.detail-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-dark);
}

.detail-sub {
  font-size: 13px;
  color: var(--muted);
}

.score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7ee, #fff0df);
  border: 1px solid rgba(255, 210, 160, 0.6);
  font-weight: 900;
  color: var(--accent-dark);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.06);
}

.stats-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #123;
}

.stat {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 230, 210, 0.7);
}

.stat strong {
  font-size: 16px;
}

.stat span {
  font-size: 12px;
  color: var(--muted);
}

.progress-wrap {
  width: 100%;
  margin-top: 4px;
}

.progress {
  height: 10px;
  background: linear-gradient(90deg, #fff7f2, #fffaf7);
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 210, 0.8);
  overflow: hidden;
}

.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
  width: 0%;
  transition: width 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.perq {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perq-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border: 1px solid rgba(250, 240, 230, 0.9);
}

.perq-left {
  min-width: 46px;
  text-align: center;
  font-weight: 800;
  color: #111;
}

.perq-mid {
  flex: 1;
  font-size: 13px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.perq-mid .qid {
  font-weight: 800;
  color: var(--muted);
  min-width: 40px;
}

.badge {
  padding: 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.badge.correct {
  background: linear-gradient(90deg, #ecfdf5, #d1fae5);
  color: #0b9a6b;
  border-color: #bbf7d0;
}

.badge.wrong {
  background: linear-gradient(90deg, #fff1f2, #fee2e2);
  color: #ef4444;
  border-color: #fecaca;
}

.badge.unseen {
  background: linear-gradient(90deg, #fffaf0, #fff6ec);
  color: #b37b4a;
  border-color: #ffe4cf;
}

@media (max-width: 900px) {
  .side {
    display: none;
  }

  .app {
    padding: 6px;
  }
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff6ed, #fff2e7);
  border: 1px solid rgba(255, 220, 190, 0.7);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffedd5, #ffc999);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #9a4b11;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-name {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-dark);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rules {
  text-align: left;
  max-width: 760px;
  line-height: 1.4;
  color: #0f172a;
}

.rules h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: var(--accent-dark);
}

.rules ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.rules ul li {
  margin: 6px 0;
  font-weight: 700;
  font-size: 13px;
  color: #111;
}

.rules .muted {
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
  display: block;
}

/* Confirmation modal styling */
#confirm-submit-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.45);
  padding: 18px;
}

.confirm-card {
  width: min(100%, 520px);
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 245, 235, 0.95);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.26);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.confirm-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-dark);
}

.confirm-stats {
  font-size: 14px;
  color: #111;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.confirm-stat {
  background: linear-gradient(180deg, #fff6f0, #fff2ec);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid rgba(255, 230, 210, 0.8);
  min-width: 120px;
  text-align: center;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Info button */
.info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff6ed;
  border: 1px solid rgba(79, 79, 79, 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-weight: 900;
}

.info-btn:hover {
  background: #ffe8d5;
}

/* Developer info modal */
#dev-info-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 12, 0.45);
}

.dev-info-card {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.3);
  border: 1px solid rgba(255, 230, 210, 0.9);
}

.dev-info-card h3 {
  margin: 0 0 6px 0;
  color: #f97316;
  font-weight: 900;
}

.dev-info-card p {
  margin: 6px 0;
  font-size: 13px;
  color: #333;
}

/* LOGIN SCREEN LOGO */
.px-login-top #login-banner {
  width: 100px;
  height: auto;
  border-radius: 10px;
}
/* APP HEADER LOGO */
.header .brand #app-banner {
  width: 50px;
  height: auto;
  border-radius: 8px;
}

.header {
  gap: 6px;
  padding: 0;
}
.brand {
  gap: 10px;
}

.feature-card {
  width: 100%;
  max-width: 360px;
  height: 350px;
  background: linear-gradient(180deg, #fff6f0, #fff2ec);
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 190, 0.8);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  align-self: stretch;
}

.feature-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-dark);
  text-align: center;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- LINK BUTTONS (LEFT CARD) ---------- */
.link-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  font-size: 12px;
  background: #fff;
  border: 1px solid rgba(255, 220, 190, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-btn img {
  width: 26px;
  height: 26px;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.link-btn.whatsapp {
  color: #128c7e;
}
.link-btn.youtube {
  color: #e11d48;
}
.link-btn.telegram {
  color: #2563eb;
}

/* ---------- FEATURE LIST WITH SVG (RIGHT CARD) ---------- */
.feature-list.icons li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-list.icons svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-dark);
  flex-shrink: 0;
}

/* LOGIN FOOTER – FULL WIDTH FIX */
.login-footer {
  position: fixed; /* 🔥 key fix */
  bottom: 0;
  left: 0;
  width: 100vw; /* full screen width */
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 200, 160, 0.5);
  background: linear-gradient(180deg, #fff6ef, #fff2ea);
  font-size: 12.5px;
  font-weight: 700;
  color: #9a4b11;
  z-index: 2600; /* above login bg */
}

.login-footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.login-footer a {
  color: #f97316;
  text-decoration: none;
  font-weight: 800;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer .sep {
  opacity: 0.6;
}
/* ======================================
   HIDE SIDE CARDS ON NON-DESKTOP DEVICES
   ====================================== */

/* Tablets & mobiles */
@media (max-width: 1024px) {
  .feature-card {
    display: none !important;
  }

  .px-login-grid {
    grid-template-columns: 1fr;   /* only center form */
    max-width: 420px;
  }
}

/* Small laptops & mobiles */
@media (max-width: 768px) {
  .px-login-center {
    padding: 20px 16px 120px;
  }
}



/* ===============================
   QUESTION IMAGE WATERMARK
   =============================== */

.question {
  position: relative;
}

/* wrapper for image watermark */
.question img {
  position: relative;
  z-index: 1;
}

/* watermark overlay */
.question::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("favicon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 2;
}

.question {
  position: relative;
  user-select: none;
}

.question img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  cursor: default !important;
}

/* ===== FIX BUTTON + ICON SIZE ===== */
button,
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  height: 32px;          /* 🔑 fixed height */
  white-space: nowrap;
}

/* lucide icons inside buttons */
button svg,
button i[data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}
.header .meta button {
  height: 34px;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 10px;
}
#open-start {
  padding: 6px 14px;
  font-size: 12px;
}
.controls button {
  min-width: 72px;
  height: 34px;
}
@media (max-width: 900px) {
  .controls button span {
    display: none;
  }
}

/* Left side (test info) */
.mock-card .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card .left h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #111;
}

.mock-card .left span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}

/* Right side (button / status) */
.mock-card .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .mock-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-card .right {
    width: 100%;
    justify-content: flex-end;
  }
}
/* =====================================================
   🔥 FINAL MOCK START MODAL FIX — DROP-IN BLOCK
   Paste this AT THE VERY END of your CSS
   ===================================================== */

/* FULLSCREEN OVERLAY */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: linear-gradient(180deg, #fff6ef, #fff2ea);
  overflow-y: auto;
}

/* FULLSCREEN CONTAINER */
.start-card {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FORCE MOCK LIST → ONE COLUMN */
.start-card > * {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  width: 100%;
}

/* LONG HORIZONTAL MOCK CARD */
.mock-card {
  position: relative;
  width: 100%;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  border: 1px solid rgba(255, 220, 190, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 1 !important;
  filter: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* HOVER EFFECT */
.mock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.18);
  border-color: #ffb680;
}

/* LOCKED STATE */
.mock-card.inactive {
  opacity: 0.45 !important;
  filter: grayscale(35%) !important;
  pointer-events: none;
}

.mock-card.inactive::after {
  content: "Locked";
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  color: #b45309;
  border: 1px solid rgba(255, 200, 160, 0.7);
}

/* LEFT CONTENT */
.mock-card .left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card .left h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #111;
}

.mock-card .left span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}

/* RIGHT ACTIONS */
.mock-card .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* MOBILE SAFE */
@media (max-width: 768px) {
  .mock-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-card .right {
    width: 100%;
    justify-content: flex-end;
  }
}

.mock-card {
  display: grid !important;
  grid-template-columns: 180px 130px 150px 1fr 110px 90px;
  align-items: center;
  column-gap: 18px;
}

.mock-card .left h4 {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.mock-card .meta-time {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.mock-card .meta-date {
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}

.mock-card .meta-syllabus {
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}

.mock-card .right {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.mock-card .status {
  justify-self: end;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mock-card {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .mock-card .right,
  .mock-card .status {
    justify-self: start;
  }
}
