:root {
  --ink: #071019;
  --ink-2: #0b1723;
  --panel: rgba(14, 27, 40, 0.82);
  --panel-solid: #0f1e2c;
  --line: rgba(224, 184, 104, 0.22);
  --line-soft: rgba(255, 255, 255, 0.10);
  --gold: #ddb66c;
  --gold-light: #f0d497;
  --white: #f7f5ef;
  --muted: #aab4bf;
  --muted-2: #71808e;
  --green: #46d39a;
  --red: #f16d6d;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 8%, rgba(55, 102, 133, 0.18), transparent 30%),
    radial-gradient(circle at 15% 85%, rgba(184, 133, 53, 0.10), transparent 31%),
    linear-gradient(145deg, #060d14 0%, #091522 48%, #071019 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:disabled { opacity: .65; cursor: wait; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 13, 20, 0.72);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { width: 76px; height: 57px; object-fit: contain; }
.brand-copy { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.22); }
.brand-name { display: block; font-size: 14px; font-weight: 750; letter-spacing: .17em; }
.brand-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.secure-mark { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; }
.secure-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px rgba(70,211,154,.65); }
.header-actions { display:flex; align-items:center; gap:14px; }
.admin-link,.logout { color:var(--muted); font-size:13px; background:none; border:0; cursor:pointer; }
.admin-link:hover,.logout:hover { color:var(--white); }

