/* ====================================
   ACCENT COLOR
   ==================================== */
:root {
    --accent: #FFE500;
}

/* ====================================
   RESET AND BASE STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.header {
    background: #000;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.logo h1 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
}

.logo-o {
    height: 0.85em;
    width: auto;
    margin: 0 0.05em 0 -0.04em;
}

.logo p {
    font-size: 0.75rem;
    color: #ccc;
    margin-top: -3px;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn, .auth-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: -2px;
}

.nav-btn:hover, .auth-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.nav-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.auth-btn {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

.auth-btn:hover {
    background: #fff;
    color: #000;
}

/* ====================================
   DESKTOP DROPDOWN NAVIGATION (V5.2)
   ==================================== */

/* ====================================
   DESKTOP DROPDOWN NAVIGATION (V5.2)
   ==================================== */

/* Hide mobile nav on desktop, show dropdown elements */
@media (min-width: 1200px) {
    .mobile-nav {
        display: none !important;
    }

    .logo-subtitle-mobile {
        display: none;
    }

    /* Header — use explicit height so logo can match exactly */
    .header {
        height: 56px;
    }

    .header .container {
        justify-content: flex-end;
        height: 56px;
    }

    /* Logo + dropdown — fixed in the left margin, full margin width */
    .logo-dropdown-container {
        position: fixed;
        top: 0;
        left: 0;
        /* Exactly the left margin of .container (1200px centered) */
        width: calc((100vw - 1165px) / 2);
        min-width: 160px;
        z-index: 150;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* Logo bar — same height as header, centered within margin */
    .logo {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.20rem;
        height: 56px;
        padding: 0 1.5rem;
        background: #000;
        border: none;
        border-bottom: 2px solid #333;
        transition: all 0.2s ease;
    }

    .logo:hover {
        background: #111;
    }

    .dropdown-arrow {
        font-size: 0.7rem;
        transition: transform 0.2s ease;
        margin-left: 0.4rem;
    }

    .logo-dropdown-container:hover .dropdown-arrow,
    .logo-dropdown-container.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Sidebar dropdown — fills the full left margin width */
    .dropdown-nav {
        background: #000;
        border-right: 3px solid #fff;
        display: none;
        flex-direction: column;
        z-index: 200;
        width: 100%;
        
    }

    .logo-dropdown-container:hover .dropdown-nav,
    .logo-dropdown-container.active .dropdown-nav {
        display: flex;
    }

    .dropdown-nav-btn,
    .dropdown-auth-btn {
        padding: 1.1rem 1.5rem;
        border: none;
        border-bottom: 1px solid #222;
        background: transparent;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s ease;
        font-weight: 700;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: left;
        width: 100%;
    }

    .dropdown-nav-btn:last-child,
    .dropdown-auth-btn {
        border-bottom: none;
    }

    .dropdown-nav-btn:hover,
    .dropdown-auth-btn:hover {
        background: var(--accent);
        color: #000;
    }

    .dropdown-nav-btn.active {
        background: var(--accent);
        color: #000;
    }

    .dropdown-auth-btn {
        background: #222;
        margin-top: auto;
        border-top: 2px solid #fff;
    }

    /* Tagline Bar - Desktop Only */
    .tagline-bar {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-left: auto;
    }

    .tagline-item {
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #fff;
    }

    .tagline-separator {
        font-size: 0.9rem;
        color: var(--accent);
    }
}

/* Hamburger button — hidden on desktop, shown on mobile */
.hamburger-btn {
    display: none;
}

/* Hide desktop dropdown elements on mobile/tablet, show hamburger */
@media (max-width: 1199px) {
    /* Header bar: hamburger left, title centered, phantom spacer right */
    .header .container {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        gap: 0;
    }

    /* Phantom spacer matches hamburger width so logo is truly centered */
    .header .container::after {
        content: '';
        width: 40px;
        flex-shrink: 0;
    }

    .logo-dropdown-container {
        flex: 1;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .logo {
        cursor: default;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0;
        gap: 0;
        height: auto;
        background: transparent;
        border: none;
    }

    .logo h1 {
        font-size: 1.6rem;
    }

    .logo-subtitle-mobile {
        display: block;
        font-size: 0.72rem;
        color: #aaa;
        margin-top: 0;
        font-weight: 300;
        letter-spacing: 1px;
        text-align: center;
    }

    .dropdown-arrow {
        display: none;
    }

    .dropdown-nav {
        display: none !important;
    }

    .tagline-bar {
        display: none !important;
    }

    /* Hamburger button — left side */
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 2px solid #fff;
        color: #fff;
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.15s ease;
        font-weight: 900;
        line-height: 1;
        order: -1;
    }

    .hamburger-btn:hover {
        background: #fff;
        color: #000;
    }

    /* Mobile nav: hidden by default, full-width column dropdown */
    .mobile-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #000;
        border-top: 2px solid #222;
    }

    .mobile-nav.open {
        display: flex !important;
    }

    .mobile-nav .nav-btn,
    .mobile-nav .auth-btn {
        width: 100%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #1c1c1c;
        margin-left: 0;
        border-radius: 0;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .mobile-nav .nav-btn:hover {
        background: #fff;
        color: #000;
    }

    .mobile-nav .nav-btn.active {
        background: #fff;
        color: #000;
    }

    .mobile-nav .auth-btn {
        border-top: 2px solid #333;
        background: transparent;
        color: #fff;
    }

    .mobile-nav .auth-btn:hover {
        background: #fff;
        color: #000;
    }
}

/* ====================================
   MAIN CONTENT & SECTIONS
   ==================================== */
.main {
    padding: 0;
    background: #fff;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    text-align: center;
    background: #000;
    color: #fff;
    padding: 4rem 2rem;
    margin: 0;
    border-bottom: 4px solid #000;
}

/* Space Open/Closed Status Indicator */
.space-status-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0.6rem 3rem;
    border: 3px solid;
    border-radius: 0;
    letter-spacing: 8px;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.space-status-indicator.is-open {
    border-color: #0f0;
    background: rgba(0, 255, 0, 0.08);
    animation: openPulse 2s ease-in-out infinite;
}

.space-status-indicator.is-closed {
    border-color: #a00;
    background: rgba(255, 0, 0, 0.06);
}

.space-status-text {
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.space-status-indicator.is-open .space-status-text {
    color: #0f0;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.6), 0 0 40px rgba(0, 255, 0, 0.3);
}

.space-status-indicator.is-closed .space-status-text {
    color: #c00;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.space-status-glow {
    position: absolute;
    inset: -4px;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.space-status-indicator.is-open .space-status-glow {
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 15px rgba(0, 255, 0, 0.1);
}

#adminSpaceToggleArea {
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

#adminToggleSpaceBtn {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.35rem 1.2rem;
    border: 2px solid #555;
    background: transparent;
    color: #555;
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

#adminToggleSpaceBtn:hover {
    border-color: #fff;
    color: #fff;
}

#adminToggleSpaceBtn.space-is-open {
    border-color: #c00;
    color: #c00;
}

#adminToggleSpaceBtn.space-is-open:hover {
    border-color: #ff4444;
    color: #ff4444;
}

@keyframes openPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
        border-color: #0f0;
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.4), 0 0 50px rgba(0, 255, 0, 0.15);
        border-color: #0c0;
    }
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    border-top: 2px solid #333;
    padding-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ====================================
   SUPPORT PROGRESS BAR
   ==================================== */
.support-bar-section {
    margin: 2rem auto 1.5rem;
    max-width: 780px;
    padding: 0 2rem;
    user-select: none;
}

.support-bar-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.support-bar-title {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.support-bar-amount {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

/* Outer glass tube shell */
.support-bar-tube {
    position: relative;
    height: 32px;
    background: #111;
    border-radius: 999px;
    border: 2px solid #333;
    overflow: hidden;
    box-shadow:
        inset 0 3px 8px rgba(0,0,0,0.8),
        inset 0 -1px 3px rgba(255,255,255,0.04),
        0 2px 12px rgba(0,0,0,0.4);
}

/* Segment tick marks */
.support-bar-tube::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0%,
        transparent calc(25% - 1px),
        rgba(255,255,255,0.04) calc(25% - 1px),
        rgba(255,255,255,0.04) 25%
    );
    border-radius: 999px;
    z-index: 3;
    pointer-events: none;
}

