:root {
    --bg: #030503;
    --card: #111411;
    --card2: #171b17;
    --line: #2c332b;
    --text: #f4f7f1;
    --muted: #9ea79b;
    --green: #7CFF19;
    --green2: #55d800;
    --red: #ff5656;
    --orange: #ffb020;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: radial-gradient(circle at bottom right, rgba(124,255,25,.22), transparent 35%), var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(3,5,3,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124,255,25,.18);
}

.brand-mini img {
    height: 36px;
    max-width: 180px;
    object-fit: contain;
}

.top-link {
    color: var(--green);
    font-weight: 700;
}

.mobile-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px;
    padding-bottom: 110px;
}

.logo-large {
    display: block;
    width: min(300px, 82vw);
    margin: 45px auto 24px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.card + .card { margin-top: 14px; }

h1, h2, h3 { margin: 0 0 12px; }

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

.field {
    display: block;
    margin-bottom: 14px;
}

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

input, select, textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.14);
    background: #0b0e0b;
    color: var(--text);
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: #151915;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(180deg, var(--green), var(--green2));
    color: #071006;
    border: 0;
}

.btn.danger { border-color: rgba(255,86,86,.4); color: #ffd7d7; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 0 12px; width: auto; font-size: 14px; }

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.route-card {
    display: block;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(124,255,25,.14);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.badge.orange { background: rgba(255,176,32,.12); color: var(--orange); }
.badge.red { background: rgba(255,86,86,.12); color: var(--red); }

.point-title {
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.point-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
}

.counter {
    background: var(--card2);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 14px;
}

.counter label {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    text-align: center;
}

.counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.counter button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(124,255,25,.45);
    background: transparent;
    color: var(--green);
    font-size: 24px;
    font-weight: 900;
}

.counter input {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    padding: 8px;
}

.pills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #0b0e0b;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 5px;
    gap: 5px;
}

.pills label {
    text-align: center;
    padding: 11px 6px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 800;
}

.pills input { display: none; }
.pills input:checked + span,
.pills label:has(input:checked) {
    background: var(--green);
    color: #061006;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 20;
    width: min(520px, calc(100vw - 22px));
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(10,13,10,.94);
    border: 1px solid rgba(124,255,25,.22);
    backdrop-filter: blur(10px);
}

.bottom-nav a {
    text-align: center;
    padding: 12px 6px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    font-weight: 800;
    font-size: 14px;
}

.flash {
    border-radius: 16px;
    padding: 13px 15px;
    margin-bottom: 14px;
    background: rgba(124,255,25,.12);
    border: 1px solid rgba(124,255,25,.25);
}
.flash.error {
    background: rgba(255,86,86,.12);
    border-color: rgba(255,86,86,.28);
}

.table-list {
    display: grid;
    gap: 10px;
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.action-row .btn { flex: 1; min-width: 130px; }

@media (max-width: 380px) {
    .grid2 { grid-template-columns: 1fr; }
    .point-title { font-size: 22px; }
}
