/**
 * main.css - Primary Stylesheet
 * Uncarcerated.org v0.1.0
 *
 * Design System:
 * - Dark backgrounds (#1B1E1A) + muted green (#4A7C59) + light sections (#F5F5F0)
 * - Font: Outfit (Google Fonts)
 * - Desktop-first responsive: 900px / 768px / 480px
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Dark backgrounds */
    --bg-darkest: #1B1E1A;
    --bg-dark: #252923;
    --bg-dark-elevated: #2E332B;

    /* Muted green family */
    --green-primary: #4A7C59;
    --green-hover: #5A9A6B;
    --green-dark: #3A6347;
    --green-subtle: #2D4A35;
    --green-light: #E8F0EB;

    /* Light backgrounds */
    --bg-light: #F5F5F0;
    --bg-white: #FFFFFF;

    /* Text */
    --text-on-dark: #F2F2F0;
    --text-on-light: #1B1E1A;
    --text-secondary: #6B7168;
    --text-muted: #8A8E87;

    /* Borders */
    --border-dark: #3A3F37;
    --border-light: #E2E8E4;

    /* Status */
    --color-error: #C0392B;
    --color-warning: #D4A843;
    --color-info: #5B8BA0;
    --color-success: #4A7C59;

    /* 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 */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green-hover);
}

a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

ul, ol {
    list-style: none;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-primary);
    color: var(--bg-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center {
    text-align: center;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    background-color: var(--bg-darkest);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-dark);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 110px;
    padding-top: 28px;
    position: relative;
}

/* Left and right nav groups */
.nav-left,
.nav-right {
    display: flex;
    gap: var(--space-sm);
    flex: 1;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 39px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 39px;
}

/* Nav pills (green buttons) */
.nav-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: var(--green-subtle);
    color: var(--text-on-dark);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    pointer-events: auto;
}

.nav-pill:hover,
.nav-pill.active {
    background-color: var(--green-primary);
    color: var(--bg-white);
}

/* Centered logo (positioned behind nav pills) */
.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.logo-img {
    height: 95px;
    width: auto;
}

/* Auth area */
.nav-auth {
    position: absolute;
    right: var(--container-padding);
    top: 28px;
    z-index: 3;
}

.nav-auth-link {
    color: var(--text-on-dark);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

.nav-auth-link:hover {
    opacity: 1;
    color: var(--green-hover);
}

.nav-user-icon {
    color: var(--green-primary);
    margin-right: var(--space-xs);
}

/* Utility links (Donate, Impact) below auth */
.nav-utility-links {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    margin-top: 6px;
}

.nav-utility-link {
    color: var(--text-on-dark);
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.55;
    transition: var(--transition);
    letter-spacing: 0.03em;
}

.nav-utility-link:hover {
    opacity: 1;
    color: var(--green-hover);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    position: absolute;
    right: var(--container-padding);
    top: 28px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-on-dark);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* Mobile nav */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: var(--space-lg) 0;
    z-index: 999;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-link {
    display: block;
    padding: var(--space-md) var(--container-padding);
    color: var(--text-on-dark);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    background-color: var(--bg-dark-elevated);
    color: var(--green-hover);
}

.nav-mobile-cta {
    background-color: var(--green-primary);
    color: var(--bg-white);
    margin: var(--space-md) var(--container-padding);
    border-radius: var(--radius-md);
    text-align: center;
    padding: var(--space-md);
}

.nav-mobile-divider {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: var(--space-md) var(--container-padding);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar {
    background-color: var(--bg-dark);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-dark);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    background-color: var(--bg-dark-elevated);
    color: var(--text-on-dark);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.3);
}

.search-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--green-hover);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    background-color: var(--bg-light);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin-right: var(--space-xs);
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--green-primary);
}

