﻿:root {
  --ink: #0b1b2b;
  --muted: #4f6275;
  --blue: #0c3b6b;
  --blue-2: #2b84e0;
  --gold: #e0b556;
  --bg: #e9f2ff;
  --card: #ffffff;
  --stroke: #cfe0f4;
  --shadow: 0 18px 42px rgba(12, 59, 107, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 8%, #f5f9ff, var(--bg));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto auto;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(12, 59, 107, 0.08), transparent 70%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw 18px;
  border-bottom: 1px solid rgba(224, 181, 86, 0.35);
  background: linear-gradient(90deg, rgba(224, 181, 86, 0.08), transparent 40%);
}

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

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #1d4ed8, #38bdf8);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.title {
  font-weight: 700;
  font-size: 19px;
}

.tagline {
  color: var(--muted);
  font-size: 12px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 1;
}

.nav-cabinet {
  display: none !important;
}

/* Header elementleri - JS style.cssText ile idarə edir, CSS mudaxile etmesin */
.nav-admin,
.nav-logout,
.nav-login,
.nav-register,
.user-chip {
  display: none;
}

.auth-switcher,
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-toggle,
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
}

.auth-menu,
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 120px;
  padding: 8px;
  border: 1px solid #d6e0f3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(12, 59, 107, 0.16);
  z-index: 20;
}

.nav-home,
.nav-cabinet {
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.22);
  background: #f2f7ff;
}

.nav-admin {
  color: #b4232c;
  border-color: rgba(180, 35, 44, 0.3);
  background: #fff1f2;
}

.nav-logout {
  color: #2b3b52;
  border-color: #d6e0f3;
  background: #f7f9ff;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2b3b52;
  border-color: #d6e0f3;
  background: #f2f6ff;
}

.nav-lang.is-active {
  background: #dbeaff;
  border-color: #7fb0ef;
  color: #124b9c;
  box-shadow: 0 8px 18px rgba(18, 75, 156, 0.15);
}

.nav-login,
.nav-register {
  color: #1f5bb8;
  border-color: rgba(31, 91, 184, 0.28);
  background: #edf4ff;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d5e3fb;
  background: #f7fbff;
  color: #153e75;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(21, 62, 117, 0.08);
}

.user-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #c8daf6;
  background: #e8f0ff;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
}

button {
  font-family: inherit;
  border: 1px solid var(--stroke);
  background: white;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 13px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(12, 59, 107, 0.12);
  border-color: #8fb2e8;
  background: #f2f6ff;
}

button:active {
  transform: scale(0.98);
  background: #e6f0ff;
}

