:root {
  --ink: #15363a;
  --muted: #607579;
  --teal-950: #052f35;
  --teal-900: #083f47;
  --teal-800: #0b5660;
  --teal-700: #0d6d76;
  --teal-600: #15848b;
  --teal-500: #2b9da2;
  --mint: #c9f0e6;
  --mint-pale: #edf9f5;
  --coral: #ec765f;
  --coral-dark: #c95742;
  --sand: #f5eee4;
  --paper: #fbfdfc;
  --white: #ffffff;
  --line: #dbe7e5;
  --warning: #a86118;
  --danger: #b83d45;
  --success: #22785d;
  --shadow-sm: 0 8px 28px rgba(8, 63, 71, 0.08);
  --shadow-md: 0 20px 60px rgba(8, 63, 71, 0.14);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--teal-950); line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 16px; background: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 90px 0; }
.section-sm { padding: 54px 0; }
.section-tint { background: var(--mint-pale); }
.section-sand { background: var(--sand); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-700); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.lead { max-width: 720px; font-size: 1.18rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .76rem; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 18px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.topbar { background: var(--teal-950); color: #d7eeec; font-size: .78rem; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.demo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #74d9b7; box-shadow: 0 0 0 4px rgba(116,217,183,.14); }
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(251,253,252,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(219,231,229,.8); }
.nav-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--white); background: var(--teal-900); transform: rotate(-4deg); }
.brand-mark svg { width: 25px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--teal-950); font-size: 1.15rem; letter-spacing: .08em; }
.brand-copy span { color: var(--muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link { position: relative; color: #38585c; font-size: .91rem; font-weight: 650; }
.nav-link:hover, .nav-link.active { color: var(--teal-800); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -27px; height: 3px; border-radius: 4px; background: var(--coral); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--mint); color: var(--teal-900); font-size: .72rem; font-weight: 900; }
.user-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-md); }
.user-menu-panel[hidden] { display: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 9px; color: var(--ink); background: none; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--mint-pale); }
.menu-divider { height: 1px; margin: 7px 4px; background: var(--line); }
.mobile-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.mobile-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--teal-900); }

