/* Emerald + Gold theme (matches your CV palette) */
:root{
  --bg:#F7F9F6;
  --text:#0B2F28;
  --primary:#0F6B52;
  --accent:#D9B35A;
  --card:#FFFFFF;
  --shadow: rgba(0,0,0,0.10);
  --muted: rgba(11,47,40,0.65);
  --danger:#B42318;
  --ok:#067647;
}

.dark-mode{
  --bg:#0B1010;
  --text:#E9EEE9;
  --primary:#0F6B52;
  --accent:#D9B35A;
  --card:#0B2F28;
  --shadow: rgba(0,0,0,0.55);
  --muted: rgba(233,238,233,0.70);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
}

a{color:inherit}

nav{
  position:sticky;
  top:0;
  z-index:999;
  background:var(--primary);
  color:#fff;
  padding:14px 5%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.logo{
  font-weight:800;
  letter-spacing:0.2px;
  white-space:nowrap;
}

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

.dark-toggle{
  background: rgba(255,255,255,0.18);
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  cursor:pointer;
  user-select:none;
  font-weight:600;
  transition: transform .2s ease, background .2s ease;
}
.dark-toggle:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.26);
}

.container{
  padding:28px 5% 44px;
  max-width:1100px;
  margin:0 auto;
}

.h1{
  font-size:2.1rem;
  line-height:1.15;
  margin: 12px 0 10px;
}
.sub{
  color:var(--muted);
  margin-bottom:18px;
  font-size:1.02rem;
}

.card{
  background:var(--card);
  border-radius:20px;
  padding:22px;
  box-shadow:0 12px 34px var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}

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

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.label{
  font-weight:700;
  margin-bottom:8px;
}

.input{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  color:var(--text);
  outline:none;
}
.dark-mode .input{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.7);
  color:var(--text);
  outline:none;
}
.dark-mode .select{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.btn{
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  border:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: transform .2s ease, opacity .2s ease;
}
.btn:hover{transform: translateY(-1px)}
.btn:disabled{opacity:0.55; cursor:not-allowed; transform:none}

.btn-primary{
  background:var(--primary);
  color:#fff;
}
.btn-outline{
  background:transparent;
  border:2px solid var(--primary);
  color:var(--primary);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:800;
  background: rgba(15,107,82,0.12);
  color: var(--primary);
  border: 1px solid rgba(15,107,82,0.18);
}
.dark-mode .badge{
  background: rgba(217,179,90,0.10);
  color: var(--accent);
  border: 1px solid rgba(217,179,90,0.18);
}

hr.sep{
  border:none;
  height:1px;
  background: rgba(0,0,0,0.08);
  margin: 16px 0;
}
.dark-mode hr.sep{
  background: rgba(255,255,255,0.14);
}

.topic{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.55);
}
.dark-mode .topic{
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}

.topic h3{
  margin:0 0 6px;
  font-size:1.15rem;
}
.topic p{
  margin:0;
  color:var(--muted);
  font-size:0.98rem;
}
.topic-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:180px;
}

.small{
  font-size:0.92rem;
  color:var(--muted);
}

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

.progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background: rgba(0,0,0,0.08);
  overflow:hidden;
}
.dark-mode .progress{background: rgba(255,255,255,0.14)}
.progress > div{
  height:100%;
  width:0%;
  background: var(--accent);
  transition: width .25s ease;
}

.qbox{
  margin-top:14px;
}
.qtitle{
  font-size:1.2rem;
  margin: 8px 0 10px;
  font-weight:900;
}
.opt{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.08);
  margin:10px 0;
  cursor:pointer;
  background: rgba(255,255,255,0.55);
}
.dark-mode .opt{
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}
.opt input{margin-top:3px}
.opt:hover{transform: translateY(-1px); transition: transform .12s ease}
.note{
  margin-top:12px;
  color:var(--muted);
  font-size:0.95rem;
}
.alert{
  padding:12px 14px;
  border-radius:14px;
  font-weight:800;
  background: rgba(180,35,24,0.10);
  color: var(--danger);
  border: 1px solid rgba(180,35,24,0.18);
}
.ok{
  background: rgba(6,118,71,0.10);
  color: var(--ok);
  border: 1px solid rgba(6,118,71,0.18);
}

.qrBox{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  align-items:center;
}
@media (max-width:900px){
  .qrBox{grid-template-columns:1fr}
}
.qrFrame{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
  min-height:260px;
}
.dark-mode .qrFrame{
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.qr{
  width:220px;
  height:220px;
  border-radius:14px;
  box-shadow:0 12px 30px var(--shadow);
  background:#fff;
}

.footer{
  text-align:center;
  padding:24px 5%;
  background: var(--primary);
  color:#fff;
  margin-top: 28px;
}