.breadcrumb-item.active {
    color: var(--text-on-light);
    font-weight: 600;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-message {
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-md) auto;
    max-width: var(--container-max);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.flash-success { background-color: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.flash-error   { background-color: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }
.flash-warning { background-color: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.flash-info    { background-color: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 var(--space-sm);
}

.flash-close:hover {
    opacity: 1;
}

/* ============================================================
   EMAIL VERIFICATION BANNER
   ============================================================ */
.verify-banner {
    background-color: #FFF3CD;
    border-bottom: 1px solid #FFE082;
    padding: var(--space-sm) 0;
    text-align: center;
}

.verify-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.verify-banner-text {
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;
}

.verify-banner-link {
    color: #856404;
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
}

.verify-banner-link:hover {
    color: #533F03;
}

.verify-email-info {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

.verify-email-info strong {
    color: var(--text-on-light);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-dark {
    background-color: var(--bg-darkest);
    color: var(--text-on-dark);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-on-light);
}

.section-cta {
    background-color: var(--bg-darkest);
    color: var(--text-on-dark);
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    text-align: center;
}

.section-title-light {
    color: var(--text-on-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background-color: var(--bg-darkest);
    color: var(--text-on-dark);
    padding: 5rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.hero-accent {
    color: var(--green-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--green-primary);
    color: var(--bg-white);
    border-color: var(--green-primary);
}

.btn-primary:hover {
    background-color: var(--green-hover);
    border-color: var(--green-hover);
    color: var(--bg-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.btn-outline:hover {
    background-color: var(--green-primary);
    color: var(--bg-white);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-on-dark);
    border-color: var(--text-on-dark);
}

.btn-outline-light:hover {
    background-color: var(--text-on-dark);
    color: var(--bg-darkest);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
    display: grid;
    gap: var(--space-xl);
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
}

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

.card-dark {
    background-color: var(--bg-dark);
    border-color: var(--border-dark);
    color: var(--text-on-dark);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.card-dark .card-text {
    color: var(--text-muted);
}

.card-link {
    color: var(--green-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: var(--green-hover);
}

.card-link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.card-link-card:hover {
    border-color: var(--green-primary);
}

.card-link-card .card-text {
    margin-bottom: 0;
}

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: var(--space-sm);
}

.founder-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.founder-roles {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.podcast-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: var(--bg-darkest);
    color: var(--text-on-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-dark);
}

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

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-on-dark);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--green-hover);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-link {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--green-hover);
}

/* Newsletter */
.newsletter-input-group {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.newsletter-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    color: var(--text-on-dark);
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--green-primary);
}

.newsletter-btn {
    padding: 0.6rem 1.25rem;
    background-color: var(--green-primary);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--green-hover);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-dark);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--green-hover);
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
    padding: 6rem 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.error-message {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

/* ============================================================
   FORMS (base styles)
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    color: var(--text-on-light);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

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

/* ============================================================
   COMPACT HERO (sub-pages)
   ============================================================ */
.hero-compact {
    padding: 3rem 0 2.5rem;
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.content-block {
    max-width: 800px;
}

.content-block-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ============================================================
   ABOUT: FOUNDER FULL BIO
   ============================================================ */
.founder-full-block {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.founder-full-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: var(--space-xs);
}

.founder-full-title {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.founder-full-content p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.founder-roles-list {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-dark);
}

.founder-roles-list h4 {
    color: var(--text-on-dark);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
}

.founder-roles-list ul {
    list-style: none;
    padding: 0;
}

.founder-roles-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.founder-roles-list li::before {
    content: '\2022';
    color: var(--green-primary);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: var(--space-xs);
}

/* Founder sidebar */
.founder-full-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.founder-podcast-card {
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.founder-podcast-card h4 {
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.founder-podcast-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.founder-podcast-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.founder-podcast-links .btn {
    text-align: center;
}

/* Image placeholder */
.image-placeholder {
    background-color: var(--bg-dark-elevated);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    max-height: 350px;
}

.image-placeholder-sm {
    aspect-ratio: 1 / 1;
    max-height: 80px;
    width: 80px;
    border-radius: 50%;
}

.image-placeholder-text {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================================
   ABOUT: TEAM CARDS
   ============================================================ */
.team-card {
    text-align: center;
}

.team-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.team-role {
    color: var(--green-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.team-card-open {
    border-style: dashed;
}

/* ============================================================
   ABOUT: PARTNER GRID
   ============================================================ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.partner-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--green-primary);
}

.partner-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-on-light);
}

.partner-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   ABOUT: FAQ
   ============================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-dark);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-dark);
}

.faq-question {
    display: block;
    padding: var(--space-lg) 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-on-dark);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: var(--space-xl);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--green-primary);
    transition: var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '\2212';
}

.faq-answer {
    padding: 0 0 var(--space-lg) 0;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-answer a {
    color: var(--green-hover);
}

.faq-answer a:hover {
    color: var(--green-primary);
}

/* ============================================================
   DONATE: ALLOCATION CARDS
   ============================================================ */
.allocation-card {
    text-align: center;
}

.allocation-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

/* ============================================================
   DONATE: IMPACT STORIES
   ============================================================ */
.impact-story-card {
    text-align: center;
    padding: var(--space-xl);
}

.impact-story-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: var(--space-md);
}

/* ============================================================
   DONATE: PLACEHOLDER
   ============================================================ */
.donate-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.donate-placeholder {
    background-color: var(--bg-dark-elevated);
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    margin-top: var(--space-xl);
}

.donate-placeholder-inner h3 {
    color: var(--text-on-dark);
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.donate-placeholder-inner p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.donate-placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.donate-contact-options {
    margin: var(--space-xl) 0;
}

.donate-placeholder-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

.donate-placeholder-note small {
    font-size: 0.8rem;
}

/* ============================================================
   IMPACT: METRIC CARDS
   ============================================================ */
.metric-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* ============================================================
   IMPACT: GOALS / PROGRESS
   ============================================================ */
.goals-list {
    max-width: 800px;
    margin: 0 auto;
}

.goal-item {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-dark);
}

.goal-item:last-child {
    border-bottom: none;
}

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

.goal-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-on-dark);
}

.goal-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.goal-status-active {
    background-color: var(--green-primary);
    color: var(--bg-white);
}

.goal-status-building {
    background-color: var(--color-warning);
    color: var(--bg-darkest);
}

.goal-status-planned {
    background-color: var(--bg-dark-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
}

.goal-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-dark-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.progress-fill {
    height: 100%;
    background-color: var(--green-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.goal-percent {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
   AUTH: CONTAINER & TABS
   ============================================================ */
.auth-container {
    max-width: 520px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: var(--space-xl);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    text-decoration: none;
}

.auth-tab:hover {
    color: var(--green-primary);
}

.auth-tab.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

.auth-panel {
    padding: var(--space-lg) 0;
}

/* Auth errors */
.auth-errors {
    background-color: #FFEBEE;
    border: 1px solid #EF9A9A;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.auth-error {
    color: #C62828;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: var(--space-xs) 0;
}

.auth-error a {
    color: #C62828;
    text-decoration: underline;
}

.auth-error a:hover {
    color: #B71C1C;
}

/* Auth greeting */
.auth-greeting {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* Auth form helpers */
.auth-form {
    max-width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

.auth-alt-links {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-alt-links a {
    color: var(--green-primary);
    font-weight: 600;
}

.auth-alt-links a:hover {
    color: var(--green-hover);
}

.auth-alt-divider {
    margin: 0 var(--space-sm);
    color: var(--text-muted);
}

/* ============================================================
   AUTH: FORM ENHANCEMENTS
   ============================================================ */

/* Form row (side-by-side fields) */
.form-row {
    display: flex;
    gap: var(--space-md);
}

.form-group-half {
    flex: 1;
}

/* Form hints */
.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Required asterisk */
.required {
    color: var(--color-error);
}

/* Password field wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition);
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle-icon {
    font-size: 1.1rem;
}

/* ============================================================
   DASHBOARD: LAYOUT
   ============================================================ */
.dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.dash-sidebar {
    position: sticky;
    top: 100px;
}

.dash-nav-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.dash-nav-heading:first-child {
    margin-top: 0;
}

.dash-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.dash-nav-link:hover {
    background-color: var(--green-light);
    color: var(--green-primary);
}

.dash-nav-link.active {
    background-color: var(--green-light);
    color: var(--green-primary);
    font-weight: 600;
}

.dash-nav-logout {
    color: var(--color-error);
}

.dash-nav-logout:hover {
    background-color: #FFEBEE;
    color: var(--color-error);
}

.dash-nav-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--space-md) 0;
}

/* Dashboard main content */
.dash-main {
    min-width: 0;
}

.dash-welcome-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.dash-welcome-card h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.dash-welcome-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Creator upgrade CTA card */
.dash-upgrade-card {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
    background-color: var(--bg-white);
    border: 2px dashed var(--green-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.dash-upgrade-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.dash-upgrade-content h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
}

.dash-upgrade-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

/* ============================================================
   DASHBOARD: SETTINGS CARDS
   ============================================================ */
.settings-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.settings-card-highlight {
    border-color: var(--green-primary);
    border-style: dashed;
    border-width: 2px;
}

.settings-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

/* Settings info grid */
.settings-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.settings-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.settings-info-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.settings-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-on-light);
}

/* ============================================================
   RESOURCE SUB-NAVIGATION
   ============================================================ */
.resource-subnav-section {
    padding: var(--space-lg) 0;
    background: var(--green-light);
    border-bottom: 1px solid var(--border-color);
}

.resource-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.resource-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-white);
    color: var(--text-body);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.resource-subnav-link:hover,
.resource-subnav-link.active {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

.resource-subnav-icon {
    font-size: 1rem;
}

/* ============================================================
   INTAKE FORM
   ============================================================ */
.intake-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.intake-intro {
    margin-bottom: var(--space-2xl);
}

.intake-intro h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.intake-save-note {
    background: var(--green-light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-on-light);
    border-left: 3px solid var(--green-primary);
}

.intake-save-note a {
    color: var(--green-primary);
    font-weight: 600;
}

/* Intake steps */
.intake-step {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    background: var(--bg-white);
}

.intake-step-legend {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-sm);
}

.intake-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    background: var(--green-primary);
    color: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.intake-step-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* Checkbox grid (needs selection) */
.intake-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.intake-checkbox-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
    gap: var(--space-sm);
}

.intake-checkbox-card:hover {
    border-color: var(--green-primary);
    background: var(--green-light);
}

.intake-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.intake-checkbox-card input[type="checkbox"]:checked + .intake-checkbox-icon + .intake-checkbox-label {
    font-weight: 700;
}

.intake-checkbox-card:has(input:checked),
.intake-checkbox-card.checked {
    border-color: var(--green-primary);
    background: var(--green-light);
    box-shadow: 0 0 0 2px var(--green-primary);
}

.intake-checkbox-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.intake-checkbox-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-on-light);
}

/* Inline checkbox list (benefits) */
.intake-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.intake-checkbox-inline {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.95rem;
    padding: var(--space-xs) 0;
}

.intake-checkbox-inline input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--green-primary);
    flex-shrink: 0;
}

/* Form select */
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-on-light);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7168' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select:focus {
    border-color: var(--green-primary);
    outline: 2px solid var(--green-primary);
    outline-offset: 1px;
}

.form-input-short {
    max-width: 200px;
}

.form-hint-inline {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Intake actions */
.intake-actions {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-xl);
}

/* ============================================================
   STATE SELECTOR
   ============================================================ */
.state-selector-wrapper {
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
}

.state-selector-form .form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    text-align: center;
}

.state-selector-row {
    display: flex;
    gap: var(--space-sm);
}

.state-selector-row .form-select {
    flex: 1;
}

.state-selector-row .btn {
    flex-shrink: 0;
}

/* ============================================================
   RESOURCE RESULTS
   ============================================================ */
.results-toolbar-section {
    padding: var(--space-md) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-summary {
    margin-bottom: var(--space-xl);
}

.results-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.results-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.results-category-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-on-light);
    text-decoration: none;
    transition: var(--transition);
}

.results-category-pill:hover {
    border-color: var(--green-primary);
    background: var(--green-light);
}

.results-category-pill-icon {
    font-size: 1rem;
}

.results-category-pill-count {
    background: var(--green-primary);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
    min-width: 1.4rem;
    text-align: center;
}

/* Empty state */
.results-empty {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.results-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.results-empty h2 {
    margin-bottom: var(--space-md);
}

.results-empty p {
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Category groups */
.results-category-group {
    margin-bottom: var(--space-3xl);
}

.results-category-heading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--green-primary);
}

.results-category-heading-icon {
    font-size: 1.5rem;
}

.results-category-count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Resource cards */
.results-cards {
    display: grid;
    gap: var(--space-lg);
}

.resource-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: var(--transition);
}

.resource-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.resource-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.resource-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-on-light);
    line-height: 1.3;
}

.resource-card-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.resource-card-badge-state {
    background: var(--green-light);
    color: var(--green-dark);
}

.resource-card-badge-national {
    background: #E8EFF5;
    color: #3B6E8F;
}

.resource-card-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.resource-card-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.resource-card-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9rem;
}

.resource-card-detail-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.resource-card-detail-link {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 500;
}

.resource-card-detail-link:hover {
    text-decoration: underline;
}