/* Yellow liquid fill */
.support-bar-liquid {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2%;
    min-width: 20px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        #fff9a0 0%,
        #FFE500 30%,
        #f5c800 65%,
        #d4a800 100%
    );
    transition: width 1.6s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow:
        0 0 20px rgba(255, 229, 0, 0.55),
        0 0 6px rgba(255, 229, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    z-index: 1;
}

/* Glass shine streak */
.support-bar-shine {
    position: absolute;
    top: 4px;
    left: 10px;
    right: 10px;
    height: 28%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.18) 20%,
        rgba(255,255,255,0.28) 50%,
        rgba(255,255,255,0.18) 80%,
        transparent 100%
    );
    border-radius: 999px;
    z-index: 4;
    pointer-events: none;
}

.support-bar-meta {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
    color: #555;
    text-align: center;
    white-space: nowrap;
}

/* ====================================
   FEATURED SECTIONS
   ==================================== */
.featured-section {
    background: #fff;
    border: 4px solid #000;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.featured-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #000;
    padding-bottom: 1rem;
}

/* ====================================
   SECTION HEADERS
   ==================================== */
.section-header {
    background: #000;
    color: #fff;
    padding: 2rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-filters {
    display: flex;
    gap: 0;
}

.search-filters input, .search-filters select {
    padding: 1rem 1.2rem;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #000;
    font-weight: 700;
    margin-left: -2px;
}

.search-filters input:focus, .search-filters select:focus {
    outline: none;
    background: #000;
    color: #fff;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
    padding: 1rem 2rem;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    color: #000;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: 3px solid #000;
}

.btn-primary:hover {
    background: #000;
    color: var(--accent);
    border: 3px solid #000;
}

.btn-outline {
    border: 3px solid #000;
    color: #000;
    background: #fff;
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* ====================================
   MEMBER AVATARS & BADGES
   ==================================== */
.member-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 3px solid #000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    position: relative;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Membership tier badge - attached to bottom of photo */
.member-tier-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.3rem 0;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-top: 2px solid #000;
}

.member-tier-badge.tier-member {
    background: rgba(0, 0, 0, 0.9);
}

.member-tier-badge.tier-contributor {
    background: #000;
    color: #fff;
    letter-spacing: 2px;
}

.member-card:hover .member-tier-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-top-color: #fff;
}

.avatar-placeholder {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
}

.member-avatar-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.member-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-avatar-large .avatar-placeholder {
    font-size: 2rem;
}

.status-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
    margin-left: 0.5rem;
}

/* ====================================
   MEMBER GRID & CARDS
   ==================================== */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 0;
    padding: 2rem;
    align-items: start;
}

@media (min-width: 1200px) {
    #memberGrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.member-card {
    background: #fff;
    border: 4px solid #000;
    padding: 2rem;
    transition: all 0.2s ease;
    margin: -2px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
}

.member-card:hover {
    background: #000;
    color: #fff;
}

.member-card:hover .skill-tag {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.member-card:hover .status-badge {
    background: #fff;
    color: #000;
}

.member-card:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.member-card:hover .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.member-card:hover .member-avatar {
    border-color: #fff;
}

.member-card:hover .avatar-placeholder {
    color: #666;
}

.member-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-info p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.member-email {
    font-size: 0.9rem;
    opacity: 0.8;
}

.member-bio {
    min-height: 60px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 2rem;
}

.skill-tag {
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    box-shadow: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -1px;
}

.skill-tag:hover {
    background: #000;
    color: var(--accent);
    border-color: #000;
}

.member-actions {
    display: flex;
    gap: 0;
}

.member-actions .btn {
    flex: 1;
    padding: 0.8rem;
    font-size: 0.8rem;
    margin-left: -3px;
}

/* ====================================
   NEEDS BOARD
   ==================================== */
.needs-grid, .needs-preview {
    display: grid;
    gap: 0;
    padding: 2rem;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

.need-card {
    background: #fff;
    border: 4px solid #000;
    padding: 2rem;
    transition: all 0.2s ease;
    margin-bottom: -4px;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.need-card:hover {
    background: #000;
    color: #fff;
}

.need-card:hover .skill-tag {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.need-card:hover .need-budget {
    background: #fff;
    color: #000;
}

.need-card:hover .need-deadline {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.need-card:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.need-card:hover .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.need-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.need-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.need-author {
    font-size: 0.9rem;
    font-weight: 400;
}

.need-budget {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
}

.need-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

.need-deadline {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 2px solid #000;
    display: inline-block;
}

.need-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 2rem;
}

.need-actions {
    display: flex;
    gap: 0;
}

.need-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    margin-left: -3px;
}

/* ====================================
   MATCHING SECTION
   ==================================== */
.matches-section {
    background: #fff;
    border: 3px solid #000;
    padding: 2rem;
    margin-top: 2rem;
}

.matches-section h4 {
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.match-item {
    background: #fff;
    border: 2px solid #000;
    padding: 1.5rem;
    margin-bottom: -2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-item:hover {
    background: #000;
    color: #fff;
}

.match-item:hover .skill-tag {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.match-item:hover .btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.match-info {
    flex: 1;
    margin-right: 1rem;
}

.match-info h5 {
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-info p {
    font-size: 0.9rem;
    font-weight: 400;
}

.match-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1rem;
}

.match-skills .skill-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin: -1px;
}

/* ====================================
   EVENTS SECTION
   ==================================== */
.events-section {
    background: #fff;
    border: 4px solid #000;
    padding: 2rem;
    margin: 2rem;
    overflow: hidden;
}

.events-section h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #000;
    padding-bottom: 1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.events-scroll-row {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    width: 100%;
}

.events-scroll-row::-webkit-scrollbar {
    height: 4px;
}

.events-scroll-row::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.events-scroll-row::-webkit-scrollbar-thumb {
    background: #000;
}

.events-scroll-row .event-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    min-width: 280px;
    max-width: 340px;
}

@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr !important;
    }
}

.event-card {
    background: #fff;
    border: 4px solid #000;
    padding: 1.5rem;
    transition: all 0.2s ease;
    margin: -2px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.event-card:hover {
    background: #000;
    color: #fff;
}

/* Future events (beyond 7 days) — grayed out */
.event-card.event-card-future {
    background: #f5f5f5;
    border-color: #aaa;
    color: #777;
}

.event-card.event-card-future .event-day-label {
    background: #aaa;
    color: #fff;
}

.event-card.event-card-future:hover {
    background: #555;
    color: #fff;
    border-color: #555;
}

/* Private events */
.event-card.event-card-private {
    position: relative;
}

.event-private-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 2;
    pointer-events: none;
}

.event-card.event-card-private .event-privacy-btn {
    position: relative;
    z-index: 3;
    pointer-events: all;
}

/* Event Detail Modal */
.event-detail-modal-content {
    max-width: 700px;
    width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    border: 3px solid #000;
}

.event-detail-hero {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    padding-top: 2.5rem;
}

.event-detail-hero img {
    width: 100%;
    height: auto;
    display: block;
    image-orientation: from-image;
}

.event-detail-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    min-height: 1.5rem;
}

.event-detail-share-btn {
    background: none;
    border: 2px solid #000;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.event-detail-share-btn:hover {
    background: #000;
    color: #fff;
}

.event-ticket-btn {
    flex: 1 1 100% !important;
    width: 100%;
    font-size: 1rem;
    padding: 0.9rem;
    letter-spacing: 1px;
}

.event-detail-ticketing-row {
    border-top: 2px solid #000;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.event-detail-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.event-detail-toggle-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #000;
    cursor: pointer;
}

.event-detail-modal-content > .painting-detail-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    border-radius: 0;
    border: none;
    border-left: 3px solid #000;
    border-bottom: 3px solid #000;
    width: 2.5rem;
    height: 2.5rem;
    background: #000;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.event-detail-body {
    padding: 2.5rem 1.25rem 1.25rem;
    box-sizing: border-box;
    width: 100%;
}

