:root {
  color-scheme: dark;
  --bg: #050b14;
  --panel: #0b1726;
  --panel-2: #101f31;
  --line: rgba(132, 181, 220, .18);
  --text: #edf7ff;
  --muted: #8ea8bf;
  --cyan: #61dfd5;
  --blue: #6099ff;
  --gold: #e4b86a;
  --danger: #ff7e88;
  --success: #73e2b1;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 76% 12%, rgba(47,99,190,.2), transparent 34%), radial-gradient(circle at 12% 90%, rgba(27,155,161,.13), transparent 32%), var(--bg); }
body::before { position: fixed; inset: 0; pointer-events: none; content: ""; opacity: .32; background-image: linear-gradient(rgba(119,177,219,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(119,177,219,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 84%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(5,11,20,.82); backdrop-filter: blur(18px); }
.nav { display: flex; align-items: center; min-height: 72px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(228,184,106,.75); border-radius: 13px; color: #fff4d8; background: linear-gradient(145deg,#d6a652,#7f4b2d 58%,#214d72); box-shadow: 0 0 0 4px rgba(228,184,106,.07); font-family: Georgia,serif; font-size: 25px; font-weight: 700; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { margin-top: 3px; color: #8fa9bf; font-size: 9px; letter-spacing: .17em; }
.nav-links { display: flex; align-items: center; gap: 18px; color: #a7bdd1; font-size: 13px; }
.nav-links a:hover { color: var(--cyan); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid rgba(111,171,218,.32); border-radius: 10px; color: #dff6ff; background: rgba(15,34,53,.74); font-weight: 700; transition: .18s ease; }
.button:hover { border-color: var(--cyan); transform: translateY(-1px); }
.button.primary { color: #031316; border-color: var(--cyan); background: linear-gradient(135deg,#6ce7dc,#52aef0); box-shadow: 0 10px 32px rgba(75,193,219,.2); }
.button.gold { color: #201507; border-color: var(--gold); background: linear-gradient(135deg,#f0c677,#c88c3e); }
.button.danger { color: #ffdfe2; border-color: rgba(255,126,136,.48); background: rgba(108,33,45,.45); }
.button.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; min-height: 620px; padding: 80px 0 70px; }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 18px 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(48px,6.5vw,86px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.hero-proof span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #9fb8cd; background: rgba(9,24,40,.6); font-size: 11px; }
.forge-card { position: relative; min-height: 430px; border: 1px solid rgba(98,178,224,.27); border-radius: 28px; overflow: hidden; background: linear-gradient(145deg,rgba(18,39,65,.84),rgba(7,17,31,.86)); box-shadow: 0 30px 80px rgba(0,0,0,.38); }
.forge-card::before { position: absolute; width: 260px; height: 260px; top: 70px; left: calc(50% - 130px); border-radius: 50%; content: "T"; display: grid; place-items: center; color: #fff4d6; background: radial-gradient(circle at 34% 26%,#c6fff8 0 3%,#41c7ce 15%,#245493 53%,#0a1a32 73%); box-shadow: 0 0 70px rgba(75,178,239,.55); font: 700 88px Georgia,serif; }
.forge-window { position: absolute; right: 26px; bottom: 29px; width: 76%; padding: 18px; border: 1px solid rgba(145,204,235,.3); border-radius: 13px; background: rgba(10,25,42,.9); transform: rotate(-2deg); }
.forge-window strong { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: #ccecff; font-size: 10px; letter-spacing: .18em; }
.forge-row { display: grid; grid-template-columns: 34px 1fr 50px; align-items: center; gap: 10px; margin-top: 15px; }
.forge-row i { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,var(--gold),#66442c); }
.forge-row span, .forge-row b { height: 7px; border-radius: 99px; background: #31546e; }
.forge-row b { background: var(--cyan); }
.section { padding: 78px 0; }
.section-heading { max-width: 720px; margin-bottom: 32px; }
.section-heading h2 { margin: 8px 0 12px; font: 500 clamp(34px,4vw,52px) Georgia,serif; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature { min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(14,31,49,.78),rgba(7,18,32,.68)); }
.feature .number { color: var(--gold); font: 700 12px Georgia,serif; letter-spacing: .16em; }
.feature h3 { margin: 24px 0 10px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.65; }
.access-section { display: grid; grid-template-columns: 1fr minmax(360px,.72fr); align-items: end; gap: 44px; }
.access-section .section-heading { margin-bottom: 0; }
.access-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px; border: 1px solid rgba(228,184,106,.4); border-radius: 20px; background: linear-gradient(145deg,rgba(74,56,35,.5),rgba(8,27,43,.88)); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.access-card span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.access-card strong { display: block; margin-top: 8px; font: 500 38px Georgia,serif; }
.access-card strong small { color: #e8edf4; font-size: 18px; }
.access-card p { max-width: 430px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 60px 0 90px; padding: 32px; border: 1px solid rgba(228,184,106,.35); border-radius: 20px; background: linear-gradient(135deg,rgba(74,56,35,.48),rgba(12,36,51,.75)); }
.cta h2 { margin: 0 0 8px; font: 500 32px Georgia,serif; }
.cta p { margin: 0; color: var(--muted); }
.auth-layout { display: grid; place-items: center; min-height: calc(100vh - 73px); padding: 48px 0; }
.auth-card { width: min(470px,100%); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(9,22,37,.9); box-shadow: 0 32px 90px rgba(0,0,0,.4); }
.auth-card h1 { margin: 0 0 8px; font: 500 36px Georgia,serif; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 20px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #06101c; }
.tabs button { min-height: 38px; border: 0; border-radius: 8px; color: #8da8be; background: transparent; }
.tabs button.active { color: #eaf8ff; background: #152a3e; }
.field { display: block; margin-top: 15px; }
.field span { display: block; margin-bottom: 7px; color: #a9c1d5; font-size: 12px; }
.field input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid rgba(116,166,203,.3); border-radius: 9px; outline: none; color: #fff; background: #06111e; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(97,223,213,.08); }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.form-actions .button { flex: 1; }
.notice { min-height: 20px; margin-top: 14px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.notice.ok { color: var(--success); }
.dashboard { padding: 46px 0 90px; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.dashboard-head h1 { margin: 7px 0 0; font: 500 44px Georgia,serif; }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.admin-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,25,42,.78); }
.metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin-top: 11px; font-size: 24px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9,23,39,.83); }
.panel h2 { margin: 0 0 8px; font-size: 18px; }
.panel > p { color: var(--muted); line-height: 1.6; }
.project-library { margin-top: 18px; }
.project-library-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-library-head h2, .project-library-head p { margin: 0; }
.project-library-head p { margin-top: 6px; color: var(--muted); }
.project-rows { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.project-card { position: relative; display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #071522; transition: .18s ease; }
.project-card:hover { border-color: var(--cyan); transform: translateY(-1px); }
.project-card > a { flex: 1; min-width: 0; padding: 15px; }
.project-card > button { width: 42px; border: 0; border-left: 1px solid var(--line); color: var(--danger); background: rgba(78,24,35,.28); }
.project-card > button:hover { background: rgba(117,35,49,.5); }
.project-card strong, .project-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card small { margin-top: 7px; color: var(--muted); }
.license-state { display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #071522; }
.subscription-note { margin-top: 16px; padding: 14px 15px; border-left: 3px solid var(--cyan); border-radius: 8px; background: rgba(67,215,207,.07); }
.subscription-note strong { color: #dffefa; }
.subscription-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.billing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px currentColor; }
.status-dot.active { color: var(--success); background: currentColor; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13px; }
.admin-table th, .admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: #7895ad; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 5px 8px; border: 1px solid var(--line); border-radius: 99px; color: #a9c2d6; font-size: 10px; text-transform: uppercase; }
.tag.active, .tag.subscription { color: var(--success); border-color: rgba(115,226,177,.35); }
.tag.expired, .tag.disabled { color: var(--danger); border-color: rgba(255,126,136,.35); }
.audit-panel { margin-top: 18px; }
.audit-rows { display: grid; gap: 7px; margin-top: 18px; }
.audit-row { display: grid; grid-template-columns: 180px minmax(180px,.8fr) 1fr; gap: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: #071522; font-size: 12px; }
.audit-row time, .audit-row code { color: var(--muted); }
.audit-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secure-dialog { width: min(470px,calc(100vw - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: #091727; box-shadow: 0 30px 100px #000; }
.secure-dialog::backdrop { background: rgba(2,8,15,.82); backdrop-filter: blur(8px); }
.secure-dialog form { padding: 26px; }
.secure-dialog h2 { margin: 8px 0; }
.secure-dialog p { margin: 0; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: #6f8ba2; font-size: 12px; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .forge-card { min-height: 380px; }
  .grid-3, .metrics { grid-template-columns: repeat(2,1fr); }
  .project-rows { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .access-section { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 24px,1180px); }
  .nav { min-height: 64px; }
  .brand-copy small { display: none; }
  .nav > .button { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .hero h1 { font-size: 48px; }
  .forge-card { min-height: 330px; }
  .grid-3, .metrics { grid-template-columns: 1fr; }
  .project-rows { grid-template-columns: 1fr; }
  .project-library-head { align-items: flex-start; flex-direction: column; }
  .cta, .dashboard-head { align-items: flex-start; flex-direction: column; }
  .auth-card, .panel { padding: 20px; }
  .access-card { align-items: flex-start; flex-direction: column; }
  .audit-row { grid-template-columns: 1fr; }
}