.resource-card-eligibility {
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.resource-card-notes {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   EMERGENCY BANNER
   ============================================================ */
.emergency-banner {
    text-align: center;
    padding: var(--space-xl) 0;
}

.emergency-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
}

.emergency-text {
    color: var(--text-on-dark);
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.emergency-grid-compact {
    max-width: 600px;
}

.emergency-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.emergency-card-name {
    font-weight: 600;
    color: var(--text-on-dark);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.emergency-card-phone {
    color: var(--green-hover);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.emergency-card-phone:hover {
    text-decoration: underline;
}

/* ============================================================
   KNOW YOUR RIGHTS
   ============================================================ */
.rights-content {
    margin-top: var(--space-xl);
}

.rights-state-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--green-primary);
}

.rights-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.rights-section:last-child {
    border-bottom: none;
}

.rights-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--green-dark);
}

.rights-section-body {
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.rights-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-md);
}

.rights-list-item {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.rights-list-item::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: 700;
}

.rights-section-link a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}

.rights-section-link a:hover {
    text-decoration: underline;
}

/* Placeholder (state not populated yet) */
.rights-placeholder {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.rights-placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.rights-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
}

.rights-placeholder p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
}

/* General link cards (Know Your Rights fallback) */
.rights-general-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
    text-align: left;
}

.rights-general-link-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.rights-general-link-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.rights-general-link-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: none;
}

.rights-general-link-card .btn {
    font-size: 0.85rem;
}

/* ============================================================
   FAMILY CONNECT
   ============================================================ */
.family-state-content {
    margin-top: var(--space-xl);
}

.family-state-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--green-primary);
}

.family-db-resources {
    margin-top: var(--space-2xl);
}

/* Section headings (centered) */
.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
}

.section-white {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
}

/* Text utility */
.text-secondary {
    color: var(--text-secondary);
}

/* ============================================================
   DISCUSSIONS — Forum
   ============================================================ */

/* Layout: sidebar + main */
.disc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* ---- Sidebar ---- */
.disc-sidebar {
    position: sticky;
    top: calc(70px + var(--space-lg));
}

.disc-sidebar-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    padding: 0 var(--space-sm);
}

.disc-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-xl);
}

.disc-cat-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem var(--space-sm);
    border-radius: var(--radius-md);
    color: var(--text-on-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.disc-cat-link:hover {
    background: var(--green-primary);
    color: #fff;
}

.disc-cat-link:hover .disc-cat-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.disc-cat-link.active {
    background: var(--green-primary);
    color: #fff;
    font-weight: 600;
}

.disc-cat-link.active .disc-cat-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.disc-cat-icon {
    flex-shrink: 0;
    width: 1.4em;
    text-align: center;
}

.disc-cat-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.disc-cat-count {
    font-size: 0.75rem;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    padding: 0.1em 0.55em;
    font-weight: 600;
    flex-shrink: 0;
}

.disc-new-topic-btn {
    margin-top: var(--space-sm);
}

/* ---- Main column ---- */
.disc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.disc-toolbar-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.disc-toolbar-count {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.disc-sort-select {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-on-light);
    min-width: 170px;
    cursor: pointer;
}

/* ---- Empty state ---- */
.disc-empty {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.disc-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.disc-empty h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.disc-empty p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Topic list cards ---- */
.disc-topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.disc-topic-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: var(--space-md);
    align-items: start;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: var(--transition);
}

.disc-topic-card:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-sm);
}

.disc-topic-pinned {
    border-left: 3px solid var(--green-primary);
}

.disc-topic-locked {
    opacity: 0.8;
}

/* Vote column (shared between index cards and topic/reply views) */
.disc-vote-col,
.topic-post-vote,
.reply-vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.disc-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}

.disc-vote-btn:hover:not(:disabled) {
    background: var(--green-light);
    color: var(--green-primary);
}

.disc-vote-btn.active {
    color: var(--green-primary);
    font-weight: 700;
}

.disc-vote-btn.disc-vote-down.active {
    color: var(--color-error);
}

.disc-vote-btn:disabled {
    cursor: default;
    opacity: 0.4;
}

.disc-vote-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-on-light);
    min-width: 2ch;
    text-align: center;
}

/* Topic content inside card */
.disc-topic-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.35;
}

.disc-topic-title a {
    color: var(--text-on-light);
    text-decoration: none;
}

.disc-topic-title a:hover {
    color: var(--green-primary);
}

.disc-pin-icon,
.disc-lock-icon {
    font-size: 0.85em;
    margin-right: 0.25em;
    vertical-align: middle;
}

.disc-topic-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.disc-topic-meta a {
    color: var(--text-secondary);
    text-decoration: none;
}

.disc-topic-meta a:hover {
    color: var(--green-primary);
}

.disc-topic-meta-sep {
    color: var(--text-muted);
    font-size: 0.65rem;
}

/* Stats column */
.disc-topic-stats {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    white-space: nowrap;
}

.disc-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.disc-stat-icon {
    font-size: 0.95rem;
}

/* ============================================================
   DISCUSSIONS — Topic Detail
   ============================================================ */
.topic-layout {
    max-width: 800px;
    margin: 0 auto;
}

.topic-back {
    margin-bottom: var(--space-xl);
}

/* ---- Topic post ---- */
.topic-post {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.topic-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.topic-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.topic-post-meta a {
    color: var(--text-secondary);
    text-decoration: none;
}

.topic-post-meta a:hover {
    color: var(--green-primary);
}

.topic-post-cat {
    background: var(--green-light);
    color: var(--green-primary);
    padding: 0.15em 0.6em;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.topic-post-cat:hover {
    background: var(--green-primary);
    color: #fff;
}

.topic-post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-on-light);
    margin-bottom: var(--space-lg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.topic-post-footer {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

/* Shared action buttons (reply, flag) */
.disc-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.disc-action-btn:hover {
    background: var(--bg-light);
    color: var(--green-primary);
}

/* ---- Replies section ---- */
.topic-replies-section {
    margin-bottom: var(--space-2xl);
}

.topic-replies-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--green-primary);
}

.topic-replies-count {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1rem;
}

.topic-no-replies {
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--space-xl) 0;
}

.topic-replies {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* ---- Reply cards ---- */
.reply-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: var(--space-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.reply-nested {
    margin-left: var(--space-2xl);
}

.reply-depth-2 {
    margin-left: calc(var(--space-2xl) * 2);
}

.reply-depth-3 {
    margin-left: calc(var(--space-2xl) * 3);
}

.reply-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.reply-author {
    font-weight: 600;
    color: var(--text-on-light);
}

.reply-content {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-on-light);
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: var(--space-sm);
}

.reply-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ---- Locked notice ---- */
.topic-locked-notice {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-2xl);
}

.topic-locked-notice .disc-lock-icon {
    font-size: 1.2rem;
    margin-right: var(--space-sm);
}

/* ---- Reply form ---- */
.topic-reply-form-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.topic-reply-form-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.reply-parent-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--green-light);
    border-left: 3px solid var(--green-primary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    color: var(--green-dark);
}

.reply-cancel-nested {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-left: auto;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.reply-cancel-nested:hover {
    background: rgba(0,0,0,0.08);
    color: var(--color-error);
}

/* Sign-in CTA for non-authenticated users */
.topic-signin-cta {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.topic-signin-cta a {
    color: var(--green-primary);
    font-weight: 600;
}

/* ============================================================
   DISCUSSIONS — New Topic Page
   ============================================================ */
.new-topic-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.new-topic-textarea {
    min-height: 250px;
    resize: vertical;
}

.new-topic-guidelines {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.new-topic-guidelines h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-on-light);
}

.new-topic-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-topic-guidelines li {
    position: relative;
    padding-left: 1.4em;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xs);
}

.new-topic-guidelines li::before {
    content: "\2022";
    color: var(--green-primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.new-topic-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============================================================
   DISCUSSIONS — Role & Founder Badges
   ============================================================ */
.role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15em 0.5em;
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-left: 0.35em;
    line-height: 1.4;
}

.role-badge-founder {
    background: #D4A843;
    color: #1B1E1A;
}

.role-badge-admin {
    background: #5B8BA0;
    color: #fff;
}

.role-badge-creator {
    background: var(--green-primary);
    color: #fff;
}

.role-badge-dev {
    background: #8B5CF6;
    color: #fff;
}

/* ============================================================
   DISCUSSIONS — Flag Modal
   ============================================================ */
.disc-flag-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disc-flag-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.disc-flag-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.disc-flag-modal-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.disc-flag-reasons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.disc-flag-reasons label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
}

.disc-flag-reasons input[type="radio"] {
    accent-color: var(--green-primary);
}

.disc-flag-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
}

/* ============================================================
   DISCUSSIONS — Toast Notifications
   ============================================================ */
