/* ==========================================================
   CITIZEN DASHBOARD
   GRAND CITADEL COMMONWEALTH
========================================================== */

:root {
    --black: #050505;
    --panel: #101010;
    --panel-soft: #171717;
    --gold: #d4af37;
    --gold-soft: #efd37c;
    --text: #eee8d6;
    --muted: #b7ad93;
    --border: rgba(212, 175, 55, 0.24);
    --transition: 0.35s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            rgba(212, 175, 55, 0.1),
            transparent 42%
        ),
        var(--black);

    color: var(--text);
    font-family: "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.citizen-dashboard {
    position: relative;
    z-index: 1;

    width: min(1400px, 94%);
    margin: 0 auto;
    padding: 3rem 0 6rem;
}

.dashboard-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(212, 175, 55, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 82% 34%,
            rgba(212, 175, 55, 0.05),
            transparent 30%
        );
}
/* ==========================================================
   CITIZEN IDENTITY HEADER
========================================================== */

.dashboard-header {
    margin-bottom: 2rem;
    padding: 2rem;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.1),
            rgba(255, 255, 255, 0.02)
        ),
        var(--panel);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.citizen-identity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.citizen-seal {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;

    border: 1px solid var(--gold);
    border-radius: 50%;
    overflow: hidden;

    background: #050505;

    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(212, 175, 55, 0.12);
}

.citizen-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 20%;
}

.citizen-info {
    min-width: 0;
}

.citizen-status {
    margin: 0 0 0.5rem;

    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

#citizen-name {
    margin: 0;

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1;
}

.citizen-number {
    margin: 0.7rem 0 0;

    color: var(--muted);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}
/* ==========================================================
   STATUS CARDS
========================================================== */

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;

    margin-bottom: 2rem;
}

.status-card {
    min-height: 150px;
    padding: 1.4rem;

    border: 1px solid var(--border);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.07),
            rgba(255, 255, 255, 0.015)
        ),
        var(--panel);

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.status-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.55);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.42),
        0 0 26px rgba(212, 175, 55, 0.08);
}
/* ==========================================================
   QUICK ACTIONS
========================================================== */

.quick-actions {
    margin: 3rem 0;
}

.quick-actions h2 {
    margin-bottom: 1.25rem;

    color: var(--gold-soft);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.action-card {
    padding: 1.4rem;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(255,255,255,.02);

    text-decoration: none;
    color: inherit;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);

    border-color: rgba(212,175,55,.55);

    background: rgba(212,175,55,.06);
}

.action-card h3 {
    margin: 0 0 .65rem;

    color: var(--gold-soft);

    font-size: 1.15rem;
    font-weight: 500;
}

.action-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.6;
}
/* ==========================================================
   GOVERNMENT SERVICES
========================================================== */

.government-services,
.activity-feed {
    margin-top: 3rem;
    padding: 2rem;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.05),
            rgba(255, 255, 255, 0.015)
        ),
        var(--panel);
}

.government-services h2,
.activity-feed h2 {
    margin: 0 0 1.4rem;

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-grid a {
    min-height: 110px;
    padding: 1.25rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.018);

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    text-align: center;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.service-grid a:hover {
    transform: translateY(-4px);

    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.06);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.34),
        0 0 22px rgba(212, 175, 55, 0.07);
}

.activity-feed {
    min-height: 220px;
}
/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .status-grid
    .action-grid,
    .service-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

}

@media (max-width: 768px) {

    .citizen-dashboard {
        padding: 2rem 0 4rem;
        width: min(94%, 100%);
    }

   .citizen-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

    .status-grid,
    .action-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    #citizen-name {
        font-size: clamp(2rem, 10vw, 3rem);
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;

    }

}

/* ==========================================================
   SOCIAL COMMONWEALTH
========================================================== */

.social-commonwealth {
    margin: 2rem 0;
    padding: 2rem;

    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 18px;

    background:
        radial-gradient(
            circle at top left,
            rgba(212, 175, 55, 0.12),
            transparent 42%
        ),
        var(--panel);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.38),
        0 0 34px rgba(212, 175, 55, 0.06);
}

.section-heading p {
    margin: 0 0 0.45rem;

    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.section-heading h2 {
    margin: 0 0 1.5rem;

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.social-card {
    min-height: 180px;
    padding: 1.35rem;

    display: flex;
    align-items: flex-start;
    gap: 1rem;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.018);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.social-card:hover {
    transform: translateY(-5px);

    border-color: rgba(212, 175, 55, 0.62);
    background: rgba(212, 175, 55, 0.07);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.4),
        0 0 26px rgba(212, 175, 55, 0.09);
}

.social-card__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid var(--gold);
    border-radius: 50%;

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;

    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.14);
}

.social-card h3 {
    margin: 0 0 0.55rem;

    color: var(--gold-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.social-card p {
    margin: 0;

    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   CITIZEN CHAMBER ACCESS
   ========================================================= */

.citizen-chamber-access {
    width: 100%;
    margin-top: 32px;
}

.citizen-chamber-card {
    position: relative;
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background:
        radial-gradient(
            circle at top right,
            rgba(212, 175, 55, 0.12),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            rgba(89, 13, 13, 0.24),
            rgba(10, 10, 10, 0.98) 42%
        );
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.03);
}

.citizen-chamber-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    pointer-events: none;
}

.citizen-chamber-card > * {
    position: relative;
    z-index: 1;
}

.citizen-chamber-card .section-kicker {
    margin: 0 0 10px;
    color: #d4af37;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.citizen-chamber-card h2 {
    margin: 0 0 14px;
    color: #f5f0df;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.citizen-chamber-card > p:not(.section-kicker) {
    max-width: 760px;
    margin: 0 0 24px;
    color: #b8ad8c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.citizen-chamber-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid #f2d675;
    color: #080808;
    background:
        linear-gradient(
            180deg,
            #f2d675,
            #d4af37
        );
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.citizen-chamber-button:hover,
.citizen-chamber-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.27);
    outline: none;
}

@media (max-width: 600px) {
    .citizen-chamber-card {
        padding: 28px 22px;
    }

    .citizen-chamber-button {
        width: 100%;
    }
}