/* css/app.css - 넥스트 포럼: 포스터 같은 큰 글자, 전기 보라 + 라임 + 분홍 색 덩어리, 종이 바탕
   알약 모양 버튼 · 굵은 검정 테두리 카드. 글꼴: 도현(제목 · 숫자) + 나눔고딕(글) */
:root {
    --violet: #4B2BFF; --violet-2: #3A1FE0; --lime: #D4F53C; --pink: #FF8FB1; --ink: #111111; --paper: #F6F5F0; --line: #DAD7CC; --muted: #5E5C56; --white: #FFFFFF;
    --display: 'Do Hyeon', 'Nanum Gothic', sans-serif; --body: 'Nanum Gothic', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.big { font-family: var(--display); font-size: 30px; margin: 0 0 6px; }
.mono { font-family: ui-monospace, 'Consolas', monospace; letter-spacing: 0.08em; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.empty { color: var(--muted); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* 알약 버튼 */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap; font-size: 15px; }
.pill-big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.pill-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.pill-lime { background: var(--lime); color: var(--ink); }
.pill-lime:hover { background: #C6E92C; }
.pill-ink { background: var(--ink); color: var(--white); }
.pill-ink:hover { background: #2B2B2B; }
.pill-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.pill-white-line { background: transparent; border-color: var(--white); color: var(--white); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 5px 11px; cursor: pointer; font-size: 13px; font-weight: 800; }
.lang button.on { background: var(--ink); color: var(--lime); }

/* 위 막대 */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.logo { font-family: var(--display); font-size: 26px; text-decoration: none; letter-spacing: 0.02em; display: inline-flex; gap: 6px; }
.logo span { background: var(--violet); color: var(--lime); padding: 0 8px; border-radius: 999px; }
.nav { display: flex; gap: 20px; align-items: center; }
.navlink, .nav a { background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 800; text-decoration: none; border-bottom: 3px solid transparent; }
.navlink:hover, .nav a:hover { border-bottom-color: var(--violet); }
.nav a.on { border-bottom-color: var(--violet); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.view { max-width: 1240px; margin: 0 auto; padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 28px; }
.foot { border-top: 2px solid var(--ink); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 18px 24px 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: var(--violet); color: var(--white); border-radius: 36px; padding: 48px 52px 40px; }
.hero-circle { position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%; background: var(--lime); }
.hero > *:not(.hero-circle) { position: relative; }
.badge-ink { display: inline-block; background: var(--ink); color: var(--lime); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 800; }
.hero h1 { font-size: clamp(56px, 9vw, 118px); margin: 22px 0 0; max-width: 900px; word-break: keep-all; }
.hero p { font-size: 19px; max-width: 560px; margin: 18px 0 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 40px 0 0; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, 0.3); }
.hero-stats dt { font-size: 14px; opacity: 0.85; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 44px; line-height: 1.1; }
.block h2 { font-size: 46px; margin: 0 0 18px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.block-head h2 { margin: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.speakers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.speaker { border: 2px solid var(--ink); border-radius: 24px; padding: 20px; background: var(--white); display: flex; flex-direction: column; gap: 2px; }
.speaker b { margin-top: 12px; font-size: 17px; }
.speaker small { color: var(--muted); }
.face { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 28px; }
.face-lime { background: var(--lime); } .face-pink { background: var(--pink); } .face-violet { background: var(--violet); color: var(--white); } .face-ink { background: var(--ink); color: var(--lime); }
.daytabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; gap: 3px; }
.daytabs button { border: 0; background: none; border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 800; }
.daytabs button.on { background: var(--ink); color: var(--lime); }
.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.sessions li.first { border-top: 2px solid var(--ink); }
.time { font-family: var(--display); font-size: 22px; font-weight: 400; }
.what b { display: block; font-size: 17px; }
.what small { color: var(--muted); }
.room { border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.room-lime { background: var(--lime); } .room-white { background: var(--white); border: 2px solid var(--ink); padding: 3px 12px; } .room-pink { background: var(--pink); } .room-violet { background: var(--violet); color: var(--white); }
.faq { border-top: 2px solid var(--ink); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.cta-band { background: var(--ink); color: var(--white); border-radius: 36px; padding: 40px 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--lime); }

/* 접수 */
.page-head h1 { font-size: 56px; margin: 0 0 8px; }
.page-head p { margin: 0; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 800; color: var(--muted); }
.steps li.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 28px; padding: 28px; min-width: 0; }
.card h2 { font-size: 34px; margin: 0 0 6px; }
.narrow { max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.form input:not([type="radio"]):not([type="checkbox"]), .form select { min-height: 50px; border: 2px solid var(--ink); border-radius: 16px; padding: 0 16px; background: var(--white); font-weight: 400; font-size: 16px; }
.form input:focus, .form select:focus { outline: none; box-shadow: 0 0 0 4px rgba(75, 43, 255, 0.25); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket { flex-direction: row !important; align-items: center; gap: 16px !important; border: 2px solid var(--line); border-radius: 20px; padding: 16px 18px; cursor: pointer; font-weight: 400 !important; }
.ticket input { width: 22px; height: 22px; accent-color: var(--violet); flex-shrink: 0; }
.ticket.on { border-color: var(--violet); background: #F0EDFF; }
.ticket.out { opacity: 0.5; cursor: not-allowed; }
.ticket-main { flex: 1; display: flex; flex-direction: column; }
.ticket-main b { font-size: 17px; }
.ticket-main small { font-size: 14px; }
.warn { color: #B42318; font-weight: 800; }
.price { font-family: var(--display); font-weight: 400; font-size: 26px; white-space: nowrap; }
.agree { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 400 !important; }
.agree input { width: 20px; height: 20px; accent-color: var(--violet); }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.methods { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.methods label { flex-direction: row; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.methods label.on { border-color: var(--ink); background: var(--ink); color: var(--lime); }
.methods input { accent-color: var(--lime); }
.demo-note { background: var(--lime); border-radius: 16px; padding: 12px 16px; margin: 0; font-size: 14px; font-weight: 700; }
.review { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.review dt { color: var(--muted); font-size: 14px; }
.review dd { margin: 0; font-weight: 800; }
.summary { background: var(--ink); color: var(--white); border-radius: 28px; padding: 24px; position: sticky; top: 90px; }
.summary h3 { font-size: 26px; margin: 0 0 12px; color: var(--lime); }
.summary p { margin: 4px 0; }
.summary .muted { color: rgba(255, 255, 255, 0.7); }
.summary .total { font-family: var(--display); font-size: 40px; margin-top: 14px; }

/* 내 표 */
.ticket-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; background: var(--white); border: 2px solid var(--ink); border-radius: 32px; overflow: hidden; max-width: 860px; }
.ticket-card.cancelled { opacity: 0.55; }
.tc-left { padding: 30px 32px; }
.tc-left h2 { font-size: 46px; margin: 18px 0 2px; }
.tc-left p { margin: 0 0 18px; color: var(--muted); }
.tc-left dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.tc-left dt { color: var(--muted); font-size: 14px; }
.tc-left dd { margin: 0; font-weight: 800; }
.logo-dark { font-size: 22px; }
.tc-right { background: var(--violet); color: var(--white); padding: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-left: 2px dashed var(--ink); }
.qr { width: 180px; height: 180px; border-radius: 12px; display: block; }
.code { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: 0.12em; color: var(--lime); }

/* 주최자 */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; }
.kpi small { color: var(--muted); font-weight: 800; }
.kpi b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.1; }
.kpi span { font-size: 14px; }
.kpi-violet { background: var(--violet); color: var(--white); border-color: var(--violet); }
.kpi-violet small { color: rgba(255, 255, 255, 0.85); }
.kpi-lime { background: var(--lime); }
.org-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tbar { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; }
.tbar b { display: block; }
.tbar small { color: var(--muted); }
.track { height: 18px; background: var(--paper); border-radius: 999px; overflow: hidden; border: 2px solid var(--ink); }
.track span { display: block; height: 100%; background: var(--violet); }
.cols30 { display: flex; align-items: flex-end; gap: 3px; height: 180px; border-bottom: 2px solid var(--ink); }
.cols30 span { flex: 1; background: var(--violet); border-radius: 4px 4px 0 0; min-height: 2px; }
.cols30 span.today { background: var(--lime); border: 2px solid var(--ink); border-bottom: 0; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search input { min-height: 44px; width: 280px; max-width: 100%; border: 2px solid var(--ink); border-radius: 999px; padding: 0 18px; background: var(--white); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 2px solid var(--ink); background: var(--white); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 800; font-size: 14px; }
.chip.on { background: var(--ink); color: var(--lime); }
.toolbar .pill { margin-left: auto; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td small { display: block; color: var(--muted); }
.table tr.dim { opacity: 0.5; }
.st { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-in { background: var(--lime); }
.st-off { border-color: var(--line); color: var(--muted); }
.code-in { font-family: var(--display) !important; font-size: 34px !important; letter-spacing: 0.2em; text-transform: uppercase; min-height: 70px !important; text-align: center; }
.result { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--ink); }
.result b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.result-ok { background: var(--lime); }
.result-notfound, .result-cancelled { background: var(--pink); }
.result-already { background: #FFE8A3; }
.recent { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.recent small { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--lime); padding: 13px 22px; border-radius: 999px; font-weight: 800; z-index: 50; max-width: calc(100% - 32px); text-align: center; }

@media (max-width: 960px) {
    .nav { display: none; }
    .org .nav { display: flex; overflow-x: auto; }
    .speakers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two, .reg-grid, .org-grid { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .top-in { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
    .org .nav { order: 3; width: 100%; gap: 16px; }
    .logo { font-size: 20px; }
    .view { padding: 18px 16px 40px; }
    .hero { padding: 32px 24px 28px; border-radius: 28px; }
    .hero-circle { width: 200px; height: 200px; right: -60px; top: -60px; }
    .hero h1 { font-size: 54px; }
    .hero-stats { gap: 22px; }
    .hero-stats dd { font-size: 34px; }
    .block h2, .page-head h1 { font-size: 40px; }
    .sessions li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .room { justify-self: start; }
    .row { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 22px 18px; border-radius: 24px; }
    .ticket { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px !important; row-gap: 4px !important; }
    .price { grid-column: 2; font-size: 22px; }
    .ticket-card { grid-template-columns: minmax(0, 1fr); }
    .tc-right { border-left: 0; border-top: 2px dashed var(--ink); }
    .tbar { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .cta-band { padding: 30px 24px; }
    .toolbar .pill { margin-left: 0; }
}