.disc-toast {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.disc-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.disc-toast-success {
    border-left: 4px solid var(--color-success);
}

.disc-toast-error {
    border-left: 4px solid var(--color-error);
}

.disc-toast-info {
    border-left: 4px solid var(--color-info);
}

/* ============================================================
   DISCUSSIONS — Pagination
   ============================================================ */
.pagination {
    margin-top: var(--space-2xl);
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-on-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-link:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background: var(--green-light);
}

.pagination-link.active,
.pagination-link[aria-current="page"] {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
    font-weight: 700;
}

.pagination-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 var(--space-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   UNSTUDIO: Category Strip
   ============================================================ */
.us-categories-strip {
    padding: var(--space-lg) 0;
    background: var(--green-light);
    border-bottom: 1px solid var(--border-color);
}

.us-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.us-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.us-cat-pill:hover,
.us-cat-pill.active {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

.us-cat-pill-all {
    font-weight: 600;
}

.us-cat-pill-icon {
    font-size: 1.1em;
}

/* ============================================================
   UNSTUDIO: Section Headers
   ============================================================ */
.us-section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.us-accent {
    color: var(--green-primary);
}

.us-section-footer {
    margin-top: var(--space-2xl);
}

/* ============================================================
   UNSTUDIO: Booth Cards (Creator Grid)
   ============================================================ */
.us-booth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.us-booth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-body);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.us-booth-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.us-booth-avatar-wrap {
    position: relative;
    margin-bottom: var(--space-md);
}

.us-booth-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.us-booth-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.us-founder-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #D4A843;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--bg-white);
}

.us-booth-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text-heading);
}

.us-booth-category {
    font-size: 0.85rem;
    color: var(--green-primary);
    margin-bottom: var(--space-xs);
}

.us-booth-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   UNSTUDIO: Content Cards (Works Grid)
   ============================================================ */
.us-content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.us-content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.us-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.us-content-card-dark {
    background: var(--dark-surface);
    border-color: rgba(255,255,255,0.1);
}

.us-content-card-dark:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.us-content-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.us-content-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-muted);
}

.us-content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.us-content-card:hover .us-content-thumb img {
    transform: scale(1.05);
}

.us-content-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-subtle) 0%, var(--dark-bg) 100%);
}

.us-content-type-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.us-content-type-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 2px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.us-content-price-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 2px 10px;
    background: var(--green-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.us-content-info {
    padding: var(--space-md);
}

.us-content-card-dark .us-content-info {
    color: var(--text-on-dark);
}

.us-content-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    color: var(--text-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.us-content-card-dark .us-content-title {
    color: var(--text-on-dark);
}

.us-content-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.us-content-meta-sep {
    opacity: 0.5;
}

.us-content-creator {
    font-weight: 500;
}

/* ============================================================
   UNSTUDIO: Booth Header (Public Profile)
   ============================================================ */
.us-booth-header {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--dark-bg);
    color: var(--text-on-dark);
}

.us-booth-header.has-banner {
    min-height: 280px;
}

.us-booth-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.us-booth-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
}

.us-booth-avatar-lg-wrap {
    position: relative;
    flex-shrink: 0;
}

.us-booth-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.us-booth-avatar-lg-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    border: 4px solid rgba(255,255,255,0.2);
}

.us-founder-badge-lg {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.us-booth-profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.us-booth-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
}

.us-booth-profile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.us-booth-meta-sep {
    opacity: 0.5;
}

.us-booth-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.us-booth-social-link {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255,255,255,0.15);
    color: var(--text-on-dark);
    border-radius: 6px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.us-booth-social-link:hover {
    background: rgba(255,255,255,0.25);
}

.us-booth-owner-actions {
    margin-left: auto;
    display: flex;
    gap: var(--space-sm);
    align-self: center;
}

/* Booth bio */
.us-booth-bio-section {
    padding: var(--space-xl) 0;
    background: var(--green-light);
    border-bottom: 1px solid var(--border-color);
}

.us-booth-bio {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* ============================================================
   UNSTUDIO: Item Detail Page
   ============================================================ */
.us-item-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

.us-item-status-notice {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #FFF8E1;
    border: 1px solid #D4A843;
    border-radius: 8px;
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
}

.us-item-header {
    margin-bottom: var(--space-xl);
}

.us-item-type-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.us-item-meta-sep {
    opacity: 0.5;
}

.us-item-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-heading);
}

.us-item-description {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.us-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.us-item-price {
    font-weight: 600;
    color: var(--green-primary);
}

.us-item-price-free {
    color: var(--green-primary);
}

/* Media display */
.us-item-media {
    margin-bottom: var(--space-xl);
}

.us-item-figure {
    margin: 0;
}

.us-item-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.us-item-audio-wrap {
    padding: var(--space-lg);
    background: var(--bg-muted);
    border-radius: 12px;
}

.us-item-audio {
    width: 100%;
}

.us-item-video-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.us-item-video {
    width: 100%;
    display: block;
}

/* Gallery */
.us-item-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.us-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.us-gallery-audio {
    width: 100%;
}

.us-gallery-video {
    width: 100%;
    border-radius: 8px;
}

/* Body text */
.us-item-body {
    max-width: 100%;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-xl);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.us-item-owner-actions {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

/* Sidebar: Creator card */
.us-item-sidebar {
    position: sticky;
    top: 100px;
}

.us-item-creator-card {
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.us-item-creator-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
    margin-bottom: var(--space-md);
}

.us-item-creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.us-item-creator-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.us-item-creator-name {
    display: block;
    font-weight: 600;
    color: var(--text-heading);
}

.us-founder-badge-inline {
    color: #D4A843;
    font-size: 0.85em;
}

.us-item-creator-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar: Details card */
.us-item-details-card,
.us-item-share-card {
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: var(--space-lg);
}

.us-item-details-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.us-item-details-list {
    margin: 0;
}

.us-item-detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-color-light, #f0f0f0);
    font-size: 0.9rem;
}

.us-item-detail-row:last-child {
    border-bottom: none;
}

.us-item-detail-row dt {
    color: var(--text-muted);
    font-weight: 400;
}

.us-item-detail-row dd {
    font-weight: 500;
    color: var(--text-heading);
    margin: 0;
}

/* Share links */
.us-item-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.us-share-link {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-muted);
    color: var(--text-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.us-share-link:hover {
    background: var(--green-light);
    border-color: var(--green-primary);
}

.us-share-link.copied {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

/* ============================================================
   UNSTUDIO: Search Page
   ============================================================ */
.us-search-section {
    padding: var(--space-xl) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.us-search-form {
    margin-bottom: var(--space-lg);
}

.us-search-input-wrap {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.us-search-input-wrap:focus-within {
    border-color: var(--green-primary);
}

.us-search-input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-white);
}

.us-search-btn {
    padding: var(--space-md) var(--space-lg);
    background: var(--green-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.us-search-btn:hover {
    background: var(--green-hover);
}

/* Filter bar */
.us-filter-bar {
    margin-bottom: var(--space-lg);
}

.us-filter-group {
    margin-bottom: var(--space-md);
}

.us-filter-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.us-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.us-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.us-filter-pill:hover,
.us-filter-pill.active {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

.us-filter-selects {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-end;
}

.us-filter-select {
    min-width: 150px;
}

/* Active filter tags */
.us-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.us-active-filters-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-heading);
}

.us-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px 10px;
    background: var(--green-light);
    border: 1px solid var(--green-primary);
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--green-primary);
}

.us-filter-remove {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1;
}

.us-filter-remove:hover {
    color: var(--error-color);
}

.us-clear-all-filters {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
}

/* ============================================================
   UNSTUDIO: Empty States
   ============================================================ */
.us-empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.us-empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.us-empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-heading);
}

.us-empty-state p {
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    color: var(--text-body);
    line-height: 1.6;
}

/* ============================================================
   UNSTUDIO: Upload Form / Creator Dashboard
   ============================================================ */
.us-type-selector {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.us-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
}

.us-type-option:hover {
    border-color: var(--green-primary);
}

.us-type-option.active {
    border-color: var(--green-primary);
    background: var(--green-light);
}

.us-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.us-type-icon {
    font-size: 1.8rem;
}

.us-type-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* Fieldsets */
.us-fieldset {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.us-fieldset-legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    padding: 0 var(--space-sm);
}

/* Checkbox label */
.us-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.95rem;
}

.us-checkbox-text {
    font-weight: 500;
}

/* Price input */
.us-price-input-wrap {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.us-price-prefix {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.us-price-input {
    border-radius: 0 8px 8px 0 !important;
}

/* Current image previews */
.us-current-image {
    margin-bottom: var(--space-sm);
}

.us-current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.us-current-banner {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.us-current-media-preview {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.us-current-media-file {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-muted);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-body);
}

.us-current-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Form actions */
.us-form-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-xl);
}

