:root {
    --bg1: #0f2027;
    --bg2: #203a43;
    --bg3: #2c5364;
    --accent: #00f5d4;
    --accent2: #6ae3ff;
    --muted: rgba(255, 255, 255, 0.7);
    --text: #f7fbff;
    --bginput: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="120" height="120" filter="url(%23n)" opacity="0.08"/></svg>');
}

.app {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0.85rem 1.4rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--bginput);
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.logo .accent {
    color: var(--accent);
}

.home-link,
.home-link:hover {
    text-decoration: none;
    color: #fff;
}

.menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-btn:hover {
    background: var(--bginput);
    color: var(--accent);
}

.main {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--bginput);
    padding-bottom: 0.8rem;
}

.page-title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

h2 {
    font-size: 1rem;
    margin: 16px 0 8px;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.fuel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 245, 212, 0.35);
    background: rgba(0, 245, 212, 0.12);
    color: #d6fff8;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(0, 245, 212, 0.2);
}

.fuel-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.fuel-inline a,
.fuel-inline strong,
.fuel-inline span {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    font-size: 0.84rem;
}

.fuel-inline strong {
    color: var(--accent);
    border-color: rgba(0, 245, 212, 0.38);
    background: rgba(0, 245, 212, 0.15);
}

.table-wrap {
    margin-top: 1rem;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.12);
}

table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

th,
td {
    padding: 0.78rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

th {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
    background: rgba(0, 245, 212, 0.08);
}

.price {
    font-weight: 800;
    color: #f6feff;
}

.history-link {
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
}

.history-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 32, 39, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--bginput);
    z-index: 100;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
}

.nav-drawer.open {
    left: 0;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.nav-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
}

.nav-close:hover {
    background: var(--bginput);
    color: #ff6b6b;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.nav-menu a,
.nav-menu span {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.nav-menu a:hover {
    background: var(--bginput);
    color: var(--accent);
    transform: translateX(5px);
}

.nav-menu .active {
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

@media (max-width: 780px) {
    .main {
        padding: 1rem;
    }

    .panel {
        padding: 1rem;
        border-radius: 16px;
    }
}
