/* ============================================================
   Phi Sigma Rho — Main Stylesheet
   Aesthetic: Refined, feminine, editorial
   Colors: Purple Dragon (#C6BEDD) & Serene Sea (#71A8C0)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Nunito+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Brand palette — overridden dynamically from DB via <style> in header */
    --sk-violet:        #C6BEDD;   /* Purple Dragon */
    --sk-violet-light:  #8A7BA8;
    --sk-violet-pale:   #EDE9F4;
    --sk-violet-ghost:  #F6F3FA;
    --sk-gold:          #71A8C0;   /* Serene Sea */
    --sk-gold-light:    #93C4D6;
    --sk-gold-pale:     #E2F0F5;

    /* Neutrals */
    --white:            #FFFFFF;
    --off-white:        #FAFAFA;
    --gray-100:         #F5F5F5;
    --gray-200:         #EEEEEE;
    --gray-300:         #DDDDDD;
    --gray-400:         #BDBDBD;
    --gray-500:         #9E9E9E;
    --gray-600:         #757575;
    --gray-700:         #616161;
    --gray-800:         #424242;
    --gray-900:         #212121;
    --black:            #0D0D0D;

    /* Semantic */
    --success:          #2E7D32;
    --danger:           #C62828;
    --warning:          #F57F17;
    --info:             #1565C0;

    /* Typography */
    --font-display:     'Cormorant Garamond', Georgia, serif;
    --font-body:        'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Layout */
    --max-width:        1280px;
    --header-height:    80px;
    --sidebar-width:    280px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:   0 8px 30px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 20px rgba(91,44,111,0.15);

    /* Borders */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--sk-violet);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--sk-violet-light); }

img { max-width: 100%; height: auto; display: block; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gray-900);
}
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--space-md); }

.text-violet { color: var(--sk-violet); }
.text-gold   { color: var(--sk-gold); }
.text-muted  { color: var(--gray-600); }
.text-small  { font-size: 0.875rem; }
.text-center { text-align: center; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ── Header / Navigation ───────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sk-violet);
    letter-spacing: -0.01em;
}

.site-logo .logo-text span {
    color: var(--sk-gold);
}

.site-logo .logo-mark {
    width: 42px;
    height: 42px;
    background: var(--sk-violet);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--sk-violet);
    background: var(--sk-violet-pale);
}

.nav-cta {
    background: var(--sk-violet) !important;
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
}
.nav-cta:hover {
    background: var(--sk-violet-light) !important;
    color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    margin: 5px 0;
    transition: 0.3s;
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--sk-violet) 0%, #3D1952 50%, #1A0D26 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(197,148,42,0.15)"/><circle cx="80" cy="40" r="0.5" fill="rgba(197,148,42,0.1)"/><circle cx="50" cy="70" r="0.8" fill="rgba(197,148,42,0.12)"/><circle cx="10" cy="80" r="0.3" fill="rgba(255,255,255,0.08)"/><circle cx="90" cy="10" r="0.6" fill="rgba(255,255,255,0.06)"/></svg>');
    background-size: 150px 150px;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--off-white), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: var(--space-3xl) var(--space-xl);
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-content h1 em {
    font-style: italic;
    color: var(--sk-gold-light);
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto var(--space-xl);
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sk-gold-light);
    border: 1px solid rgba(197,148,42,0.4);
    padding: var(--space-xs) var(--space-lg);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--sk-violet);
    color: var(--white);
    border-color: var(--sk-violet);
}
.btn-primary:hover {
    background: var(--sk-violet-light);
    border-color: var(--sk-violet-light);
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-gold {
    background: var(--sk-gold);
    color: var(--white);
    border-color: var(--sk-gold);
}
.btn-gold:hover {
    background: var(--sk-gold-light);
    border-color: var(--sk-gold-light);
    color: var(--gray-900);
}

.btn-outline {
    background: transparent;
    color: var(--sk-violet);
    border-color: var(--sk-violet);
}
.btn-outline:hover {
    background: var(--sk-violet);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Section Layout ────────────────────────────────────────── */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.gold-rule {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--sk-gold);
    margin: var(--space-md) auto;
    border-radius: 2px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-200);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
}

