@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #08111f;
    --surface: #101d30;
    --surface-2: #162840;
    --line: #243957;
    --text: #f0f5ff;
    --muted: #92a5c2;
    --blue: #4f8cff;
    --green: #3ed79e;
    --amber: #f3bc62;
    --red: #ff7f96;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #12294b 0, transparent 35%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(145, 166, 199, .14); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #619dff, #275dcc); box-shadow: 0 10px 30px rgba(79, 140, 255, .25); font-weight: 700; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.logout-link { color: var(--muted); font-size: 13px; }
.logout-link:hover { color: var(--text); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.04em; }
h2 { margin-bottom: 4px; font-size: 17px; }
.muted { color: var(--muted); line-height: 1.6; }
.small { font-size: 12px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin-bottom: 12px; }
.dashboard { padding: 54px 0 80px; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.sync-pill { border: 1px solid rgba(62, 215, 158, .25); background: rgba(62, 215, 158, .07); color: var(--green); border-radius: 999px; padding: 9px 13px; white-space: nowrap; font-size: 12px; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat-card { display: block; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: rgba(16, 29, 48, .88); transition: transform .2s, border-color .2s; }
.stat-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.stat-card span { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -.04em; }
.stat-card.green strong { color: var(--green); } .stat-card.amber strong { color: var(--amber); } .stat-card.red strong { color: var(--red); }
.panel-card { border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 29, 48, .9); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 11px; }
.filter:hover, .filter.selected { background: var(--surface-2); color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1320px; table-layout: fixed; }
th { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
th, td { padding: 15px 24px; border-bottom: 1px solid rgba(145, 166, 199, .10); }
td { font-size: 12px; white-space: nowrap; }
td strong, td small { display: block; } td small { color: var(--muted); font-size: 10px; margin-top: 5px; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover { background: rgba(79, 140, 255, .04); }
.col-ip { width: 170px; } .col-file { width: 190px; } .col-created { width: 170px; } .col-expires { width: 170px; } .col-status { width: 100px; } .col-actions { width: 520px; min-width: 520px; }
.badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.badge.active { color: var(--green); background: rgba(62, 215, 158, .11); } .badge.expired { color: var(--amber); background: rgba(243, 188, 98, .11); } .badge.blocked { color: var(--red); background: rgba(255, 127, 150, .11); }
.actions-cell { width: 520px; min-width: 520px; vertical-align: middle; overflow: visible; }
.actions-grid { display: grid; grid-template-columns: minmax(92px, auto) minmax(250px, 1fr) minmax(74px, auto); align-items: center; gap: 18px; }
.action-block { min-width: 0; }
.action-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.action-block form { margin: 0; }
.edit-expiration { display: flex; align-items: center; gap: 8px; }
.date-input { width: 142px; min-width: 142px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #0a1627; color: var(--text); font-size: 11px; }
.date-input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(79, 140, 255, .12); }
button.action-button { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background .2s, border-color .2s, filter .2s; }
.action-button:hover { filter: brightness(1.18); }
.amber-action { border-color: rgba(243, 188, 98, .28); color: var(--amber); background: rgba(243, 188, 98, .08); }
.green-action { border-color: rgba(62, 215, 158, .28); color: var(--green); background: rgba(62, 215, 158, .08); }
.blue-action { border-color: rgba(79, 140, 255, .28); color: var(--blue); background: rgba(79, 140, 255, .08); }
.red-action { border-color: rgba(255, 127, 150, .28); color: var(--red); background: rgba(255, 127, 150, .08); }
.action-empty { display: inline-block; padding: 8px 10px; color: var(--muted); }
.text-button { padding: 0; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 11px; }
.green-text { color: var(--green); } .amber-text { color: var(--amber); } .blue-text { color: var(--blue); } .red-text { color: var(--red); }
.text-button:hover { filter: brightness(1.25); }
.empty { color: var(--muted); padding: 38px 24px; text-align: center; }
.alert { margin-bottom: 20px; padding: 12px 15px; border-radius: 10px; font-size: 12px; }
.alert.success { border: 1px solid rgba(62, 215, 158, .25); color: var(--green); background: rgba(62, 215, 158, .08); }
.alert.error { border: 1px solid rgba(255, 127, 150, .25); color: var(--red); background: rgba(255, 127, 150, .08); }
.auth-card { width: min(420px, 100%); margin: 110px auto 0; padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16, 29, 48, .92); box-shadow: 0 25px 70px rgba(0, 0, 0, .25); }
.auth-card h1 { font-size: 28px; }
form label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: 12px; }
input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #0a1627; color: var(--text); font: inherit; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 140, 255, .12); }
input.date-input { width: 142px !important; min-width: 142px; max-width: 142px; height: 34px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #0a1627; color: var(--text); font-size: 11px; }
input.date-input::-webkit-calendar-picker-indicator { filter: invert(75%) sepia(30%) saturate(600%); opacity: .8; }
button.primary { border: 0; border-radius: 9px; padding: 13px 16px; background: var(--blue); color: white; cursor: pointer; font: inherit; font-weight: 600; }
button.primary:hover { filter: brightness(1.1); } .full { width: 100%; margin-top: 24px; }
@media (max-width: 760px) { .shell { width: min(100% - 24px, 1320px); } .topbar { height: 72px; } .dashboard { padding-top: 34px; } .hero-row, .panel-heading { align-items: flex-start; flex-direction: column; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .panel-heading { gap: 15px; } }
@media (max-width: 1180px) { .actions-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .action-delete { grid-column: 2; } }
@media (max-width: 620px) { .actions-grid { grid-template-columns: 1fr; gap: 12px; } .action-delete { grid-column: auto; } .edit-expiration { flex-wrap: wrap; } }