/* Status badge */
.us-status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.us-status-published {
    background: rgba(74, 124, 89, 0.15);
    color: var(--green-primary);
}

.us-status-draft {
    background: rgba(212, 168, 67, 0.15);
    color: #D4A843;
}

.us-status-archived {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-muted);
}

/* Status tabs (content management) */
.us-content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.us-status-tabs {
    display: flex;
    gap: var(--space-xs);
}

.us-status-tab {
    padding: var(--space-xs) var(--space-md);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.us-status-tab:hover {
    background: var(--bg-muted);
    color: var(--text-body);
}

.us-status-tab.active {
    background: var(--green-primary);
    color: #fff;
}

/* Content table refinements */
.us-td-title {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.us-td-actions {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.us-delete-form {
    display: inline;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.75rem;
}

.btn-danger {
    color: var(--error-color);
}

.btn-danger:hover {
    background: var(--error-color);
    color: #fff;
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================================
   UNSTUDIO: Lightbox
   ============================================================ */
.us-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.us-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.us-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.us-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.us-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: var(--space-xs);
    line-height: 1;
}

.us-lightbox-close:hover {
    opacity: 0.7;
}

/* ============================================================
   PAYMENT & CHECKOUT (Phase 7)
   ============================================================ */

/* --- Donation Form --- */
.pay-donate-form {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
}

.pay-amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.pay-amount-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 2px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.pay-amount-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.pay-amount-btn-active {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #fff;
}

.pay-amount-btn-active:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
    color: #fff;
}

/* --- Custom Amount --- */
.pay-custom-amount {
    margin-bottom: var(--space-lg);
}

.pay-input-prefix-wrap {
    display: flex;
    align-items: center;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pay-input-prefix {
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.pay-input-amount {
    border: none;
    background: transparent;
    padding-left: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pay-input-amount:focus {
    box-shadow: none;
    border: none;
}

/* --- Form Fields --- */
.pay-donor-fields {
    margin-bottom: var(--space-lg);
}

.pay-label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.pay-label small {
    color: var(--text-muted);
    font-weight: 400;
}

.pay-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.pay-input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.pay-input::placeholder {
    color: var(--text-muted);
}

.pay-textarea {
    resize: vertical;
    min-height: 60px;
}

.pay-field {
    margin-bottom: var(--space-md);
}

.pay-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.pay-field-inline {
    margin-bottom: var(--space-md);
}

.pay-checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.pay-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-primary);
    flex-shrink: 0;
}

/* --- Checkout Button --- */
.pay-submit-wrap {
    text-align: center;
}

.pay-btn-checkout {
    position: relative;
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}

.pay-btn-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pay-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pay-secure-note {
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.pay-lock-icon {
    font-size: 0.85rem;
}

/* --- Error Display --- */
.pay-error {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: 0.9rem;
    text-align: center;
}

/* --- Item Page Purchase Card --- */
.pay-item-action-card {
    background: var(--bg-white);
    border: 2px solid var(--green-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-md);
}

.pay-item-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: var(--space-sm);
}

.pay-purchased-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 124, 89, 0.1);
    border-radius: var(--radius-md);
    color: var(--green-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.pay-purchased-icon {
    font-size: 1.1rem;
    color: var(--green-primary);
}

.pay-purchased-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.pay-coming-soon {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* --- Donation Stats (donate page) --- */
.pay-donation-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.pay-stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    min-width: 160px;
}

.pay-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-primary);
    line-height: 1.2;
}

.pay-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Sales Dashboard Stats --- */
.pay-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.pay-stat-card-dash {
    border: 1px solid var(--border-light);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
}

.pay-stat-card-dash .pay-stat-label {
    margin-bottom: var(--space-xs);
    margin-top: 0;
}

.pay-stat-card-dash .pay-stat-number {
    font-size: 1.8rem;
}

.pay-stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* --- Recent Donors List --- */
.pay-recent-donors {
    max-width: 600px;
    margin: 0 auto;
}

.pay-recent-heading {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.pay-donor-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pay-donor-item {
    padding: var(--space-md);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.pay-donor-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pay-donor-name {
    font-weight: 500;
    color: var(--text-dark);
}

.pay-donor-amount {
    font-weight: 600;
    color: var(--green-primary);
}

.pay-donor-message {
    margin: var(--space-xs) 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   RESPONSIVE: 900px
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .founder-block {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .founder-full-block {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .metric-value {
        font-size: 2rem;
    }

    .allocation-percent {
        font-size: 2rem;
    }

    /* Dashboard: sidebar shrinks */
    .dash-layout {
        grid-template-columns: 200px 1fr;
        gap: var(--space-xl);
    }

    /* Resources: checkbox grid shrinks */
    .intake-checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    /* Emergency grid: 2 columns */
    .emergency-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Rights general link cards */
    .rights-general-links {
        grid-template-columns: 1fr 1fr;
    }

    /* Discussions: shrink sidebar */
    .disc-layout {
        grid-template-columns: 220px 1fr;
        gap: var(--space-xl);
    }

    /* Nested replies: reduce indent */
    .reply-nested { margin-left: var(--space-xl); }
    .reply-depth-2 { margin-left: calc(var(--space-xl) * 2); }
    .reply-depth-3 { margin-left: calc(var(--space-xl) * 2.5); }

    /* UnStudio: reduce grid columns */
    .us-booth-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Item layout: smaller sidebar */
    .us-item-layout {
        grid-template-columns: 1fr 280px;
        gap: var(--space-xl);
    }

    .us-booth-profile-name {
        font-size: 1.6rem;
    }

    .us-item-title {
        font-size: 1.6rem;
    }
}

/* ============================================================
   RESPONSIVE: 768px (primary mobile breakpoint)
   ============================================================ */
@media (max-width: 768px) {
    /* Navigation collapses to hamburger */
    .nav-left,
    .nav-right,
    .nav-auth {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-container {
        justify-content: center;
        height: 90px;
        padding-top: 0;
        align-items: center;
    }

    .nav-logo {
        position: static;
        transform: none;
        height: auto;
    }

    .logo-img {
        height: 80px;
    }

    /* Sections */
    .section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    /* Cards */
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Search */
    .search-form {
        max-width: 100%;
    }

    /* About: founder sidebar stacks below */
    .founder-full-sidebar {
        order: -1;
    }

    .image-placeholder {
        max-height: 250px;
        aspect-ratio: 16 / 9;
    }

    /* Impact: goals */
    .goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Partners */
    .partner-grid {
        grid-template-columns: 1fr;
    }

    /* Auth: form rows stack */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Dashboard: sidebar stacks above content */
    .dash-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .dash-sidebar {
        position: static;
    }

    .dash-nav {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        align-items: center;
    }

    .dash-nav-heading {
        width: 100%;
        margin-top: var(--space-md);
    }

    .dash-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .dash-nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .dash-nav-divider {
        width: 100%;
    }

    /* Dashboard: upgrade card stacks */
    .dash-upgrade-card {
        flex-direction: column;
        text-align: center;
    }

    /* Resource sub-nav: scrollable horizontal */
    .resource-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    .resource-subnav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* Intake: checkbox grid to 2 columns */
    .intake-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Intake: actions stack */
    .intake-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Results: toolbar stacks */
    .results-toolbar {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    /* Emergency grid: stacks */
    .emergency-grid {
        grid-template-columns: 1fr;
    }

    /* Rights general links: single column */
    .rights-general-links {
        grid-template-columns: 1fr;
    }

    /* Resource cards: reduce padding */
    .resource-card {
        padding: var(--space-lg);
    }

    /* Discussions: sidebar stacks above, becomes horizontal scroll */
    .disc-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        overflow: hidden;
    }

    .disc-sidebar {
        position: static;
        min-width: 0;
        background: var(--green-light);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
    }

    .disc-cat-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: var(--space-sm);
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    .disc-cat-link {
        flex-shrink: 0;
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8rem;
        border-radius: 20px;
        background: var(--bg-white);
        border: 1px solid var(--border-color);
    }

    .disc-cat-link:hover,
    .disc-cat-link.active {
        background: var(--green-primary);
        color: #fff;
        border-color: var(--green-primary);
    }

    .disc-cat-count {
        font-size: 0.7rem;
    }

    .disc-new-topic-btn {
        display: none;
    }

    /* Toolbar stacks on small screens */
    .disc-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    /* Topic cards: hide stats column, simplify */
    .disc-topic-card {
        grid-template-columns: 42px 1fr;
    }

    .disc-topic-stats {
        display: none;
    }

    /* Topic detail: reduce width constraints */
    .topic-post {
        grid-template-columns: 42px 1fr;
        padding: var(--space-lg);
    }

    .topic-post-title {
        font-size: 1.25rem;
    }

    /* Nested replies: flatten nesting */
    .reply-nested,
    .reply-depth-2,
    .reply-depth-3 {
        margin-left: var(--space-lg);
    }

    .reply-card {
        grid-template-columns: 36px 1fr;
        padding: var(--space-md);
    }

    /* Flag modal: full width on mobile */
    .disc-flag-modal-content {
        padding: var(--space-lg);
    }

    .disc-flag-actions {
        flex-direction: column;
    }

    /* Pagination: smaller */
    .pagination-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    /* UnStudio: stack to 2 columns */
    .us-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .us-booth-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    /* Item detail: stack layout */
    .us-item-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .us-item-sidebar {
        position: static;
    }

    .us-item-title {
        font-size: 1.4rem;
    }

    /* Booth header: stack */
    .us-booth-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .us-booth-profile-meta {
        justify-content: center;
    }

    .us-booth-social {
        justify-content: center;
    }

    .us-booth-owner-actions {
        margin-left: 0;
        justify-content: center;
    }

    .us-booth-profile-name {
        font-size: 1.4rem;
    }

    /* Category pills: horizontal scroll */
    .us-cat-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: var(--space-xs);
    }

    .us-cat-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Filter selects: stack */
    .us-filter-selects {
        flex-direction: column;
        gap: var(--space-md);
    }

    .us-filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--space-xs);
    }

    .us-filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Content toolbar: stack */
    .us-content-toolbar {
        flex-direction: column;
        gap: var(--space-md);
        align-items: stretch;
    }

    .us-status-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Type selector: 2 per row */
    .us-type-selector {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    /* Form actions: stack */
    .us-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Table: scroll */
    .dash-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .us-td-type-label {
        display: none;
    }

    /* Payment responsive: 768px */
    .pay-amount-presets {
        grid-template-columns: repeat(3, 1fr);
    }

    .pay-field-row {
        grid-template-columns: 1fr;
    }

    .pay-donate-form {
        padding: var(--space-lg) var(--space-md);
    }

    .pay-donation-stats {
        gap: var(--space-md);
    }

    .pay-stat-card {
        min-width: 120px;
        padding: var(--space-md);
    }

    .pay-stat-number {
        font-size: 1.6rem;
    }

    .pay-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESPONSIVE: 480px (small phone)
   ============================================================ */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .nav-container {
        height: 80px;
    }

    .logo-img {
        height: 70px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .error-code {
        font-size: 4rem;
    }

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .hero-compact {
        padding: 2rem 0 1.5rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .founder-podcast-links {
        flex-direction: column;
    }

    /* Auth: tabs shrink */
    .auth-tab {
        font-size: 0.85rem;
        padding: var(--space-sm) var(--space-xs);
    }

    /* Settings cards */
    .settings-card {
        padding: var(--space-lg);
    }

    /* Intake: checkbox grid single column */
    .intake-checkbox-grid {
        grid-template-columns: 1fr;
    }

    /* Intake: step padding reduced */
    .intake-step {
        padding: var(--space-lg);
    }

    /* Resource card: tighter */
    .resource-card {
        padding: var(--space-md);
    }

    .resource-card-header {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Results heading smaller */
    .results-category-heading {
        font-size: 1.15rem;
    }

    /* Emergency card: tighter */
    .emergency-card {
        padding: var(--space-md);
    }

    /* Rights placeholder: tighter */
    .rights-placeholder {
        padding: var(--space-xl) 0;
    }

    /* Discussions: further compact */
    .disc-sidebar-heading {
        display: none;
    }

    .disc-cat-link {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .disc-topic-card {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .disc-vote-col {
        flex-direction: row;
        gap: var(--space-sm);
    }

    .disc-toolbar-heading {
        font-size: 1.1rem;
    }

    /* Topic detail: vote moves inline */
    .topic-post {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .topic-post-vote {
        flex-direction: row;
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .topic-post-title {
        font-size: 1.15rem;
    }

    .topic-post-meta {
        font-size: 0.8rem;
    }

    /* Replies: remove nesting on very small screens */
    .reply-nested,
    .reply-depth-2,
    .reply-depth-3 {
        margin-left: var(--space-sm);
    }

    .reply-card {
        grid-template-columns: 1fr;
    }

    .reply-vote {
        flex-direction: row;
        gap: var(--space-sm);
        margin-bottom: var(--space-xs);
    }

    /* Reply form: tighter padding */
    .topic-reply-form-section {
        padding: var(--space-lg);
    }

    /* New topic: full width actions */
    .new-topic-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .new-topic-guidelines {
        padding: var(--space-md);
    }

    /* Flag modal: edge to edge */
    .disc-flag-modal-content {
        width: 95%;
        padding: var(--space-lg) var(--space-md);
    }

    /* UnStudio: single column */
    .us-content-grid {
        grid-template-columns: 1fr;
    }

    .us-booth-grid {
        grid-template-columns: 1fr;
    }

    .us-booth-card {
        flex-direction: row;
        text-align: left;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .us-booth-avatar-wrap {
        margin-bottom: 0;
    }

    .us-booth-avatar,
    .us-booth-avatar-placeholder {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .us-founder-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .us-booth-avatar-lg,
    .us-booth-avatar-lg-placeholder {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .us-item-title {
        font-size: 1.2rem;
    }

    .us-item-gallery {
        grid-template-columns: 1fr;
    }

    .us-search-input-wrap {
        max-width: 100%;
    }

    .us-empty-state {
        padding: var(--space-xl) var(--space-md);
    }

    .us-empty-icon {
        font-size: 3rem;
    }

    .us-type-selector {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .us-type-option {
        padding: var(--space-sm);
        min-width: auto;
    }

    .us-type-icon {
        font-size: 1.4rem;
    }

    .us-fieldset {
        padding: var(--space-md);
    }

    /* Payment responsive: 480px */
    .pay-amount-presets {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .pay-amount-btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }

    .pay-donate-form {
        padding: var(--space-md);
    }

    .pay-item-price {
        font-size: 1.4rem;
    }

    .pay-donation-stats {
        flex-direction: column;
        align-items: center;
    }

    .pay-stat-card {
        width: 100%;
    }
}

/* ============================================================ */
/* PHASE 8: COMMUNITY FEATURES                                  */
/* Events Calendar | Re-Entry Toolkit | Mentor Match            */
/* ============================================================ */

/* ---------------------------------------------------------------
   Community Toast Notifications
   --------------------------------------------------------------- */
.community-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.community-toast-success {
    background: var(--green-primary);
    color: white;
}

.community-toast-error {
    background: var(--color-error, #C0392B);
    color: white;
}

.community-toast-info {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

/* ---------------------------------------------------------------
   EVENTS CALENDAR
   --------------------------------------------------------------- */

/* Filter bar */
.event-filters {
    margin-bottom: var(--space-2xl);
}

.event-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-end;
}

.event-filter-group {
    flex: 1;
    min-width: 160px;
}

.event-filter-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
    flex: 0 0 auto;
    min-width: auto;
    padding-bottom: 2px;
}

.event-filters-toggles {
    margin-top: var(--space-md);
}

.event-past-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.event-past-toggle input[type="checkbox"] {
    accent-color: var(--green-primary);
}

/* Event grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

/* Event card */
.event-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.event-card.event-past {
    opacity: 0.6;
}

.event-card.event-past:hover {
    transform: none;
    box-shadow: none;
}

/* Date badge */
.event-date-badge {
    flex: 0 0 60px;
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--green-primary);
    color: white;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.event-date-badge.event-date-past {
    background: var(--text-secondary, #888);
}

.event-date-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.event-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Card body */
.event-card-body {
    flex: 1;
    min-width: 0;
}

.event-card-header {
    margin-bottom: var(--space-sm);
}

.event-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
    line-height: 1.3;
}

.event-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.event-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-type-in_person {
    background: #E8F0EB;
    color: var(--green-primary);
}

.event-type-virtual {
    background: #E8EEF5;
    color: #3B6B9A;
}

.event-type-hybrid {
    background: #F0EBE5;
    color: #8B6914;
}

.event-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #F5F5F0;
    color: var(--text-secondary);
}

.event-badge-past {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #E0E0E0;
    color: #666;
}

/* Meta info */
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-meta-icon {
    flex: 0 0 auto;
    font-size: 0.9rem;
}

.event-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-sm);
    line-height: 1.5;
}

.event-card-organizer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-md);
}

.event-card-organizer a {
    color: var(--green-primary);
}

/* Card footer */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light, #E2E8E4);
}

.event-rsvp-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.event-rsvp-number {
    font-weight: 600;
    color: var(--green-primary);
}

.event-rsvp-btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 2px solid var(--green-primary);
    background: transparent;
    color: var(--green-primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.event-rsvp-btn:hover {
    background: var(--green-primary);
    color: white;
}

.event-rsvp-btn.event-rsvp-active {
    background: var(--green-primary);
    color: white;
}

.event-rsvp-btn.event-rsvp-active:hover {
    background: var(--green-dark, #3A6347);
}

/* ---------------------------------------------------------------
   RE-ENTRY TOOLKIT
   --------------------------------------------------------------- */

/* Intro text */
.toolkit-intro {
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Progress bar (shared) */
.toolkit-progress {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 12px;
}

.toolkit-progress-overall {
    background: #E8F0EB;
    border-color: var(--green-primary);
}

.toolkit-progress-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}

.toolkit-progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.toolkit-progress-bar {
    height: 8px;
    background: #E2E8E4;
    border-radius: 4px;
    overflow: hidden;
}

.toolkit-progress-bar-large {
    height: 12px;
    border-radius: 6px;
}

.toolkit-progress-bar-sm {
    height: 6px;
    border-radius: 3px;
    flex: 1;
}

.toolkit-progress-fill {
    height: 100%;
    background: var(--green-primary);
    border-radius: inherit;
    transition: width 0.4s ease;
    min-width: 0;
}

/* Step cards (overview) */
.toolkit-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toolkit-step-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: white;
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.toolkit-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--green-primary);
}

.toolkit-step-number {
    flex: 0 0 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background: #E8F0EB;
}

.toolkit-step-info {
    flex: 1;
    min-width: 0;
}

.toolkit-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
}

.toolkit-step-num-label {
    color: var(--green-primary);
    font-weight: 600;
}

.toolkit-step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-sm);
    line-height: 1.5;
}

.toolkit-step-progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toolkit-step-progress-text {
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-primary);
}

.toolkit-step-arrow {
    flex: 0 0 auto;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.toolkit-step-card:hover .toolkit-step-arrow {
    transform: translateX(4px);
    color: var(--green-primary);
}

/* Step detail header */
.toolkit-step-header {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.toolkit-step-number-large {
    flex: 0 0 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    background: var(--green-primary);
    color: white;
    border-radius: 16px;
}

.toolkit-step-header-text {
    flex: 1;
}

.toolkit-step-title-large {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-xs);
}

.toolkit-step-desc-large {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Checklist items */
.toolkit-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.toolkit-checklist-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 10px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.toolkit-checklist-item.toolkit-item-completed {
    border-color: var(--green-primary);
    background: #FAFFF9;
}

.toolkit-checkbox-wrap {
    flex: 0 0 auto;
    padding-top: 2px;
}

.toolkit-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #CCC;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.toolkit-checkbox:hover {
    border-color: var(--green-primary);
}

.toolkit-checkbox.toolkit-checkbox-checked {
    background: var(--green-primary);
    border-color: var(--green-primary);
}

.toolkit-checkbox-readonly {
    cursor: default;
    border-color: #DDD;
    background: #F5F5F5;
}

.toolkit-item-content {
    flex: 1;
    min-width: 0;
}

.toolkit-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--space-xs);
}

.toolkit-item-completed .toolkit-item-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.toolkit-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 var(--space-sm);
    line-height: 1.5;
}

.toolkit-item-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-primary);
}

.toolkit-item-link:hover {
    text-decoration: underline;
}

/* Auth CTA */
.toolkit-auth-cta {
    text-align: center;
    padding: var(--space-xl);
    background: #E8F0EB;
    border-radius: 12px;
    margin: var(--space-xl) 0;
}

.toolkit-auth-cta p {
    margin: 0 0 var(--space-md);
    color: var(--text-secondary);
}

.toolkit-auth-cta .btn {
    margin: 0 var(--space-xs);
}

/* Step navigation */
.toolkit-step-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-light, #E2E8E4);
}

