:root {
    --ink: #16221f;
    --muted: #6d7b77;
    --line: #e3ebe8;
    --panel: #ffffff;
    --canvas: #f3f7f5;
    --brand: #10b981;
    --brand-dark: #087f5b;
    --nav: #10231e;
    --shadow: 0 18px 45px rgba(24, 59, 49, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px; color: #d8e7e1; background: radial-gradient(circle at 20% 0, #1b493b 0, var(--nav) 42%); display: flex; flex-direction: column; }
.brand { display: flex; gap: 13px; align-items: center; padding: 0 10px 34px; }
.brand-mark, .promo-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #20d59a, #059669); font-weight: 900; box-shadow: 0 10px 30px rgba(16,185,129,.28); }
.brand strong { display: block; color: #fff; font-size: 17px; }
.brand span { display: block; margin-top: 3px; font-size: 9px; letter-spacing: 1.7px; opacity: .55; }
nav { display: grid; gap: 8px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; color: #9fb8af; font-size: 14px; transition: .2s; }
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,.09); }
nav a.active { box-shadow: inset 3px 0 var(--brand); }
nav a span { font-size: 20px; color: #54deb1; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.09); }
.admin-chip { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.admin-chip i, .live-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #2ee5aa; box-shadow: 0 0 0 5px rgba(46,229,170,.12); }
.link-button { padding: 10px 0 0; border: 0; color: #86a39a; background: none; cursor: pointer; }
.main { min-width: 0; padding: 44px clamp(24px, 4vw, 64px) 70px; }
.page-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 30px; }
.eyebrow { color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
h1 { margin: 7px 0 4px; font-size: 34px; letter-spacing: -.8px; }
h2 { margin: 0; font-size: 18px; }
p { color: var(--muted); }
.page-header p, .panel-head p { margin: 5px 0 0; font-size: 13px; }
.primary, .secondary { border: 0; border-radius: 11px; padding: 12px 19px; cursor: pointer; font-weight: 700; }
.primary { color: #fff; background: linear-gradient(135deg, #16bd84, #079767); box-shadow: 0 9px 22px rgba(16,185,129,.22); }
.secondary { color: #285248; background: #e8f2ef; }
.button { display: inline-block; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.metric { position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); }
.metric::after { content: ""; position: absolute; width: 80px; height: 80px; right: -22px; top: -25px; border-radius: 50%; background: currentColor; opacity: .08; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin: 9px 0 3px; color: var(--ink); font-size: 34px; }
.metric small { color: #93a19d; }
.metric.cyan { color: #0891b2; }.metric.green { color: #059669; }.metric.orange { color: #ea580c; }.metric.red { color: #dc2626; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .72fr); gap: 20px; }
.panel { padding: 24px; border: 1px solid rgba(216,228,224,.9); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.panel-head a { color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 14px; color: #84928e; background: #f6f9f8; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
td { padding: 15px 14px; border-bottom: 1px solid #edf2f0; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
code { color: #176650; padding: 4px 7px; border-radius: 6px; background: #eaf6f2; font-family: "Cascadia Code", Consolas, monospace; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status.new { color: #0e7490; background: #e1f5fa; }.status.active { color: #087451; background: #dcf8ed; }.status.expired { color: #a94b11; background: #fff0df; }.status.disabled { color: #b42333; background: #fee9ec; }
.empty { padding: 50px; color: #91a09b; text-align: center; }
.activity-card .big-number { margin-top: 38px; font-size: 58px; font-weight: 850; letter-spacing: -3px; }
.activity-card > p { margin-top: 0; }
.service-line { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.service-line span { color: var(--muted); }.service-line strong { color: #157c5e; }
.generate-form { display: flex; align-items: end; gap: 14px; }
label { display: grid; gap: 7px; color: #53635e; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d8e3df; border-radius: 10px; padding: 11px 12px; outline: none; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.generate-form label { min-width: 160px; }.generate-form .grow { flex: 1; }
.filters { display: flex; gap: 9px; }.filters select { min-width: 125px; padding: 8px 10px; }
.sub { display: block; margin-top: 6px; color: #94a19d; }
.muted { color: #91a09b; }
.actions { display: flex; gap: 6px; }
.actions button { padding: 5px 8px; border: 1px solid #dce6e2; border-radius: 7px; color: #48635a; background: #fff; cursor: pointer; font-size: 11px; }
.pagination { display: flex; justify-content: center; gap: 18px; align-items: center; padding-top: 20px; color: var(--muted); font-size: 13px; }
.pagination a { color: var(--brand-dark); font-weight: 700; }
.result-panel { max-width: 920px; text-align: center; }
.success-icon { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 28px; }
.result-panel textarea { min-height: 330px; margin: 20px 0; padding: 18px; resize: vertical; line-height: 1.7; font-family: "Cascadia Code", Consolas, monospace; text-align: left; }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #f7faf9; }
.login-promo { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 9vw; color: #fff; background: radial-gradient(circle at 20% 15%, #1d755b 0, #112c25 38%, #0a1c17 100%); }
.login-promo::after { content: ""; position: absolute; width: 520px; height: 520px; right: -240px; bottom: -230px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 150px rgba(255,255,255,.018); }
.promo-badge { width: 55px; height: 55px; margin-bottom: 40px; font-size: 24px; }
.login-promo h1 { max-width: 620px; font-size: clamp(38px, 4.2vw, 66px); line-height: 1.12; letter-spacing: -2px; }
.login-promo > p { max-width: 580px; color: #a9c4bb; font-size: 16px; line-height: 1.8; }
.promo-stats { display: flex; gap: 50px; margin-top: 55px; }
.promo-stats strong { display: block; font-size: 25px; }.promo-stats span { color: #8daaa1; font-size: 12px; }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(420px, 100%); padding: 42px; border: 1px solid #e5ece9; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(27,65,54,.11); }
.login-card h2 { margin-top: 8px; font-size: 30px; }.login-card > p { margin: 8px 0 28px; }
.login-card label { margin-bottom: 17px; }.wide { width: 100%; margin-top: 5px; }
.login-card small { display: block; margin-top: 18px; color: #9aa7a3; text-align: center; }
.alert { margin-bottom: 18px; padding: 11px 13px; border-radius: 9px; color: #a52535; background: #fff0f2; font-size: 13px; }
@media (max-width: 1050px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }.sidebar { position: static; width: 100%; height: auto; padding: 18px; }.brand { padding-bottom: 16px; }nav { grid-template-columns: repeat(3, 1fr); }nav a { justify-content: center; }.sidebar-footer { display: none; }
    .main { padding: 26px 16px 50px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.generate-form { align-items: stretch; flex-direction: column; }.generate-form label { min-width: 0; }.login-shell { grid-template-columns: 1fr; }.login-promo { display: none; }.login-panel { padding: 18px; }
}

