@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  /* Colors */
  --navy: #0B192C;        /* Deep academic navy */
  --navy-light: #162B4A;
  --gold: #C5A059;        /* Elegant dull gold */
  --gold-hover: #D6B26A;
  --gold-light: #F2EBDA;
  --white: #FFFFFF;
  --bg-off: #F8F9FA;
  --bg-alt: #F3F5F7;
  --text-main: #2C3545;
  --text-muted: #64748B;
  --border: #E2E8F0;
  
  /* Fonts */
  --font-serif: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-sans: 'Inter', 'Noto Sans SC', Helvetica, Arial, sans-serif;
  
  /* Radii - strictly sharp/classic */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 14px 32px;
  border-radius: var(--r-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}
.btn-outline-gold {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--white);
}
.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background-color: var(--white);
  color: var(--navy);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  transition: all 0.3s ease;
}
.nav .container { height: 100%; }
.nav.scrolled {
  height: 70px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 32px; height: 32px;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-1);
}
.brand-logo svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--gold); stroke-width: 2;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.brand-name span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile Nav */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border);
}
.menu-toggle span {
  width: 20px; height: 2px; background: var(--navy);
}
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  z-index: 1000; padding: 40px; transition: right 0.4s ease;
  display: flex; flex-direction: column; gap: 24px;
}
.mobile-nav.open { right: 0; }
.mobile-close {
  align-self: flex-end; font-size: 1rem; cursor: pointer; color: var(--text-muted); padding: 10px;
}

/* --- HERO (ACADEMIC/ENTERPRISE) --- */
.hero {
  margin-top: 80px;
  background-color: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}
/* Subtle background texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: var(--white);
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-subtitle::before {
  content: ''; width: 30px; height: 1px; background-color: var(--gold);
}
.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 30px;
}
.hero-title span {
  color: var(--gold);
  font-style: italic;
}
.hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

/* Info Bar in Hero */
.hero-info-bar {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}
.info-item h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.info-item p {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero Right: Pure CSS Premium Report Cover */
.hero-visual {
  perspective: 1000px;
  display: flex;
  justify-content: flex-end;
}
.report-mockup {
  width: 420px;
  background-color: var(--white);
  border-radius: 2px;
  box-shadow: 
    -20px 20px 40px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.1);
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform 0.6s ease;
  position: relative;
}
.report-mockup:hover {
  transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}
.report-spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 14px;
  background: linear-gradient(90deg, #E2E8F0, #FFFFFF);
  border-right: 1px solid rgba(0,0,0,0.05);
}
.report-cover {
  padding: 40px;
  border: 10px solid var(--navy);
  margin: 14px 14px 14px 28px;
  min-height: 520px;
  position: relative;
  background-image: 
    radial-gradient(var(--bg-off) 1px, transparent 1px);
  background-size: 10px 10px;
}
.rc-header {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 20px;
  margin-bottom: 40px;
}
.rc-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.rc-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--navy);
}
.rc-subtitle {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 10px;
}
.rc-chart {
  display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.rc-bar {
  flex: 1; background-color: var(--navy); border-top-right-radius: 2px; border-top-left-radius: 2px;
}
.rc-bar:nth-child(1) { height: 100%; background-color: var(--gold); }
.rc-bar:nth-child(2) { height: 85%; }
.rc-bar:nth-child(3) { height: 60%; }
.rc-bar:nth-child(4) { height: 40%; }
.rc-bar:nth-child(5) { height: 25%; }

.rc-text-line {
  height: 4px; background-color: var(--border); margin-bottom: 12px; width: 100%;
}
.rc-text-line.short { width: 60%; }

/* --- GOLD DIVIDER --- */
.gold-bar {
  background-color: var(--gold);
  color: var(--navy);
  padding: 30px 0;
}
.gold-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}
.gb-item {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gb-item svg { width: 20px; height: 20px; }

/* --- SECTIONS --- */
.section { padding: 120px 0; }
.section-alt { background-color: var(--bg-off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* --- DOMAINS (Academic Cards) --- */
.domains-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.domain-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 40px 30px;
  position: relative;
  transition: all 0.3s ease;
}
.domain-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.domain-numeral {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--bg-off);
  font-weight: 900;
  position: absolute; top: 20px; right: 20px;
  line-height: 1;
}
.domain-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.domain-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.domain-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; min-height: 65px; }
.domain-list {
  border-top: 1px solid var(--border); padding-top: 20px;
}
.domain-list li {
  font-size: 0.8125rem; font-weight: 500; color: var(--text-main);
  padding: 6px 0; border-bottom: 1px solid var(--bg-off);
  display: flex; justify-content: space-between;
}
.domain-list li:last-child { border-bottom: none; }
.domain-list li span { color: var(--gold); }