.primary {
  background: linear-gradient(135deg, #1264c6, #2b84e0);
  color: white;
  border-color: #1264c6;
  box-shadow: 0 10px 22px rgba(43, 132, 224, 0.35);
}

.secondary {
  background: #e4f0ff;
  border-color: #a9c8f4;
}

.start-exam {
  background: linear-gradient(135deg, #eff5ff, #dbeaff);
  border-color: #9fc3f2;
}

.start-exam:hover {
  background: linear-gradient(135deg, #e3f0ff, #cfe3ff);
}

.ghost {
  background: transparent;
}

.link {
  border: none;
  background: transparent;
  color: var(--blue-2);
  text-align: left;
  padding: 0;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.auth-link {
  border: 1px solid rgba(43, 132, 224, 0.2);
  background: #f3f7ff;
  color: #1f5bb8;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.auth-link:hover {
  background: #e6f0ff;
  border-color: rgba(43, 132, 224, 0.4);
}

.layout {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 92px 6vw 72px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  min-height: calc(100vh - 220px);
  flex: 1;
}

.cabinet-layout {
  display: grid;
  gap: 24px;
  padding: 48px 6vw 72px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.auth-card,
.info-card,
.feature-card {
  width: 100%;
  margin-top: 18px;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: repeat(2, minmax(360px, 1fr));
  }
}

@media (max-width: 720px) {
  .layout {
    padding-top: 56px;
  }
}
.card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
  position: relative;
}

.auth-card h2,
.info-card h2 {
  font-size: 18px;
  margin-top: 0;
}

.auth-card {
  border-top: 4px solid var(--blue-2);
}

.info-card {
  border-top: 4px solid #0ea5e9;
  background: linear-gradient(160deg, #f0faff 0%, #e0f4fe 100%);
  box-shadow: 0 12px 36px rgba(14,165,233,0.12), 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 0 !important;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.info-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: #0c4a6e;
  margin: 0 0 6px;
}

.info-lead {
  font-size: 13px;
  color: #0369a1;
  opacity: 0.85;
  margin: 4px 0 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.pill {
  padding: 5px 13px;
  border-radius: 999px;
  background: #bae6fd;
  border: 1px solid #38bdf8;
  font-size: 12px;
  font-weight: 700;
  color: #0c4a6e;
}

.pill--law {
  background: #7dd3fc;
  border-color: #0ea5e9;
  color: #0a3a5c;
}

.info-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.info-highlights li {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14,165,233,0.2);
  background: rgba(255,255,255,0.75);
  font-size: 13px;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-highlights li::before {
  content: "✓";
  font-weight: 800;
  color: #0ea5e9;
  flex-shrink: 0;
}

.timer-box {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.timer-box > div {
  flex: 1;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 12px;
  padding: 10px 14px;
}

.timer-box .label {
  font-size: 11px;
  color: #0369a1;
  font-weight: 600;
  opacity: 0.8;
}

.timer-box .value {
  font-size: 20px;
  font-weight: 800;
  color: #0c4a6e;
  margin-top: 2px;
}

.feature-card {
  border-top: 4px solid #0d9488;
  background: linear-gradient(160deg, #f0fdf9 0%, #ccfbf1 100%);
  box-shadow: 0 12px 36px rgba(13,148,136,0.1), 0 2px 8px rgba(0,0,0,0.04);
  margin-top: 0 !important;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.feature-card h2 {
  font-size: 19px;
  font-weight: 800;
  color: #134e4a;
  margin: 0 0 16px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
  flex: 1;
}

.feature-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(13,148,136,0.18);
  box-shadow: 0 2px 8px rgba(13,148,136,0.07);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item::before {
  content: attr(data-icon);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #134e4a;
  margin-bottom: 3px;
}

.feature-text {
  font-size: 12px;
  color: #0f766e;
  line-height: 1.5;
}

/* UNUSED — kept for compat */
.feature-item-old {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.08);
}

.feature-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-text {
  font-size: 13px;
  color: var(--muted);
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid var(--gold);
}

.profile-details {
  flex-basis: 100%;
}

.profile-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9f1ff;
}

.profile-name {
  font-weight: 700;
}

.profile-code {
  font-size: 12px;
  color: var(--muted);
}

.profile-note {
  font-size: 11px;
  color: #7a8aa0;
}

.profile-qr {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 4px;
  background: #fff;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.card:hover {
  transform: none;
  box-shadow: 0 16px 36px rgba(12, 59, 107, 0.16);
}

.card.mini {
  padding: 14px;
}

.auth-card label,
.dashboard label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  font-family: inherit;
  font-size: 13px;
}

.premium-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-link {
  font-size: 20px;
  font-weight: 700;
  color: #94a3b8; /* Solğun rəng */
  cursor: pointer;
  transition: color 0.2s ease, transform 0.1s ease;
  user-select: none;
}

.tab-link:hover {
  color: var(--blue-2);
}

.tab-link.is-active {
  color: var(--blue); /* Aktiv rəng - tünd göy */
}

.tab-separator {
  font-size: 20px;
  font-weight: 400;
  color: #cbd5e1;
  user-select: none;
}


.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: #f9e7c4;
  color: #7a4f08;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(224, 181, 86, 0.6);
  box-shadow: 0 6px 14px rgba(224, 181, 86, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(224, 181, 86, 0.28);
}

.pill--law {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(16, 185, 129, 0.12));
  border-color: rgba(30, 64, 175, 0.35);
  color: #1e40af;
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.2);
}

.timer-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

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

.value {
  font-size: 18px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.test-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.question-progress {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f6ff;
  color: #2b3b52;
  font-weight: 600;
  border: 1px solid #d6e0f3;
}

.pin-open .acc-header {
  pointer-events: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.hub-section {
  display: grid;
  gap: 14px;
}

.hub-header h2 {
  margin: 0;
  font-size: 18px;
}

.hub-header p {
  margin: 6px 0 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.hub-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(12, 59, 107, 0.1);
  display: grid;
  gap: 10px;
}

.hub-card.is-active {
  border-color: #b9d2f5;
  box-shadow: 0 16px 30px rgba(12, 59, 107, 0.14);
}

.hub-card.is-soon,
.hub-card.is-build {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.hub-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hub-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f2f7ff;
  border: 1px solid #d6e0f3;
  font-size: 20px;
}

.hub-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hub-meta {
  margin-top: 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d9e5f6;
  background: #f7fbff;
  color: #2b3b52;
}

.status-badge.is-active {
  background: #e6f0ff;
  border-color: #9fc3f2;
  color: #1f5bb8;
}

.status-badge.is-soon {
  background: #fff6e3;
  border-color: #f3d28a;
  color: #7a4f08;
}

.status-badge.is-build {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.section-block {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #f7fbff;
}

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

.section-block h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.profile-loading {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  background: #f3f7ff;
  color: var(--muted);
  font-size: 13px;
}

button.danger {
  background: #fbe9eb;
  border-color: #f2b9c0;
  color: #b4232c;
}

.access-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  background: #f7fbff;
}

.accordion {
  border-top: 1px solid var(--stroke);
  margin-top: 12px;
}

.acc-header {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #f2f7ff;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.acc-header:hover {
  transform: none;
  box-shadow: 0 6px 12px rgba(12, 59, 107, 0.12);
}

.acc-header::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 11px;
  color: var(--muted);
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.acc-header.is-open::after {
  transform: rotate(0deg);
}

.acc-body {
  padding: 10px 0 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-body {
  background: #f4f8fd;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 0 6vw 40px;
}

.admin-menu {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.menu-item {
  text-align: left;
}

.menu-item.is-active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.admin-content {
  display: grid;
  gap: 16px;
}

.choice-grid {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fbff;
  border: 1px solid #d8e7fb;
}

.choice-correct {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.import-block {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #d5e3f5;
  background: #f7fbff;
  margin-top: 12px;
}

.import-block .toolbar {
  margin-top: 8px;
}

.import-errors {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #fff3f3;
  border: 1px solid #f1bcbc;
  font-size: 12px;
  color: #8d3232;
  max-height: 160px;
  overflow: auto;
}

.import-preview {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #d8e7fb;
  background: #ffffff;
  max-height: 180px;
  overflow: auto;
  font-size: 12px;
}

.admin-results-list,
.admin-results-detail {
  background: #fbfdff;
}

.admin-results-list .result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e1ecfb;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.admin-results-list .result-item + .result-item {
  margin-top: 8px;
}

.admin-results-list .result-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 59, 107, 0.12);
}

.admin-results-list .result-meta {
  font-size: 12px;
  color: var(--muted);
}

.admin-results-detail .review-list {
  margin-top: 12px;
}

.admin-results-detail .review-detail {
  margin-top: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.admin-table {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.4fr 1fr 1.2fr 0.7fr;
  gap: 10px;
  padding: 10px 14px;
  align-items: center;
}

.admin-table-head {
  background: #f3f7ff;
  font-weight: 700;
  border-bottom: 1px solid var(--stroke);
}

.admin-table-body {
  max-height: 320px;
  overflow: auto;
}

.admin-table-row {
  border-bottom: 1px solid #e7eef8;
  font-size: 13px;
}

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

.admin-table-row:hover {
  background: #f8fbff;
}

.admin-table-row .muted {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table.placeholder {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  color: var(--muted);
}
.site-footer {
  margin-top: auto;
  padding: 28px 6vw 46px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(207, 224, 244, 0.8);
  background: linear-gradient(180deg, rgba(224, 181, 86, 0.06), transparent 60%);
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 18px;
}

.footer-title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.footer-text {
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 8px;
  border-top: 1px solid rgba(207, 224, 244, 0.6);
  color: #5b6f85;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 43, 0.28);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  z-index: 999;
  overflow: auto;
}

.auth-panel {
  width: min(620px, 96vw);
  margin: 4vh 0 0;
  border-top: 4px solid var(--blue-2);
  box-shadow: 0 24px 60px rgba(12, 59, 107, 0.28);
}

.premium-auth-panel {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe8fb;
}

.auth-panel[data-mode="login"] .tab[data-tab="register"],
.auth-panel[data-mode="register"] .tab[data-tab="login"] {
  display: none;
}

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

.auth-top .tabs {
  flex: 1;
}

.auth-close {
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
}

.premium-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  padding: 4px;
  border-radius: 18px;
  background: #eef5ff;
}

.premium-tabs .tab {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
}

.register-picker-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #315d8f;
  margin: 8px 0 18px;
}

.register-options {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.register-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  border: 2px solid transparent;
  text-align: left;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(12, 59, 107, 0.08);
}

.register-option strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.register-option span {
  font-size: 14px;
}

.register-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.8);
}

.register-option-content {
  display: flex;
  flex-direction: column;
  color: #36506f;
}

.register-option--student {
  border-color: #f1cd6b;
  background: linear-gradient(180deg, #fffaf0 0%, #fff5db 100%);
}

.register-option--exam {
  border-color: #7fd1f7;
  background: linear-gradient(180deg, #f3fbff 0%, #e4f5ff 100%);
}

.register-option--teacher {
  border-color: #d2c3ff;
  background: linear-gradient(180deg, #fbf8ff 0%, #f1ebff 100%);
}

.register-option.is-active {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(12, 59, 107, 0.14);
}

.register-details-form {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.test-panel {
  width: min(1200px, 100%);
  margin: 0 auto;
  border-radius: 0;
  border-top: 4px solid var(--gold);
  max-height: none;
  min-height: 100vh;
  overflow: auto;
  box-shadow: none;
  animation: none;
  text-align: left;
  background: #ffffff;
  padding: 24px;
  box-sizing: border-box;
}

.test-panel .dash-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 10px 0;
  z-index: 2;
  border-bottom: 1px solid #edf1f7;
}

.timer {
  font-weight: 700;
  background: #fff3d6;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 164, 84, 0.5);
}

.question {
  font-weight: 600;
  margin: 12px 0;
  text-align: left;
  width: 100%;
  direction: ltr;
  unicode-bidi: plaintext;
}

.options {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: stretch;
  grid-template-columns: 1fr;
}

.option-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  column-gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
  margin: 0;
  color: #1b2b3a;
  width: 100%;
  max-width: none;
  text-align: left;
  direction: ltr;
}

.test-panel .option-item {
  display: grid;
  font-size: 15px;
}

.option-item input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
}

.option-item span {
  min-width: 0;
  text-align: left;
  line-height: 1.45;
  display: block;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.option-item.is-selected {
  border-color: var(--blue-2);
  background: #e7f1ff;
  box-shadow: inset 0 0 0 1px rgba(31, 116, 200, 0.25);
}

.exam-start {
  border: 1px dashed var(--stroke);
  background: #f5f9ff;
  padding: 12px;
  border-radius: 12px;
  margin: 12px 0;
  display: grid;
  gap: 6px;
}

.exam-start-title {
  font-weight: 700;
}

.exam-start-note {
  font-size: 12px;
  color: var(--muted);
}

.exam-start-btn {
  justify-self: start;
}

.test-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.review-panel {
  margin-top: 16px;
}

.review-subject {
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px;
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  color: var(--muted);
}

.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 8px;
  margin: 12px 0;
  max-height: 140px;
  overflow: auto;
}

.review-item {
  padding: 8px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--stroke);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(12, 59, 107, 0.12);
  border-color: #8fb2e8;
  background: #f0f6ff;
}

.review-item:active {
  transform: scale(0.98);
  background: #e6f0ff;
}

.review-item.correct {
  background: #e6f7ef;
  border-color: #7fce9a;
  color: #2f6f4a;
}

.review-item.wrong {
  background: #fdecec;
  border-color: #f1a7a7;
  color: #8d3232;
}

.review-item.empty {
  background: #f2f4f8;
  color: #6b7c90;
}

.review-detail {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--stroke);
  max-height: 220px;
  overflow: auto;
}

.result-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-height: 240px;
  overflow: auto;
  position: relative;
  padding-left: 18px;
}

.result-list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e6edf7;
}

.result-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
}