.event-detail-private-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.event-detail-title {
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.event-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    border-left: 4px solid var(--accent, #FFE500);
    padding-left: 1rem;
}

.event-detail-meta-item {
    font-weight: 700;
    font-size: 0.9rem;
}

.event-detail-img-wrap {
    margin-bottom: 1.5rem;
}

.event-detail-img-wrap img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border: 3px solid #000;
}

.event-detail-description {
    font-size: 0.9rem;
    line-height: 1.75;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    color: #333;
}

.event-detail-extra-info {
    font-size: 0.9rem;
    line-height: 1.75;
    white-space: pre-wrap;
    background: #f8f8f8;
    border-left: 4px solid var(--accent, #FFE500);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.event-detail-admin-edit {
    background: #f0f0f0;
    border: 3px solid #000;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.event-detail-admin-edit h4 {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #000;
}

.event-detail-admin-edit textarea,
.event-detail-admin-edit input[type="text"],
.event-detail-admin-edit input[type="file"] {
    display: block;
    width: 100%;
    border: 3px solid #000;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.event-detail-admin-edit .form-group label {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.event-detail-admin-edit .form-group {
    margin-bottom: 1rem;
}

.event-detail-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 3px solid #000;
}

.event-detail-bottom-actions .btn-rsvp-action,
.event-detail-bottom-actions .btn-rsvp,
.event-detail-bottom-actions .btn,
.event-detail-bottom-actions button,
.event-detail-bottom-actions a {
    flex: 1;
    min-width: 120px;
    text-align: center;
    box-sizing: border-box;
}

