* {
    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 {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a,
.btn {
    display: inline-block;
    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 {
    background: rgba(225, 6, 0, 0.35);
    border-color: rgba(225, 6, 0, 0.8);
    transform: translateY(-2px);
}

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

.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 {
    color: #d4d4d4;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.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));
}

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

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

.graph-wrap {
    padding: 16px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        #101010;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.graph-img {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 18px;
    background: #111;
}

.mode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 22px;
}

.mode-links a.active {
    background: #e10600;
    border-color: #e10600;
}

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

table {
    width: 100%;
    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: #eeeeee;
}

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

.sql-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.45);
    color: #d9f7ff;
    overflow-x: auto;
    border-left: 4px solid #e10600;
    line-height: 1.5;
}

.footer {
    text-align: center;
    color: #888;
    padding: 24px 0 0;
}

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

    .header {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

.actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
}

.search-form input,
.data-form input,
.data-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
    outline: none;
    font-size: 15px;
}

.search-form input {
    flex: 1 1 320px;
}

.search-form input:focus,
.data-form input:focus,
.data-form select:focus {
    border-color: #e10600;
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.22);
}

.data-form {
    margin-top: 22px;
    display: grid;
    gap: 18px;
}

.data-form label {
    display: grid;
    gap: 8px;
    color: #ffd338;
    font-weight: 800;
    letter-spacing: 0.4px;
}

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

.form-panel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.muted {
    color: #d4d4d4;
    line-height: 1.6;
}

.message-box {
    margin-bottom: 25px;
    padding: 16px 18px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(35, 160, 80, 0.22);
    border: 1px solid rgba(35, 160, 80, 0.55);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
    font-weight: 700;
}

.table-actions {
    white-space: nowrap;
}

.mini-btn {
    display: inline-block;
    padding: 9px 12px;
    margin: 2px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    transition: 0.25s;
}

.mini-btn:hover {
    background: rgba(255, 204, 0, 0.22);
    border-color: rgba(255, 204, 0, 0.7);
    transform: translateY(-1px);
}

.mini-btn.danger {
    background: rgba(225, 6, 0, 0.18);
    border-color: rgba(225, 6, 0, 0.45);
}

.mini-btn.danger:hover {
    background: rgba(225, 6, 0, 0.45);
    border-color: rgba(225, 6, 0, 0.9);
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
