:root {
  --ink: #07040d;
  --ink-2: #0d0816;
  --surface: rgba(24, 15, 38, .76);
  --surface-strong: #160e25;
  --line: rgba(207, 170, 255, .17);
  --line-bright: rgba(193, 120, 255, .48);
  --violet: #a855f7;
  --violet-light: #d8b4fe;
  --violet-deep: #592a93;
  --text: #f7f0ff;
  --muted: #a999ba;
  --danger: #ff7898;
  --success: #83f1c0;
  --font-display: 'Oxanium', sans-serif;
  --font-body: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--ink); font-family: var(--font-body); }
button, input { font: inherit; }
button { cursor: pointer; }
.login-page { overflow-x: hidden; }
.access-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.12fr) minmax(440px, .88fr); background: radial-gradient(circle at 25% 30%, rgba(133, 54, 210, .23), transparent 30%), var(--ink); }
.brand-stage { position: relative; display: flex; flex-direction: column; min-height: 100vh; padding: 44px clamp(42px, 8vw, 132px); overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(135deg, rgba(32, 15, 53, .75), rgba(8, 5, 14, .15) 55%); }
.brand-stage::before, .brand-stage::after { content: ''; position: absolute; pointer-events: none; }
.brand-stage::before { width: 540px; height: 540px; border: 1px solid rgba(196, 126, 255, .20); border-radius: 50%; right: -230px; bottom: -230px; box-shadow: 0 0 0 78px rgba(181, 94, 255, .035), 0 0 0 157px rgba(181, 94, 255, .025); }
.brand-stage::after { width: 340px; height: 340px; border-top: 1px solid rgba(216, 180, 254, .38); border-left: 1px solid rgba(216, 180, 254, .16); transform: rotate(45deg); right: 4%; top: 20%; }
.scanline { position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: linear-gradient(transparent, var(--violet-light), transparent); opacity: .55; animation: travel 6s linear infinite; }
.eyebrow, .section-label, .card-topline, .brand-subtitle, .stage-footer, label span, .record-count { letter-spacing: .16em; font-family: var(--font-display); font-size: 10px; font-weight: 600; }
.eyebrow { position: relative; display: flex; gap: 9px; align-items: center; margin: 0; color: var(--violet-light); }
.signal-dot, .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.brand-lockup { z-index: 1; display: flex; gap: 13px; align-items: center; margin-top: 32px; text-decoration: none; color: var(--text); }
.brand-mark { position: relative; display: inline-block; flex: 0 0 39px; width: 39px; height: 39px; border: 1px solid var(--violet-light); border-radius: 50%; box-shadow: inset 0 0 18px rgba(168, 85, 247, .35), 0 0 18px rgba(168,85,247,.18); }
.brand-mark span { position: absolute; left: 9px; width: 19px; height: 12px; border: 2px solid var(--violet-light); border-bottom: 0; border-radius: 30px 30px 0 0; transform: rotate(-27deg); }
.brand-mark span:first-child { top: 6px; }
.brand-mark span:nth-child(2) { bottom: 6px; transform: rotate(153deg); }
.brand-mark i { position: absolute; top: 16px; left: 16px; width: 5px; height: 5px; background: #fff; border-radius: 50%; box-shadow: 0 0 12px #fff; }
.brand-name { margin: 0; letter-spacing: .12em; font: 700 20px/1 var(--font-display); }
.brand-name span, .compact strong span { color: var(--violet-light); }
.brand-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 8px; }
.brand-copy { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }
.section-label { margin: 0 0 14px; color: var(--violet-light); }
h1, h2 { margin: 0; letter-spacing: -.035em; font-family: var(--font-display); }
.brand-copy h1 { font-size: clamp(48px, 5.2vw, 78px); line-height: .98; }
.brand-copy h1 em { color: var(--violet-light); font-style: normal; text-shadow: 0 0 30px rgba(211, 170, 254, .35); }
.brand-copy > p:last-child { max-width: 390px; margin: 25px 0 0; color: #cbbfd8; font-size: 15px; line-height: 1.8; }
.stage-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; color: #887999; }
.login-stage { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 32px; background: radial-gradient(circle at 70% 78%, rgba(168,85,247,.16), transparent 26%), linear-gradient(130deg, #0b0612, #100819); }
.corner-grid { position: absolute; right: 0; bottom: 0; width: 48%; height: 36%; opacity: .32; background-image: linear-gradient(rgba(211, 170, 254, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(211, 170, 254, .16) 1px, transparent 1px); background-size: 26px 26px; transform: perspective(400px) rotateX(57deg); transform-origin: bottom right; }
.login-card { position: relative; z-index: 1; width: min(100%, 440px); padding: 33px; border: 1px solid var(--line); border-radius: 4px; background: rgba(24, 15, 38, .64); box-shadow: 0 35px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter: blur(18px); }
.login-card::before, .generator-panel::before { content: ''; position: absolute; top: -1px; left: 26px; width: 86px; height: 2px; background: var(--violet-light); box-shadow: 0 0 16px var(--violet-light); }
.card-topline, .history-head, .panel-head { display: flex; justify-content: space-between; color: var(--muted); }
.card-topline { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.card-heading { margin: 30px 0 26px; }
.card-heading h2, .panel-head h2, .history-head h2 { font-size: 28px; }
.card-heading > p:last-child, .panel-copy { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 8px; color: var(--violet-light); }
.auth-form input { width: 100%; height: 49px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; outline: 0; color: var(--text); background: rgba(5, 3, 9, .45); transition: .2s ease; }
.auth-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.15), inset 3px 0 var(--violet); }
.auth-form input::placeholder { color: #766985; }
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.reveal-password { position: absolute; top: 50%; right: 11px; padding: 2px; border: 0; color: var(--violet-light); background: transparent; font: 600 10px var(--font-display); transform: translateY(-50%); }
.primary-action { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 6px; padding: 0 18px; border: 1px solid #ce9cff; border-radius: 3px; color: #1c0b2e; background: linear-gradient(105deg, #d9b7ff, #a855f7); box-shadow: 0 9px 26px rgba(168,85,247,.28); font: 700 12px var(--font-display); letter-spacing: .1em; transition: transform .2s, box-shadow .2s, filter .2s; }
.primary-action:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 30px rgba(168,85,247,.4); }
.primary-action:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.primary-action b { font-size: 20px; }
.security-note { display: flex; gap: 8px; align-items: center; margin: 21px 0 0; color: #8d7d9f; font-size: 10px; line-height: 1.5; }
.security-note span { color: var(--violet-light); }
.notice { margin: 0 0 18px; padding: 11px 12px; border: 1px solid; border-radius: 3px; font-size: 12px; line-height: 1.45; }
.notice.error { color: #ffc1d0; border-color: rgba(255,120,152,.36); background: rgba(255,120,152,.09); }
.notice.success { color: #b4f9d9; border-color: rgba(131,241,192,.35); background: rgba(131,241,192,.09); }
.dashboard-page { min-width: 320px; background: radial-gradient(circle at 70% 10%, rgba(126, 49, 192, .16), transparent 28%), var(--ink); }
.dashboard-frame { display: grid; min-height: 100vh; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; padding: 28px 17px 20px; border-right: 1px solid var(--line); background: rgba(12,7,20,.84); }
.compact { gap: 10px; margin: 0 10px 52px; }
.compact .brand-mark { flex-basis: 32px; width: 32px; height: 32px; transform: scale(.82); transform-origin: left center; }
.compact strong { display: block; letter-spacing: .08em; font: 700 15px var(--font-display); }
.compact small { display: block; margin-top: 3px; color: var(--muted); letter-spacing: .15em; font: 600 7px var(--font-display); }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 12px; }
.nav-item b { color: var(--violet-light); font-size: 15px; }
.nav-item.active { border-color: var(--line); border-left-color: var(--violet-light); color: var(--text); background: rgba(168,85,247,.12); }
.nav-item.muted { opacity: .46; }
.sidebar-foot { margin-top: auto; display: grid; gap: 21px; padding: 10px; }
.status-chip { display: inline-flex; gap: 7px; align-items: center; color: var(--success); letter-spacing: .1em; font: 600 9px var(--font-display); }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.logout-link { color: var(--muted); text-decoration: none; font-size: 11px; }
.logout-link b { float: right; color: var(--violet-light); }
.dashboard-main { width: min(1280px, 100%); margin: 0 auto; padding: 43px clamp(25px, 5vw, 78px); }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; }
.dashboard-header h1 { font-size: 34px; }
.operator { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.operator-avatar { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--violet-light); font: 600 13px var(--font-display); }
.operator b, .operator small { display: block; font-size: 11px; }
.operator small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.operator .pulse { margin-left: 9px; width: 6px; height: 6px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(190px, .7fr); gap: 18px; }
.generator-panel, .stat-panel, .history-panel { position: relative; border: 1px solid var(--line); background: var(--surface); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.generator-panel { padding: 29px; overflow: hidden; }
.generator-panel::after { content: ''; position: absolute; right: -58px; bottom: -98px; width: 220px; height: 220px; border: 1px solid rgba(216,180,254,.2); border-radius: 50%; box-shadow: 0 0 0 24px rgba(168,85,247,.03), 0 0 0 54px rgba(168,85,247,.025); }
.panel-head { align-items: flex-start; }
.orbital-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--violet-light); box-shadow: inset 0 0 17px rgba(168,85,247,.18); }
.panel-copy { max-width: 510px; margin: 16px 0 23px; }
.prefix-preview { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(0,0,0,.18); }
.prefix-preview span { color: var(--muted); letter-spacing: .13em; font: 600 8px var(--font-display); }
.prefix-preview code, .key-row code { color: var(--violet-light); font: 600 13px var(--font-display); }
.prefix-preview i { color: #80669c; font-style: normal; }
.generate-action { position: relative; z-index: 1; width: auto; min-width: 250px; margin-top: 17px; }
.stat-panel { display: flex; flex-direction: column; min-height: 247px; padding: 28px; overflow: hidden; }
.stat-panel strong { margin: auto 0 2px; font: 700 clamp(48px, 6vw, 76px)/1 var(--font-display); letter-spacing: -.08em; color: var(--violet-light); text-shadow: 0 0 25px rgba(216,180,254,.25); }
.stat-panel > span { color: var(--muted); font-size: 11px; }
.stat-graph { display: flex; gap: 5px; align-items: end; height: 28px; margin-top: 20px; }
.stat-graph i { width: 8px; background: linear-gradient(var(--violet-light), rgba(168,85,247,.14)); }
.stat-graph i:nth-child(1) { height: 24%; } .stat-graph i:nth-child(2) { height: 47%; } .stat-graph i:nth-child(3) { height: 38%; } .stat-graph i:nth-child(4) { height: 68%; } .stat-graph i:nth-child(5) { height: 55%; } .stat-graph i:nth-child(6) { height: 80%; } .stat-graph i:nth-child(7) { height: 100%; }
.history-panel { margin-top: 18px; padding: 25px 29px; }
.history-head { align-items: end; margin-bottom: 19px; }
.history-head h2 { font-size: 22px; }
.record-count { color: var(--muted); }
.key-list { border-top: 1px solid var(--line); }
.key-row { display: grid; grid-template-columns: 1fr 155px 70px; gap: 16px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); }
.key-ident { display: flex; gap: 10px; align-items: center; min-width: 0; }
.key-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 9px var(--violet); }
.key-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.key-row time { color: var(--muted); font-size: 10px; }
.copy-button { padding: 7px 0; border: 0; color: var(--violet-light); background: transparent; font: 600 9px var(--font-display); letter-spacing: .1em; }
.copy-button:hover { color: white; }
.empty-state { padding: 42px 10px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.empty-state span { color: var(--violet-light); font-size: 24px; }
.empty-state p { margin: 12px 0 5px; color: var(--text); font-size: 13px; }.empty-state small { font-size: 11px; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 15%, 75% { opacity: .65; } 100% { transform: translateX(100vw); opacity: 0; } }
@media (max-width: 850px) { .access-shell { grid-template-columns: 1fr; } .brand-stage { min-height: 400px; padding: 34px 35px; } .brand-copy { margin: auto 0; } .login-stage { min-height: 580px; } .dashboard-frame { grid-template-columns: 1fr; } .sidebar { display: none; } .dashboard-main { padding: 28px 20px; } }
@media (max-width: 560px) { .brand-copy h1 { font-size: 47px; } .login-stage { padding: 17px; } .login-card { padding: 25px 20px; } .dashboard-header { align-items: flex-start; gap: 18px; flex-direction: column; } .dashboard-grid { grid-template-columns: 1fr; } .generator-panel, .stat-panel, .history-panel { padding: 22px 18px; } .generate-action { width: 100%; min-width: 0; } .key-row { grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px 0; } .key-row time { grid-column: 1; }.copy-button { grid-column: 2; grid-row: 1 / 3; } }

/* Compact dashboard and key management controls */
.history-head { align-items: center; gap: 18px; }
.history-tools { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: flex-end; }
.select-all { display: inline-flex; gap: 7px; align-items: center; color: var(--violet-light); font: 600 9px var(--font-display); letter-spacing: .08em; cursor: pointer; }
.select-all input, .key-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.custom-check { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line-bright); border-radius: 2px; background: rgba(0,0,0,.2); transition: .2s ease; }
.select-all input:checked + .custom-check, .key-select:checked + .custom-check { border-color: var(--violet-light); background: var(--violet); box-shadow: 0 0 9px rgba(168,85,247,.55); }
.select-all input:focus-visible + .custom-check, .key-select:focus-visible + .custom-check { outline: 2px solid var(--violet-light); outline-offset: 2px; }
.selection-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.bulk-button, .delete-button { padding: 7px 9px; border: 1px solid var(--line); color: var(--violet-light); background: rgba(168,85,247,.08); font: 600 8px var(--font-display); letter-spacing: .08em; transition: .2s ease; }
.bulk-button:hover:not(:disabled), .delete-button:hover { border-color: var(--violet-light); color: white; background: rgba(168,85,247,.2); }
.bulk-button.danger, .delete-button { color: #ff9db5; border-color: rgba(255,120,152,.27); background: rgba(255,120,152,.06); }
.bulk-button.danger:hover:not(:disabled), .delete-button:hover { border-color: var(--danger); background: rgba(255,120,152,.14); }
.bulk-button:disabled { cursor: not-allowed; opacity: .36; }
.key-row { grid-template-columns: 22px minmax(0, 1fr) 155px 70px 70px; }
.key-select-wrap { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.key-select-wrap .custom-check { width: 13px; height: 13px; }
.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; }
@media (min-width: 851px) {
  .dashboard-main { padding-top: 26px; padding-bottom: 24px; }
  .dashboard-header { margin-bottom: 24px; }
  .dashboard-header h1 { font-size: 31px; }
  .generator-panel { padding: 22px; }
  .panel-copy { margin: 10px 0 15px; line-height: 1.45; }
  .prefix-preview { padding: 9px 12px; }
  .generate-action { min-height: 46px; margin-top: 11px; }
  .stat-panel { min-height: 210px; padding: 22px; }
  .stat-graph { height: 22px; margin-top: 12px; }
  .history-panel { margin-top: 13px; padding: 18px 22px; }
  .history-head { margin-bottom: 10px; }
  .key-row { min-height: 45px; }
}
@media (max-width: 850px) {
  .history-head { align-items: flex-start; flex-direction: column; }
  .history-tools { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .history-tools { gap: 7px; }
  .record-count { width: 100%; }
  .key-row { grid-template-columns: 20px 1fr auto; gap: 4px 8px; padding: 9px 0; }
  .key-row time { grid-column: 2; }
  .copy-button { grid-column: 3; grid-row: 1; }
  .delete-button { grid-column: 3; grid-row: 2; }
}
