/* InnovateCheck — Figma-matched stylesheet */
:root {
  --bg: #f7f4ec;
  --bg-soft: #fbf9f3;
  --surface: #ffffff;
  --text: #1d2240;
  --text-2: #5a6076;
  --muted: #8a90a6;
  --border: #ececec;
  --primary: #3b6ef6;
  --primary-2: #5b6ae8;
  --primary-soft: #e8eefd;
  --accent: #22c55e;
  --warn: #f5a524;
  --danger: #ef4444;
  --sidebar: #1c2238;
  --sidebar-2: #232a45;
  --pastel-blue: #e8eefd;
  --pastel-pink: #fce4e4;
  --pastel-yellow: #fff1cf;
  --pastel-green: #dff3e2;
  --pastel-purple: #ece6fb;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 14px rgba(20,22,60,.05);
  --shadow: 0 12px 30px rgba(20,22,60,.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.navbar { background: transparent; padding: 18px 0; position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }
.navbar.solid { background: rgba(247,244,236,0.9); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 800; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-inner.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-inner.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-inner.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-size: 0.95rem; transition: transform .12s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(59,110,246,.30); }
.btn-primary:hover { background: #2c5fe6; box-shadow: 0 10px 22px rgba(59,110,246,.40); }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-light:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.hero { padding: 30px 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; margin: 18px 0 18px; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .accent { color: var(--primary-2); display: block; }
.hero h1 .accent2 { color: var(--text); display: block; }
.hero .lead { color: var(--text-2); font-size: 1.02rem; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; }

.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 0.78rem; letter-spacing: .02em; }

.hero-illu { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.hero-illu::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(closest-side, var(--pastel-blue) 0%, transparent 65%); }
.hero-illu svg { position: relative; max-width: 100%; height: auto; }

.features { padding: 20px 0 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid #f0eee8; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature-ico.blue { background: var(--pastel-blue); color: var(--primary); }
.feature-ico.pink { background: var(--pastel-pink); color: #d05a5a; }
.feature-ico.yellow { background: var(--pastel-yellow); color: #b88300; }
.feature-ico.green { background: var(--pastel-green); color: #1f8a4a; }
.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.9rem; }

.section-title { font-size: 2rem; text-align: center; margin: 50px 0 8px; letter-spacing: -.01em; font-weight: 800; }
.section-sub { text-align: center; color: var(--text-2); margin: 0 0 36px; }



/* ---------- Login ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-illu { background: var(--bg-soft); display: grid; place-items: center; padding: 40px; position: relative; }
.auth-illu .inner { max-width: 460px; text-align: center; }
.auth-illu h2 { font-size: 2.2rem; margin: 0 0 8px; }
.auth-illu p { color: var(--text-2); margin: 0 0 20px; }
.auth-illu svg { width: 100%; max-width: 420px; height: auto; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.auth-form { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px; width: 100%; max-width: 420px; }
.auth-form h3 { margin: 0 0 6px; font-size: 1.4rem; }
.auth-form .sub { color: var(--text-2); font-size: 0.92rem; margin: 0 0 24px; }
.auth-form .form-row { margin-bottom: 16px; }
.auth-form .forgot { text-align: right; font-size: 0.85rem; }
.auth-form .forgot a { color: var(--primary); text-decoration: none; }
.auth-form .small-link { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-2); }
.auth-form .small-link a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ---------- Generic page head ---------- */
.page-head { padding: 40px 0 18px; }
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); margin: 10px 0 6px; letter-spacing: -.02em; font-weight: 800; }
.page-head .lead { color: var(--text-2); margin: 0; }

/* ---------- Card ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid #f0eee8; }

/* ---------- Submit form layout ---------- */
.submit-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding-bottom: 60px; }
.tips-side { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid #f0eee8; height: fit-content; }
.tips-side h4 { margin: 0 0 14px; font-size: 1rem; }
.tip { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tip:last-child { border-bottom: none; }
.tip .tip-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--pastel-blue); color: var(--primary); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.tip strong { font-size: 0.9rem; display: block; }
.tip span { color: var(--text-2); font-size: 0.82rem; }

.submit-form .form-row { margin-bottom: 18px; }
.submit-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.submit-form input, .submit-form select, .submit-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,110,246,.12);
}
.submit-form textarea { resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--danger); }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

