@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --gold:#c8a84b;
  --gold2:#e8c870;
  --blue:#0e3e5f;
  --blue2:#1a5580;
  --bg:#070f18;
  --bg2:#0a1a28;
  --bg3:#0f2438;
  --card:rgba(10,26,40,.92);
  --card-2:rgba(15,36,56,.85);
  --line:rgba(255,255,255,.08);
  --line-gold:rgba(201,168,76,.18);
  --text:#ffffff;
  --dim:rgba(255,255,255,.62);
  --muted:rgba(255,255,255,.42);
  --ok:#3ecf8e;
  --warn:#f0b429;
  --danger:#ff5a6b;
  --radius:24px;
  --shadow:0 18px 55px rgba(0,0,0,.34);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:radial-gradient(circle at top, #173a57 0%, #0a1622 35%, #070f18 100%);
  color:var(--text);
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}

.page-shell{
  min-height:100vh;
  padding:32px 18px 56px;
  position:relative;
}
.page-shell::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top center, rgba(26,85,128,.45), transparent 40%),
    linear-gradient(180deg, rgba(14,62,95,.24), transparent 35%);
}
.wrap{
  width:min(1180px, 100%);
  margin:0 auto;
  position:relative;
  z-index:1;
}
.brand-block{
  display:flex;
  gap:14px;
  align-items:center;
  padding:18px 22px;
  margin-bottom:24px;
  border-radius:22px;
  border:1px solid var(--line-gold);
  background:linear-gradient(180deg, rgba(10,26,40,.88), rgba(7,15,24,.95));
  box-shadow:var(--shadow);
}
.bhex{
  width:52px;height:52px;border-radius:18px;
  background:linear-gradient(135deg,var(--blue),var(--blue2));
  clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display:grid;place-items:center;flex:none;
}
.bhex span{color:var(--gold2);font-size:1.25rem}
.bname{font-family:'Montserrat',sans-serif;font-size:1.35rem;font-weight:900;letter-spacing:.08em}
.btag{font-size:.78rem;color:var(--muted);margin-top:2px}
.ds-mode-badge{
  margin-left:auto;padding:10px 14px;border-radius:999px;
  border:1px solid var(--line);color:var(--dim);font-size:.75rem;
  background:rgba(255,255,255,.04)
}

.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:1.2fr .8fr}
.grid-3{grid-template-columns:repeat(3,1fr)}
.card{
  background:linear-gradient(180deg, rgba(10,26,40,.96), rgba(8,18,29,.98));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card-body{padding:24px}
.card-title{
  font-family:'Montserrat',sans-serif;
  font-size:1.15rem;font-weight:800;letter-spacing:.04em;
  margin-bottom:10px
}
.card-subtitle{font-size:.95rem;color:var(--dim);line-height:1.6}
.metric{padding:22px}
.metric strong{display:block;font-size:2rem;font-family:'Montserrat',sans-serif}
.metric span{color:var(--dim);font-size:.92rem}

.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}
.tab-link{
  padding:12px 18px;border-radius:999px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);color:var(--dim);font-weight:700
}
.tab-link.active{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#08121d;border-color:transparent}

.actions{display:flex;gap:12px;flex-wrap:wrap}
.btn-primary,.btn-secondary,.btn-danger,.btn-outline{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:46px;padding:0 18px;border-radius:999px;border:none;cursor:pointer;
  transition:.25s transform,.25s opacity,.25s box-shadow,.25s background;
}
.btn-primary{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#07111c;font-weight:800;box-shadow:0 8px 24px rgba(201,168,76,.28)
}
.btn-primary:hover,.btn-secondary:hover,.btn-danger:hover,.btn-outline:hover{transform:translateY(-1px)}
.btn-secondary{background:rgba(255,255,255,.06);color:var(--text);border:1px solid var(--line)}
.btn-outline{background:rgba(201,168,76,.08);color:var(--gold2);border:1px solid rgba(201,168,76,.32)}
.btn-danger{background:rgba(255,90,107,.12);color:#ffb4bf;border:1px solid rgba(255,90,107,.28)}

label.lbl{display:block;font-size:.84rem;font-weight:700;margin-bottom:8px;color:var(--dim)}
.input, .textarea, .select{
  width:100%;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);
  color:var(--text);border-radius:16px;padding:14px 16px;outline:none;
}
.input:focus,.textarea:focus,.select:focus{border-color:rgba(201,168,76,.48);box-shadow:0 0 0 4px rgba(201,168,76,.08)}
.textarea{min-height:120px;resize:vertical}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-grid .full{grid-column:1 / -1}
.hint{font-size:.82rem;color:var(--muted);margin-top:8px;line-height:1.5}
.badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(201,168,76,.10);color:var(--gold2);font-size:.78rem;font-weight:700;border:1px solid rgba(201,168,76,.2)}

