:root {
  --ink: #10233c;
  --ink-soft: #51627a;
  --navy: #0b1f37;
  --blue: #1f67ff;
  --blue-dark: #134ccc;
  --cyan: #36d4c7;
  --mint: #e9fbf8;
  --sky: #eef5ff;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --line: #dfe7f1;
  --success: #138a6b;
  --warning: #a56306;
  --danger: #c23d4b;
  --shadow: 0 18px 50px rgba(16, 35, 60, .11);
  --shadow-soft: 0 10px 30px rgba(16, 35, 60, .07);
  --radius: 20px;
  --radius-small: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.container-wide { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 720; letter-spacing: -.5px; }
.brand-copy b { color: var(--blue); }
.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px 11px 11px 3px;
  color: white;
  background: linear-gradient(145deg, var(--blue), #19a5d8);
  box-shadow: 0 8px 20px rgba(31, 103, 255, .25);
  font-size: 17px;
  font-weight: 900;
}
.brand-light { color: white; }
.brand-light .brand-copy b { color: var(--cyan); }

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 231, 241, .8);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}
.public-nav { display: flex; min-height: 74px; align-items: center; justify-content: space-between; }
.public-links { display: flex; align-items: center; gap: 28px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.public-links a:hover { color: var(--blue); }
.mobile-nav-button { display: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 8px 12px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  cursor: pointer;
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(31, 103, 255, .18);
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--blue-dark); box-shadow: 0 13px 26px rgba(31, 103, 255, .24); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(54, 212, 199, .35); outline-offset: 2px; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 13px; }
.button-secondary { color: var(--ink); border: 1px solid var(--line); background: white; box-shadow: none; }
.button-secondary:hover { color: var(--blue); background: var(--sky); box-shadow: none; }
.button-danger { background: #fff0f2; color: var(--danger); border: 1px solid #ffd5da; box-shadow: none; }
.button-danger:hover { background: #ffe4e8; box-shadow: none; }
.button-ghost { background: transparent; color: var(--blue); box-shadow: none; padding: 0; min-height: auto; }
.button-ghost:hover { background: transparent; box-shadow: none; }
.button-block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 83% 20%, rgba(54, 212, 199, .18), transparent 28%),
    radial-gradient(circle at 22% 85%, rgba(31, 103, 255, .12), transparent 25%),
    white;
}
.hero:after { content: ""; position: absolute; right: -120px; bottom: -220px; width: 480px; height: 480px; border: 70px solid rgba(31, 103, 255, .035); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--blue); font-size: 13px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--cyan); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 625px; margin: 24px 0 30px; color: var(--ink-soft); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 28px; color: var(--ink-soft); font-size: 13px; }
.trust-line span:before { content: "✓"; display: inline-grid; width: 20px; height: 20px; place-items: center; margin-right: 7px; border-radius: 50%; color: var(--success); background: var(--mint); font-weight: 900; }