/* --- SCIENCE/ABOUT --- */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.split-img {
  position: relative;
  padding: 20px 0 0 20px;
}
.split-img::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 2px solid var(--gold); z-index: 0;
}
.split-img-inner {
  background-color: var(--navy);
  padding: 60px 40px;
  position: relative; z-index: 1;
  color: var(--white);
}
.quote-mark { font-family: var(--font-serif); font-size: 6rem; color: var(--gold); line-height: 0.5; }
.academic-quote { font-family: var(--font-serif); font-size: 1.75rem; line-height: 1.5; margin: 20px 0 40px; }
.academic-author { font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); }

.split-content h2 { font-size: 2.25rem; margin-bottom: 24px; }
.split-content p { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 24px; }
.check-list { margin: 32px 0; }
.check-list li { 
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; 
  font-size: 0.9375rem; font-weight: 500;
}
.check-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* --- DATA TABLE SECTION --- */
.report-preview {
  background-color: var(--white); padding: 100px 0;
}
.table-wrapper {
  background: var(--white); border: 1px solid var(--border); border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); overflow: hidden;
}
.data-row {
  display: grid; grid-template-columns: 80px 1fr 2fr 120px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.data-row:hover { background-color: var(--bg-off); }
.data-header {
  background-color: var(--navy); color: var(--white);
  font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.data-row:last-child { border-bottom: none; }
.data-cell { padding: 20px; display: flex; align-items: center; }
.cell-rank { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--gold); justify-content: center; }
.cell-talent { font-weight: 600; font-size: 1.125rem; }
.cell-domain { font-size: 0.875rem; border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.cell-desc { font-size: 0.875rem; color: var(--text-muted); }

/* --- CTA SECTION --- */
.cta-section {
  background-color: var(--navy);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  position: relative;
}
.cta-title { color: var(--white); font-size: 2.5rem; margin-bottom: 24px; }
.cta-desc { font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 40px; }

/* --- FOOTER --- */
.footer {
  background-color: #050E1A;
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px; margin-bottom: 40px;
}
.footer-brand .brand-logo { background-color: transparent; border: 1px solid var(--gold); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: 0.875rem; margin-top: 20px; line-height: 1.8; }
.footer-col h5 {
  font-family: var(--font-sans); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.875rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem;
}
.footer-links { display: flex; gap: 20px; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.1s; }
.r-d2 { transition-delay: 0.2s; }
.r-d3 { transition-delay: 0.3s; }
.r-d4 { transition-delay: 0.4s; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-subtitle { justify-content: center; }
  .hero-desc { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-info-bar { justify-content: center; }
  .hero-visual { justify-content: center; perspective: none; }
  .report-mockup { transform: none; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
  .report-mockup:hover { transform: translateY(-5px); }
  
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; gap: 60px; }
  .split-img { padding: 0 0 20px 20px; }
  .split-img::before { top: auto; bottom: 0; left: 0; right: 20px; height: 100%; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: flex; }
  .hero-title { font-size: 2.5rem; }
  .gold-bar-inner { flex-direction: column; gap: 20px; }
  .domains-grid { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 1fr; border-bottom: none; border: 1px solid var(--border); margin-bottom: 16px; border-radius: 2px; }
  .data-header { display: none; }
  .data-cell { padding: 12px 20px; }
  .cell-rank { display: inline-block; width: auto; font-size: 1.25rem; padding-right: 15px; }
  .cell-domain { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* --- AUTH MODAL --- */
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; transition: all 0.3s ease;
}
.modal.open {
  visibility: visible; opacity: 1;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background-color: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(5px);
}
.modal-dialog {
  position: relative; z-index: 10001;
  width: 100%; max-width: 440px;
  background: var(--white);
  border-radius: var(--r-1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(20px); transition: transform 0.3s ease;
  overflow: hidden;
}
.modal.open .modal-dialog {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  font-size: 1.25rem; color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: 50%;
  transition: all 0.2s; z-index: 10;
}
.modal-close:hover {
  background: var(--border); color: var(--navy); transform: rotate(90deg);
}
.modal-content {
  padding: 40px;
}
.auth-view { display: none; }
.auth-view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-title { font-size: 1.75rem; margin-bottom: 8px; }
.auth-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 30px; }

.auth-form .form-group { margin-bottom: 20px; }
.auth-form label {
  display: block; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--navy); margin-bottom: 8px;
}
.auth-input {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); background: var(--bg-off);
  border-radius: var(--r-1); font-family: var(--font-sans); font-size: 0.9375rem;
  transition: all 0.2s; outline: none;
}
.auth-input:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); }
.w-100 { width: 100%; margin-top: 10px; }
.auth-switch {
  text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-muted);
}
.auth-switch a { color: var(--gold); font-weight: 600; text-decoration: underline; }
.auth-switch a:hover { color: var(--navy); }

/* --- AUTH TABS --- */
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-off); padding: 4px;
  border-radius: var(--r-2); margin-bottom: 24px; border: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 10px 0; font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); transition: all 0.2s; border-radius: var(--r-1);
}
.auth-tab.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