.toolkit-nav-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--space-md);
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
    max-width: 45%;
}

.toolkit-nav-link:hover {
    border-color: var(--green-primary);
}

.toolkit-nav-next {
    text-align: right;
    margin-left: auto;
}

.toolkit-nav-dir {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.toolkit-nav-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------------------------------------------------------------
   MENTOR MATCH
   --------------------------------------------------------------- */

/* How It Works */
.mentor-how-it-works .card-icon {
    font-size: 2.5rem;
}

/* Mentor grid */
.mentor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* Mentor card */
.mentor-card {
    padding: var(--space-lg);
    background: white;
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mentor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mentor-card.mentor-full {
    opacity: 0.7;
}

.mentor-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.mentor-avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
}

.mentor-info {
    flex: 1;
    min-width: 0;
}

.mentor-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 2px;
}

.mentor-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.mentor-status-badge {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mentor-status-open {
    background: #E8F0EB;
    color: var(--green-primary);
}

.mentor-status-full {
    background: #F0E0E0;
    color: #C0392B;
}

/* Expertise tags */
.mentor-expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.mentor-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #F5F5F0;
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mentor-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 var(--space-md);
}

.mentor-card-footer {
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light, #E2E8E4);
}

.mentor-connect-btn {
    width: 100%;
    text-align: center;
}