.upload-zone { border: 2px dashed #d4d8ea; border-radius: 12px; padding: 26px; text-align: center; background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-zone .up-ico { font-size: 28px; margin-bottom: 6px; }
.upload-zone small { color: var(--muted); }
.upload-zone .browse { color: var(--primary); font-weight: 600; }

/* ---------- Analyzing page ---------- */
.analyze-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding: 30px 0 80px; align-items: center; }
.analyze-visual { background: var(--surface); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); position: relative; overflow: hidden; display: grid; place-items: center; min-height: 420px; }
.analyze-visual::before { content: ''; position: absolute; inset: -30%; background: radial-gradient(closest-side, var(--pastel-blue) 0%, transparent 60%); }
.analyze-visual svg { position: relative; max-width: 100%; height: auto; }
.progress-ring { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-ring .pr-bg { fill: none; stroke: #eef0fa; stroke-width: 14; }
.progress-ring .pr-fg { fill: none; stroke: var(--primary); stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .4s linear; }
.progress-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-label .pv { font-size: 2.6rem; font-weight: 800; color: var(--primary); }
.progress-label .pc { color: var(--text-2); font-size: 0.9rem; }

.analyze-steps { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.analyze-steps h2 { margin: 0 0 22px; font-size: 1.5rem; }
.astep { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); transition: color .25s; }
.astep:last-child { border-bottom: none; }
.astep .check { width: 26px; height: 26px; border-radius: 50%; background: #eef0fa; color: transparent; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex-shrink: 0; transition: background .25s, color .25s; }
.astep.done { color: var(--text); }
.astep.done .check { background: var(--accent); color: #fff; }
.astep.active .check { background: var(--primary); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(59,110,246,.5); } 50% { box-shadow: 0 0 0 10px rgba(59,110,246,0); } }


/* ---------- Results ---------- */
.results-top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding-top: 20px; }
.score-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.score-card h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--text-2); font-weight: 600; }
.big-ring { position: relative; width: 240px; height: 240px; }
.big-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.big-ring .br-bg { fill: none; stroke: #eef0fa; stroke-width: 16; }
.big-ring .br-fg { fill: none; stroke: var(--accent); stroke-width: 16; stroke-linecap: round; }
.big-ring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring .center .v { font-size: 3rem; font-weight: 800; }
.big-ring .center .tagline { color: var(--accent); font-weight: 700; margin-top: -4px; }
.score-card .desc { color: var(--text-2); max-width: 320px; margin-top: 18px; font-size: 0.92rem; }

.radar-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.radar-card .small { color: var(--text-2); font-size: 0.88rem; margin: 0 0 14px; }
.radar-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.radar-wrap svg { width: 100%; height: auto; max-width: 320px; }
.radar-stats { list-style: none; padding: 0; margin: 0; }
.radar-stats li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.radar-stats li strong { color: var(--primary); }

.results-mid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; }
.similar-card h3, .suggest-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.similar-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: var(--bg-soft); border-radius: 12px; margin-bottom: 10px; }
.similar-item .t { font-weight: 600; }
.similar-item .by { color: var(--text-2); font-size: 0.82rem; }
.similar-item .pct { padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--pastel-yellow); color: #b88300; }
.similar-item .view { color: var(--primary); text-decoration: none; font-size: 0.85rem; font-weight: 600; margin-left: 10px; }

.suggest-card ul { list-style: none; padding: 0; margin: 0; }
.suggest-card li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.93rem; color: var(--text-2); }
.suggest-card li:last-child { border-bottom: none; }
.suggest-card .plus { color: var(--accent); font-weight: 800; }