.event-detail-bottom-actions .event-privacy-btn {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.event-privacy-btn {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    opacity: 0.85;
}

.btn-delete-event {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    background: none;
    border: 1px solid #c00;
    color: #c00;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.15s, color 0.15s;
}

.btn-delete-event:hover {
    background: #c00;
    color: #fff;
}

/* Guest RSVP */
.guest-rsvp-wrap {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guest-rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 3px solid #000;
    padding: 1rem;
    background: #f8f8f8;
}

.guest-rsvp-form input[type="text"] {
    border: 3px solid #000;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 700;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.guest-rsvp-form input[type="text"]::placeholder {
    font-weight: 400;
    color: #999;
}

.guest-rsvp-btns {
    display: flex;
    gap: 0.5rem;
}

.guest-rsvp-btns .btn {
    flex: 1;
}

.guest-signin-btn {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
    width: 100%;
    text-align: center;
}

.rsvp-guest-tag {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #ccc;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.event-card:hover .event-type,
.event-card:hover .event-day-label {
    background: #fff;
    color: #000;
}

.event-card:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.event-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-rsvp {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border: 1px solid #888;
    color: #555;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-rsvp:hover {
    border-color: #000;
    color: #000;
}

.event-card:hover .btn-rsvp {
    border-color: #aaa;
    color: #aaa;
}

.event-card:hover .btn-rsvp:hover {
    border-color: #fff;
    color: #fff;
}

.btn-rsvp-action {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-rsvp-action:hover {
    background: #000;
    color: #fff;
}

.btn-rsvp-action.rsvpd {
    background: #000;
    color: #fff;
}

.btn-rsvp-action.rsvpd:hover {
    background: transparent;
    color: #000;
}

.event-card:hover .btn-rsvp-action {
    border-color: #fff;
    color: #fff;
}

.event-card:hover .btn-rsvp-action:hover {
    background: #fff;
    color: #000;
}

.event-card:hover .btn-rsvp-action.rsvpd {
    background: #fff;
    color: #000;
}

.event-card:hover .btn-rsvp-action.rsvpd:hover {
    background: transparent;
    color: #fff;
}

/* Admin RSVP Panel */
.rsvp-event-group {
    border: 2px solid #000;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
}

.rsvp-event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rsvp-count {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    background: #000;
    color: #fff;
    padding: 0.15rem 0.6rem;
}

.rsvp-date {
    font-size: 0.75rem;
    color: #666;
    margin-left: auto;
}

.rsvp-show-all-btn {
    display: block;
    margin: 1rem auto 0;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.rsvp-attendee-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rsvp-attendee-list li {
    font-size: 0.85rem;
    border-left: 3px solid #000;
    padding-left: 0.75rem;
}

.rsvp-email {
    color: #666;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}


.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-type {
    background: #000;
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
    white-space: nowrap;
}

.event-day-label {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.event-details {
    flex: 1;
    margin-bottom: 1rem;
}

.event-detail {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.event-detail strong {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Event Items (for Home page list view) */
.event-item {
    background: #fff;
    border: 4px solid #000;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.event-item:hover {
    background: #000;
    color: #fff;
}

.event-item:hover .event-day-label {
    background: #fff;
    color: #000;
}

.event-item:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

/* Google Calendar Section */
.google-calendar-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px solid #000;
}

.google-calendar-section h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.google-calendar-section iframe {
    border: 4px solid #000;
    width: 100%;
    height: 600px;
}

/* ====================================
   PROFILE SECTION
   ==================================== */
.profile-container {
    background: transparent;
    border: none;
    margin: 2.5rem 4rem;
    width: calc(100% - 8rem);
}

#profile .container {
    max-width: none;
    padding: 0;
}

.profile-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
}

/* Profile top row: info left, square photo right */
.profile-top-row {
    display: flex;
    gap: 2rem;
    align-items: start;
    margin: -2.5rem -2.5rem 0 -2.5rem;
    padding: 2.5rem;
}

.profile-top-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem;
}

.profile-top-info .form-group {
    margin-bottom: 0;
}

/* Avatar wrapper: photo + tier badge attached below */
.profile-avatar-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-top: 1.6rem;
}

.profile-col-left .profile-avatar-display {
    width: 240px;
    min-width: 240px;
    height: 240px;
    aspect-ratio: 1 / 1;
    border: 3px solid #000;
    margin: 0;
    flex-shrink: 0;
}

/* Tier badge attached to bottom of photo */
.profile-tier-badge {
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: 3px solid #000;
    border-top: none;
    background: #000;
    color: #fff;
}

.profile-col-left .profile-status-banner {
    margin: 0 -2.5rem;
    border: none;
    border-bottom: 3px solid #000;
}

.profile-col-left .profile-photos-group {
    margin-top: 1.5rem;
}

.profile-col {
    padding: 2.5rem;
    border: 4px solid #000;
    background: #fff;
}

.profile-col-right {
    background: #f5f5f5;
}

.profile-portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #000;
    padding-bottom: 1rem;
}

.profile-portfolio-header h3 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.profile-portfolio-header .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.profile-status-banner {
    padding: 1.5rem;
    margin: 2rem 0 1.5rem;
    border: 3px solid #000;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.profile-avatar-display {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 3px solid #000;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    overflow: hidden;
}

.profile-avatar-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hide photo grid and file input in view mode */
.profile-photos-group .profile-photos-grid {
    display: none;
}

.profile-photos-group input[type="file"] {
    display: none;
}

/* Show them in edit mode */
.profile-container.editing .profile-photos-group .profile-photos-grid {
    display: grid;
}

.profile-container.editing .profile-photos-group input[type="file"] {
    display: block;
}

.profile-actions-bar {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.profile-actions-bar .btn {
    min-width: 200px;
}

/* Profile edit mode disabled state */
.profile-container input:disabled,
.profile-container textarea:disabled,
.profile-container select:disabled {
    background: #f0f0f0;
    color: #333;
    cursor: not-allowed;
    border-color: #ccc;
}

.profile-container input:not(:disabled),
.profile-container textarea:not(:disabled),
.profile-container select:not(:disabled) {
    background: #fff;
    border-color: #000;
}

/* Portfolio project cards in profile */
.profile-project-card {
    background: #fff;
    border: 3px solid #000;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.profile-project-card .project-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 3px solid #000;
}

.profile-project-card .project-info {
    padding: 1rem;
}

.profile-project-card .project-info h4 {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.profile-project-card .project-info p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.profile-project-card .project-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.profile-project-card .project-tag {
    background: #000;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.profile-project-card .project-actions {
    padding: 0.5rem 1rem;
    border-top: 2px solid #000;
    display: flex;
    gap: 0.5rem;
}

.profile-project-card .project-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
}

.section-divider {
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

/* ====================================
   FORMS
   ==================================== */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 400;
    background: #fff;
    color: #000;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    background: #000;
    color: #fff;
}

.skills-suggestions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.skills-suggestions .skill-tag {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    font-size: 0.8rem;
    margin: -1px;
}

.skills-suggestions .skill-tag:hover {
    background: #000;
    color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 2px solid #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skill-checkbox:hover {
    background: #000;
    color: #fff;
}

.skill-checkbox input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* ====================================
   PORTFOLIO PROJECTS
   ==================================== */
/* Horizontal scroll container for portfolio in member modal */
.portfolio-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.portfolio-scroll::-webkit-scrollbar {
    height: 6px;
}

.portfolio-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.portfolio-scroll::-webkit-scrollbar-thumb {
    background: #000;
}

.portfolio-scroll .portfolio-project {
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    margin-bottom: 0;
}

.portfolio-project {
    background: #fff;
    border: 3px solid #000;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-project h4 {
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-project p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 2px solid #000;
    margin-bottom: 1rem;
}

.project-image-small {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border: 2px solid #000;
    margin-bottom: 0.5rem;
}

.project-actions {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.project-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-left: -3px;
}

.image-preview {
    margin-top: 1rem;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 3px solid #000;
}

/* ====================================
   MODALS
   ==================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

#authModal {
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border: 6px solid #000;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #000;
}

.onboarding-content {
    max-width: 600px;
}

.onboarding-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
}

.onboarding-step h4 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.onboarding-nav {
    display: flex;
    gap: 0;
    margin-top: 2rem;
}

.onboarding-nav .btn {
    flex: 1;
    margin-left: -3px;
}

.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    cursor: pointer;
    color: #000;
    transition: all 0.2s ease;
}

.close:hover {
    color: #666;
}

.modal h3 {
    margin-bottom: 2rem;
    font-weight: 900;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #000;
    padding-bottom: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 2rem;
    font-weight: 400;
}

.auth-toggle a {
    color: #000;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.auth-redirect-notice {
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.75rem;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.auth-redirect-notice a {
    color: #666;
    text-decoration: underline;
}

.auth-redirect-notice a:hover {
    color: #000;
}

/* Member Profile in Modal */
.member-profile {
    text-align: center;
}

.member-profile h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.member-details {
    text-align: left;
    margin-top: 2rem;
}

.member-details h4 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.member-details p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.empty-state {
    text-align: center;
    font-style: italic;
    padding: 4rem;
    font-size: 1.2rem;
    border: 3px solid #000;
    background: #fff;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #fff;
    border-left: 4px solid #000;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ====================================
   ALERTS
   ==================================== */
.alert {
    padding: 1.5rem 2rem;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 4px solid #000;
}

.alert-success {
    background: #fff;
    color: #000;
}

.alert-error {
    background: #000;
    color: #fff;
}

/* ====================================
   ANIMATIONS
   ==================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================
   CUSTOM SCROLLBAR
   ==================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fff;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* ====================================
   MEMBERSHIP TIERS SECTION
   ==================================== */
.membership-header {
    text-align: center;
    margin-bottom: 3rem;
}

.membership-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.membership-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.current-membership-status {
    margin-bottom: 3rem;
}

.status-card {
    border: 4px solid #000;
    padding: 2rem;
    background: #fff;
    text-align: center;
}

.status-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.current-tier-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tier-name {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tier-status {
    padding: 0.5rem 1rem;
    border: 3px solid #000;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.tier-status.status-active {
    background: #000;
    color: #fff;
}

.tier-status.status-inactive {
    background: #fff;
    color: #000;
}

.membership-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.tier-card {
    border: 4px solid #000;
    padding: 2rem;
    background: #fff;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--accent);
}

.tier-card.tier-featured {
    background: #000;
    color: #fff;
}

.tier-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 3px solid #000;
}

.tier-featured .tier-badge {
    background: var(--accent);
    color: #000;
}

.tier-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #000;
}

.tier-featured .tier-header {
    border-bottom-color: #fff;
}

.tier-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
}

.price-period {
    font-size: 1.2rem;
    color: #666;
}

.tier-featured .price-period {
    color: #ccc;
}

.tier-description {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #000;
    line-height: 1.6;
}

.tier-featured .tier-description {
    border-bottom-color: #fff;
}

.tier-features h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.tier-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.tier-features li {
    padding: 0.75rem 0;
    border-bottom: 2px solid #eee;
    font-weight: 500;
}

.tier-featured .tier-features li {
    border-bottom-color: #333;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-select-btn {
    width: 100%;
    margin-top: auto;
}

.tier-select-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contributor donation card */
.tier-contributor-section {
    margin-bottom: 4rem;
}

.tier-contributor-card {
    border: 4px solid #000;
    background: #f5f5f5;
    padding: 2.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tier-contributor-card:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0 var(--accent);
}

.tier-contributor-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.tier-contributor-header {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tier-contributor-info p {
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
}

.tier-contributor-features h4 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.tier-contributor-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.tier-contributor-features li {
    padding: 0.6rem 0;
    border-bottom: 2px solid #ddd;
    font-weight: 500;
    font-size: 0.95rem;
}

.tier-contributor-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .tier-contributor-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.membership-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.membership-faq h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 3px solid #000;
    background: #fff;
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.faq-item p {
    line-height: 1.6;
    color: #444;
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.about-hero h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.about-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: #555;
}

.about-mission {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    border: 3px solid #000;
    background: #fff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-credits {
    margin-bottom: 3rem;
}

.about-credits h3 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.credit-card {
    border: 3px solid #000;
    padding: 2rem;
    text-align: center;
    background: #fff;
}

.credit-role {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 0.75rem;
}

.credit-name {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.credit-contact {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #555;
    font-weight: 700;
}

.about-feedback {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    border: 3px solid #000;
    background: #fff;
}

.about-feedback h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.feedback-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-feedback-admin {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-feedback-admin h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #000;
    padding-bottom: 0.75rem;
}

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-item {
    border: 3px solid #000;
    padding: 1.5rem;
    background: #fff;
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.feedback-item-name {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.feedback-item-type {
    background: #000;
    color: #fff;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feedback-item-message {
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.feedback-item-date {
    font-size: 0.8rem;
    color: #999;
    font-weight: 700;
}

@media (max-width: 768px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h2 {
        font-size: 2rem;
    }

    .about-feedback {
        margin: 0 0.5rem 2rem;
        padding: 1.5rem;
    }

    .about-mission {
        margin: 0 0.5rem 2rem;
    }
}

/* ====================================
   RESPONSIVE DESIGN - TABLET
   ==================================== */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .membership-tiers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tier-card {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Profile: switch to single-column on iPad so form fields aren't squeezed */
    .profile-container {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }

    .profile-container form {
        grid-template-columns: 1fr;
    }

    .profile-top-row {
        flex-direction: column-reverse;
        gap: 1rem;
        margin: -1.5rem -1.5rem 0 -1.5rem;
        padding: 0;
    }

    .profile-top-info {
        padding: 1rem 1.5rem 0;
    }

    .profile-avatar-wrapper {
        margin-top: 0;
        width: 100%;
    }

    .profile-col-left .profile-avatar-display {
        width: 100%;
        min-width: unset;
        height: auto;
        aspect-ratio: 4 / 3;
        border-bottom: none;
    }

    .profile-tier-badge {
        border-left: 3px solid #000;
        border-right: 3px solid #000;
    }

    .profile-col-left .profile-status-banner {
        margin: 0 -1.5rem;
    }

    .profile-col {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-container input,
    .profile-container textarea,
    .profile-container select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ====================================
   RESPONSIVE DESIGN - MOBILE
   ==================================== */
@media (max-width: 768px) {
    /* Force full width container on mobile */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .main {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Force events grid to single column on mobile */
    #upcomingEvents .events-grid,
    #upcomingWeekEvents {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    #upcomingEvents,
    #upcomingWeekEvents {
        width: 100%;
    }
    /* Header & Navigation */
    .logo h1 {
        font-size: 2rem;
        justify-content: center;
    }
    .logo-o {
        height: 0.75em;
    }

    .logo p {
        font-size: 0.8rem;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-btn, .auth-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        white-space: nowrap;
    }
    
    /* First row: Home, Directory, Check In (3 equal) */
    .nav-btn[data-section="home"],
    .nav-btn[data-section="directory"],
    .nav-btn[data-section="checkin"] {
        flex: 1 1 calc(33.33% - 4px);
    }

    /* Rows of two: Events/Needs, Gallery/Membership, Profile/Login */
    .nav-btn[data-section="calendar"],
    .nav-btn[data-section="needs"],
    .nav-btn[data-section="gallery"],
    .nav-btn[data-section="membership"],
    .nav-btn[data-section="profile"],
    .auth-btn {
        flex: 1 1 calc(50% - 4px);
    }
    
    /* Hero Section */
    .hero {
        padding: 1.5rem 1rem 1rem;
    }

    .hero h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .space-status-indicator {
        margin-top: 0.75rem;
        margin-bottom: 1rem;
    }

    .support-bar-section {
        max-width: 100%;
        padding: 0 1rem;
        margin: 1rem auto 0.75rem;
    }

    .support-bar-title {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .support-bar-amount {
        font-size: 11px;
        white-space: nowrap;
    }

    .support-bar-meta {
        white-space: normal;
        font-size: 8px;
        letter-spacing: 0;
    }

    /* Membership */
    .membership-header h2 {
        font-size: 2rem;
    }

    .membership-subtitle {
        font-size: 1rem;
    }

    .membership-tiers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tier-title {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .tier-name {
        font-size: 1.5rem;
    }

    .membership-faq h3 {
        font-size: 1.5rem;
    }

    .faq-item h4 {
        font-size: 1.1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .search-filters {
        flex-direction: column;
        width: 100%;
    }
    
    .search-filters input,
    .search-filters select {
        width: 100%;
        margin-left: 0;
        margin-top: -2px;
    }
    
    /* Grids */
    .member-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .member-card {
        margin: 0 0 1rem 0;
        width: 100%;
        max-width: 500px;
        box-sizing: border-box;
    }
    
    .member-card .member-avatar {
        width: 100%;
        max-width: 100%;
    }
    
    .member-card .member-info {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .featured-section .events-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card {
        margin: 0;
    }
    
    .needs-grid {
        padding: 1rem;
        gap: 1rem;
    }
    
    .need-card {
        margin-bottom: 0;
    }
    
    /* Profile */
    .profile-container {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        border-width: 3px;
    }

    .profile-container form {
        grid-template-columns: 1fr;
    }

    .profile-top-row {
        flex-direction: column-reverse;
        gap: 1rem;
        margin: -1rem -0.75rem 0 -0.75rem;
        padding: 0;
    }

    .profile-top-info {
        padding: 0.75rem 0.75rem 0;
    }

    .profile-avatar-wrapper {
        margin-top: 0;
        width: 100%;
    }

    .profile-col-left .profile-avatar-display {
        width: 100%;
        min-width: unset;
        height: auto;
        aspect-ratio: 4 / 3;
        border: none;
        border-bottom: none;
    }

    .profile-tier-badge {
        border: none;
        border-bottom: 3px solid #000;
    }

    .profile-col-left .profile-status-banner {
        margin: 0 -0.75rem;
    }

    .profile-col {
        border: 3px solid #000;
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    .profile-col:last-of-type {
        margin-bottom: 0;
    }

    .profile-container input,
    .profile-container textarea,
    .profile-container select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-container .form-group {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Actions */
    .member-actions,
    .need-actions,
    .project-actions {
        flex-direction: column;
        gap: 0;
    }
    
    .member-actions .btn,
    .need-actions .btn,
    .project-actions .btn {
        margin-left: 0;
        margin-top: -3px;
        width: 100%;
    }
    
    /* Need Cards */
    .need-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .need-budget {
        align-self: flex-start;
    }
    
    /* Match Items */
    .match-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .match-info {
        margin-right: 0;
        width: 100%;
    }
    
    /* Event Details */
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .event-type {
        align-self: flex-start;
    }
    
    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .member-skills,
    .need-skills,
    .match-skills {
        flex-wrap: wrap;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Onboarding */
    .onboarding-nav {
        flex-direction: column;
    }
    
    .onboarding-nav .btn {
        margin-left: 0;
        margin-top: -3px;
        width: 100%;
    }
    
    /* Featured Sections */
    .featured-section {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .featured-section h3 {
        font-size: 1.5rem;
    }
    
    .featured-section .member-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .featured-section .member-card {
        margin: 0 0 1rem 0;
        width: 100%;
        max-width: 500px;
    }
    
    /* Empty States */
    .empty-state {
        padding: 2rem 1rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
        max-height: 90vh;
    }
    
    .close {
        right: 1.5rem;
        font-size: 2.5rem;
    }
        /* Tighter margins for mobile */
    .featured-section {
        margin: 0.5rem !important;
        padding: 1.5rem 1rem !important;
        border-width: 3px !important;
    }

    .section-header {
        margin: 0 !important;
        padding: 1rem !important;
    }

    .events-section {
        margin: 0.5rem !important;
        padding: 1.5rem 1rem !important;
        border-width: 3px !important;
    }

    .profile-container {
        margin: 0 0.5rem !important;
        width: calc(100% - 1rem) !important;
        border-width: 3px !important;
    }

    .member-grid,
    .needs-grid,
    .events-grid {
        padding: 0.5rem !important;
    }

    .member-card,
    .need-card,
    .event-card {
        border-width: 3px !important;
    }

    /* Hero with less padding */
    .hero {
        padding: 2rem 1rem !important;
    }

    /* Container adjustments */
    .container {
        padding: 0 10px !important;
    }

    /* Reduce border widths globally on mobile */
    .modal-content {
        border-width: 4px !important;
    }
}

/* ====================================
   RESPONSIVE DESIGN - SMALL MOBILE
   ==================================== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    /* Sections */
    .section-header,
    .featured-section,
    .events-section {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }

    .profile-container {
        margin: 0;
    }
    
    /* Cards */
    .member-card, 
    .need-card {
        padding: 1.5rem;
    }
    
    /* Modals */
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border: 4px solid #000;
    }
    
    /* Buttons */
    .nav-btn, 
    .auth-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    /* Logo */
    .logo h1 {
        font-size: 2rem;
        justify-content: center;
    }

    /* Avatars */
    .member-avatar {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }
    
    .member-avatar-large {
        width: 150px;
        height: 150px;
    }
}
/* ====================================
   PHOTO GALLERY
   ==================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-item {
    position: relative;
    border: 3px solid #000;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-item:hover {
    border-color: #666;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #000;
    color: #fff;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-item-remove:hover {
    background: #f00;
    border-color: #f00;
}

.gallery-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed #000;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
}

.gallery-add-btn:hover {
    background: #f0f0f0;
}
/* ====================================
   HOME CHECK-IN WIDGET (Mobile Logged-In)
   ==================================== */
.home-checkin-widget {
    display: none;
}

.home-checkin-card {
    background: #000;
    color: #fff;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.home-checkin-card .status-text {
    color: #fff;
}

.home-checkin-card .status-time {
    color: #ccc;
}

.home-checkin-card .circular-checkin-btn {
    width: 200px;
    height: 200px;
    border-color: #fff;
    box-shadow: 0 8px 0 rgba(255, 255, 255, 0.3);
}

.home-checkin-card .circular-checkin-btn:hover {
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.3);
}

.home-checkin-card .circular-checkin-btn:active {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0.3);
}

.home-checkin-card .circular-checkin-btn.status-out {
    background: #f00;
    border-color: #fff;
}

.home-checkin-card .circular-checkin-btn.status-out:hover {
    background: #c00;
}

.home-checkin-card .circular-checkin-btn.status-out .btn-text {
    color: #fff;
}

.home-checkin-card .circular-checkin-btn.status-in {
    border-color: #fff;
}

@media (max-width: 768px) {
    body.user-logged-in .home-checkin-widget {
        display: block;
    }

    body.user-logged-in #home .hero > h2,
    body.user-logged-in #home .hero > p {
        display: none;
    }

    body.user-logged-in #home .hero {
        padding-top: 0;
        border-top: none;
    }

    body.user-logged-in #home .hero .hero-stats {
        border-top: none;
        padding-top: 1.5rem;
    }
}

/* ====================================
   CHECK-IN SYSTEM
   ==================================== */
.checkin-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.checkin-status-card {
    background: #fff;
    border: 4px solid #000;
    padding: 3rem;
    text-align: center;
}

.checkin-status-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.current-status-display {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.status-indicator-text {
    text-align: center;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.circular-checkin-btn {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 6px solid #000;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 0 #000;
}

.circular-checkin-btn:hover {
    background: #000;
    transform: translateY(4px);
    box-shadow: 0 4px 0 #000;
}

.circular-checkin-btn:hover .btn-text {
    color: #fff;
}

.circular-checkin-btn:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #000;
}

.circular-checkin-btn .btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.circular-checkin-btn .btn-icon {
    font-size: 0;
    line-height: 1;
    display: none;
}

.circular-checkin-btn .btn-text {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

.circular-checkin-btn.status-in {
    background: #0f0;
    border-color: #000;
}

.circular-checkin-btn.status-in:hover {
    background: #0c0;
}

.circular-checkin-btn.status-out {
    background: #fff;
    border-color: #000;
}

.circular-checkin-btn.status-in .btn-icon {
    animation: pulse 2s infinite;
}

.status-time {
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.7;
    text-align: center;
}

.btn-large {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.admin-checkin-controls {
    background: #fff;
    border: 4px solid #000;
    padding: 2rem;
    margin: 2rem;
}

.admin-checkin-controls h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #000;
    padding-bottom: 1rem;
}

.checkin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border: 3px solid #000;
    margin: -1.5px;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.checkin-filters {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.filter-btn {
    flex: 1;
    padding: 0.8rem;
    border: 3px solid #000;
    background: #fff;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: -3px;
}

.filter-btn:hover {
    background: #000;
    color: #fff;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

.checkin-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-checkin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 3px solid #000;
    margin-bottom: -3px;
    transition: all 0.2s ease;
}

.admin-checkin-item.status-in {
    background: #f0fff0;
}

.admin-checkin-item.status-out {
    background: #fff;
}

.admin-checkin-item:hover {
    background: #000;
    color: #fff;
}

.admin-checkin-item:hover .checkin-status-badge {
    background: #fff;
    color: #000;
}

.admin-checkin-item:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

.checkin-item-info {
    flex: 1;
}

.checkin-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.checkin-item-header h4 {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.checkin-status-badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
}

.checkin-status-badge.status-in {
    background: #0f0;
    color: #000;
}

.checkin-status-badge.status-out {
    background: #f00;
    color: #fff;
}

.checkin-time {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

.checkin-item-actions {
    display: flex;
    gap: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-left: -3px;
}

.access-denied {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 4px solid #000;
    margin: 2rem;
}

.access-denied h3 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.access-denied p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ====================================
   ACTIVITY LOG - WEEK CALENDAR
   ==================================== */
.activity-log {
    margin-top: 2rem;
    border-top: 4px solid #000;
    padding-top: 2rem;
}

.activity-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.activity-log-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    border: none;
    padding: 0;
}

.activity-log-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.activity-log-date {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border: 3px solid #000;
    border-left: none;
    border-right: none;
    min-width: 160px;
    text-align: center;
}

.activity-log-summary {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.activity-summary-stat {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border: 3px solid #000;
    margin-left: -3px;
}

.activity-summary-stat:first-child {
    margin-left: 0;
}

.activity-summary-stat .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    display: block;
}

.activity-summary-stat .stat-label {
    font-size: 0.7rem;
    color: #000;
}

.activity-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.activity-day {
    border: 3px solid #000;
    margin: -1.5px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.activity-day.today {
    border-color: #000;
    box-shadow: inset 0 0 0 2px #000;
}

.activity-day-header {
    background: #000;
    color: #fff;
    padding: 0.6rem;
    text-align: center;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activity-day.today .activity-day-header {
    background: #333;
}

.activity-day-date {
    display: block;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.activity-day-entries {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    max-height: 300px;
}

.activity-entry {
    padding: 0.4rem 0.5rem;
    border-bottom: 2px solid #eee;
    font-size: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.activity-entry:last-child {
    border-bottom: none;
}

.activity-dot {
    font-size: 0.9rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.activity-dot.dot-in {
    color: #0a0;
}

.activity-dot.dot-out {
    color: #f00;
}

.activity-entry-info {
    flex: 1;
    min-width: 0;
}

.activity-entry-name {
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-entry-time {
    font-size: 0.65rem;
    color: #666;
    font-weight: 700;
}

.activity-day-empty {
    text-align: center;
    color: #ccc;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile: stack days vertically */
@media (max-width: 768px) {
    .activity-week-grid {
        grid-template-columns: 1fr;
    }

    .activity-day {
        min-height: auto;
    }

    .activity-day-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.6rem 1rem;
    }

    .activity-day-date {
        margin-top: 0;
    }

    .activity-day-entries {
        max-height: none;
        padding: 0.75rem;
    }

    .activity-entry {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .activity-entry-name {
        font-size: 0.8rem;
    }

    .activity-entry-time {
        font-size: 0.75rem;
    }

    .activity-log-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-log-nav {
        width: 100%;
    }

    .activity-log-nav .btn-sm {
        flex: 1;
    }

    .activity-log-date {
        flex: 2;
    }

    .activity-log-summary {
        flex-wrap: wrap;
    }

    .activity-summary-stat {
        flex: 1 1 calc(50% - 3px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Mobile responsiveness for check-in */
@media (max-width: 768px) {
    .checkin-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        margin: -1.5px 0;
    }
    
    .checkin-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        margin-left: 0;
        margin-top: -3px;
    }
    
    .admin-checkin-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .checkin-item-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .checkin-item-actions .btn-sm {
        width: 100%;
        margin-left: 0;
        margin-top: -3px;
    }
    /* Mobile responsiveness for check-in */
@media (max-width: 768px) {
    .circular-checkin-btn {
        width: 200px;
        height: 200px;
        border-width: 5px;
        box-shadow: 0 6px 0 #000;
    }
    
    .circular-checkin-btn:hover {
        transform: translateY(3px);
        box-shadow: 0 3px 0 #000;
    }
    
    .circular-checkin-btn:active {
        transform: translateY(6px);
    }
    
    .circular-checkin-btn .btn-icon {
        font-size: 3rem;
    }
    
    .circular-checkin-btn .btn-text {
        font-size: 1.1rem;
    }
    
    .status-text {
        font-size: 1.2rem;
    }
    
    .checkin-stats {
        grid-template-columns: 1fr;
    }
}
}
/* ====================================
   PROFILE PHOTOS GRID
   ==================================== */
.profile-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.profile-photo-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 3px solid #000;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.profile-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-item.cover-photo {
    grid-column: span 2;
    grid-row: span 2;
}

.profile-photo-item .photo-badge {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    background: #000;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-photo-item .photo-remove {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background: #000;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-item .photo-remove:hover {
    background: #f00;
}

.photo-add-btn {
    aspect-ratio: 1;
    border: 3px dashed #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-add-btn:hover {
    background: #f0f0f0;
}

.photo-add-btn span {
    font-size: 2rem;
    font-weight: 900;
}

.photo-add-btn small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .profile-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-photo-item.cover-photo {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* ====================================
   ART GALLERY SECTION
   ==================================== */
.gallery-paintings-grid {
    columns: 2;
    column-gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.painting-card {
    background: #fff;
    border: 4px solid #000;
    padding: 0;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 2rem;
}

.painting-card:hover {
    background: #000;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 var(--accent);
}

.painting-image-container {
    width: 100%;
    overflow: hidden;
    border-bottom: 4px solid #000;
    position: relative;
}

.painting-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.painting-card:hover .painting-image-container img {
    transform: scale(1.05);
}

.painting-sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.painting-trade-overlay {
    background: rgba(0, 0, 0, 0.45);
    color: var(--accent);
}

.painting-nfs-overlay {
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
    font-size: 1.4rem;
}

.painting-price-trade {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.painting-price-nfs {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.painting-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.painting-header {
    margin-bottom: 1rem;
}

.painting-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.painting-artist {
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.8;
}

.painting-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.painting-credit {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-left: 3px solid #000;
    background: #f9f9f9;
}

.painting-card:hover .painting-credit {
    background: #333;
    border-left-color: #fff;
}

/* Digital Price Tag - Clean Digital Font */
.painting-price {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-align: center;
    padding: 1rem;
    border: 4px solid #000;
    background: #fff;
}

.painting-card:hover .painting-price {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.painting-actions {
    display: flex;
    gap: 0;
    margin-top: auto;
}

.painting-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 0.9rem;
    margin-left: -3px;
}

.painting-card:hover .btn-primary {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff;
}

.painting-card:hover .btn-outline {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff;
}

/* Admin Actions for Paintings */
.painting-admin-actions {
    display: flex;
    gap: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 3px solid #000;
}

.painting-card:hover .painting-admin-actions {
    border-top-color: #fff;
}

.painting-admin-actions .btn {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.75rem;
    margin-left: -3px;
}

/* Mobile Responsive Gallery */
@media (max-width: 768px) {
    .gallery-paintings-grid {
        columns: 1;
        padding: 1rem;
    }

    .painting-card {
        width: 100%;
        max-width: 100%;
    }

    .painting-price {
        font-size: 2rem;
    }

    .painting-title {
        font-size: 1.25rem;
    }

    .painting-actions {
        flex-direction: column;
    }

    .painting-actions .btn {
        margin-left: 0;
        margin-top: -3px;
    }

    .painting-admin-actions {
        flex-direction: column;
    }

    .painting-admin-actions .btn {
        margin-left: 0;
        margin-top: -3px;
    }
}

/* ====================================
   PAINTING DETAIL MODAL
   ==================================== */
.painting-detail-modal .modal-content {
    max-width: 1100px;
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
}

.painting-detail-layout {
    display: flex;
    flex-direction: row;
    min-height: 500px;
}

.painting-detail-image {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.painting-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 80vh;
}

.painting-detail-image .painting-sold-overlay {
    font-size: 3rem;
}

.painting-detail-info {
    flex: 0 0 380px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #000;
}

.painting-detail-info .painting-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.painting-detail-info .painting-artist {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.painting-detail-info .painting-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.painting-detail-info .painting-credit {
    margin-bottom: 1.5rem;
}

.painting-detail-info .painting-price {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.painting-detail-info .painting-detail-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.painting-detail-info .painting-detail-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.painting-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #000;
    color: #fff;
    border: 3px solid #fff;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    line-height: 1;
}

.painting-detail-close:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

/* Payment method separator */
.payment-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-separator::before,
.payment-separator::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #000;
}

#paypal-button-container,
.paypal-button-container {
    width: 100%;
    min-height: 45px;
}

/* Mobile painting detail */
@media (max-width: 768px) {
    .painting-detail-modal .modal-content {
        max-height: 95vh;
        width: 95%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .painting-detail-layout {
        flex-direction: column;
    }

    .painting-detail-image {
        max-height: 40vh;
        flex-shrink: 0;
    }

    .painting-detail-image img {
        max-height: 40vh;
    }

    .painting-detail-info {
        flex: none;
        border-left: none;
        border-top: 4px solid #000;
        padding: 1.5rem;
    }

    .painting-detail-info .painting-title {
        font-size: 1.4rem;
    }

    .painting-detail-info .painting-price {
        font-size: 1.8rem;
    }

    .painting-detail-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ====================================
   BOOK THE SPACE SECTION
   ==================================== */

.bookspace-hero {
    background: #000;
    color: #fff;
    padding: 3.5rem 2rem;
    margin: 0 -20px 3rem -20px;
    text-align: center;
    border-bottom: 4px solid #000;
}

.bookspace-hero h2 {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.bookspace-hero p {
    font-size: 1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form grid for side-by-side fields */
.bookspace-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
}

@media (max-width: 768px) {
    .bookspace-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Required asterisk */
.required {
    color: #000;
    font-weight: 900;
}

.form-hint {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.75rem;
    margin-top: -0.25rem;
    font-style: italic;
}

/* Use-type tiles */
.use-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 3px solid #000;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .use-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1rem;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    gap: 0.5rem;
    user-select: none;
}

.use-type-tile:hover {
    background: #f5f5f5;
}

.use-type-tile input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.use-type-tile.selected {
    background: #000;
    color: #fff;
    border-color: #000;
}

.use-type-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.use-type-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Contribution mode selector */
.contribution-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.contribution-mode-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border: 2px solid #000;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    position: relative;
    gap: 0.35rem;
    user-select: none;
}

.contribution-mode-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contribution-mode-tile.selected {
    background: #000;
    color: #fff;
}

.contribution-mode-tile:not(.selected):hover { background: #f5f5f5; }

.mode-icon {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

.mode-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.community-rate-note {
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #000;
    background: #f8f8f8;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #444;
}

/* Contribution Slider */
.contribution-group {
    background: #f8f8f8;
    border: 3px solid #000;
    padding: 2rem;
    margin-top: 0.5rem;
}

.contribution-slider-wrapper {
    margin-top: 1.5rem;
}

.contribution-display {
    text-align: center;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.contribution-amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.contribution-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
}

/* Custom slider — native input is invisible and overlaid for interaction */
.slider-outer {
    position: relative;
    padding: 12px 0;
    cursor: pointer;
}

.custom-slider-track {
    width: 100%;
    height: 6px;
    background: #000;
    position: relative;
}

.custom-slider-thumb {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #000;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #000;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.contribution-slider-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.contribution-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #777;
    font-weight: 700;
    padding: 0 2px;
}

.bookspace-submit-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-top: 2rem;
}

/* Admin Space Requests Panel */
.admin-requests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}

.admin-requests-header h3 {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.space-requests-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 3px solid #000;
}

.space-request-item {
    padding: 1.5rem;
    border-bottom: 2px solid #000;
    transition: background 0.15s ease;
}

.space-request-item:last-child {
    border-bottom: none;
}

.space-request-item:hover {
    background: #f8f8f8;
}

.space-request-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.space-request-title-col {
    flex: 1;
    min-width: 0;
}

.space-request-title {
    font-weight: 900;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.space-request-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.space-request-top-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.request-badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #000;
    white-space: nowrap;
}

.request-badge.status-pending { background: #fff; color: #000; }
.request-badge.status-approved { background: #000; color: #fff; }
.request-badge.status-declined { background: #555; color: #fff; border-color: #555; }
.request-badge.status-contacted { background: #FFE500; color: #000; border-color: #FFE500; }

.space-request-conflict-slot { width: 100%; }

.dash-declined-section {
    margin-top: 1.5rem;
    border-top: 2px dashed #ccc;
    padding-top: 1rem;
}

.dash-declined-toggle {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.conflict-slot {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: right;
    border-right: 3px solid;
}
.conflict-slot.conflict-time {
    color: #c0392b;
    border-color: #c0392b;
    background: #fdecea;
}
.conflict-slot.conflict-date {
    color: #b7621a;
    border-color: #e67e22;
    background: #fef5e7;
}
.conflict-slot-details {
    margin-top: 0.2rem;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    opacity: 0.9;
}

.booking-conflict-indicator {
    margin-top: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
    font-size: 0.82rem;
    display: none;
}
.booking-conflict-indicator.conflict-time {
    display: block;
    background: #fdecea;
    border: 1.5px solid #c0392b;
    color: #c0392b;
}
.booking-conflict-indicator.conflict-date {
    display: block;
    background: #fef5e7;
    border: 1.5px solid #e67e22;
    color: #b7621a;
}
.booking-conflict-indicator strong { font-weight: 700; }
.conflict-detail-list {
    margin: 0.3rem 0 0 0;
    padding-left: 1.2rem;
    font-weight: 400;
    font-size: 0.79rem;
    opacity: 0.9;
}
.conflict-detail-list li { margin-bottom: 0.1rem; }


.space-request-details {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.space-request-details strong {
    font-weight: 700;
    color: #000;
}

.space-request-actions {
    display: flex;
    gap: 0;
    margin-top: 0.75rem;
    border-top: 2px solid #ddd;
    padding-top: 0.75rem;
}

.space-request-actions .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    margin-left: -2px;
}

@media (max-width: 480px) {
    .contribution-mode-grid { grid-template-columns: 1fr; }
    .contribution-mode-tile {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .bookspace-hero {
        padding: 2.5rem 1.25rem;
        margin: 0 -20px 2rem -20px;
    }

    .bookspace-hero h2 {
        font-size: 1.7rem;
    }

    /* Keep 2-col form grid on mobile — equal 50/50 split */
    .bookspace-form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 0.75rem;
        align-items: end; /* inputs align at bottom regardless of label height */
    }

    /* Tighter spacing and smaller labels so they don't wrap as much */
    .bookspace-form-grid .form-group {
        margin-bottom: 1.25rem;
        min-width: 0; /* forces grid children to respect column width */
        overflow: hidden;
    }

    .bookspace-form-grid .form-group label {
        font-size: 0.72rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
    }

    .bookspace-form-grid .form-group input,
    .bookspace-form-grid .form-group select {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Normalize date/time inputs so iOS doesn't override sizing */
    .bookspace-form-grid .form-group input[type="date"],
    .bookspace-form-grid .form-group input[type="time"] {
        -webkit-appearance: none;
        appearance: none;
    }

    .use-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contribution-group {
        padding: 1.25rem;
    }

    .contribution-amount {
        font-size: 2.2rem;
    }

    .space-request-meta {
        flex-direction: column;
    }
}

/* ====================================
   DONATE SECTION
   ==================================== */
.donate-hero {
    background: #000;
    color: #fff;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
    border-bottom: 4px solid #000;
    text-align: center;
}

.donate-hero h2 {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.donate-hero p {
    font-size: 1rem;
    color: #ccc;
    max-width: 560px;
    margin: 0 auto;
}

.donate-card {
    max-width: 560px;
    margin: 0 auto;
    border: 4px solid #000;
    padding: 2.5rem 2rem;
    background: #fff;
    margin-bottom: 3rem;
}

.donate-card h3 {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.donation-preset-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.donation-preset-btn {
    padding: 0.85rem 0;
    border: 3px solid #000;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.donation-preset-btn:hover,
.donation-preset-btn.active {
    background: #000;
    color: #fff;
}

.donation-custom-group {
    margin-bottom: 1.75rem;
}

.donation-custom-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.donation-input-wrap {
    display: flex;
    align-items: center;
    border: 3px solid #000;
}

.donation-currency {
    padding: 0.75rem 0.85rem;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
}

.donation-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-family: inherit;
}

.donation-submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.donation-note {
    font-size: 0.82rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .donate-hero {
        padding: 2.5rem 1.25rem;
        margin: 0 -20px 2rem -20px;
    }

    .donate-hero h2 {
        font-size: 1.7rem;
    }

    .donate-card {
        padding: 1.5rem 1.25rem;
    }

    .donation-preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ====================================
   ADMIN DASHBOARD
   ==================================== */
.admin-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #000;
}

.admin-dash-header h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.admin-space-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    border: 3px solid #000;
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-stat-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #555;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid #000;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s, border-color 0.2s;
}

.admin-tab-btn:hover {
    color: #000;
}

.admin-tab-btn.active {
    color: #000;
    border-bottom-color: var(--accent);
}

.admin-tab-panel {
    min-height: 200px;
}

.admin-progress-panel {
    padding: 24px 0;
}

.admin-progress-live {
    margin-bottom: 28px;
}

.admin-progress-boost {
    border-top: 2px solid #000;
    padding-top: 20px;
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Dash member rows */
.dash-member-row {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.dash-member-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #000;
    border-radius: 50%;
}

.dash-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dash-member-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Dash gallery rows */
.dash-gallery-row {
    display: grid;
    grid-template-columns: 60px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.dash-gallery-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

/* Checkin list in dashboard */
.checkin-status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #000;
}

.status-in {
    background: var(--accent);
    color: #000;
}

.status-out {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .admin-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-tabs {
        gap: 0;
    }

    .admin-tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
    }

    .dash-member-row {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }

    .dash-member-status { grid-column: 2; }
    .dash-member-actions { grid-column: 1 / -1; }

    .dash-gallery-row {
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
    }

    .dash-gallery-row > div:last-child { grid-column: 1 / -1; }
}

/* ============================================================
   NATIVE CALENDAR GRID
   ============================================================ */
/* (outside any media query — global styles below) */
.native-cal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid #000;
}

.native-cal-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.native-cal-month-label {
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 180px;
    text-align: center;
}

.native-cal-btn {
    background: #fff;
    border: 2px solid #000;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.native-cal-btn:hover {
    background: #000;
    color: #fff;
}

.native-cal-today-btn {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.native-cal-grid {
    border: 2px solid #000;
    border-top: none;
    overflow: hidden;
}

.native-cal-loading {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.native-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #000;
    color: #fff;
}

.native-cal-weekday {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.native-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.native-cal-day {
    min-height: 90px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.3rem;
    cursor: pointer;
    position: relative;
    transition: background 0.1s;
    overflow: hidden;
}

.native-cal-day:nth-child(7n) {
    border-right: none;
}

.native-cal-day:hover {
    background: #f5f5f5;
}

.native-cal-day.other-month {
    background: #fafafa;
}

.native-cal-day.other-month .native-cal-day-num {
    color: #ccc;
}

.native-cal-day.today .native-cal-day-num {
    background: #000;
    color: #fff;
    border-radius: 50%;
}

.native-cal-day.selected {
    background: #f0f0f0;
    outline: 2px solid #000;
    outline-offset: -2px;
}

.native-cal-day-num {
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
}

.native-cal-event-pill {
    display: block;
    background: #000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 5px;
    margin-bottom: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    letter-spacing: 0.02em;
}

.native-cal-event-pill:hover {
    background: #333;
}

.native-cal-event-pill.from-supabase {
    background: #555;
    border-left: 2px solid #000;
}

.native-cal-more {
    font-size: 0.6rem;
    color: #888;
    padding: 1px 2px;
    display: block;
}

.native-cal-add-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    display: none;
    padding: 0;
    font-weight: 700;
}

.native-cal-day:hover .native-cal-add-btn {
    display: block;
}

/* Day panel */
.native-cal-day-panel {
    border: 2px solid #000;
    border-top: none;
    padding: 1.25rem 1.5rem;
}

.native-cal-day-panel h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #000;
    padding-bottom: 0.5rem;
}

.native-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.native-cal-day-event {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.1s;
}

.native-cal-day-event:hover {
    background: #f5f5f5;
    border-color: #000;
}

.native-cal-day-event-time {
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 56px;
    color: #555;
    padding-top: 2px;
}

.native-cal-day-event-info h5 {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.native-cal-day-event-info p {
    margin: 0 0 0.15rem 0;
    font-size: 0.78rem;
    color: #555;
}

/* Mobile calendar */
@media (max-width: 600px) {
    .native-cal-month-label {
        font-size: 1rem;
        min-width: 130px;
    }

    .native-cal-day {
        min-height: 52px;
        padding: 0.2rem;
    }

    .native-cal-day-num {
        font-size: 0.7rem;
        width: 20px;
        height: 20px;
    }

    .native-cal-event-pill {
        font-size: 0.5rem;
        padding: 1px 3px;
    }

    .native-cal-weekday {
        font-size: 0.6rem;
        padding: 0.35rem 0;
    }

    .native-cal-day-panel {
        padding: 1rem;
    }
}