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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(225, 6, 0, 0.28), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0, 60, 255, 0.28), transparent 35%),
        linear-gradient(135deg, #070707, #151515 60%, #050505);
    color: #ffffff;
}

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

.page {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 28px 0 45px;
}

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

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.logo span { color: #e10600; }

.nav, .actions-row, .mode-links, .table-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a, .btn, .mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #ffffff;
    font-weight: 700;
    transition: 0.25s;
}

.nav a:hover, .btn:hover, .mini-btn:hover {
    background: rgba(225, 6, 0, 0.35);
    border-color: rgba(225, 6, 0, 0.8);
    transform: translateY(-2px);
}

.btn-main {
    background: #e10600;
    border-color: #e10600;
    box-shadow: 0 0 25px rgba(225, 6, 0, 0.42);
}

.mini-btn {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}

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

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 35px;
}

.hero-card, .panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.hero-info { padding: 36px; }

.badge {
    display: inline-block;
    padding: 8px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.15);
    color: #ffd338;
    border: 1px solid rgba(255, 204, 0, 0.35);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 0.96;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1 span, .section-title span { color: #e10600; }

.hero-info p, .muted, .panel p {
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-img-box {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: #111;
}

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

.hero-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

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

.warning-panel {
    border-color: rgba(255, 204, 0, 0.6);
    background: rgba(255, 204, 0, 0.08);
}

.section-title {
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

label {
    display: block;
    font-weight: 800;
    color: #eeeeee;
    margin-bottom: 16px;
}

input, select {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    outline: none;
    font-size: 15px;
}

select option { background: #151515; color: #ffffff; }

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

.search-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}
.search-form input { margin-top: 0; }

.ajax-status, .message-box {
    padding: 15px 16px;
    border-radius: 18px;
    margin: 16px 0;
    background: rgba(0, 60, 255, 0.16);
    border: 1px solid rgba(0, 60, 255, 0.35);
    color: #dbe4ff;
    line-height: 1.5;
}

.message-box {
    background: rgba(225, 6, 0, 0.16);
    border-color: rgba(225, 6, 0, 0.35);
    font-weight: 800;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-box {
    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.25);
}

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

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

td { color: #e3e3e3; }

.form-panel {
    max-width: 940px;
    margin: 0 auto 28px;
}

.footer {
    margin-top: 34px;
    color: #858585;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero, .form-grid, .search-form {
        grid-template-columns: 1fr;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}