.mentor-request-pending {
    background: #F5F5F0;
    color: var(--text-secondary);
    border-color: #DDD;
    cursor: default;
}

.mentor-request-accepted {
    background: #E8F0EB;
    color: var(--green-primary);
    border-color: var(--green-primary);
    cursor: default;
}

.mentor-own-badge {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mentor apply form */
.mentor-apply-form {
    max-width: 700px;
    margin: 0 auto;
}

.mentor-apply-form .form-row {
    display: flex;
    gap: var(--space-lg);
}

.mentor-apply-form .form-group-half {
    flex: 1;
}

.mentor-apply-form .intake-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.mentor-apply-form .intake-checkbox-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-light, #E2E8E4);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.mentor-apply-form .intake-checkbox-card:hover {
    border-color: var(--green-primary);
}

.mentor-apply-form .intake-checkbox-card.checked {
    background: #E8F0EB;
    border-color: var(--green-primary);
}

.mentor-apply-form .intake-checkbox-card input[type="checkbox"] {
    accent-color: var(--green-primary);
}

/* ---------------------------------------------------------------
   PHASE 8 RESPONSIVE: 900px
   --------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Events */
    .event-grid {
        grid-template-columns: 1fr;
    }

    /* Mentor grid */
    .mentor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mentor apply grid */
    .mentor-apply-form .intake-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------------------------------------
   PHASE 8 RESPONSIVE: 768px
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Event filters */
    .event-filters-row {
        flex-direction: column;
    }

    .event-filter-group {
        min-width: 100%;
    }

    .event-filter-actions {
        min-width: 100%;
    }

    /* Event card */
    .event-card {
        flex-direction: column;
        gap: var(--space-md);
    }

    .event-date-badge {
        flex-direction: row;
        width: auto;
        height: auto;
        padding: var(--space-xs) var(--space-md);
        gap: var(--space-xs);
        align-self: flex-start;
    }

    .event-date-month {
        margin-bottom: 0;
    }

    .event-date-day {
        font-size: 1.1rem;
    }

    /* Toolkit step header */
    .toolkit-step-header {
        flex-direction: column;
        text-align: center;
    }

    /* Toolkit step nav */
    .toolkit-step-nav {
        flex-direction: column;
    }

    .toolkit-nav-link {
        max-width: 100%;
    }

    .toolkit-nav-next {
        text-align: left;
    }

    /* Mentor grid */
    .mentor-grid {
        grid-template-columns: 1fr;
    }

    /* Mentor apply form row */
    .mentor-apply-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ---------------------------------------------------------------
   PHASE 8 RESPONSIVE: 480px
   --------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Toolkit step card */
    .toolkit-step-card {
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .toolkit-step-number {
        flex: 0 0 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .toolkit-step-title {
        font-size: 0.95rem;
    }

    /* Toolkit checklist */
    .toolkit-checklist-item {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .toolkit-checkbox {
        width: 24px;
        height: 24px;
    }

    .toolkit-step-number-large {
        flex: 0 0 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .toolkit-step-title-large {
        font-size: 1.2rem;
    }

    /* Mentor apply grid */
    .mentor-apply-form .intake-checkbox-grid {
        grid-template-columns: 1fr;
    }

    /* Event card footer */
    .event-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .event-rsvp-btn {
        width: 100%;
        text-align: center;
    }

    /* Mentor card header */
    .mentor-card-header {
        flex-wrap: wrap;
    }

    .mentor-status-badge {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-xs);
    }

    /* Toolkit auth CTA */
    .toolkit-auth-cta .btn {
        display: block;
        margin: var(--space-sm) auto;
    }
}


/* ============================================================ */
/* PHASE 10: LEGAL PAGES (Privacy, Terms)                       */
/* ============================================================ */

.container-narrow {
    max-width: 800px;
}

.legal-effective-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.legal-prose h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.legal-prose h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.legal-prose p {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.legal-prose ul {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-prose li {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.legal-prose a {
    color: var(--green-primary);
    text-decoration: underline;
}

.legal-prose a:hover {
    color: var(--green-hover);
}

/* ---- Mentor Profile Page ---- */

.mentor-profile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.mentor-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mentor-profile-info h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.mentor-profile-location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.mentor-profile-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mentor-profile-status.status-open {
    background: var(--green-light);
    color: var(--green-primary);
}

.mentor-profile-status.status-full {
    background: #FFF3E0;
    color: #E65100;
}

.mentor-profile-section {
    margin-bottom: var(--space-xl);
}

.mentor-profile-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.mentor-profile-bio {
    line-height: 1.8;
    color: var(--text-primary);
}

.mentor-connect-form {
    background: var(--bg-light);
    padding: var(--space-lg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.mentor-connect-form h3 {
    margin-bottom: var(--space-md);
}

/* ---- Step Detail Page (dynamic route) ---- */

.step-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.step-detail-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-detail-info h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.step-detail-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Phase 10 Responsive ---- */

@media (max-width: 768px) {
    .mentor-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-prose h2 {
        font-size: 1.2rem;
    }

    .mentor-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.6rem;
    }

    .step-detail-number {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
}


/* ============================================================ */
/* PHASE 9: ADMIN & DEV DASHBOARD STYLES                        */
/* ============================================================ */

/* ---- Admin Stats Grid ---- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.admin-stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border-color, #E2E8E4);
    border-radius: 12px;
    padding: var(--space-md);
    text-align: center;
}

.admin-stat-card-warning {
    border-color: var(--warning, #D4A843);
    background: #FFFBF0;
}

.admin-stat-card-info {
    border-color: var(--info, #5B8BA0);
    background: #F0F7FA;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark, #1B1E1A);
    line-height: 1.2;
}

.admin-stat-value-sm {
    font-size: 1.25rem;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted, #6B7B6E);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted, #6B7B6E);
    margin-top: var(--space-xs);
}

.admin-stat-detail a {
    color: var(--green-primary, #4A7C59);
}

/* ---- Admin Sections ---- */
.admin-section {
    margin-bottom: var(--space-xl);
}

.admin-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--border-color, #E2E8E4);
}

/* ---- Admin Tables ---- */
.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-subtle, #F5F5F0);
    border-bottom: 2px solid var(--border-color, #E2E8E4);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6B7B6E);
    white-space: nowrap;
}

.admin-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-color, #E2E8E4);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(74, 124, 89, 0.03);
}

.admin-table code {
    font-size: 0.8rem;
    background: var(--bg-subtle, #F5F5F0);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---- Admin Badges ---- */
.admin-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--bg-subtle, #F5F5F0);
    color: var(--text-muted, #6B7B6E);
}

.admin-badge-active { background: #E8F5E9; color: #2E7D32; }
.admin-badge-inactive { background: #FFEBEE; color: #C62828; }
.admin-badge-draft { background: #FFF3E0; color: #E65100; }
.admin-badge-info { background: #E3F2FD; color: #1565C0; }

.admin-badge-user { background: #E8F5E9; color: #2E7D32; }
.admin-badge-creator { background: #E3F2FD; color: #1565C0; }
.admin-badge-admin { background: #FFF3E0; color: #E65100; }
.admin-badge-dev { background: #F3E5F5; color: #7B1FA2; }

/* ---- Admin Filter Bar ---- */
.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: flex-end;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-subtle, #F5F5F0);
    border-radius: 8px;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6B7B6E);
}

.admin-filter-select,
.admin-search-input {
    padding: 6px 12px;
    border: 1px solid var(--border-color, #E2E8E4);
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    min-width: 140px;
}

.admin-filter-search {
    flex: 1;
    min-width: 200px;
}

.admin-search-input {
    width: 100%;
}

/* ---- Admin Tabs ---- */
.admin-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--border-color, #E2E8E4);
    padding-bottom: 0;
}

.admin-tab {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted, #6B7B6E);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab:hover {
    color: var(--green-primary, #4A7C59);
}

.admin-tab.active {
    color: var(--green-primary, #4A7C59);
    border-bottom-color: var(--green-primary, #4A7C59);
    font-weight: 600;
}

.admin-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--error, #C0392B);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}

/* ---- Admin Actions ---- */
.admin-actions {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: nowrap;
}

.admin-role-select,
.admin-status-select {
    padding: 3px 6px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color, #E2E8E4);
    border-radius: 4px;
    background: #fff;
}

.admin-action-danger {
    color: var(--error, #C0392B) !important;
}

.admin-action-danger:hover {
    background: #FFEBEE !important;
}

.admin-text-muted {
    color: var(--text-muted, #6B7B6E);
    font-size: 0.85rem;
}

/* ---- Admin Empty State ---- */
.admin-empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-muted, #6B7B6E);
}

.admin-empty-state-lg {
    padding: var(--space-xxl) var(--space-md);
}

.admin-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.admin-empty-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-md);
}

.admin-view-all {
    display: inline-block;
    margin-top: var(--space-sm);
    color: var(--green-primary, #4A7C59);
    font-size: 0.9rem;
}

/* ---- Admin Role Summary ---- */
.admin-role-summary {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

/* ---- Admin Toggle Switch ---- */
.admin-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.admin-toggle input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.admin-toggle input[type="checkbox"]:checked {
    background: var(--green-primary, #4A7C59);
}

.admin-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s;
}

.admin-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.admin-toggle-label {
    font-size: 0.85rem;
    color: var(--text-muted, #6B7B6E);
}

/* ---- Admin Form ---- */
.admin-form {
    background: #fff;
    border: 1px solid var(--border-color, #E2E8E4);
    border-radius: 12px;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* ---- Admin Toast ---- */
.admin-toast {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 400px;
}

.admin-toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast-success {
    background: var(--green-primary, #4A7C59);
}

.admin-toast-error {
    background: var(--error, #C0392B);
}

/* ---- Dev Tools ---- */
.dev-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.dev-info-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm);
    background: var(--bg-subtle, #F5F5F0);
    border-radius: 6px;
}

.dev-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #6B7B6E);
    margin-bottom: 4px;
}

.dev-info-value {
    font-size: 0.9rem;
    color: var(--text-dark, #1B1E1A);
}

.dev-log-viewer {
    background: #1B1E1A;
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    overflow-x: auto;
}

.dev-log-viewer-sm {
    margin-top: var(--space-md);
}

.dev-log-title {
    font-size: 0.8rem;
    color: var(--green-primary, #4A7C59);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dev-log-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #E0E0E0;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.dev-cron-card {
    background: #fff;
    border: 1px solid var(--border-color, #E2E8E4);
    border-radius: 12px;
    padding: var(--space-lg);
}

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

.dev-cron-header .admin-section-title {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.dev-cron-actions {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-color, #E2E8E4);
}

/* ---- Profile ---- */
.profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--green-primary, #4A7C59);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-initials {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-username {
    color: var(--text-muted, #6B7B6E);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.profile-bio {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color, #E2E8E4);
}

.profile-bio h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.profile-actions {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color, #E2E8E4);
}

/* ---- Small Button Variant ---- */
.btn-xs {
    padding: 3px 10px;
    font-size: 0.75rem;
}

/* ============================================================ */
/* ADMIN RESPONSIVE: 900px                                       */
/* ============================================================ */
@media (max-width: 900px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dev-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* ADMIN RESPONSIVE: 768px                                       */
/* ============================================================ */
@media (max-width: 768px) {
    .admin-filter-bar {
        flex-direction: column;
    }

    .admin-filter-group {
        width: 100%;
    }

    .admin-filter-select,
    .admin-search-input {
        width: 100%;
        min-width: unset;
    }

    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-tab {
        white-space: nowrap;
    }

    .admin-actions {
        flex-wrap: wrap;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .admin-form {
        padding: var(--space-md);
    }
}

/* ============================================================ */
/* ADMIN RESPONSIVE: 480px                                       */
/* ============================================================ */
@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid-4 {
        grid-template-columns: 1fr;
    }

    .admin-stat-value {
        font-size: 1.5rem;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    .admin-toast {
        left: var(--space-sm);
        right: var(--space-sm);
        bottom: var(--space-sm);
    }

    .dev-log-content {
        font-size: 0.7rem;
    }
}