.builder-list{display:grid;gap:14px;margin-top:16px}
.question-block{
  border-radius:20px;border:1px solid var(--line);background:rgba(255,255,255,.03);
  padding:18px;
}
.question-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.question-type{font-size:.78rem;color:var(--gold2);font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.choice-preview{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.pill{padding:8px 12px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.04);font-size:.82rem;color:var(--dim)}

.table-wrap{overflow:auto;border-radius:20px;border:1px solid var(--line)}
table{width:100%;border-collapse:collapse;min-width:740px;background:rgba(255,255,255,.025)}
th,td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left;font-size:.92rem;vertical-align:top}
th{background:rgba(255,255,255,.04);color:var(--gold2);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}
tr:hover td{background:rgba(255,255,255,.025)}

.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chart-card{padding:18px;border-radius:22px;border:1px solid var(--line);background:rgba(255,255,255,.03)}
.chart-card h3{font-size:1rem;margin:0 0 12px}
.empty-state{padding:42px 24px;text-align:center;color:var(--dim)}

.survey-shell{
  min-height:100vh;display:grid;place-items:center;padding:24px;position:relative;overflow:hidden;
  background:linear-gradient(180deg, rgba(7,15,24,.88), rgba(7,15,24,.96));
}
.survey-shell::before{
  content:'';position:absolute;inset:0;
  background:
    linear-gradient(180deg, rgba(14,62,95,.68), rgba(10,26,40,.84)),
    var(--survey-bg, radial-gradient(circle at top, rgba(26,85,128,.35), transparent 45%));
  background-size:cover;background-position:center;opacity:.95;
}
.survey-overlay{position:absolute;inset:0;background:radial-gradient(circle at top, rgba(26,85,128,.40), transparent 40%)}
.survey-card{
  position:relative;z-index:2;width:min(760px,100%);
  border-radius:30px;border:1px solid rgba(255,255,255,.10);
  background:rgba(10,26,40,.84);backdrop-filter:blur(14px);
  box-shadow:0 24px 80px rgba(0,0,0,.45);overflow:hidden;
}
.survey-card-inner{padding:24px}
.survey-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.counter{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:.86rem;color:var(--dim)}
.progress-track{width:100%;height:8px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin-bottom:18px}
.progress-bar{height:100%;background:linear-gradient(90deg,var(--gold),var(--gold2));border-radius:999px;transition:width .3s ease}
.screen{display:none;animation:fadeSlide .32s ease}
.screen.active{display:block}
@keyframes fadeSlide{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.hero-title{font-family:'Montserrat',sans-serif;font-size:clamp(1.8rem,4vw,2.9rem);line-height:1.05;margin-bottom:14px}
.hero-text,.question-text,.final-text{font-size:1rem;color:var(--dim);line-height:1.7}
.question-title{font-family:'Montserrat',sans-serif;font-size:1.55rem;margin-bottom:10px}
.option-list{display:grid;gap:12px;margin:22px 0}
.option-card{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:20px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);cursor:pointer;transition:.2s}
.option-card:hover,.option-card.is-active{border-color:rgba(201,168,76,.42);background:rgba(201,168,76,.10)}
.option-bullet{width:22px;height:22px;border-radius:999px;border:2px solid rgba(255,255,255,.22);margin-top:1px;display:grid;place-items:center;flex:none}
.option-card.is-active .option-bullet{border-color:var(--gold2);background:rgba(201,168,76,.18)}
.option-card.is-active .option-bullet::after{content:'';width:9px;height:9px;border-radius:999px;background:var(--gold2)}
.option-checkbox{border-radius:8px}
.option-card.is-active .option-checkbox::after{width:10px;height:10px;border-radius:3px}
.question-actions{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:18px}
.error-box,.success-box{padding:14px 16px;border-radius:18px;margin-top:16px;font-size:.92rem}
.error-box{background:rgba(255,90,107,.12);border:1px solid rgba(255,90,107,.24);color:#ffc3cb}
.success-box{background:rgba(62,207,142,.12);border:1px solid rgba(62,207,142,.24);color:#b8f6d6}
.copy-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hp-field{position:absolute;left:-9999px;opacity:0;pointer-events:none}
.login-shell{width:min(540px,100%);margin:8vh auto 0}
.small{font-size:.84rem;color:var(--muted)}
.notice{padding:14px 16px;border-radius:18px;background:rgba(201,168,76,.08);border:1px solid rgba(201,168,76,.18);color:#f8e3a6}

@media (max-width: 920px){
  .grid-2,.grid-3,.chart-grid,.form-grid{grid-template-columns:1fr}
  .brand-block{align-items:flex-start}
  .ds-mode-badge{margin-left:0}
}
@media (max-width: 640px){
  .page-shell{padding:18px 12px 36px}
  .survey-shell{padding:12px}
  .survey-card-inner{padding:18px}
  .hero-title{font-size:1.7rem}
  .question-title{font-size:1.25rem}
}