.card-body p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Pillars / Values Section ──────────────────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.pillar-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out);
}

.pillar-card:hover {
    border-color: var(--sk-violet-light);
    box-shadow: var(--shadow-glow);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--sk-violet-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: 1.75rem;
}

.pillar-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    color: var(--sk-violet);
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
    background: var(--sk-violet);
    color: var(--white);
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--sk-gold-light);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--sk-gold) 0%, #A77B1E 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    color: var(--white);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-band p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-band .btn {
    background: var(--white);
    color: var(--sk-gold);
    border-color: var(--white);
}
.cta-band .btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li { margin-bottom: var(--space-sm); }

.footer-col ul li a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--sk-violet);
    box-shadow: 0 0 0 3px rgba(91,44,111,0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%23757575" stroke-width="1.5" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-2xl);
    max-width: 500px;
    margin: var(--space-2xl) auto;
}

.form-card h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ── Alert Messages ────────────────────────────────────────── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success {
    background: #E8F5E9;
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: #FFEBEE;
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: #FFF8E1;
    border-color: var(--warning);
    color: #BF360C;
}

.alert-info {
    background: #E3F2FD;
    border-color: var(--info);
    color: var(--info);
}

/* ── Dashboard Layout ──────────────────────────────────────── */
.dashboard {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: var(--space-lg) 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem var(--space-lg);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--sk-violet);
    background: var(--sk-violet-ghost);
    border-left-color: var(--sk-violet);
}

.sidebar-section {
    padding: var(--space-md) var(--space-lg) var(--space-xs);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    font-weight: 700;
}

.dashboard-main {
    flex: 1;
    padding: var(--space-xl) var(--space-2xl);
    background: var(--gray-100);
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.dashboard-header h1 {
    font-size: 2rem;
}

/* ── Photo Gallery ─────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-thumb .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    color: var(--white);
    font-size: 0.85rem;
}

.gallery-thumb:hover .overlay {
    opacity: 1;
}

.gallery-lock {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0,0,0,0.6);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
}

/* ── Forum Styles ──────────────────────────────────────────── */
.forum-list {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.forum-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.2s;
}

.forum-item:last-child { border-bottom: none; }
.forum-item:hover { background: var(--sk-violet-ghost); }

.forum-icon {
    width: 48px;
    height: 48px;
    background: var(--sk-violet-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.forum-item-body { flex: 1; }
.forum-item-body h4 { margin-bottom: 2px; }
.forum-item-body p { font-size: 0.85rem; color: var(--gray-600); margin: 0; }

.forum-stats {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

.thread-post {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--sk-violet-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--sk-violet);
    flex-shrink: 0;
}

.post-content { flex: 1; }
.post-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}

/* ── Member Directory / Profile ────────────────────────────── */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.member-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.member-card:hover {
    box-shadow: var(--shadow-md);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    background: var(--sk-violet-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sk-violet);
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    background: var(--sk-violet-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--sk-violet);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-info h2 { margin-bottom: var(--space-xs); }

.profile-detail {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
}

.profile-detail dt {
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
    margin-top: var(--space-xl);
}

.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--sk-violet);
    color: var(--sk-violet);
}

.pagination .active {
    background: var(--sk-violet);
    border-color: var(--sk-violet);
    color: var(--white);
}

/* ── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tag-violet { background: var(--sk-violet-pale); color: var(--sk-violet); }
.tag-gold   { background: var(--sk-gold-pale); color: var(--sk-gold); }

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--danger);
    color: var(--white);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    .main-nav.open { display: flex; }

    .hero-content h1 { font-size: 2.5rem; }
    .pillars-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-grid-3 { grid-template-columns: 1fr; }

    .dashboard { flex-direction: column; }
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }
    .dashboard-main { padding: var(--space-lg); }

    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-detail { grid-template-columns: 1fr; text-align: left; }
}