/* --- USER PROFILE MENU --- */
.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: var(--r-1);
  transition: all 0.3s;
}
.user-link:hover {
  background-color: var(--gold);
  color: var(--white);
}
.logout-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--r-1);
  background: var(--bg-off);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-decoration: none;
}
.logout-link:hover {
  color: #ef4444;
  border-color: #fca5a5;
  background-color: #fef2f2;
}
.logout-link-mobile {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- PROFILE PAGE STYLES --- */
.profile-page {
  background-color: var(--navy);
  min-height: 100vh;
}
.profile-header {
  padding: 140px 0 60px;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(197, 160, 89, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.profile-title {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--white);
}
.profile-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.125rem;
}

/* Profile Stats Area */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px 24px;
  border-radius: var(--r-1);
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.1);
}
.stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.8125rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.125em;
  font-weight: 700;
}

.profile-section {
  background-color: #f1f5f9; /* Muted soft grey-blue background */
  padding: 80px 0;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
}

.codes-container {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 15px;
  margin-top: 30px;
}
/* Custom Scrollbar */
.codes-container::-webkit-scrollbar {
  width: 6px;
}
.codes-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}
.codes-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
.codes-container::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.codes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.code-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}
.code-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.code-info h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  margin-bottom: 4px;
}
.code-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.code-status {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-unused { background-color: #F1F5F9; color: #64748B; }
.status-used { background-color: #ECFDF5; color: #059669; }
.code-date { color: var(--text-muted); font-size: 0.875rem; font-family: var(--font-sans); }
.btn-sm { padding: 8px 16px; font-size: 0.75rem; }

/* --- EXAM PAGE STYLES --- */
.exam-page {
  background-color: var(--navy);
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(197, 160, 89, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5a059' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.exam-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 60px;
  perspective: 1000px;
}
.exam-card {
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.98);
  padding: 80px 100px;
  border-radius: var(--r-2);
  box-shadow: 0 50px 100px rgba(0,0,0,0.3);
  text-align: center;
  display: none;
  border-top-width: 6px !important;
  border-top-style: solid !important;
  border-top-color: var(--gold) !important;
  margin: auto;
}
@media (max-width: 768px) {
  .exam-container { padding: 30px 15px; }
  .exam-card { padding: 40px 20px; }
}

@media (max-width: 1200px) {
  .exam-card { padding: 60px; }
}
@media (max-width: 768px) {
  .exam-card { padding: 40px 20px; }
}
.exam-card.active { display: block; animation: fadeIn 0.4s ease; }

/* Contact Tooltip */
.contact-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  cursor: help;
  position: relative;
  margin-left: 8px;
  vertical-align: middle;
  box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
  transition: transform 0.2s;
}
.contact-tip-trigger:hover {
  transform: scale(1.1);
}
.contact-popover {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 999;
  text-align: center;
  pointer-events: none;
}
.contact-popover::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--white);
}
.contact-tip-trigger:hover .contact-popover {
  opacity: 1; 
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Code Entry View */
.code-entry-inner { max-width: 500px; margin: 0 auto; }
.code-entry-instructions {
  margin: 30px 0;
  padding: 24px;
  background: var(--bg-off);
  border-radius: var(--r-2);
  font-size: 0.9375rem;
  color: var(--navy);
  list-style: none;
  text-align: center;
  border: 1px dashed var(--border);
}
.code-entry-instructions li { margin-bottom: 12px; position: relative; }
.code-entry-instructions li:last-child { margin-bottom: 0; }
.code-entry-instructions li::before {
  content: '✦'; color: var(--gold); margin-right: 8px; font-size: 0.75rem;
}

/* Question View Enhancement */
.question-progress {
  width: 100%; height: 6px;
  background: rgba(11, 25, 44, 0.1);
  margin-bottom: 80px;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.progress-bar {
  position: absolute; left: 0; top: 0; height: 100%;
  background: linear-gradient(to right, var(--gold), #ffcc33);
  width: 0%; transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

.question-pair {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 60px;
  margin-bottom: 80px;
}
.statement {
  flex: 1;
  padding: 60px 50px;
  background: #f8fafc;
  border-radius: var(--r-2);
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.statement-a { border-left: 10px solid var(--navy); text-align: left; background: linear-gradient(to right, #eff6ff, #f8fafc); }
.statement-b { border-right: 10px solid var(--gold); text-align: left; justify-content: flex-end; background: linear-gradient(to left, #fffcf0, #f8fafc); }

.options-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: nowrap;
}
.option-btn {
  flex: 1;
  max-width: 170px;
  padding: 24px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border-radius: var(--r-1);
}
.option-btn:hover {
  background: #fdfaf0;
  color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.15);
}
.option-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

@media (max-width: 768px) {
  .exam-card { padding: 40px 20px; }
  .question-pair { flex-direction: column; gap: 20px; }
  .options-group { grid-template-columns: 1fr; gap: 10px; }
  .statement { padding: 20px; font-size: 1.125rem; }
}

