:root {
  --bg: #061327; --panel: #0c2142; --panel2: #112b55; --border: #223e6b;
  --text: #f3f6fb; --muted: #a9b6cb; --gold: #d9ab43; --gold2: #b88a27;
  --accent: #4c8de8; --ok: #3fbf7f; --bad: #e05c5c; --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', Tahoma, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
[dir="ltr"] body { font-family: 'Segoe UI', system-ui, sans-serif; }
#topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--gold); text-decoration: none; }
#nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
#nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: .92rem; }
#nav a:hover, #nav a.active { color: var(--text); background: var(--panel2); }
.top-actions { display: flex; gap: 8px; align-items: center; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
#footer { padding: 20px; text-align: center; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }
.btn { background: var(--gold); color: #191300; border: none; padding: 10px 18px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .95rem; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--gold2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.blue { background: var(--accent); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: .82rem; }
.btn.bad { background: var(--bad); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero { text-align: center; padding: 60px 16px; background: radial-gradient(900px 300px at 80% 0%, rgba(217,171,67,.14), transparent 60%), linear-gradient(160deg, #0f2a55 0%, #061327 72%); border: 1px solid var(--border); border-radius: 20px; margin-bottom: 28px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--muted); font-size: 1.1rem; margin-bottom: 24px; max-width: 640px; margin-inline: auto; }
.grid { display: grid; gap: 14px; }
.grid.cols2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: 8px; font-size: 1.02rem; }
.card p, .card li { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.card ul { padding-inline-start: 18px; }
.section-title { font-size: 1.4rem; margin: 34px 0 16px; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #191300; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.price { font-size: 2rem; font-weight: 800; color: var(--gold); }
.plan-card { display: flex; flex-direction: column; gap: 8px; }
.plan-card.featured { border-color: var(--gold); box-shadow: 0 0 24px rgba(232,182,76,.12); }
.badge { display: inline-block; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); padding: 2px 10px; border-radius: 20px; font-size: .78rem; }
.badge.gold { color: var(--gold); border-color: var(--gold2); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.bad { color: var(--bad); border-color: var(--bad); }
input, select, textarea { width: 100%; background: var(--panel2); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: 10px; font-size: .95rem; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold2); border-color: transparent; }
label { display: block; margin: 12px 0 5px; font-size: .88rem; color: var(--muted); }
form.card { max-width: 560px; margin-inline: auto; }
.result { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
.result h3 { color: var(--gold); margin-bottom: 14px; }
.result h4 { margin: 16px 0 8px; color: var(--text); }
.result p, .result li { color: var(--muted); line-height: 1.8; font-size: .93rem; }
.result ul { padding-inline-start: 20px; }
.result table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.result th, .result td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; font-size: .88rem; }
.result th { background: var(--panel2); color: var(--text); }
.msg { padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: .9rem; }
.msg.error { background: rgba(224,92,92,.12); border: 1px solid var(--bad); color: var(--bad); }
.msg.ok { background: rgba(63,191,127,.12); border: 1px solid var(--ok); color: var(--ok); }
.msg.info { background: rgba(76,141,232,.12); border: 1px solid var(--accent); color: var(--accent); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar h2 { flex: 1; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: start; }
table.data th { color: var(--muted); font-weight: 600; }
.dash-stat { text-align: center; }
.dash-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); margin-top: 8px; line-height: 1.7; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: .9rem; }
.tabs a.active { background: var(--gold); color: #191300; font-weight: 700; border-color: var(--gold); }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  #topbar { gap: 8px; }
  main { padding: 16px 10px 50px; }
}

/* P6: Business Model Canvas grid + document center */
.bmc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.bmc-cell { background: var(--panel2, var(--panel)); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.bmc-cell h4 { margin: 0 0 6px; font-size: .9rem; color: var(--gold); }
.bmc-cell p, .bmc-cell li { color: var(--muted); font-size: .84rem; line-height: 1.6; }
.bmc-cell ul { padding-inline-start: 16px; margin: 0; }
#doc-editor { background: var(--panel); color: inherit; border: 1px solid var(--gold); border-radius: var(--radius); padding: 10px; font-family: inherit; font-size: .9rem; }
@media print { #nav, #auth-area, header, .btn, form, .section-title a { display: none !important; } }
@media (max-width: 760px) {
  #topbar { position: static; gap: 8px 10px; padding: 8px 12px; }
  .brand { order: 1; font-size: 1rem; }
  .top-actions { order: 2; margin-inline-start: auto; flex-wrap: wrap; gap: 6px; }
  #nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; padding-bottom: 2px; }
  #nav::-webkit-scrollbar { display: none; }
  #nav a { white-space: nowrap; flex: 0 0 auto; padding: 6px 9px; font-size: .85rem; }
}

#menu-btn { display: none; }
#nav .ni { font-style: normal; margin-inline-end: 6px; }
@media (max-width: 760px) {
  #menu-btn { order: 3; flex: 0 0 100%; display: block; background: var(--gold, #e8b44a); color: #0b1220; border: 0; border-radius: 12px; padding: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
  body.has-menu #nav { display: none; }
  body.has-menu.menu-open #nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; flex: 0 0 100%; order: 4; padding: 8px 0; }
  body.has-menu.menu-open #nav a { display: flex; align-items: center; padding: 12px; font-size: 1rem; background: var(--panel2); border: 1px solid var(--border); border-radius: 12px; color: var(--text); white-space: normal; }
  body.has-menu.menu-open #nav a.active { border-color: var(--gold, #e8b44a); }
}

.start-here { margin: 8px 0 26px; padding: 18px; border: 2px solid var(--gold); border-radius: 18px; background: linear-gradient(160deg, #1b2230, #11151c); }
.start-here h2 { color: var(--gold); margin-bottom: 14px; font-size: 1.5rem; }
.start-here h2 small { color: var(--muted); font-size: .9rem; font-weight: normal; }
.start-card { text-align: center; }
.start-ico { font-size: 2.2rem; margin-bottom: 4px; }
.start-card p { color: var(--muted); margin: 6px 0 12px; }
.start-btn-wrap { position: relative; padding-top: 4px; }
.start-big { display: block; width: 100%; font-size: 1.15rem; padding: 14px; text-align: center; box-sizing: border-box; text-decoration: none; }
.pulse { animation: abpulse 1.6s infinite; }
@keyframes abpulse { 0% { box-shadow: 0 0 0 0 rgba(233,177,63,.7); } 70% { box-shadow: 0 0 0 14px rgba(233,177,63,0); } 100% { box-shadow: 0 0 0 0 rgba(233,177,63,0); } }
.tour-bubble { background: var(--gold); color: #111; font-weight: bold; border-radius: 12px; padding: 6px 12px; margin-bottom: 8px; display: inline-block; animation: abbounce 1s infinite alternate; }
@keyframes abbounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* Phase 1 UX */
#nav { position: relative; }
.more-btn { background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: .92rem; }
.nav-more { display: none; position: absolute; top: 100%; inset-inline-end: 0; background: var(--panel, #161b22); border: 1px solid var(--border); border-radius: 12px; padding: 8px; flex-direction: column; min-width: 210px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
body.more-open .nav-more { display: flex; }
body.has-menu.menu-open .nav-more { display: contents; }
body.has-menu.menu-open .more-btn { display: none; }
#bottom-bar { display: none; }
.resume-card { display: block; margin-bottom: 14px; padding: 14px; border-radius: 14px; background: var(--gold); color: #111; font-weight: bold; text-align: center; text-decoration: none; }
.wiz { max-width: 640px; margin: 0 auto; }
.wiz-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: bold; }
.wiz-bar { height: 10px; background: var(--panel2, #222); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.wiz-bar div { height: 100%; background: var(--gold); border-radius: 99px; transition: width .3s; }
.wiz-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.wiz-in { width: 100%; font-size: 1.1rem; padding: 14px; margin-top: 12px; box-sizing: border-box; }
.wiz-choices { display: grid; gap: 10px; margin-top: 14px; }
.wiz-opt { font-size: 1.1rem; padding: 16px; width: 100%; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.wiz-next { flex: 1; font-size: 1.1rem; padding: 14px; max-width: 70%; }
@media (max-width: 760px) {
  body.has-menu { padding-bottom: 72px; }
  body.has-menu #bottom-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990; background: var(--panel, #161b22); border-top: 1px solid var(--border); padding: 6px 4px; justify-content: space-around; }
  #bottom-bar a { flex: 1; text-align: center; color: var(--text); text-decoration: none; font-size: .78rem; padding: 6px 2px; }
  #bottom-bar a span { display: block; font-size: 1.4rem; }
  body.has-menu #pa-btn { bottom: 84px !important; }
  input, select, textarea, .btn { min-height: 44px; }
}

/* EDARA brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; border-radius: 9px; }
.brand .bn { display: inline-flex; align-items: center; gap: 8px; direction: ltr; line-height: 1; }
.brand .bn b { color: #fff; font-weight: 800; letter-spacing: .14em; font-size: 1.05rem; }
.brand .bn b.bar { letter-spacing: 0; font-size: 1.15rem; color: var(--gold); }
.brand .bn i { width: 2px; height: 18px; background: var(--gold2); border-radius: 2px; display: inline-block; }
#topbar { background: rgba(8,24,50,.92); backdrop-filter: blur(8px); }
.btn, .card, #nav a, .tabs a { transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn { background: linear-gradient(135deg, #f1cf7a, var(--gold)); }
.btn:hover { background: linear-gradient(135deg, #f6d98a, #c9962b); transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.card:hover { border-color: #2f5189; }
.hero h1 { letter-spacing: .01em; }
.plan-card { position: relative; padding: 24px 20px; gap: 10px; border-radius: 16px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.plan-card h3 { font-size: 1.15rem; }
.plan-card .price { font-size: 2.3rem; line-height: 1.1; }
.plan-card ul { list-style: none; padding: 0; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.plan-card li { padding-inline-start: 24px; position: relative; color: var(--text); }
.plan-card li::before { content: "\2713"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }
.plan-card.featured { border: 2px solid var(--gold); box-shadow: 0 10px 40px rgba(217,171,67,.18); background: linear-gradient(180deg, #17356a, var(--panel)); }
.plan-card .plan-tag { position: absolute; top: -12px; inset-inline-end: 16px; background: var(--gold); color: #1a1300; font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 20px; }
.plan-card .btn { margin-top: auto; text-align: center; padding: 12px 18px; }
@media (max-width: 760px) { .brand .bn b { font-size: .95rem; letter-spacing: .1em; } .brand img { width: 30px; height: 30px; } }
