:root {
    --blue: #1546b6;
    --blue-dark: #0f348b;
    --gold: #e28306;
    --text: #0f172a;
    --muted: #667085;
    --surface: #f4f7fb;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #eef2f8;
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: var(--gold);
    color: var(--blue);
    font-weight: 800;
    font-size: 30px;
    display: grid;
    place-items: center;
}

.brand-name {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
}

.desktop-nav {
    display: none;
    gap: 16px;
    font-weight: 600;
}

.desktop-nav a {
    opacity: 0.95;
}

.desktop-nav a.active,
.desktop-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.menu-btn {
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

.hero {
    background: linear-gradient(180deg, rgba(20, 68, 183, 0.94), rgba(20, 68, 183, 0.9));
    color: var(--white);
    padding: 66px 0 76px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 68px);
    margin-bottom: 8px;
}

.hero p {
    font-size: clamp(20px, 2.2vw, 30px);
    max-width: 850px;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700;
    border: 0;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.section {
    padding: 56px 0;
}

.section h2 {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 6px;
}

.section-sub {
    color: var(--muted);
    font-size: clamp(18px, 2vw, 28px);
    margin-bottom: 22px;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--white);
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 16px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card p {
    font-size: 17px;
    color: #4a5568;
}

.meta {
    display: inline-block;
    margin-top: 8px;
    background: #eff3fb;
    border: 1px solid #d6deef;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 14px;
    color: #3f4c66;
}

.filters {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.input,
.select {
    width: 100%;
    height: 48px;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    font-size: 16px;
}

.table-wrap {
    background: var(--white);
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eef2f9;
}

th {
    background: #f8faff;
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
}

.drawer.open {
    display: block;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 19, 42, 0.48);
}

.drawer-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: min(86%, 370px);
    height: 100%;
    background: var(--blue);
    color: var(--white);
    padding: 18px;
}

.drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.drawer-links {
    display: grid;
    gap: 6px;
}

.drawer-links a {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
}

.drawer-links a.active,
.drawer-links a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.drawer-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 34px 0;
    margin-top: 42px;
}

.footer h3 {
    font-size: 30px;
}

.footer p {
    opacity: 0.92;
}

.footer-signature {
    margin-top: 18px;
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-signature a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-signature a:hover {
    opacity: 1;
}

.footer-app {
    margin-top: 12px;
}

.footer-app a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-app a:hover {
    opacity: 1;
}

.notice {
    margin-top: 14px;
    background: #fff5e8;
    border: 1px solid #ffd6a2;
    color: #8a4b02;
    padding: 12px;
    border-radius: 12px;
}

.flash {
    margin-top: 14px;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.flash-success {
    background: #e6f7ef;
    color: #0d6836;
    border: 1px solid #a7dfbe;
}

.flash-error {
    background: #feeceb;
    color: #9a251f;
    border: 1px solid #f5b5b1;
}

.user-badge {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.auth-layout {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.auth-form {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 18px;
}

.auth-form .input,
.auth-form .select,
.auth-form textarea {
    margin-bottom: 10px;
}

.auth-form textarea {
    width: 100%;
    border: 1px solid #d6dce8;
    border-radius: 12px;
    min-height: 120px;
    padding: 10px 12px;
    font-size: 16px;
    resize: vertical;
}

.profile-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid #d9e1ef;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f5fb;
    color: #5f6d86;
    border: 1px dashed #c7d3ea;
}

.member-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 8px;
}

@media (min-width: 920px) {
    .desktop-nav {
        display: flex;
    }

    .menu-btn {
        display: none;
    }

    .filters {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
