﻿body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.09), transparent 60%),
        radial-gradient(circle at 90% 20%, rgba(34, 197, 94, 0.08), transparent 55%);
    background-attachment: fixed;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

body[data-auth="on"] {
    background-color: #0f172a;
    background-image:
        radial-gradient(circle at 5% 15%, rgba(14, 165, 233, 0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.14), transparent 60%),
        radial-gradient(circle at 30% 75%, rgba(45, 212, 191, 0.08), transparent 65%);
}

.page-shell {
    padding-top: 6.5rem;
}

@media (max-width: 768px) {
    .page-shell {
        padding-top: 5.5rem;
    }
}

.app-shell {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(71, 85, 105, 0.35);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px -30px rgba(15, 118, 110, 0.6);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-shell--auth {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(34, 197, 94, 0.18), rgba(59, 130, 246, 0.18));
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 26px 60px -35px rgba(59, 130, 246, 0.6);
}

.app-shell__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.app-shell__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-decoration: none;
}

.app-shell__brand-primary {
    color: #f8fafc;
}

.app-shell__brand-secondary {
    color: #38bdf8;
}

.app-shell--auth .app-shell__brand-secondary {
    color: #22d3ee;
}

.app-shell__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: none;
    background: rgba(30, 41, 59, 0.85);
    cursor: pointer;
    gap: 0.35rem;
    flex-direction: column;
    transition: background 0.3s ease;
}

.app-shell__toggle span {
    display: block;
    width: 1.4rem;
    height: 2px;
    border-radius: 9999px;
    background: #cbd5f5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.app-shell--menu-open .app-shell__toggle span:nth-child(2) {
    opacity: 0;
}

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

.app-shell__collapse {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.app-shell__nav {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-shell__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-shell__link:hover,
.app-shell__link:focus-visible {
    background: rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
}

.app-shell__link--active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
    color: #ffffff;
    box-shadow: 0 15px 35px -25px rgba(59, 130, 246, 0.9);
}

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

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    color: #bbf7d0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body[data-auth="on"] .auth-chip {
    background: rgba(45, 212, 191, 0.2);
    color: #a7f3d0;
}

.app-shell__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.app-shell__cta--primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(129, 140, 248, 0.95));
    color: #ffffff;
    box-shadow: 0 18px 35px -25px rgba(79, 70, 229, 0.8);
}

.app-shell__cta--primary:hover,
.app-shell__cta--primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 25px 40px -30px rgba(99, 102, 241, 0.85);
}

.app-shell__cta--secondary {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.app-shell__cta--secondary:hover,
.app-shell__cta--secondary:focus-visible {
    background: rgba(148, 163, 184, 0.28);
}

@media (max-width: 900px) {
    .app-shell__toggle {
        display: inline-flex;
    }

    .app-shell__inner {
        position: relative;
    }

    .app-shell__collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 1.25rem 1.5rem 1.5rem;
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid rgba(71, 85, 105, 0.35);
        box-shadow: 0 18px 40px -25px rgba(15, 23, 42, 0.7);
    }

    .app-shell--menu-open .app-shell__collapse {
        display: flex;
    }

    .app-shell__nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .app-shell__link {
        width: 100%;
    }

    .app-shell__account {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .app-shell__cta {
        width: 100%;
        justify-content: center;
    }
}

.hub-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.hub-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.2), 0 10px 10px -5px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.hub-card-icon {
    font-size: 6rem;
    transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.75s ease-in-out;
}

.hub-card:hover .shine-effect::before {
    left: 150%;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #4b5563;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #374151;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    background-color: #1f2937;
}