.hero-visual { position: relative; min-height: 510px; }
.visual-orbit { position: absolute; inset: 20px 12px 18px 22px; border: 1px dashed rgba(31, 103, 255, .24); border-radius: 50%; }
.visual-orbit:before, .visual-orbit:after { content: ""; position: absolute; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px rgba(54, 212, 199, .13); }
.visual-orbit:before { width: 10px; height: 10px; top: 10%; left: 16%; }
.visual-orbit:after { width: 8px; height: 8px; right: 7%; bottom: 27%; }
.ai-console { position: absolute; left: 45px; right: 25px; top: 70px; z-index: 2; padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: 0 28px 80px rgba(16,35,60,.18); transform: rotate(-1.5deg); }
.console-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.console-title { display: flex; align-items: center; gap: 10px; font-weight: 780; }
.console-live { display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 12px; font-weight: 750; }
.console-live:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(19,138,107,.1); }
.chat-bubble { max-width: 84%; margin-bottom: 13px; padding: 13px 15px; border-radius: 15px 15px 15px 4px; color: var(--ink-soft); background: var(--canvas); font-size: 13px; }
.chat-bubble.ai { margin-left: auto; border-radius: 15px 15px 4px 15px; color: #fff; background: linear-gradient(135deg, var(--blue), #2a93dd); }
.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.console-stat { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.console-stat span { display: block; color: var(--ink-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.console-stat strong { display: block; margin-top: 3px; font-size: 17px; }
.floating-channel { position: absolute; z-index: 3; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid white; border-radius: 17px; color: white; box-shadow: var(--shadow); font-size: 18px; font-weight: 850; }
.floating-channel.one { right: 2px; top: 38px; background: #21b77f; }
.floating-channel.two { left: 3px; top: 210px; background: linear-gradient(145deg, #9148dc, #e04f8c); }
.floating-channel.three { right: 0; bottom: 55px; background: #31a8e0; }
.floating-channel.four { left: 65px; bottom: 3px; background: var(--navy); }

.logo-strip { padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.channel-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.channel-strip > span { color: var(--ink-soft); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.channel-names { display: flex; flex: 1; justify-content: space-around; gap: 28px; color: var(--ink); font-size: 15px; font-weight: 720; }

.section { padding: 96px 0; }
.section-white { background: white; }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-right: auto; margin-left: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.1; letter-spacing: -.04em; }
.section-head p { margin: 17px 0 0; color: var(--ink-soft); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-soft); }
.feature-number { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 38px; border-radius: 13px; color: var(--blue); background: var(--sky); font-weight: 850; }
.feature-card:nth-child(2) .feature-number { color: var(--success); background: var(--mint); }
.feature-card:nth-child(3) .feature-number { color: #8a4bcb; background: #f6efff; }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 0 26px; text-align: center; }
.step:not(:last-child):after { content: ""; position: absolute; top: 26px; left: 67%; width: 66%; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.step-index { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 22px; border: 1px solid #bed2ff; border-radius: 50%; color: var(--blue); background: white; font-weight: 850; }
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.cta-band { margin: 0 auto 96px; padding: 54px 64px; border-radius: 30px; color: white; background: linear-gradient(125deg, var(--navy), #123b67); box-shadow: 0 28px 80px rgba(11,31,55,.22); }
.cta-band-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 700px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.04em; }
.cta-band p { margin: 13px 0 0; color: #c9d7e7; }
.cta-band .button { color: var(--navy); background: var(--cyan); box-shadow: 0 10px 25px rgba(54,212,199,.18); white-space: nowrap; }

.public-footer { padding: 58px 0 18px; color: #b9c8d9; background: #071727; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-grid p { max-width: 340px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { margin-bottom: 7px; color: white; }
.footer-grid a:hover { color: white; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #eef5ff, #f8fbff 48%, #ebfbf8); }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .82fr) 1.18fr; }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 55px clamp(35px, 6vw, 90px); background: white; box-shadow: 20px 0 60px rgba(16,35,60,.06); }
.auth-panel .brand { margin-bottom: 52px; }
.auth-copy { max-width: 540px; }
.auth-copy h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.035em; }
.auth-copy > p { margin: 0 0 28px; color: var(--ink-soft); }
.auth-side { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 70px; color: white; background: linear-gradient(145deg, #0b2038, #133d68); }
.auth-side:before, .auth-side:after { content: ""; position: absolute; border-radius: 50%; border: 70px solid rgba(255,255,255,.025); }
.auth-side:before { width: 420px; height: 420px; right: -180px; top: -170px; }
.auth-side:after { width: 280px; height: 280px; left: -120px; bottom: -120px; }
.auth-message { position: relative; z-index: 1; max-width: 620px; }
.auth-message .eyebrow { color: var(--cyan); }
.auth-message h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.05em; }
.auth-message p { max-width: 520px; color: #cad9e8; font-size: 17px; }
.auth-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.auth-point { padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 750; }
.field small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 11px; }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdae7;
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--ink);
  background: white;
  transition: border .15s ease, box-shadow .15s ease;
}
.textarea { min-height: 100px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(31,103,255,.08); }
.auth-foot { margin-top: 20px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--blue); font-weight: 750; }
.field-error { margin: -7px 0 14px; color: var(--danger); font-size: 13px; }

.app-topbar { position: fixed; z-index: 40; top: 0; right: 0; left: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: white; }
.topbar-account { display: flex; align-items: center; gap: 18px; color: var(--ink-soft); font-size: 13px; }
.topbar-company { max-width: 320px; overflow: hidden; color: var(--ink); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account a { padding-left: 18px; border-left: 1px solid var(--line); color: var(--blue); font-weight: 750; }
.app-shell { display: grid; min-height: calc(100vh - 72px); grid-template-columns: 245px 1fr; padding-top: 72px; }
.sidebar { position: fixed; top: 72px; bottom: 0; left: 0; display: flex; width: 245px; flex-direction: column; justify-content: space-between; padding: 26px 18px; border-right: 1px solid var(--line); background: #fbfcfe; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.sidebar nav a:hover { color: var(--blue); background: var(--sky); }
.sidebar nav a.active { color: var(--blue); background: #eaf2ff; font-weight: 780; }
.nav-dot { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.sidebar nav a.active .nav-dot { background: currentColor; box-shadow: 0 0 0 4px rgba(31,103,255,.1); }
.sidebar-help { display: flex; flex-direction: column; padding: 16px; border-radius: 13px; color: var(--ink-soft); background: var(--sky); font-size: 12px; }
.sidebar-help strong { margin-bottom: 3px; color: var(--ink); }
.app-main { min-width: 0; grid-column: 2; padding: 34px clamp(24px, 4vw, 58px) 60px; }
.app-footer { padding: 20px 30px 20px 275px; border-top: 1px solid var(--line); color: var(--ink-soft); background: white; font-size: 12px; text-align: center; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3.1vw, 40px); letter-spacing: -.04em; }
.page-head p { margin: 7px 0 0; color: var(--ink-soft); }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card { position: relative; overflow: hidden; min-height: 142px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-soft); }
.metric-card:after { content: ""; position: absolute; right: -25px; bottom: -35px; width: 90px; height: 90px; border-radius: 50%; background: var(--sky); }
.metric-card.accent { color: white; border-color: transparent; background: linear-gradient(135deg, var(--blue), #248fd9); }
.metric-card.accent:after { background: rgba(255,255,255,.09); }
.metric-label { display: block; margin-bottom: 18px; color: var(--ink-soft); font-size: 12px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.metric-card.accent .metric-label { color: #dfeaff; }
.metric-value { position: relative; z-index: 1; display: block; font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.metric-note { position: relative; z-index: 1; display: block; margin-top: 12px; color: var(--ink-soft); font-size: 11px; }
.metric-card.accent .metric-note { color: #dfeaff; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .7fr); gap: 20px; }
.card { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-soft); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; }
.card-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12px; }
.card-body { padding: 23px; }
.card-link { color: var(--blue); font-size: 12px; font-weight: 760; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 16px; color: var(--ink-soft); background: #f8fafc; font-size: 10px; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfdff; }
.data-table .numeric { text-align: right; white-space: nowrap; }
.table-primary { font-weight: 750; }
.table-secondary { display: block; margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.truncate { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--success); background: #e9f8f3; }
.badge-warning { color: var(--warning); background: #fff5df; }
.badge-danger { color: var(--danger); background: #fff0f2; }
.badge-muted { color: #65748a; background: #edf1f6; }

.key-list { display: grid; gap: 15px; }
.key-card { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(110px, .55fr)) auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-soft); }
.key-name { display: flex; align-items: center; gap: 12px; }
.key-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--blue); background: var(--sky); font-size: 19px; font-weight: 900; }
.key-name strong, .key-stat strong { display: block; }
.key-name code { display: block; max-width: 250px; margin-top: 3px; overflow: hidden; color: var(--ink-soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.key-stat span { display: block; margin-bottom: 4px; color: var(--ink-soft); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.key-actions { display: flex; gap: 8px; }
.inline-form { display: inline; }

.new-token { margin-bottom: 24px; padding: 22px; border: 1px solid #9ee7dc; border-radius: 17px; background: var(--mint); }
.new-token h3 { margin: 0 0 7px; color: #0d6f59; }
.new-token p { margin: 0 0 14px; color: #427266; font-size: 13px; }
.token-copy-row { display: flex; gap: 8px; }
.token-copy-row code { flex: 1; overflow-x: auto; padding: 13px 14px; border: 1px solid #b5e9e0; border-radius: 10px; color: var(--ink); background: white; font-size: 12px; white-space: nowrap; }

.filter-bar { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(140px, .6fr)) auto; align-items: end; gap: 12px; margin-bottom: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.filter-bar .field { margin: 0; }
.filter-bar .input, .filter-bar .select { min-height: 40px; padding: 7px 10px; font-size: 12px; }
.filter-bar .button { min-height: 40px; }

.detail-row summary { cursor: pointer; color: var(--blue); font-weight: 700; }
.request-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 600px; padding: 16px 0 3px; color: var(--ink-soft); }
.request-detail strong { display: block; margin-bottom: 6px; color: var(--ink); }
.request-detail pre { max-height: 280px; margin: 0; overflow: auto; border-radius: 10px; padding: 12px; color: var(--ink); background: var(--canvas); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }

.chart-bars { display: flex; height: 220px; align-items: flex-end; gap: 12px; padding-top: 20px; }
.chart-bar-item { display: flex; min-width: 0; flex: 1; height: 100%; flex-direction: column; justify-content: flex-end; text-align: center; }
.chart-value { margin-bottom: 7px; color: var(--ink-soft); font-size: 9px; }
.chart-bar { min-height: 4px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--blue), #56a4ea); }
.chart-bar-0 { height: 4px; }
.chart-bar-1 { height: 15px; }
.chart-bar-2 { height: 30px; }
.chart-bar-3 { height: 45px; }
.chart-bar-4 { height: 60px; }
.chart-bar-5 { height: 75px; }
.chart-bar-6 { height: 90px; }
.chart-bar-7 { height: 105px; }
.chart-bar-8 { height: 120px; }
.chart-bar-9 { height: 135px; }
.chart-bar-10 { height: 150px; }
.chart-label { margin-top: 8px; color: var(--ink-soft); font-size: 9px; }

.quick-list { display: grid; gap: 11px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
.quick-link:hover { color: var(--blue); border-color: #b6ccfa; background: var(--sky); }
.quick-link span { color: var(--ink-soft); font-size: 12px; }

.alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; }
.alert-success { color: #0c7058; border-color: #a8e7d9; background: #ebfaf6; }
.alert-warning { color: #8a580b; border-color: #f2d797; background: #fff8e8; }
.alert-danger { color: #a22e3b; border-color: #f1b9c0; background: #fff1f3; }
.alert-info { color: #205cae; border-color: #b8cff6; background: #eff5ff; }

.empty-state { padding: 50px 24px; text-align: center; }
.empty-symbol { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 15px; border-radius: 14px; color: var(--blue); background: var(--sky); font-size: 25px; }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { max-width: 500px; margin: 0 auto 20px; color: var(--ink-soft); }

.modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(7,23,39,.65); }
.modal.open { display: flex; }
.modal-dialog { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 19px; padding: 26px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-close { border: 0; background: transparent; cursor: pointer; color: var(--ink-soft); font-size: 24px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 20px; }
.pagination a, .pagination span { display: grid; min-width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: white; font-size: 12px; }
.pagination .active { color: white; border-color: var(--blue); background: var(--blue); }

.definition-list { display: grid; gap: 13px; }
.definition-row { display: grid; grid-template-columns: 145px 1fr; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.definition-row:last-child { border-bottom: 0; }
.definition-row dt { color: var(--ink-soft); font-size: 12px; }
.definition-row dd { margin: 0; font-weight: 650; }

@media (max-width: 1080px) {
  .hero-grid { gap: 35px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .key-card { grid-template-columns: minmax(250px, 1.5fr) repeat(2, .55fr) auto; }
  .key-card .key-stat:nth-of-type(4) { display: none; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .filter-bar > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .mobile-nav-button { display: inline-block; }
  .public-links { position: absolute; top: 67px; right: 20px; display: none; width: min(300px, calc(100vw - 40px)); flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: white; box-shadow: var(--shadow); }
  .public-links.open { display: flex; }
  .public-links a { padding: 11px; }
  .hero { padding: 60px 0 75px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 470px; }
  .channel-strip { flex-direction: column; }
  .channel-names { width: 100%; flex-wrap: wrap; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .steps { gap: 35px 0; }
  .step:nth-child(2):after { display: none; }
  .cta-band { padding: 40px; }
  .cta-band-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { z-index: 35; top: 72px; display: none; width: min(290px, 88vw); box-shadow: var(--shadow); }
  .sidebar.open { display: flex; }
  .app-main { grid-column: 1; padding: 28px 20px 55px; }
  .app-footer { padding-left: 30px; }
  .content-grid { grid-template-columns: 1fr; }
  .key-card { grid-template-columns: 1fr 1fr; }
  .key-name { grid-column: 1 / -1; }
  .key-actions { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .container-wide { width: min(100% - 28px, 1180px); }
  .hero h1 { font-size: 43px; }
  .hero-copy > p { font-size: 16px; }
  .hero-visual { min-height: 410px; }
  .ai-console { right: 7px; left: 20px; top: 45px; padding: 17px; }
  .console-stats { grid-template-columns: 1fr 1fr; }
  .console-stat:last-child { display: none; }
  .floating-channel { width: 46px; height: 46px; }
  .section { padding: 70px 0; }
  .feature-grid, .steps, .metrics, .form-grid { grid-template-columns: 1fr; }
  .step:not(:last-child):after { display: none; }
  .cta-band { margin: 0 14px 70px; padding: 32px 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .auth-panel { padding: 35px 22px; }
  .auth-panel .brand { margin-bottom: 35px; }
  .topbar-company { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions, .page-actions .button { width: 100%; }
  .key-card { grid-template-columns: 1fr; }
  .key-name { grid-column: auto; }
  .key-actions { justify-content: flex-start; }
  .token-copy-row { flex-direction: column; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar > *:first-child { grid-column: auto; }
  .request-detail { min-width: 0; grid-template-columns: 1fr; }
  .definition-row { grid-template-columns: 1fr; gap: 4px; }
}
