:root {
    --bg: #f8f4ef;
    --card: rgba(255, 255, 255, 0.92);
    --ink: #3e4744;
    --muted: #6f7775;
    --accent: #f9a77a;
    --accent-2: #8c9290;
    --ring: rgba(140, 146, 144, 0.28);
}


* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at 10% 10%, rgba(140, 146, 144, 0.2) 0%, transparent 36%), var(--bg);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    position: relative;
}

.bg-shape {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(20px);
}

.bg-shape-1 {
    right: 5%;
    top: 10%;
    width: 220px;
    height: 220px;
    background: rgba(249, 167, 122, 0.22);
}

.bg-shape-2 {
    left: -60px;
    bottom: 10%;
    width: 260px;
    height: 260px;
    background: rgba(204, 161, 118, 0.2);
}

.site-header,
.container,
.site-footer {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.brand {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    object-fit: cover;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0.1rem 0;
}

.menu-shell {
    position: relative;
    margin-left: auto;
}

.menu-toggle {
    background: var(--card);
    color: var(--ink);
    border: 1px solid rgba(140, 146, 144, 0.26);
    border-radius: 12px;
    width: 52px;
    height: 46px;
    padding: 0.6rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.32rem;
    box-shadow: 0 8px 18px rgba(140, 146, 144, 0.18);
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 36, 34, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 60;
}

.menu-popup {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(320px, calc(100vw - 2.5rem));
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(140, 146, 144, 0.3);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(62, 71, 68, 0.24);
    padding: 0.9rem;
    display: grid;
    gap: 0.45rem;
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 70;
}

.menu-popup a {
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-weight: 500;
}

body.menu-open {
    overflow: hidden;
}

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

body.menu-open .menu-popup {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.container { padding-bottom: 2rem; }

.card {
    background: var(--card);
    border: 1px solid rgba(140, 146, 144, 0.22);
    border-radius: 20px;
    padding: 1.15rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(140, 146, 144, 0.14);
}

.grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi {
    font-size: 1.6rem;
    font-weight: 700;
}

.text-muted { color: var(--muted); }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

th, td {
    text-align: left;
    border-bottom: 1px solid rgba(140, 146, 144, 0.2);
    padding: 0.65rem 0.25rem;
    white-space: nowrap;
}

.badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(204, 161, 118, 0.2);
    color: #6c5a49;
    font-size: 0.78rem;
}

.bike-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.bike-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(204, 161, 118, 0.18));
    border-radius: 14px;
    margin-bottom: 0.8rem;
}

button,
.button {
    border: none;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(140, 146, 144, 0.35);
    padding: 0.6rem 0.75rem;
    background: white;
    margin: 0.25rem 0 0.9rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px var(--ring);
}

.alert {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(140, 146, 144, 0.15);
    border-color: rgba(140, 146, 144, 0.35);
}

.alert-error {
    background: rgba(205, 52, 55, 0.08);
    border-color: rgba(205, 52, 55, 0.28);
}

.site-footer {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1rem 0 2rem;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
    }

    .brand {
        max-width: calc(100% - 72px);
    }

    h1 {
        font-size: 1.15rem;
    }

    .menu-toggle {
        position: absolute;
        top: 1.2rem;
        right: 0;
    }
}
