:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #121826;
    --muted: #667085;
    --primary: #ff5a5f;
    --primary-dark: #e94b50;
    --border: #e6e8ef;
    --shadow: 0 12px 30px rgba(18, 24, 38, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #ff8b5e);
    color: #fff;
    box-shadow: var(--shadow);
}

.searchbar {
    flex: 1;
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.searchbar input {
    flex: 1;
    border: 0;
    padding: 14px 18px;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.searchbar button {
    border: 0;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    gap: 18px;
    font-weight: 600;
    color: var(--muted);
}

.auth-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff3f3;
    color: var(--primary-dark);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-light {
    background: #fff;
    border-color: var(--border);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.footer {
    margin-top: 60px;
    padding: 40px 0 90px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer h4 {
    margin: 0 0 12px;
    color: #fff;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .desktop-nav,
    .auth-actions {
        display: none;
    }

    .topbar-inner {
        flex-wrap: wrap;
    }

    .searchbar {
        order: 3;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.96);
        border-top: 1px solid var(--border);
        box-shadow: 0 -10px 30px rgba(0,0,0,0.06);
        z-index: 1000;
    }

    .mobile-nav a {
        padding: 14px 8px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        color: var(--muted);
    }

    body {
        padding-bottom: 72px;
    }
}