:root {
    --bg: #f5f1ea;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --border: rgba(90, 72, 52, 0.12);
    --text: #2f2a24;
    --muted: #756c61;
    --accent: #6c7d5c;
    --accent-strong: #556447;
    --accent-soft: rgba(108, 125, 92, 0.12);
    --shadow: 0 24px 70px rgba(53, 39, 23, 0.08);
    --radius-xl: 28px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(108, 125, 92, 0.16), transparent 30%),
        radial-gradient(circle at left 20%, rgba(184, 151, 92, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, #f8f4ee 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1rem, 3vw, 2rem);
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--muted);
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.nav-pill.primary {
    color: var(--accent-strong);
    background: rgba(108, 125, 92, 0.08);
    border-color: rgba(108, 125, 92, 0.18);
}

.nav-pill[aria-current="page"] {
    color: var(--accent-strong);
    background: rgba(108, 125, 92, 0.08);
    border-color: rgba(108, 125, 92, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #8e9d7d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--shadow);
    color: #fff;
}

.brand-mark i {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.page-content {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 2rem;
    flex: 1;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(86, 101, 71, 0.2);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text);
    border-color: var(--border);
}

@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .topbar-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .brand {
        justify-content: center;
        width: 100%;
    }

    .nav-pill {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-content {
        width: min(100%, calc(100% - 1rem));
    }
}

@media (max-width: 520px) {
    .topbar {
        padding: 1rem 0.75rem;
    }

    .brand {
        gap: 0.65rem;
        font-size: 0.98rem;
    }

    .brand-mark {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 0.85rem;
    }

    .topbar-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-pill {
        width: 100%;
    }
}