:root {
    --bg: #07111f;
    --bg2: #0b1627;
    --surface: #0d182b;
    --surface-2: #101d32;
    --surface-3: #13233b;
    --line: rgba(98, 179, 234, 0.14);
    --line-strong: rgba(98, 179, 234, 0.24);

    --text: #edf4ff;
    --muted: #9bb0c9;
    --muted-2: #7f94ad;

    --primary: #62B3EA;
    --secondary: #395074;
    --accent: #0BA5AD;

    --danger: #ff7b7b;
    --danger-bg: rgba(255, 123, 123, 0.12);
    --danger-line: rgba(255, 123, 123, 0.25);

    --success-bg: rgba(11, 165, 173, 0.14);
    --success-line: rgba(11, 165, 173, 0.24);

    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.22);
    --sidebar-width: 270px;
    --radius: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Inter, system-ui, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(98, 179, 234, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(11, 165, 173, 0.05), transparent 18%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

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

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 28px 20px 24px;
    border-right: 1px solid rgba(98, 179, 234, 0.08);
    background:
        linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(8, 18, 32, 0.95) 100%);
}

.sidebar-brand {
    padding: 2px 2px 22px;
    border-bottom: 1px solid rgba(98, 179, 234, 0.08);
    margin-bottom: 20px;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.sidebar-nav {
    display: grid;
    gap: 4px;
}

.sidebar-btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    padding: 0 14px 0 16px;
    font-weight: 700;
    font-size: 15px;
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.sidebar-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background .18s ease;
}

.sidebar-btn:hover {
    background: rgba(98, 179, 234, 0.08);
    color: var(--text);
    transform: none;
}

.sidebar-btn.is-active,
.sidebar-btn[aria-current="page"] {
    background: rgba(98, 179, 234, 0.10);
    color: var(--text);
}

.sidebar-btn.is-active::before,
.sidebar-btn[aria-current="page"]::before {
    background: var(--primary);
}

.main-content {
    min-width: 0;
    padding: 18px 24px 28px;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.dashboard-stack {
    display: grid;
    gap: 18px;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.card {
    background: linear-gradient(180deg, rgba(13, 24, 43, 0.96) 0%, rgba(10, 20, 36, 0.96) 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px;
    min-width: 0;
}

.grid-stats .card {
    padding: 16px 18px 18px;
    position: relative;
    overflow: hidden;
}

.grid-stats .card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(98, 179, 234, 0.9), rgba(11, 165, 173, 0.7));
    border-radius: 999px;
    opacity: 0.95;
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0;
}
.toast {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 9999;

    min-width: 280px;
    max-width: min(92vw, 520px);
    padding: 14px 18px;
    border-radius: 14px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;

    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #0BA5AD, #62B3EA);
}

.toast.error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.plan-option {
    display: block;
    cursor: pointer;
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card {
    border: 1px solid rgba(98, 179, 234, 0.12);
    background: #172540;
    border-radius: 14px;
    padding: 16px;
    min-height: 120px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.plan-option:hover .plan-card {
    border-color: rgba(98, 179, 234, 0.28);
    transform: translateY(-1px);
}

.plan-option input:checked + .plan-card {
    border-color: rgba(98, 179, 234, 0.55);
    box-shadow: 0 0 0 3px rgba(98, 179, 234, 0.12);
    background: linear-gradient(180deg, rgba(98, 179, 234, 0.10), rgba(23, 37, 64, 1));
}

.plan-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.plan-copy {
    font-size: 14px;
}

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

.stat-value {
    font-size: clamp(32px, 2.4vw, 52px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text);
    word-break: break-word;
}

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

.section-head h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.btn:hover,
button:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 24px rgba(98, 179, 234, 0.16);
}

.btn-danger {
    background: var(--danger-bg);
    color: #ffd7d7;
    border-color: var(--danger-line);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    color: #ddffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.badge .muted {
    color: rgba(221, 255, 255, 0.72);
    font-size: 11px;
    margin-left: 2px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid rgba(98, 179, 234, 0.12);
    background: #172540;
    color: var(--text);
    padding: 12px 14px;
    outline: none;
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(98, 179, 234, 0.45);
    box-shadow: 0 0 0 3px rgba(98, 179, 234, 0.12);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

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

.full {
    grid-column: 1 / -1;
}

.equipment-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(98, 179, 234, 0.08);
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    table-layout: fixed;
}

thead th {
    text-align: left;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    padding: 10px 10px 12px;
    border-bottom: 1px solid rgba(98, 179, 234, 0.12);
    vertical-align: top;
}

tbody td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(98, 179, 234, 0.08);
    vertical-align: top;
    word-break: break-word;
    line-height: 1.3;
}

.jumps-table col:nth-child(1) { width: 52px; }
.jumps-table col:nth-child(2) { width: 110px; }
.jumps-table col:nth-child(3) { width: 140px; }
.jumps-table col:nth-child(4) { width: 110px; }
.jumps-table col:nth-child(5) { width: 60px; }
.jumps-table col:nth-child(6) { width: 140px; }
.jumps-table col:nth-child(7) { width: 92px; }
.jumps-table col:nth-child(8) { width: 130px; }
.jumps-table col:nth-child(9) { width: 220px; }
.jumps-table col:nth-child(10) { width: 140px; }
.jumps-table col:nth-child(11) { width: 220px; }
.jumps-table col:nth-child(12) { width: 120px; }

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

.error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-line);
    color: #ffd6d6;
}