/* Buttons */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; font-size: .9rem; line-height: 1; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:focus-visible, .nav-link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(43,157,162,.28); outline-offset: 2px; }
.btn-primary { color: var(--white); background: var(--teal-800); box-shadow: 0 8px 20px rgba(11,86,96,.18); }
.btn-primary:hover:not(:disabled) { background: var(--teal-900); box-shadow: 0 10px 25px rgba(11,86,96,.25); }
.btn-coral { color: var(--white); background: var(--coral); box-shadow: 0 8px 20px rgba(236,118,95,.22); }
.btn-coral:hover:not(:disabled) { background: var(--coral-dark); }
.btn-secondary { border-color: var(--line); background: var(--white); color: var(--teal-900); }
.btn-ghost { padding-inline: 10px; color: var(--teal-800); background: transparent; }
.btn-danger { color: var(--danger); border-color: #f1cdd0; background: #fff7f7; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .8rem; }
.btn-lg { min-height: 52px; padding: 13px 24px; }
.btn-icon { width: 42px; padding: 0; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.arrow { font-size: 1.15em; transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Home */
.hero { position: relative; min-height: 690px; display: flex; overflow: hidden; background: var(--teal-950); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(201,240,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(201,240,230,.06) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, black, transparent 74%); }
.hero::after { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -180px; border: 120px solid rgba(43,157,162,.13); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; padding: 95px 0 80px; }
.hero h1 { max-width: 830px; margin: 18px 0 22px; color: var(--white); }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero .eyebrow { color: #8edcc6; }
.hero-copy > p { max-width: 650px; color: #b9d1d0; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.event-ticket { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); color: var(--white); background: rgba(255,255,255,.075); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(0,0,0,.2); }
.event-ticket::before, .event-ticket::after { content: ""; position: absolute; left: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-950); }
.event-ticket::before { top: 31%; }
.event-ticket::after { bottom: 31%; }
.ticket-date { display: flex; gap: 15px; align-items: baseline; margin-bottom: 25px; }
.ticket-date strong { font-size: 4.2rem; line-height: 1; }
.ticket-date span { color: #a9c7c6; font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.ticket-rule { margin: 24px -28px; border: 0; border-top: 1px dashed rgba(255,255,255,.2); }
.ticket-row { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin-top: 16px; color: #c5d8d7; }
.ticket-icon { color: var(--mint); font-size: 1.2rem; }
.ticket-code { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 26px; }
.barcode { width: 114px; height: 34px; opacity: .75; background: repeating-linear-gradient(90deg, white 0 2px, transparent 2px 5px, white 5px 6px, transparent 6px 10px); }
.stats-strip { position: relative; z-index: 2; margin-top: -38px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-md); }
.stat { min-height: 125px; display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--teal-900); font-size: 1.75rem; line-height: 1; }
.stat span { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.intro-grid h2 { margin-bottom: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { min-height: 180px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 12px; background: var(--mint-pale); color: var(--teal-700); font-weight: 900; }
.feature h3 { margin-bottom: 8px; font-size: 1.05rem; }
.feature p { margin: 0; font-size: .88rem; }
.programme-preview { display: grid; grid-template-columns: 320px 1fr; gap: 45px; align-items: stretch; }
.date-card { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 34px; border-radius: var(--radius-lg); background: var(--coral); color: var(--white); }
.date-card h2, .date-card p { color: var(--white); }
.date-card .big-date { font-size: 6rem; font-weight: 800; line-height: .9; letter-spacing: -.06em; }
.agenda-mini { display: grid; }
.agenda-item { display: grid; grid-template-columns: 105px 1fr auto; gap: 22px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.agenda-item time { color: var(--teal-700); font-size: .84rem; font-weight: 800; }
.agenda-item h3 { margin: 0 0 5px; font-size: 1.05rem; }
.agenda-item p { margin: 0; font-size: .83rem; }
.round-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-700); background: var(--mint-pale); }
.cta { position: relative; overflow: hidden; padding: 65px; border-radius: var(--radius-lg); background: var(--teal-900); }
.cta::after { content: "+"; position: absolute; right: 40px; top: -95px; color: rgba(255,255,255,.06); font-size: 20rem; font-weight: 200; line-height: 1; transform: rotate(15deg); }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 45px; }
.cta h2 { margin-bottom: 12px; color: var(--white); }
.cta p { margin: 0; color: #bdd3d2; }

/* Public pages */
.page-hero { padding: 100px 0 70px; background: var(--teal-950); }
.page-hero h1 { margin: 14px 0 14px; color: var(--white); font-size: clamp(2.8rem, 6vw, 5rem); }
.page-hero p { max-width: 650px; margin-bottom: 0; color: #bad1d0; font-size: 1.08rem; }
.page-hero .eyebrow { color: #8edcc6; }
.day-switcher, .tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); width: fit-content; }
.tab { min-height: 38px; padding: 8px 16px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-weight: 750; font-size: .82rem; cursor: pointer; }
.tab.active { color: var(--white); background: var(--teal-800); }
.schedule { margin-top: 38px; border-top: 1px solid var(--line); }
.schedule-row { display: grid; grid-template-columns: 150px 1fr 210px; gap: 36px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.schedule-time { color: var(--teal-700); font-weight: 800; }
.schedule-session h3 { margin: 0 0 7px; }
.schedule-session p, .schedule-room p { margin: 0; font-size: .87rem; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 10px; border-radius: 999px; color: var(--teal-800); background: var(--mint-pale); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tag-coral { color: #9e4432; background: #fff0ed; }
.tag-sand { color: #7a5a32; background: #f8efe3; }
.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.speaker-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.speaker-portrait { position: relative; height: 250px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: linear-gradient(145deg, var(--mint), #e7f7f3); }
.speaker-portrait::before { content: ""; width: 140px; height: 140px; border-radius: 50% 50% 44% 44%; background: var(--teal-700); box-shadow: 0 105px 0 35px var(--teal-900); opacity: .92; }
.speaker-card:nth-child(2n) .speaker-portrait { background: linear-gradient(145deg, #f9ded6, #fff4ef); }
.speaker-card:nth-child(2n) .speaker-portrait::before { background: #8a574d; box-shadow: 0 105px 0 35px #b96f61; }
.speaker-card:nth-child(3n) .speaker-portrait::before { background: #886c4a; box-shadow: 0 105px 0 35px #294f54; }
.speaker-info { padding: 22px; }
.speaker-info h3 { margin: 0 0 4px; font-size: 1.08rem; }
.speaker-info p { margin: 0; font-size: .8rem; }
.venue-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: center; }
.venue-art { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(180deg, #b9d9d3, #e9f3ef 48%, #afc9c4 49%, #54777b); }
.venue-art::before { content: ""; position: absolute; left: 11%; right: 11%; bottom: 18%; height: 44%; clip-path: polygon(0 100%, 8% 32%, 18% 55%, 26% 12%, 36% 48%, 47% 3%, 57% 45%, 66% 18%, 75% 54%, 84% 25%, 100% 100%); background: var(--teal-900); box-shadow: 0 28px 0 #234f55; }
.venue-art::after { content: "ROMA"; position: absolute; right: 28px; top: 25px; color: rgba(8,63,71,.15); font-size: 5rem; font-weight: 900; letter-spacing: .08em; }
.info-list { display: grid; gap: 14px; margin: 28px 0; }
.info-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.info-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--teal-800); background: var(--mint-pale); }
.info-row strong { display: block; color: var(--teal-950); }
.info-row p { margin: 2px 0 0; font-size: .88rem; }
.map-placeholder { min-height: 320px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background-color: #e6eeeb; background-image: linear-gradient(35deg, transparent 45%, rgba(8,63,71,.09) 46% 50%, transparent 51%), linear-gradient(125deg, transparent 45%, rgba(8,63,71,.08) 46% 50%, transparent 51%); background-size: 110px 90px, 140px 120px; }
.map-pin { width: 66px; height: 66px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.85); border-radius: 50% 50% 50% 6px; color: white; background: var(--coral); box-shadow: var(--shadow-md); transform: rotate(-45deg); }
.map-pin span { transform: rotate(45deg); font-weight: 900; }

/* Forms and auth */
.auth-layout { min-height: calc(100vh - 111px); display: grid; grid-template-columns: .86fr 1.14fr; }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 58px max(42px, calc((100vw - var(--max))/2)); padding-right: 58px; color: var(--white); background: var(--teal-950); }
.auth-aside::after { content: ""; position: absolute; width: 520px; height: 520px; left: -250px; bottom: -230px; border: 90px solid rgba(43,157,162,.13); border-radius: 50%; }
.auth-aside h1 { margin: 45px 0 18px; color: var(--white); font-size: clamp(2.4rem, 4.4vw, 4.2rem); }
.auth-aside p { color: #b9d2d0; }
.auth-points { position: relative; z-index: 1; display: grid; gap: 18px; margin-top: 35px; }
.auth-point { display: flex; align-items: center; gap: 14px; color: #d9e7e6; font-size: .91rem; }
.check { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--mint); background: rgba(201,240,230,.12); font-weight: 900; }
.auth-main { display: grid; place-items: center; padding: 58px 40px; background: var(--paper); }
.auth-card { width: min(100%, 670px); }
.auth-card.narrow { max-width: 470px; }
.auth-card h2 { margin-bottom: 8px; }
.form { display: grid; gap: 19px; margin-top: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .legend { color: var(--ink); font-size: .79rem; font-weight: 800; }
.required { color: var(--coral-dark); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbdad8; border-radius: 10px; color: var(--ink); background: var(--white); transition: border .16s, box-shadow .16s; }
.textarea { min-height: 138px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #9ebdb9; }
.field-hint { color: var(--muted); font-size: .72rem; }
.field-error { min-height: 0; color: var(--danger); font-size: .72rem; }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--danger); background: #fffafa; }
.checkbox { display: grid; grid-template-columns: 19px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .78rem; }
.checkbox input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--teal-700); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 65px; }
.password-toggle { position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 7px; border: 0; color: var(--teal-700); background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.divider-label { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: .75rem; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-login { padding: 18px; border: 1px dashed #b7d8d2; border-radius: 14px; background: var(--mint-pale); }
.demo-login h3 { margin: 0 0 7px; font-size: .9rem; }
.credential-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .73rem; }
.link { color: var(--teal-700); font-weight: 750; text-decoration: underline; text-decoration-color: #a8d2cb; text-underline-offset: 3px; }

/* Dashboard */
.dashboard-shell { min-height: calc(100vh - 111px); background: #f4f8f7; }
.dashboard-head { padding: 44px 0 30px; background: var(--white); border-bottom: 1px solid var(--line); }
.dashboard-head h1 { margin: 4px 0 8px; font-size: clamp(2rem, 4vw, 3.3rem); }
.dashboard-head p { margin: 0; }
.dashboard-grid { display: grid; grid-template-columns: 240px 1fr; gap: 34px; padding: 34px 0 80px; }
.side-nav { position: sticky; top: 110px; height: fit-content; display: grid; gap: 6px; }
.side-link { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-weight: 700; font-size: .85rem; cursor: pointer; }
.side-link:hover { background: var(--white); }
.side-link.active { color: var(--teal-900); background: var(--white); box-shadow: var(--shadow-sm); }
.side-icon { width: 21px; color: var(--teal-700); text-align: center; }
.side-note { margin-top: 22px; padding: 16px; border-radius: 13px; background: var(--teal-900); }
.side-note strong { display: block; color: var(--white); font-size: .82rem; }
.side-note p { margin: 6px 0 0; color: #bad0ce; font-size: .72rem; }
.dashboard-content { min-width: 0; display: grid; gap: 24px; align-content: start; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 18px rgba(8,63,71,.035); }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.card-header h2, .card-header h3 { margin: 0 0 5px; font-size: 1.25rem; }
.card-header p { margin: 0; font-size: .83rem; }
.notice { display: grid; grid-template-columns: 32px 1fr; gap: 13px; padding: 16px 18px; border: 1px solid #bfe1d8; border-radius: 12px; background: var(--mint-pale); }
.notice.warning { border-color: #efd2a5; background: #fff8eb; }
.notice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--success); background: var(--white); font-weight: 900; }
.notice.warning .notice-icon { color: var(--warning); }
.notice strong { display: block; color: var(--ink); font-size: .85rem; }
.notice p { margin: 2px 0 0; font-size: .77rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.summary-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-800); background: var(--mint-pale); }
.summary-card strong { display: block; margin-top: 22px; color: var(--teal-950); font-size: 1.65rem; line-height: 1; }
.summary-card p { margin: 7px 0 0; font-size: .78rem; }
.registration-card { overflow: hidden; display: grid; grid-template-columns: 1fr 310px; padding: 0; }
.registration-copy { padding: 32px; }
.registration-copy h2 { margin-bottom: 12px; }
.registration-meta { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.registration-meta span { color: var(--muted); font-size: .78rem; }
.registration-meta strong { display: block; color: var(--ink); font-size: .9rem; }
.capacity-box { display: flex; flex-direction: column; justify-content: center; padding: 30px; color: var(--white); background: var(--teal-900); }
.capacity-number { display: flex; align-items: baseline; gap: 6px; }
.capacity-number strong { color: var(--white); font-size: 3.2rem; line-height: 1; }
.capacity-number span { color: #afc9c7; }
.progress { height: 8px; margin: 18px 0 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.13); }
.progress-bar { height: 100%; border-radius: inherit; background: var(--mint); transition: width .5s ease; }
.capacity-box p { margin: 0; color: #bad1cf; font-size: .75rem; }
.table-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search { position: relative; min-width: min(100%, 280px); }
.search .input { padding-left: 39px; min-height: 42px; }
.search::before { content: "⌕"; position: absolute; z-index: 1; left: 13px; top: 7px; color: var(--muted); font-size: 1.2rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row .select { min-height: 42px; width: auto; padding-block: 8px; font-size: .8rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .81rem; }
.data-table th { padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .67rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 13px; border-bottom: 1px solid #edf2f1; color: #36575b; vertical-align: middle; }
.data-table tbody tr { transition: background .14s; }
.data-table tbody tr:hover { background: #f8fbfa; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-title { max-width: 310px; color: var(--ink); font-weight: 750; }
.empty-state { display: grid; place-items: center; min-height: 230px; padding: 30px; text-align: center; }
.empty-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 18px; color: var(--teal-700); background: var(--mint-pale); font-size: 1.5rem; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { max-width: 430px; margin: 0 0 18px; font-size: .83rem; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 9px; border-radius: 999px; font-size: .67rem; font-weight: 850; text-transform: uppercase; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-submitted, .status-confirmed { color: var(--success); background: #e9f7f1; }
.status-draft { color: var(--warning); background: #fff4e3; }
.status-reviewed { color: var(--teal-700); background: var(--mint-pale); }
.profile-grid { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: start; }
.profile-avatar { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 28px; color: var(--teal-900); background: var(--mint); font-size: 2rem; font-weight: 900; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px 30px; }
.detail dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.detail dd { margin: 3px 0 0; color: var(--ink); font-size: .9rem; font-weight: 650; }

/* Review */
.review-hero { padding: 34px 0; color: white; background: var(--teal-950); }
.review-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.review-hero h1 { margin: 0 0 5px; color: white; font-size: 2rem; }
.review-hero p { margin: 0; color: #b8cfcd; }
.review-badge { padding: 10px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: var(--mint); background: rgba(255,255,255,.07); font-size: .75rem; font-weight: 800; }
.score { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); font-weight: 850; }
.stars { position: relative; display: inline-block; color: #d9e1df; letter-spacing: 1px; line-height: 1; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #e9a23b; white-space: nowrap; }
.rating-control { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.rating-display { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rating-display .stars { font-size: 2rem; }
.rating-value { color: var(--teal-900); font-size: 1.7rem; font-weight: 900; }
.rating-range { width: 100%; margin: 18px 0 4px; accent-color: var(--coral); }
.rating-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.abstract-meta { display: flex; flex-wrap: wrap; gap: 20px; padding: 15px 0; border-block: 1px solid var(--line); }
.abstract-meta div { min-width: 130px; }
.abstract-meta span { display: block; color: var(--muted); font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.abstract-meta strong { font-size: .82rem; }
.abstract-body { margin: 25px 0; }
.abstract-body h4 { margin-bottom: 8px; font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; }
.abstract-body p { color: #425f62; font-size: .9rem; white-space: pre-line; }
.reviewer-progress { display: grid; gap: 7px; min-width: 140px; }
.reviewer-progress .progress { height: 5px; margin: 0; background: #e6eeec; }
.reviewer-progress .progress-bar { background: var(--teal-600); }

/* Modal, toast, footer */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 25px; background: rgba(5,47,53,.72); backdrop-filter: blur(5px); animation: fadeIn .16s ease; }
.modal { width: min(100%, 760px); max-height: calc(100vh - 50px); overflow-y: auto; border-radius: 22px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: riseIn .22s ease; }
.modal-lg { width: min(100%, 930px); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-header h2 { margin: 0 0 4px; font-size: 1.35rem; }
.modal-header p { margin: 0; font-size: .78rem; }
.modal-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; color: var(--teal-900); background: var(--white); cursor: pointer; }
.modal-body { padding: 28px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.toast-root { position: fixed; z-index: 900; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { width: min(390px, calc(100vw - 44px)); display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow-md); animation: slideIn .24s ease; }
.toast-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--success); font-weight: 900; }
.toast.error .toast-icon { background: var(--danger); }
.toast strong { display: block; font-size: .82rem; }
.toast p { margin: 2px 0 0; font-size: .73rem; }
.toast button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.site-footer { padding: 60px 0 25px; color: #b9cecc; background: var(--teal-950); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 60px; }
.site-footer .brand-copy strong { color: var(--white); }
.site-footer .brand-copy span { color: #87a6a5; }
.footer-about { max-width: 340px; margin-top: 18px; color: #93adab; font-size: .83rem; }
.footer-col h3 { margin-bottom: 16px; color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #9db6b4; font-size: .82rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #718f8d; font-size: .72rem; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }

@media (max-width: 1050px) {
  .nav-links { gap: 16px; }
  .nav-link { font-size: .82rem; }
  .hero-inner { grid-template-columns: 1fr 330px; gap: 40px; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 205px 1fr; }
}

@media (max-width: 860px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .topbar .topbar-inner > span:last-child { display: none; }
  .mobile-toggle { display: block; }
  .nav-inner { min-height: 68px; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 18px 20px 23px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
  .nav-links.open { display: grid; gap: 4px; }
  .nav-link { padding: 10px; border-radius: 8px; font-size: .92rem; }
  .nav-link:hover, .nav-link.active { background: var(--mint-pale); }
  .nav-link.active::after { display: none; }
  .nav-actions .btn-secondary { display: none; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 75px; }
  .event-ticket { max-width: 470px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid, .venue-grid { grid-template-columns: 1fr; gap: 45px; }
  .programme-preview { grid-template-columns: 1fr; }
  .date-card { min-height: 280px; }
  .cta-inner { align-items: flex-start; flex-direction: column; }
  .schedule-row { grid-template-columns: 110px 1fr; gap: 22px; }
  .schedule-room { grid-column: 2; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 380px; padding: 48px 30px; }
  .auth-aside .auth-points { display: none; }
  .auth-main { padding: 48px 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; }
  .side-link { width: auto; flex: 0 0 auto; }
  .side-note { display: none; }
  .registration-card { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .section { padding: 65px 0; }
  .topbar-inner { justify-content: center; }
  .nav-actions .user-chip span:not(.avatar) { display: none; }
  .nav-actions .btn-primary { min-height: 40px; padding: 8px 13px; font-size: .78rem; }
  .brand-copy span { display: none; }
  .hero-inner { padding: 65px 0 75px; }
  .hero h1 { font-size: 3.25rem; }
  .event-ticket { padding: 24px; }
  .stats-strip { margin-top: -24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 105px; padding: 18px; }
  .stat strong { font-size: 1.35rem; }
  .feature-list { grid-template-columns: 1fr; }
  .agenda-item { grid-template-columns: 75px 1fr; gap: 12px; }
  .agenda-item .round-arrow { display: none; }
  .cta { padding: 38px 26px; }
  .speaker-grid { grid-template-columns: 1fr; }
  .schedule-row { grid-template-columns: 1fr; gap: 7px; }
  .schedule-room { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .auth-aside { min-height: 330px; }
  .dashboard-head { padding-top: 32px; }
  .summary-grid { grid-template-columns: 1fr; }
  .registration-copy, .capacity-box { padding: 24px; }
  .card { padding: 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 93vh; border-radius: 22px 22px 0 0; }
  .modal-header, .modal-body { padding: 21px; }
  .modal-footer { padding: 15px 21px; }
  .review-hero-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