.login-main { flex: 1; display: grid; grid-template-columns: 1.12fr .88fr; min-height: calc(100vh - 92px); }
.login-story { padding: 8vh 7vw; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-story::after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(221,182,108,.10); border-radius: 50%; right: -250px; top: 8%; box-shadow: 0 0 0 80px rgba(221,182,108,.025), 0 0 0 160px rgba(221,182,108,.018); }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 24px 0 24px; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 5.4vw, 84px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.lede { max-width: 660px; color: #c5ccd2; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; }
.principles { margin-top: 54px; display: flex; gap: 34px; flex-wrap: wrap; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.principles span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 10px 4px 0; background: var(--gold); }

.login-panel { border-left: 1px solid var(--line-soft); background: rgba(8, 18, 28, .58); padding: 7vh 6vw; display: flex; align-items: center; }
.card { width: 100%; max-width: 510px; padding: 44px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(20,37,53,.96), rgba(10,22,34,.94)); box-shadow: var(--shadow); border-radius: 4px; }
.card h2 { margin: 0; font-size: 29px; font-weight: 650; letter-spacing: -.02em; }
.card-copy { margin: 12px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.label { display: block; margin-bottom: 10px; color: #d8dde2; font-size: 13px; font-weight: 700; }
.input { width: 100%; height: 58px; border: 1px solid rgba(255,255,255,.16); border-radius: 3px; color: var(--white); background: rgba(4,12,20,.72); padding: 0 17px; font-size: 17px; outline: none; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(221,182,108,.09); }
.button { border: 0; min-height: 56px; padding: 0 24px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 800; letter-spacing: .01em; transition: .18s ease; }
.button-primary { width: 100%; margin-top: 18px; color: #101418; background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.button-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button-secondary { color: var(--white); border: 1px solid var(--line); background: rgba(221,182,108,.06); }
.button-quiet { color: var(--muted); border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.fineprint { margin: 18px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.form-message { min-height:22px; margin-top:16px; color:var(--gold-light); font-size:13px; line-height:1.5; }
.preview-link { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--gold-light); font-size: 13px; }

.page { width: min(1440px, 92vw); margin: 0 auto; padding: 56px 0 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.page-head h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 4vw, 61px); margin: 12px 0 0; line-height: 1.05; }
.page-copy { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.user-chip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); border-radius: 100px; color: #d6dbe0; font-size: 13px; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #0b1015; font-weight: 900; }

.briefing-card { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 460px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.briefing-art { position: relative; min-height: 420px; background: radial-gradient(circle at 64% 50%, rgba(221,182,108,.20), transparent 18%), linear-gradient(125deg, #08131f, #142737); overflow: hidden; }
.briefing-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 82px, rgba(221,182,108,.06) 83px), repeating-linear-gradient(0deg, transparent 0 82px, rgba(221,182,108,.05) 83px); transform: perspective(600px) rotateX(55deg) scale(1.35); opacity: .55; }
.node { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 26px rgba(221,182,108,.8); }
.node::after { content: ""; position: absolute; height: 1px; width: 180px; top: 8px; left: 8px; transform-origin: left; background: linear-gradient(90deg, rgba(221,182,108,.65), transparent); }
.n1 { left: 23%; top: 29%; }.n1::after { transform: rotate(18deg); }
.n2 { left: 56%; top: 38%; }.n2::after { transform: rotate(134deg); width: 235px; }
.n3 { left: 38%; top: 69%; }.n3::after { transform: rotate(-55deg); width: 210px; }
.art-label { position: absolute; left: 42px; bottom: 38px; z-index: 2; color: rgba(255,255,255,.74); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.briefing-info { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.briefing-info h2 { margin: 14px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 500; }
.briefing-info p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.tag { padding: 7px 10px; border: 1px solid var(--line-soft); color: #c7cfd6; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }

.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; }
.video-frame { position:relative; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-loading { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:14px; }
.side-panel { padding: 28px; border: 1px solid var(--line-soft); background: var(--panel); }
.side-panel h3 { margin: 0 0 16px; font-size: 19px; }
.side-panel p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.cap-list { margin: 22px 0 28px; padding: 0; list-style: none; }
.cap-list li { padding: 13px 0; border-top: 1px solid var(--line-soft); color: #d9dee2; font-size: 14px; }
.cap-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--gold); }
.cta-box { margin-top: 28px; padding: 24px; border: 1px solid var(--line); background: rgba(221,182,108,.055); }
.cta-box h3 { margin: 0 0 8px; }
.cta-box p { color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
.cta-actions { display:flex; gap:12px; flex-wrap:wrap; }
.cta-actions .button { flex:1 1 240px; margin:0; text-align:center; }
.cta-message { min-height:20px; margin:12px 0 0!important; color:var(--gold-light)!important; font-size:13px; }
.modal-open { overflow:hidden; }
.booking-modal[hidden] { display:none; }
.booking-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:24px; }
.booking-backdrop { position:absolute; inset:0; background:rgba(1,7,12,.82); backdrop-filter:blur(9px); }
.booking-dialog { position:relative; z-index:1; width:min(1060px,96vw); height:min(820px,92vh); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); background:var(--ink-2); box-shadow:var(--shadow); }
.booking-bar { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 26px; border-bottom:1px solid var(--line-soft); }
.booking-bar h2 { margin:7px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:500; }
.booking-close { width:44px; height:44px; border:1px solid var(--line-soft); border-radius:50%; color:var(--white); background:rgba(255,255,255,.04); cursor:pointer; font-size:28px; line-height:1; }
.booking-dialog iframe { flex:1; width:100%; border:0; background:#fff; }

.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { padding: 24px; border: 1px solid var(--line-soft); background: var(--panel); }
.stat strong { display: block; font-size: 31px; font-family: Georgia, serif; font-weight: 500; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.table-card { border: 1px solid var(--line-soft); background: var(--panel); overflow: hidden; }
.invite-card { margin-bottom:24px; padding:24px; border:1px solid var(--line-soft); background:var(--panel); }
.invite-card h2 { margin:0 0 18px; font-size:18px; }
.invite-form { display:grid; grid-template-columns:1fr 1.25fr 1fr 1.15fr auto; gap:12px; }
.invite-form .input { height:52px; }
.invite-form .button { margin:0; width:auto; min-height:52px; }
.muted { color:var(--muted); }
.table-head { padding: 22px 24px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.table-head h2 { margin: 0; font-size: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 24px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.065); font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #bdebd8; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.preview-banner { padding: 10px 5vw; text-align: center; color: #241b0d; background: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.verification-resend { margin:18px 0 0; color:var(--muted); font-size:14px; }
.text-button { appearance:none; border:0; padding:0; color:var(--gold); background:transparent; font:inherit; font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.text-button:disabled { opacity:.55; cursor:not-allowed; }

@media (max-width: 980px) {
  .login-main, .briefing-card, .video-layout { grid-template-columns: 1fr; }
  .login-panel { border-left: 0; border-top: 1px solid var(--line-soft); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .invite-form { grid-template-columns:1fr 1fr; }
  .video-layout { gap: 18px; }
}
@media (max-width: 640px) {
  .topbar { height: 78px; padding: 0 20px; }
  .brand img { width: 58px; height: 44px; }
  .brand-sub, .secure-mark { display: none; }
  .login-story, .login-panel { padding: 54px 24px; }
  .card { padding: 28px 22px; }
  .page { width: calc(100% - 36px); padding-top: 36px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .briefing-info { padding: 30px 24px; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .user-chip { display:none; }
  .invite-form { grid-template-columns:1fr; }
  th, td { padding: 14px 12px; }
  table th:nth-child(3), table td:nth-child(3) { display: none; }
  .booking-modal { padding:0; }
  .booking-dialog { width:100vw; height:100vh; border:0; }
  .booking-bar { min-height:78px; padding:15px 18px; }
  .booking-bar h2 { font-size:21px; }
}
