/* =============================================
   DNS Detective — Cloud86 Academy
   Visual Design: Noir detective × modern SaaS
   Dark ink backgrounds, amber spotlight accents,
   teal Cloud86 brand, grain texture overlay
   ============================================= */

:root {
  --ink-900: #080a0f;
  --ink-800: #0d1018;
  --ink-700: #111420;
  --ink-600: #161a28;
  --ink-500: #1e2335;
  --ink-400: #262d42;
  --ink-300: #2e3650;

  --teal: #0ec9df;
  --teal-bright: #3de0f0;
  --teal-dim: rgba(14,201,223,0.1);
  --teal-glow: rgba(14,201,223,0.25);
  --teal-border: rgba(14,201,223,0.2);

  --amber: #f5a623;
  --amber-bright: #ffc04d;
  --amber-dim: rgba(245,166,35,0.1);
  --amber-glow: rgba(245,166,35,0.28);
  --amber-border: rgba(245,166,35,0.22);

  --green: #2dd4a0;
  --green-dim: rgba(45,212,160,0.1);
  --green-border: rgba(45,212,160,0.22);
  --red: #f05656;
  --red-dim: rgba(240,86,86,0.1);
  --red-border: rgba(240,86,86,0.22);

  --text-hi: #eef0f8;
  --text-med: #8c93b0;
  --text-lo: #404768;

  --border: rgba(255,255,255,0.055);
  --border-med: rgba(255,255,255,0.09);
  --border-hi: rgba(255,255,255,0.15);

  --f-display: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --f-mono: 'DM Mono', monospace;

  --sidebar: 288px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  height: 100%;
  background: var(--ink-900);
  color: var(--text-hi);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
}
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  background: var(--ink-800);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--teal), #0898a8);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.logo-c86 { font-family: var(--f-display); font-weight: 800; font-size: 11px; color: var(--ink-900); letter-spacing: -0.03em; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 14px; color: var(--text-hi); letter-spacing: -0.02em; }
.brand-sub { font-size: 10px; color: var(--text-lo); letter-spacing: 0.07em; text-transform: uppercase; margin-top: 3px; }
.detective-card {
  margin: 16px 14px;
  background: linear-gradient(135deg, var(--ink-600), var(--ink-500));
  border: 1px solid var(--border-med);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.detective-card::after { content: ''; position: absolute; top: -30px; right: -20px; width: 90px; height: 90px; background: radial-gradient(circle, var(--amber-glow), transparent 70%); pointer-events: none; }
.detective-avatar { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 12px var(--amber-glow)); flex-shrink: 0; z-index: 1; }
.detective-info { flex: 1; display: flex; flex-direction: column; z-index: 1; }
.detective-info strong { font-family: var(--f-display); font-weight: 700; font-size: 13px; color: var(--text-hi); }
.detective-info span { font-size: 11px; color: var(--text-lo); margin-top: 1px; }
.xp-badge { background: var(--amber-dim); border: 1px solid var(--amber-border); color: var(--amber); font-family: var(--f-mono); font-size: 11px; padding: 4px 9px; border-radius: 20px; white-space: nowrap; transition: all 0.4s ease; z-index: 1; }
.case-nav { padding: 8px 10px 16px; }
.nav-label { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-lo); padding: 0 10px 8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); cursor: pointer; transition: all 0.2s ease; margin-bottom: 2px; border: 1px solid transparent; }
.nav-item:hover:not(.locked) { background: var(--ink-500); border-color: var(--border); }
.nav-item.active { background: var(--teal-dim); border-color: var(--teal-border); }
.nav-item.active .nav-title { color: var(--teal-bright); }
.nav-item.locked { opacity: 0.3; cursor: not-allowed; }
.nav-item.completed { background: var(--green-dim); border-color: var(--green-border); }
.nav-item.completed .nav-title { color: var(--green); }
.nav-icon { font-size: 14px; flex-shrink: 0; }
.nav-title { flex: 1; font-size: 12.5px; color: var(--text-med); font-weight: 500; line-height: 1.35; }
.nav-status { font-size: 12px; flex-shrink: 0; }
.sidebar-progress { padding: 16px 18px 22px; border-top: 1px solid var(--border); margin-top: auto; background: linear-gradient(0deg, var(--ink-700) 0%, transparent 100%); }
.progress-header { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--text-lo); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.progress-track { height: 3px; background: var(--ink-300); border-radius: 20px; overflow: hidden; margin-bottom: 18px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--amber)); border-radius: 20px; width: 0%; transition: width 0.8s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 0 8px var(--teal-glow); }
.score-row { display: flex; gap: 20px; }
.score-item { display: flex; flex-direction: column; }
.score-num { font-family: var(--f-display); font-size: 26px; font-weight: 800; color: var(--text-hi); line-height: 1; letter-spacing: -0.04em; }
.score-lbl { font-family: var(--f-mono); font-size: 10px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--ink-900); position: relative; }
.main::before { content: ''; position: fixed; top: -200px; left: 30%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(14,201,223,0.035) 0%, transparent 65%); pointer-events: none; z-index: 0; }
.dennis-bar { display: flex; align-items: flex-start; gap: 14px; padding: 13px 40px; background: var(--ink-800); border-bottom: 1px solid var(--border); position: relative; z-index: 1; min-height: 54px; }
.dennis-bar::after { content: ''; position: absolute; bottom: -1px; left: 40px; width: 56px; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }
.dennis-avatar-sm { font-size: 19px; flex-shrink: 0; margin-top: 2px; filter: drop-shadow(0 0 8px var(--amber-glow)); }
.dennis-speech { font-size: 13px; color: var(--text-med); font-style: italic; line-height: 1.6; }
.dennis-speech::before { content: '"'; color: var(--amber); font-size: 18px; font-style: normal; margin-right: 1px; vertical-align: -2px; }
.view { display: none; flex: 1; position: relative; z-index: 1; }
.view.active { display: flex; flex-direction: column; animation: fadeUp 0.4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-intro { padding: 52px 52px 72px; max-width: 1000px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.07em; color: var(--teal); border: 1px solid var(--teal-border); background: var(--teal-dim); padding: 5px 14px; border-radius: 20px; margin-bottom: 24px; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 6px var(--teal); animation: blink 2s ease infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-title { font-family: var(--f-display); font-size: clamp(46px, 5.5vw, 68px); font-weight: 800; color: var(--text-hi); line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 20px; }
.hero-title em { font-style: normal; background: linear-gradient(135deg, var(--amber), var(--amber-bright) 50%, #ff9d3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: var(--text-med); max-width: 460px; margin-bottom: 48px; line-height: 1.8; font-weight: 300; }
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 44px; }
.case-preview-card { background: var(--ink-700); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px 22px; position: relative; overflow: hidden; transition: all 0.3s ease; }
.case-preview-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent); }
.case-preview-card:hover { border-color: var(--border-hi); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.5); }
.case-num { font-family: var(--f-mono); font-size: 54px; font-weight: 400; color: var(--ink-300); line-height: 1; margin-bottom: 4px; letter-spacing: -0.06em; }
.case-icon { font-size: 26px; margin-bottom: 14px; display: block; }
.case-preview-card h3 { font-family: var(--f-display); font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-hi); letter-spacing: -0.02em; }
.case-preview-card p { font-size: 13px; color: var(--text-med); margin-bottom: 18px; line-height: 1.65; font-weight: 300; }
.case-topics { font-family: var(--f-mono); font-size: 10.5px; color: var(--teal); background: var(--teal-dim); padding: 5px 11px; border-radius: 6px; border: 1px solid var(--teal-border); }
.case-header-bar { display: flex; align-items: center; gap: 14px; padding: 18px 40px; border-bottom: 1px solid var(--border); background: var(--ink-800); position: relative; overflow: hidden; }
.case-header-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal-dim), transparent 55%); pointer-events: none; }
.case-tag { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); background: var(--amber-dim); border: 1px solid var(--amber-border); padding: 4px 12px; border-radius: 20px; z-index: 1; }
.case-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; flex: 1; letter-spacing: -0.02em; z-index: 1; }
.case-xp { font-family: var(--f-mono); font-size: 12px; color: var(--green); background: var(--green-dim); border: 1px solid var(--green-border); padding: 4px 12px; border-radius: 20px; z-index: 1; }
.step-progress { display: flex; gap: 5px; padding: 0 40px; background: var(--ink-800); border-bottom: 1px solid var(--border); height: 4px; }
.step-pill { flex: 1; height: 4px; background: var(--ink-300); border-radius: 20px; transition: all 0.5s ease; }
.step-pill.active { background: var(--amber); box-shadow: 0 0 8px var(--amber-glow); }
.step-pill.done   { background: var(--teal);  box-shadow: 0 0 6px var(--teal-glow); }
.step-content { flex: 1; overflow-y: auto; padding: 36px 52px; max-width: 820px; scrollbar-width: thin; scrollbar-color: var(--ink-300) transparent; }
.step-content::-webkit-scrollbar { width: 3px; }
.step-content::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 20px; }
.step-nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 40px; border-top: 1px solid var(--border); background: var(--ink-800); }
.step-dots { display: flex; gap: 7px; align-items: center; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-300); transition: all 0.3s ease; }
.step-dot.active { background: var(--amber); box-shadow: 0 0 7px var(--amber); transform: scale(1.25); }
.step-dot.done   { background: var(--teal);  box-shadow: 0 0 5px var(--teal-glow); }
.step-title { font-family: var(--f-display); font-size: 30px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.03em; margin-bottom: 6px; line-height: 1.1; }
.step-subtitle { font-size: 14px; color: var(--text-lo); margin-bottom: 32px; font-weight: 300; }
.ticket { background: var(--ink-700); border: 1px solid var(--border-med); border-left: 3px solid var(--amber); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 22px; position: relative; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.ticket::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--amber-dim), transparent 45%); pointer-events: none; }
.ticket::after { content: '📨'; position: absolute; top: 18px; right: 22px; font-size: 32px; opacity: 0.06; }
.ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: relative; }
.ticket-id { font-family: var(--f-mono); font-size: 11px; color: var(--text-lo); letter-spacing: 0.04em; }
.ticket-priority { font-family: var(--f-mono); font-size: 11px; color: var(--amber); background: var(--amber-dim); border: 1px solid var(--amber-border); padding: 3px 10px; border-radius: 12px; }
.ticket-from { font-family: var(--f-mono); font-size: 12px; color: var(--text-lo); margin-bottom: 14px; position: relative; }
.ticket-from strong { color: var(--text-med); }
.ticket-body { font-size: 14px; color: var(--text-hi); line-height: 1.8; position: relative; font-weight: 300; }
.theory-box { background: var(--ink-700); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: 14px; position: relative; overflow: hidden; transition: border-color 0.2s; }
.theory-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--teal), transparent 60%); }
.theory-box:hover { border-color: var(--border-med); }
.theory-box h4 { font-family: var(--f-display); font-size: 14px; font-weight: 700; color: var(--teal-bright); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.theory-box p { font-size: 14px; color: var(--text-med); line-height: 1.8; margin-bottom: 12px; font-weight: 300; }
.theory-box p:last-child { margin-bottom: 0; }
.theory-box code { font-family: var(--f-mono); font-size: 12px; background: var(--ink-500); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; color: var(--teal-bright); }
.dns-example { background: var(--ink-900); border: 1px solid var(--border-med); border-radius: var(--r-lg); overflow: hidden; margin: 18px 0; font-family: var(--f-mono); font-size: 12.5px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.dns-example-header { background: var(--ink-600); padding: 9px 16px; font-size: 10px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.dns-example-header::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 6px var(--teal); }
.dns-record-row { display: grid; grid-template-columns: 110px 56px 70px 1fr; border-bottom: 1px solid var(--border); }
.dns-record-row:last-child { border-bottom: none; }
.dns-record-row:first-child { background: var(--ink-700); font-size: 10px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.06em; }
.dns-cell { padding: 10px 16px; border-right: 1px solid var(--border); color: var(--text-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-cell:last-child { border-right: none; color: var(--teal); }
.dns-cell.highlight { color: var(--amber); }
.clue-box { background: var(--amber-dim); border: 1px solid var(--amber-border); border-radius: var(--r); padding: 15px 18px; margin: 16px 0; display: flex; gap: 12px; position: relative; }
.clue-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }
.clue-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.clue-text { font-size: 13.5px; color: var(--text-med); line-height: 1.65; }
.clue-text strong { color: var(--amber-bright); font-weight: 600; }
.warn-box { background: var(--red-dim); border: 1px solid var(--red-border); border-radius: var(--r); padding: 15px 18px; margin: 16px 0; display: flex; gap: 12px; position: relative; }
.warn-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--red), transparent); }
.warn-text { font-size: 13.5px; color: var(--text-med); line-height: 1.65; }
.warn-text strong { color: var(--red); font-weight: 600; }
.section-label { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-lo); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.quiz-container { margin-top: 4px; }
.quiz-num { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-lo); margin-bottom: 14px; }
.quiz-q { font-family: var(--f-display); font-size: 21px; font-weight: 700; color: var(--text-hi); margin-bottom: 24px; line-height: 1.35; letter-spacing: -0.02em; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: var(--ink-700); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; transition: all 0.2s ease; font-size: 14px; color: var(--text-med); line-height: 1.55; }
.quiz-option:hover:not(.disabled) { border-color: var(--teal-border); background: var(--teal-dim); color: var(--text-hi); transform: translateX(3px); }
.quiz-option.selected-correct { border-color: var(--green) !important; background: var(--green-dim) !important; color: var(--green) !important; transform: none !important; }
.quiz-option.selected-wrong { border-color: var(--red) !important; background: var(--red-dim) !important; color: var(--red) !important; transform: none !important; }
.quiz-option.disabled { cursor: not-allowed; }
.quiz-option.show-correct { border-color: var(--green-border); background: var(--green-dim); color: var(--green); }
.option-letter { width: 26px; height: 26px; border-radius: 6px; background: var(--ink-500); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; font-weight: 500; flex-shrink: 0; margin-top: 1px; transition: all 0.2s; }
.quiz-option:hover:not(.disabled) .option-letter { background: var(--teal-dim); border-color: var(--teal-border); color: var(--teal); }
.quiz-feedback { margin-top: 16px; padding: 14px 18px; border-radius: var(--r); font-size: 13.5px; line-height: 1.65; display: none; animation: fadeUp 0.3s ease; }
.quiz-feedback.correct { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); display: block; }
.quiz-feedback.wrong { background: var(--red-dim); border: 1px solid var(--red-border); color: var(--text-med); display: block; }
.scenario-box { background: var(--ink-700); border: 1px solid var(--border-med); border-radius: var(--r-xl); padding: 26px 28px; position: relative; overflow: hidden; }
.scenario-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--amber), var(--teal), transparent); }
.scenario-box h4 { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--text-hi); margin-bottom: 12px; letter-spacing: -0.02em; }
.scenario-box p { font-size: 14px; color: var(--text-med); line-height: 1.8; font-weight: 300; }
.answer-reveal { background: var(--ink-600); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-top: 20px; }
.answer-toggle { width: 100%; padding: 13px 18px; background: none; border: none; color: var(--teal); font-size: 13px; cursor: pointer; text-align: left; font-family: var(--f-body); display: flex; align-items: center; gap: 8px; transition: all 0.2s; }
.answer-toggle:hover { background: var(--teal-dim); }
.answer-body { display: none; padding: 18px 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-med); line-height: 1.8; font-weight: 300; }
.answer-body.open { display: block; animation: fadeUp 0.25s ease; }
.answer-body strong { color: var(--teal-bright); font-weight: 600; }
.answer-body code { font-family: var(--f-mono); font-size: 12px; background: var(--ink-500); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; color: var(--amber); }
.step-complete-banner { background: linear-gradient(135deg, rgba(14,201,223,0.06), var(--ink-700)); border: 1px solid var(--teal-border); border-radius: var(--r-xl); padding: 40px 36px; text-align: center; margin-top: 24px; position: relative; overflow: hidden; }
.step-complete-banner::before { content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 240px; height: 240px; background: radial-gradient(circle, var(--teal-glow), transparent 65%); pointer-events: none; }
.step-complete-banner h3 { font-family: var(--f-display); font-size: 24px; font-weight: 800; color: var(--teal-bright); margin-bottom: 8px; letter-spacing: -0.03em; position: relative; }
.step-complete-banner p { font-size: 14px; color: var(--text-med); font-weight: 300; position: relative; }
.cert-container { max-width: 640px; margin: 0 auto; padding: 72px 36px; text-align: center; }
.cert-logo { font-size: 72px; display: block; margin-bottom: 16px; filter: drop-shadow(0 0 28px var(--amber-glow)); animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.cert-badge-text { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.cert-badge-text::before, .cert-badge-text::after { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--teal)); }
.cert-badge-text::after { transform: scaleX(-1); }
.cert-container h1 { font-family: var(--f-display); font-size: 52px; font-weight: 800; color: var(--text-hi); letter-spacing: -0.04em; margin-bottom: 10px; line-height: 1; }
.cert-sub { font-size: 16px; color: var(--text-med); margin-bottom: 44px; font-weight: 300; }
.cert-stats { display: flex; justify-content: center; margin-bottom: 40px; background: var(--ink-700); border: 1px solid var(--border-med); border-radius: var(--r-xl); overflow: hidden; }
.cert-stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 16px; border-right: 1px solid var(--border); }
.cert-stat:last-child { border-right: none; }
.cert-num { font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--amber); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; text-shadow: 0 0 28px var(--amber-glow); }
.cert-lbl { font-family: var(--f-mono); font-size: 10px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; }
.cert-skills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.skill-chip { font-family: var(--f-mono); font-size: 11px; color: var(--teal); background: var(--teal-dim); border: 1px solid var(--teal-border); padding: 5px 13px; border-radius: 20px; transition: all 0.2s; }
.skill-chip:hover { background: var(--teal-glow); transform: translateY(-2px); }
.cert-name { font-size: 13px; color: var(--text-lo); margin-bottom: 36px; font-style: italic; }
.btn-primary { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, var(--teal), #0898a8); color: var(--ink-900); font-family: var(--f-body); font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: var(--r); border: none; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 18px var(--teal-glow); letter-spacing: -0.01em; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,0.25), transparent); }
.btn-primary:hover { background: linear-gradient(135deg, var(--teal-bright), var(--teal)); box-shadow: 0 6px 28px var(--teal-glow); transform: translateY(-1px); }
.btn-primary:active { transform: none; box-shadow: 0 2px 8px var(--teal-glow); }
.btn-primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.btn-lg { font-size: 16px; padding: 14px 32px; border-radius: var(--r-lg); }
.btn-ghost { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--text-med); font-family: var(--f-body); font-weight: 500; font-size: 14px; padding: 10px 22px; border-radius: var(--r); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; }
.btn-ghost:hover { background: var(--ink-600); border-color: var(--border-med); color: var(--text-hi); }
.btn-ghost:disabled { opacity: 0.2; cursor: not-allowed; }
.tier-label { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-lo); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.tier-label::before { content: ''; width: 24px; height: 1px; background: var(--teal); flex-shrink: 0; }
.tier-label-2 { margin-top: 36px; }
.tier-locked-badge { font-size: 10px; color: var(--text-lo); background: var(--ink-600); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; letter-spacing: 0.04em; font-family: var(--f-mono); text-transform: none; }
.case-tier2 { opacity: 0.55; }
.case-tier2:hover { opacity: 1; }
#resumeBanner { background: linear-gradient(135deg, var(--teal-dim), rgba(14,201,223,0.05)); border: 1px solid var(--teal-border); border-radius: var(--r-xl); padding: 18px 22px; margin-bottom: 36px; animation: fadeUp 0.4s ease; }
.resume-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.resume-icon { font-size: 24px; flex-shrink: 0; }
.resume-text { flex: 1; font-size: 13.5px; color: var(--text-med); min-width: 180px; line-height: 1.6; }
.resume-text strong { color: var(--teal-bright); font-weight: 600; }
.resume-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-sm { font-size: 12px !important; padding: 7px 14px !important; }
#xpPopup { position: fixed; bottom: 32px; right: 32px; background: linear-gradient(135deg, var(--amber), var(--amber-bright)); color: var(--ink-900); font-family: var(--f-display); font-weight: 800; font-size: 18px; padding: 13px 26px; border-radius: 14px; transform: translateY(80px) scale(0.9); opacity: 0; transition: all 0.4s cubic-bezier(0.16,1,0.3,1); z-index: 99999; pointer-events: none; box-shadow: 0 8px 32px var(--amber-glow), 0 2px 8px rgba(0,0,0,0.4); letter-spacing: -0.02em; }
#xpPopup.show { transform: translateY(0) scale(1); opacity: 1; }