.equipment-list {
    display: grid;
    gap: 6px;
}

.equipment-item {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(98, 179, 234, 0.12);
    background: rgba(98, 179, 234, 0.05);
    line-height: 1.2;
}

.video-frame {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
}

.actions-stack {
    display: grid;
    gap: 8px;
}

.mobile-jumps,
.mobile-gear {
    display: none;
}

.jump-card,
.gear-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(98, 179, 234, 0.08);
}

.jump-card-head,
.gear-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.jump-card-grid,
.gear-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.field-value {
    font-size: 15px;
    line-height: 1.35;
    color: var(--text);
}

.topbar,
.grid-main,
.grid-charts,
.grid-gear {
    display: block;
}

.login-box {
    max-width: 420px;
    margin: 72px auto;
}

@media (max-width: 1280px) {
    .grid-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(98, 179, 234, 0.08);
    }

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

    .main-content {
        padding: 18px 18px 24px;
    }

    .topbar-right {
        justify-content: flex-start;
    }

    .grid-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .desktop-jumps,
    .desktop-gear {
        display: none;
    }

    .mobile-jumps,
    .mobile-gear {
        display: grid;
        gap: 12px;
    }

    .form-grid,
    .equipment-box,
    .jump-card-grid,
    .gear-card-grid {
        grid-template-columns: 1fr;
    }

    .grid-stats {
        grid-template-columns: 1fr;
    }

    .video-frame {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .sidebar {
        padding: 18px 14px;
    }

    .main-content {
        padding: 14px;
    }

    .card {
        padding: 14px;
        border-radius: 16px;
    }

    .sidebar-brand h1 {
        font-size: 22px;
    }

    .stat-value {
        font-size: 34px;
    }
}

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #07111f;
}

.login-bg,
.login-overlay {
    position: absolute;
    inset: 0;
}

.login-bg {
    background:
        url('/assets/login-skydiving-bg.jpg') center center / cover no-repeat;
    transform: scale(1.03);
}

.login-overlay {
    background:
        linear-gradient(90deg, rgba(5, 12, 22, 0.82) 0%, rgba(7, 17, 31, 0.68) 38%, rgba(7, 17, 31, 0.78) 100%),
        radial-gradient(circle at top right, rgba(98, 179, 234, 0.16), transparent 26%),
        radial-gradient(circle at bottom left, rgba(11, 165, 173, 0.12), transparent 22%);
    backdrop-filter: blur(2px);
}

.login-layout {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 480px);
    align-items: center;
    gap: 48px;
    padding: 48px 56px;
}

.login-hero {
    max-width: 720px;
    color: #fff;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(98, 179, 234, 0.12);
    border: 1px solid rgba(98, 179, 234, 0.24);
    color: #dff3ff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.login-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
    max-width: 700px;
}

.login-hero p {
    margin: 0;
    max-width: 560px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
    color: rgba(237, 244, 255, 0.86);
}

.login-card {
    width: 100%;
    border-radius: 24px;
    padding: 28px;
    background: rgba(10, 20, 36, 0.72);
    border: 1px solid rgba(98, 179, 234, 0.16);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-card-head {
    margin-bottom: 20px;
}

.login-card-head h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-field label {
    display: block;
    margin-bottom: 7px;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    font-size: 15px;
}

.login-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.login-links .btn {
    flex: 1 1 180px;
}

@media (max-width: 1100px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px 32px;
    }

    .login-hero {
        max-width: none;
    }

    .login-card {
        max-width: 520px;
    }
}

@media (max-width: 640px) {
    .login-layout {
        padding: 18px 14px 22px;
    }

    .login-card {
        padding: 20px;
        border-radius: 20px;
    }

    .login-hero h1 {
        font-size: 40px;
    }

    .login-links {
        display: grid;
        grid-template-columns: 1fr;
    }
}
