:root {
    --bg-deep: #0c0c0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --accent-primary: #a3e635;
    /* Electric Moss */
    --accent-secondary: #38bdf8;
    /* Ascent Blue */
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --edge: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-main: 'Inter', sans-serif;
    --font-head: 'Outfit', sans-serif;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Mesh */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 10%, rgba(163, 230, 53, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--edge);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.logo .icon {
    font-size: 2rem;
}

.logo h1 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 12px 16px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-main);
    background: var(--bg-card);
}

.nav-btn.active {
    color: var(--accent-primary);
    background: rgba(163, 230, 53, 0.1);
}

.nav-footer {
    margin-top: auto;
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-main);
}

/* Main Content */
.content {
    flex: 1;
    padding: 60px 80px;
    max-width: 1200px;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.view-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    font-weight: 600;
}

.stat-card .value {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Cards List */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
}

.climb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.climb-card {
    background: var(--bg-card);
    border: 1px solid var(--edge);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
    cursor: default;
}

.climb-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-secondary);
    background: var(--bg-card-hover);
}

.card-grade {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.card-location {
    font-weight: 600;
    margin-bottom: 2px;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.card-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
}

.empty-state {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed var(--edge);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    color: var(--text-dim);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(163, 230, 53, 0.3);
}

.btn-block {
    width: 100%;
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent-secondary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    transform: translateY(20px);
    transition: transform 0.3s;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.glass {
    background: rgba(20, 20, 22, 0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--edge);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

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

/* Utils & Helpers */
.hidden {
    display: none;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--edge);
        padding: 20px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .content {
        padding: 40px 20px;
    }

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

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

    .calendar-grid {
        gap: 3px;
    }

    .cal-day {
        width: 10px;
        height: 10px;
    }
}