* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070707;
    --panel: rgba(255, 255, 255, 0.075);
    --panel-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #c9c9c9;
    --red: #e10600;
    --red-soft: rgba(225, 6, 0, 0.25);
    --yellow: #ffcc00;
    --blue: #003cff;
    --danger: #ff3344;
    --success: #33d17a;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(225, 6, 0, 0.24), transparent 35%),
        radial-gradient(circle at 88% 20%, rgba(0, 60, 255, 0.22), transparent 34%),
        radial-gradient(circle at 70% 95%, rgba(255, 204, 0, 0.10), transparent 30%),
        linear-gradient(135deg, #070707, #151515 58%, #040404);
    color: var(--text);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(45deg, transparent 0 26px, rgba(255,255,255,0.025) 26px 28px),
        linear-gradient(to bottom, transparent, rgba(0,0,0,0.35));
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.page {
    position: relative;
    z-index: 1;
    width: min(1240px, 92%);
    margin: 0 auto;
    padding: 28px 0 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.logo {
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo span {
    color: var(--red);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: rgba(225, 6, 0, 0.22);
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 30px;
}

.hero-text h1,
.page-title h1 {
    margin: 8px 0 18px;
    font-size: clamp(40px, 5.7vw, 72px);
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-text h1 span,
.page-title h1 span {
    color: var(--red);
}

.hero-text p,
.page-title p {
    max-width: 650px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.eyebrow {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.22s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: var(--red);
    box-shadow: 0 0 26px rgba(225, 6, 0, 0.42);
}

.btn-secondary {
    color: #fff;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.08);
}

.btn-ghost {
    color: var(--muted);
    background: transparent;
    border: 1px dashed rgba(255,255,255,0.2);
}

.btn-danger {
    color: #fff;
    background: var(--danger);
    box-shadow: 0 0 24px rgba(255, 51, 68, 0.35);
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    box-shadow: 0 26px 70px rgba(0,0,0,0.6);
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.stat-card,
.panel {
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.stat-card {
    min-height: 110px;
    padding: 22px;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--red-soft);
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
}

.stat-card strong {
    position: relative;
    z-index: 1;
    font-size: 28px;
}

.panel {
    padding: 24px;
    border-radius: 26px;
    margin-bottom: 28px;
}

.narrow-panel {
    max-width: 860px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.panel h2 {
    font-size: 28px;
    text-transform: uppercase;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin-bottom: 18px;
}

input,
select {
    width: 100%;
    min-height: 48px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    outline: none;
    background: rgba(0,0,0,0.35);
    padding: 12px 14px;
    transition: 0.2s;
}

input:focus,
select:focus {
    border-color: rgba(225, 6, 0, 0.8);
    box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.16);
}

select option {
    background: #111;
    color: #fff;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
}

table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: rgba(0,0,0,0.22);
}

th,
td {
    padding: 15px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
}

th {
    color: #fff;
    background: rgba(225, 6, 0, 0.18);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    color: #efefef;
}

td small {
    display: block;
    margin-top: 5px;
    color: #969696;
    max-width: 260px;
}

tr:hover td {
    background: rgba(255,255,255,0.035);
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 36px;
}

.actions {
    white-space: nowrap;
}

.mini-btn {
    display: inline-flex;
    padding: 8px 10px;
    margin: 2px;
    border-radius: 10px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.mini-btn:hover {
    background: rgba(225, 6, 0, 0.24);
}

.mini-btn.danger:hover {
    background: rgba(255, 51, 68, 0.3);
}

.page-title {
    margin-bottom: 22px;
}

.page-title h1 {
    font-size: clamp(36px, 5vw, 58px);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

label span {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.alert {
    margin-bottom: 18px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.alert ul {
    margin: 8px 0 0 20px;
}

.alert-error {
    background: rgba(255, 51, 68, 0.12);
    border-color: rgba(255, 51, 68, 0.35);
}

.alert-success {
    background: rgba(51, 209, 122, 0.12);
    border-color: rgba(51, 209, 122, 0.35);
}

code,
.tag {
    padding: 3px 7px;
    border-radius: 8px;
    color: var(--yellow);
    background: rgba(255,255,255,0.08);
}

.delete-card {
    padding: 20px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,51,68,0.16), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,51,68,0.25);
}

.delete-card h2 {
    margin: 12px 0;
}

.delete-card p {
    color: var(--muted);
    line-height: 1.6;
}

.footer {
    padding: 22px 0;
    color: #878787;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .search-form {
        grid-template-columns: 1fr;
    }

    .site-header,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }
}