.result-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e0b556;
  box-shadow: 0 0 0 3px rgba(224, 181, 86, 0.2);
}

.result-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(12, 59, 107, 0.12);
  background: #f2f6ff;
}

.result-item.active {
  border-color: #8fb2e8;
  background: #eaf2ff;
}

.result-item .result-meta {
  color: var(--muted);
  font-size: 12px;
}

.result-item .result-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-item .result-score {
  font-weight: 600;
}

.result-item .result-delete {
  border: 1px solid #f0b4b4;
  background: #fff5f5;
  color: #b43131;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.result-item .result-delete:hover {
  background: #ffecec;
  box-shadow: 0 6px 12px rgba(180, 49, 49, 0.12);
}

.result-item .result-delete:active {
  transform: translateY(1px);
}

.is-hidden {
  display: none;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.print-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.cert-layout {
  max-width: 980px;
  margin: 0 auto;
}

.cert-card {
  padding: 48px 56px;
  border: 1px solid #d8e3f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  position: relative;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 164, 84, 0.4);
  pointer-events: none;
}

.cert-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  color: rgba(12, 59, 107, 0.04);
  letter-spacing: 8px;
  text-transform: uppercase;
  pointer-events: none;
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cert-date {
  font-size: 12px;
  letter-spacing: 1px;
  color: #6b7c90;
}

.cert-brand-name {
  font-size: 18px;
  font-weight: 700;
}

.cert-brand-tag {
  font-size: 12px;
  color: #6b7c90;
}

.cert-name {
  font-size: 34px;
  letter-spacing: 2px;
  margin: 18px 0 8px;
  text-transform: uppercase;
}

.cert-line {
  font-size: 13px;
  letter-spacing: 1px;
  color: #6b7c90;
  text-transform: uppercase;
}

.cert-course {
  font-size: 18px;
  font-weight: 600;
  margin: 8px 0;
}

.cert-type {
  margin-top: 16px;
  font-weight: 600;
}

.cert-score {
  margin-top: 6px;
  font-size: 14px;
  color: #2b3b52;
}

.cert-text {
  margin-top: 16px;
  color: #4a5b72;
}

.cert-verify {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #e5edf7;
}

.cert-verify-url {
  color: #0c3b6b;
}

.cert-verify-label {
  font-size: 12px;
  color: #6b7c90;
}

.cert-verify-url {
  font-weight: 600;
}

.cert-sign {
  margin-top: 18px;
}

.cert-legal {
  margin-top: 20px;
  font-size: 11px;
  color: #7a8aa0;
}

.cert-serial {
  position: absolute;
  right: 16px;
  bottom: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7a8aa0;
}

@media print {
  body {
    background: white;
  }

  .print-actions,
  .site-header,
  .site-footer {
    display: none;
  }

  .card {
    box-shadow: none;
    border: 1px solid #d0d0d0;
  }
}

.premium-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.tab-link {
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.tab-link.is-active {
  color: var(--blue);
}

.tab-separator {
  color: #cbd5e1;
  font-weight: 300;
}

.register-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* Modal ve Form Optimizasyonu */
.premium-auth-panel {
    max-width: 450px !important;
    margin: auto !important;
    padding: 24px !important;
}

.register-options {
    gap: 8px !important;
}

.register-option {
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 8px !important;
}

.register-option-icon {
    font-size: 18px !important;
}

.register-option-content {
    font-size: 13px !important;
}

.register-details-form label {
    margin: 6px 0 !important;
    font-size: 12px !important;
}

.register-details-form input {
    padding: 7px 10px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

.primary {
    padding: 8px 16px !important;
    font-size: 13px !important;
    margin-top: 10px !important;
}

#backToOptions {
    margin-bottom: 12px !important;
    font-size: 11px !important;
}

/* Form ve Kartların Seliqeli Görünümü */
.register-details-form {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 10px;
}

.register-details-form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 11px;
}

.register-details-form input {
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* Reklam gibi görünen label etiketlerini hizalayalım */
.register-details-form label span {
    margin-bottom: 2px;
    color: #64748b;
}

/* Seçilen kartın stilini daha belirgin yapalım */
.register-option.is-active {
    border: 2px solid #2b84e0;
    background: #eff6ff;
}