.recommend-card { background: linear-gradient(135deg, #e6f7ec 0%, #d3f1dd 100%); border-radius: var(--radius); padding: 26px; text-align: center; border: 1px solid #c8ebd3; }
.recommend-card .trophy { font-size: 36px; }
.recommend-card h3 { margin: 8px 0 4px; color: #1f8a4a; }
.recommend-card p { margin: 0 0 14px; color: #2c6a40; font-size: 0.92rem; }

/* ---------- Dashboard / Admin shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: #cfd3e3; padding: 24px 0; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 22px 22px; border-bottom: 1px solid #2a3252; color: #fff; font-weight: 800; }
.sidebar .brand .logo-mark { background: var(--primary); }
.sidebar nav { padding: 14px 0; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: #b8bfd6; text-decoration: none; font-size: 0.93rem; font-weight: 500; border-left: 3px solid transparent; transition: background .15s, color .15s; }
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.sidebar nav a.active { color: #fff; background: rgba(59,110,246,.16); border-left-color: var(--primary); }
.sidebar nav a .ico { width: 18px; display: inline-block; text-align: center; }
.sidebar .logout { margin-top: auto; padding: 14px 22px; color: #ff8b8b; font-size: 0.9rem; cursor: pointer; }

.shell-main { padding: 24px 32px; }
.shell-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.search { flex: 1; max-width: 420px; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-family: inherit; }
.search::before { content: '🔍'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .6; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.user-chip .name { font-weight: 600; font-size: 0.92rem; }
.user-chip .role { font-size: 0.78rem; color: var(--text-2); }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.metric .label { color: var(--text-2); font-size: 0.85rem; }
.metric .val { font-size: 1.8rem; font-weight: 800; margin: 4px 0; }
.metric .delta { font-size: 0.8rem; font-weight: 600; }
.metric .delta.up { color: var(--accent); }
.metric .delta.down { color: var(--danger); }
.metric.featured { background: linear-gradient(135deg, #4c7afd 0%, #6e91ff 100%); color: #fff; }
.metric.featured .label, .metric.featured .delta { color: rgba(255,255,255,0.85); }

.chart-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.chart-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-card h4 { margin: 0 0 14px; font-size: 1rem; }
.chart-card svg { width: 100%; height: auto; }
.legend { list-style: none; padding: 0; margin: 12px 0 0; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 4px 0; color: var(--text-2); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }

.table-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.table-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.table-card h4 { margin: 0; font-size: 1rem; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th { text-align: left; padding: 10px 12px; color: var(--text-2); font-weight: 600; border-bottom: 1px solid var(--border); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data td { padding: 12px; border-bottom: 1px solid #f3f1eb; }
table.data tr:last-child td { border-bottom: none; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.badge.green { background: var(--pastel-green); color: #1f8a4a; }
.badge.yellow { background: var(--pastel-yellow); color: #b88300; }
.badge.red { background: var(--pastel-pink); color: #c0392b; }
.badge.blue { background: var(--pastel-blue); color: var(--primary); }


/* ---------- Report ---------- */
.report-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-bottom: 60px; }
.report-actions { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); height: fit-content; }
.report-actions h4 { margin: 0 0 12px; }
.report-actions .btn { width: 100%; margin-bottom: 10px; }
.btn-pink { background: #ff6b6b; color: #fff; }
.btn-pink:hover { background: #f25c5c; }
.btn-purple { background: #8b5cf6; color: #fff; }
.btn-purple:hover { background: #7a4ee8; }
.report-actions .meta { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border); font-size: 0.85rem; color: var(--text-2); }
.report-actions .meta strong { color: var(--text); display: block; margin-top: 4px; }

.report-doc { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.report-doc .doc-head { text-align: center; padding-bottom: 18px; border-bottom: 2px solid var(--primary); margin-bottom: 22px; }
.report-doc .doc-head h2 { margin: 0; color: var(--primary); }
.report-doc .doc-head p { color: var(--text-2); margin: 4px 0 0; font-size: 0.9rem; }
.info-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 22px; }
.info-table { font-size: 0.92rem; }
.info-table div { display: flex; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.info-table span:first-child { color: var(--text-2); width: 130px; }
.info-table span:last-child { color: var(--text); font-weight: 600; }
.score-mini { text-align: center; background: var(--pastel-green); border-radius: 12px; padding: 16px; }
.score-mini .num { font-size: 2rem; font-weight: 800; color: #1f8a4a; }
.score-mini .lbl { color: #1f8a4a; font-weight: 700; font-size: 0.85rem; }
.report-doc h3.sec { font-size: 1.1rem; margin: 22px 0 10px; color: var(--primary-2); }
.report-doc p { color: var(--text-2); }
.report-doc .img-placeholder { width: 100%; height: 200px; border-radius: 12px; background: linear-gradient(120deg, #d6e7c8, #b9d4a6); display: grid; place-items: center; color: #4a6b2e; font-weight: 600; margin: 12px 0; }

/* ---------- Admin bottom stats ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.admin-stat { background: var(--surface); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.admin-stat .num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.admin-stat .lbl { color: var(--text-2); font-size: 0.88rem; }

/* ---------- Mobile preview row (about page extra) ---------- */
.faq { padding: 20px 0 60px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; outline: none; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq details p { color: var(--text-2); margin: 10px 0 0; }

/* ---------- CTA / Footer ---------- */
.cta-band { background: linear-gradient(135deg, #3b6ef6 0%, #6e91ff 100%); color: #fff; padding: 60px 0; text-align: center; margin-top: 30px; }
.cta-band h2 { font-size: 2rem; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 22px; }
.cta-band .btn-light { color: var(--primary); }

.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.footer-inner .links { display: flex; gap: 16px; justify-content: center; }
.footer-inner .links a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer-inner .links a:hover { color: var(--primary); }
.footer .copy { color: var(--muted); font-size: 0.85rem; text-align: right; }

/* ---------- Spinner ---------- */
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .metric-row, .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr 1fr; }
  .results-top, .results-mid, .analyze-grid, .info-row { grid-template-columns: 1fr; }
  .submit-grid, .report-grid { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 200px 1fr; }
  .radar-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-illu { display: none; }
  .feature-grid, .metric-row, .admin-stats, .chart-row, .form-grid-2 { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer .copy { text-align: center; }

  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; row-gap: 0; }
  .nav-links, .nav-cta { display: none; width: 100%; order: 3; }
  .nav-inner.is-open .nav-links { display: flex; flex-direction: column; gap: 4px; align-items: stretch; padding: 12px 0 6px; border-top: 1px solid var(--border); margin-top: 14px; }
  .nav-inner.is-open .nav-links a { padding: 10px 4px; font-size: 1rem; }
  .nav-inner.is-open .nav-cta { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 4px; }
  .nav-inner.is-open .nav-cta .btn { width: 100%; }
}
@media print {
  .navbar, .footer, .report-actions, .cta-band, .sidebar, .shell-topbar { display: none !important; }
  body { background: #fff; }
  .report-grid { grid-template-columns: 1fr; }
  .card, .report-doc { box-shadow: none; border: 1px solid #ddd; }
}


.auth-error{
  background:#fdecec;color:#b42318;border:1px solid #f8c8c4;border-radius:8px;
  padding:10px 12px;font-size:.85rem;margin-bottom:14px;
}
.role-tabs{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  background:#f1f0ea;border-radius:10px;padding:4px;margin-bottom:18px;
}
.role-tab{
  border:0;background:transparent;padding:10px 12px;border-radius:8px;
  font:600 .9rem inherit;color:#5a6076;cursor:pointer;transition:all .15s;
}
.role-tab.active{ background:#fff;color:var(--primary);box-shadow:0 1px 3px rgba(0,0,0,.06); }

.empty-state{
  background:var(--surface);border:1px dashed #d8d8d0;border-radius:14px;
  padding:48px 24px;text-align:center;color:var(--text-2);
}
.empty-state h4{ margin:0 0 6px;color:var(--text); }
.empty-state p{ margin:0 0 18px;font-size:.92rem; }


/* ----- Plagiarism card (results.html) ----- */
.plag-card { padding: 22px 24px; }
.plag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.plag-head h3 { margin: 0 0 4px; }
.plag-score-wrap { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.plag-score { font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--primary); }
.plag-tag { font-size: .78rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary); }
.plag-desc { color: var(--text-2); margin: 14px 0 18px; font-size: .95rem; }
.plag-source { padding: 12px 0; border-top: 1px solid var(--border); }
.plag-source:first-child { border-top: 0; padding-top: 6px; }
.plag-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.plag-title { color: var(--primary); text-decoration: none; font-weight: 600; font-size: .95rem; }
.plag-title:hover { text-decoration: underline; }
.plag-pct { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.plag-snippet { color: var(--text-2); font-size: .88rem; line-height: 1.5; margin: 0; }
.plag-empty { color: var(--muted); font-size: .9rem; margin: 0; }


/* ---------- Auth success ---------- */
.auth-success { background:#e6f7ec;color:#1f8a4a;border:1px solid #bce0c8;border-radius:8px;padding:10px 12px;font-size:.85rem;margin-bottom:14px; }
.auth-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; text-align: center; margin: 18px 0 12px; }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-form h4 { margin: 0 0 6px; font-size: 1.1rem; }

/* ---------- Plagiarism Checker page ---------- */
.checker-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; padding-bottom: 24px; }
.editor-card { display: flex; flex-direction: column; padding: 18px; }
.editor-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.editor-stats { display: flex; gap: 18px; font-size: .85rem; color: var(--text-2); flex-wrap: wrap; }
.editor-stats strong { color: var(--text); }
.editor-stats .ed-limit { color: var(--muted); }
.editor-actions { display: flex; gap: 8px; }
.editor-textarea { width: 100%; min-height: 320px; padding: 16px 4px; border: 0; outline: none; resize: vertical; font: 0.96rem/1.6 inherit; color: var(--text); background: transparent; }
.editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.scan-side { padding: 22px; }
.scan-side h4 { margin: 0 0 12px; font-size: 1rem; }
.how-list { padding-left: 18px; margin: 0 0 14px; color: var(--text-2); font-size: .9rem; }
.how-list li { padding: 4px 0; }

.progress-card { margin-top: 18px; padding: 22px; }
.prog-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.prog-row h4 { margin: 0 0 2px; font-size: 1rem; }
.prog-row .hint { margin: 0; }
.prog-spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 0.9s linear infinite; }
.prog-bar { height: 8px; background: #eef0fa; border-radius: 999px; overflow: hidden; }
.prog-fill { height: 100%; width: 5%; background: linear-gradient(90deg, var(--primary), #6e91ff); border-radius: 999px; transition: width .35s ease; }

.result-card { padding: 24px; }
.result-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 18px 0 8px; }
.price-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); border: 1px solid #f0eee8; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.highlight { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(59,110,246,.18); position: relative; }
.price-card.highlight::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.price-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.price-card .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-card .amt { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.price-card .per { color: var(--text-2); font-size: .9rem; }
.price-card .small { color: var(--text-2); font-size: .88rem; margin: 0 0 18px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-feats li { padding: 8px 0; font-size: .9rem; color: var(--text); border-bottom: 1px dashed var(--border); }
.price-feats li:last-child { border-bottom: none; }

.compare-wrap { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); overflow-x: auto; margin-top: 20px; margin-bottom: 60px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid #f3f1eb; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 600; }
.compare-table thead th { background: var(--bg-soft); color: var(--text-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding-bottom: 60px; }
.contact-form-card { padding: 30px; }
.contact-form-card h3 { margin: 0 0 18px; font-size: 1.2rem; }
.contact-form-card .form-row { margin-bottom: 16px; }
.contact-form-card label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: .95rem inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.contact-form-card input:focus, .contact-form-card select:focus, .contact-form-card textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,110,246,.12); }
.contact-form-card textarea { resize: vertical; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side .card { padding: 22px; }
.contact-side h4 { margin: 0 0 6px; font-size: 1rem; }
.contact-side .hint { margin: 0 0 14px; }

/* ---------- About: Built-by team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 20px 0 40px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: 0 4px 14px rgba(20,22,60,.04); }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; margin: 0 auto 12px; letter-spacing: .04em; }
.team-card h4 { margin: 0 0 4px; font-size: .98rem; }
.team-card p { margin: 0; color: var(--text-2); font-size: .82rem; }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Dashboard: settings + saved reports ---------- */
.settings-grid { display: flex; flex-direction: column; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-row strong { display: block; font-size: .92rem; }
.setting-row .hint { margin: 4px 0 0; }

.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { display: grid; grid-template-columns: 110px 1fr 80px 130px 90px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.report-list li:last-child { border-bottom: none; }
.report-type { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; text-align: center; }
.report-score { font-weight: 700; }
@media (max-width: 760px) {
  .report-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Home: Quick-check + Testimonials ---------- */
.quick-check { margin-top: 8px; padding: 22px; }
.qc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qc-head h3 { margin: 0; font-size: 1.05rem; }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 30px; }
.testi { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.testi p { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.55; }
.testi-by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-by .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.testi-by strong { display: block; font-size: .9rem; }
.testi-by span { color: var(--text-2); font-size: .8rem; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .checker-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
}

/* ---------- Auth form: shared input styling + wide variant ---------- */
.auth-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .88rem; color: var(--text); }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form input[type="date"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-size: .94rem; font-family: inherit;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.auth-form input:focus, .auth-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59,110,246,.12);
}
.auth-form-wide { max-width: 720px; padding: 36px 40px; }
.auth-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-form .form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 720px) {
  .auth-form-wide { padding: 26px 22px; }
  .auth-form .form-grid-2, .auth-form .form-grid-3 { grid-template-columns: 1fr; }
}

.form-section { margin-bottom: 22px; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--border); }
.form-section-title { display: flex; align-items: baseline; gap: 8px; margin: 0 0 14px; font-size: .95rem; font-weight: 700; color: var(--text); }
.form-section-title .step-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }
.form-section-title .step-hint { font-weight: 500; color: var(--muted); font-size: .82rem; }

/* Password field with show/hide eye */
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; cursor: pointer; padding: 6px;
  color: var(--text-2); font-size: .85rem; border-radius: 6px;
}
.password-toggle:hover { background: var(--bg-soft); color: var(--text); }
.password-meter { display: flex; gap: 4px; margin-top: 8px; }
.password-meter span { flex: 1; height: 4px; background: #ececec; border-radius: 2px; transition: background .2s; }
.password-meter.s1 span:nth-child(-n+1) { background: var(--danger); }
.password-meter.s2 span:nth-child(-n+2) { background: var(--warn); }
.password-meter.s3 span:nth-child(-n+3) { background: #84cc16; }
.password-meter.s4 span:nth-child(-n+4) { background: var(--accent); }
.password-hint { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }

/* Terms checkbox row */
.terms-row { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-2); margin: 6px 0 18px; line-height: 1.5; }
.terms-row input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.terms-row a { color: var(--primary); text-decoration: none; font-weight: 600; }
.terms-row a:hover { text-decoration: underline; }

/* Reset-link panel on forgot.html (simulated email) */
.reset-link-box {
  background: var(--bg-soft); border: 1px dashed var(--primary);
  border-radius: 12px; padding: 16px; margin: 12px 0;
}
.reset-link-box h4 { margin: 0 0 6px; font-size: .92rem; color: var(--primary); }
.reset-link-box p { margin: 0 0 10px; font-size: .82rem; color: var(--text-2); }
.reset-link-box .link-row { display: flex; gap: 8px; align-items: center; }
.reset-link-box .link-row a {
  flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--primary); text-decoration: none; font-size: .82rem;
  word-break: break-all; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.reset-link-box .copy-btn { padding: 9px 12px; font-size: .82rem; }
.reset-link-box .expiry { font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* ---------- Dashboard profile grid + modal ---------- */
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; margin-top: 8px; }
.profile-grid .prof-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .85rem; }
.profile-grid .prof-row:last-child { border-bottom: none; }
.profile-grid .prof-k { color: var(--text-2); }
.profile-grid .prof-v { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }
.profile-grid .prof-missing { color: var(--muted); font-weight: 400; font-style: normal; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,20,40,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px; z-index: 100; overflow-y: auto;
}
.modal {
  background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 640px;
  box-shadow: var(--shadow); padding: 22px 24px; margin: auto 0;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h4 { margin: 0; font-size: 1.05rem; }
.modal-close { background: transparent; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { color: var(--text); background: var(--bg-soft); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Teacher panel sections (admin.html) ---------- */
.teach-section { margin-top: 22px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-pane { background: var(--bg-soft); border-radius: 12px; padding: 16px; min-height: 120px; }
.compare-pane h5 { margin: 0 0 8px; font-size: .92rem; color: var(--text-2); }
.compare-pane .big { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.compare-pane .meta { font-size: .82rem; color: var(--text-2); margin-top: 6px; }
.compare-empty { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-chart .bar-row { display: grid; grid-template-columns: 160px 1fr 50px; align-items: center; gap: 10px; font-size: .85rem; }
.bar-chart .bar-track { background: var(--bg-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-chart .bar-fill  { background: var(--primary); height: 100%; border-radius: 999px; transition: width .4s; }
.bar-chart .bar-val   { text-align: right; font-weight: 700; color: var(--text-2); }
@media (max-width: 760px) { .bar-chart .bar-row { grid-template-columns: 1fr; } .bar-chart .bar-val { text-align: left; } }
