/* ================================================================
   UGANDA SOCIETY OF ARCHITECTS – SHARED DESIGN SYSTEM
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --color-black: #0a0a0a;
    --color-white: #ffffff;
    --color-accent: #ff7474;
    --color-accent-soft: #fff0f0;
    /* very light tint for backgrounds */
    --color-accent-mid: #ffb3b3;
    /* medium tint for borders/hover states */
    --color-accent-dark: #cc4444;
    /* deeper shade for pressed/active states */

    --bg: var(--color-white);
    --fg: var(--color-black);
    --border: #e0e0e0;
    --surface: #ffffff;
    --text-light: #666;

    --font-body: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px var(--color-accent);

    /* Layout Grid */
    --golden-major: 61.803%;
    --golden-minor: 38.197%;
    --golden-gap: 1.25rem;
}

body.dark-mode {
    --bg: var(--color-black);
    --fg: var(--color-white);
    --border: #333;
    --surface: #111;
    --text-light: #999;
    --shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.02), 0 10px 20px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--color-accent);
}

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

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background 0.5s ease, color 0.5s ease;
    padding-top: 74px !important;
    /* Space for fixed navbar */
}

.hidden {
    display: none !important;
}

.display-font {
    font-family: var(--font-display);
}

/* ----------------------------------------------------------------
   GEOMETRIC CANVAS OVERLAY
   ---------------------------------------------------------------- */
#geo-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
}

/* Page transition overlay */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}

/* ----------------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------------- */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
    /* Ensure it's above everything */
    transition: background 0.3s, box-shadow 0.3s;
}

.top-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1.05rem);
    /* Fluid scaling to prevent messy contraction */
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.15;
    max-width: 80%;
    /* Leave space for the hamburger */
}

.nav-logo div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-logo img {
    height: clamp(28px, 4vw, 36px);
    flex-shrink: 0;
    /* Prevents the image from being squished on small screens */
}

.nav-logo .logo-text-sub {
    font-size: 0.6rem;
    font-weight: 300;
    opacity: 0.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    white-space: nowrap;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fg);
    opacity: 0.7;
    transition: opacity 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger-btn,
.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    display: none;
    /* Shown on mobile only */
}

.hamburger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--fg);
    transition: all 0.3s ease;
}

body.menu-open .hamburger-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1600px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 80vw;
        height: 100vh;
        background: var(--color-black);
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 20px;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
        visibility: hidden;
    }

    body.menu-open .nav-links,
    .nav-links.mobile-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: white;
        opacity: 0.9;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        background: transparent;
        border: none;
        color: white;
        font-size: 2.5rem;
        cursor: pointer;
        line-height: 1;
        opacity: 0.6;
        transition: opacity 0.2s;
    }

    .mobile-menu-close:hover {
        opacity: 1;
    }
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

@media (max-width: 1600px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* Extra small screen logo adjustments */
@media (max-width: 400px) {
    .top-navbar {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 0.9rem;
    }

    .nav-logo img {
        height: 28px;
    }

    .nav-logo .logo-text-sub {
        font-size: 0.5rem;
    }
}

/* ----------------------------------------------------------------
   SLIDE-OUT MENU PANEL (desktop compact)
   ---------------------------------------------------------------- */
#menu-panel {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: var(--color-black);
    color: var(--color-white);
    z-index: 999;
    padding: 80px 40px 40px;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.menu-open #menu-panel {
    left: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-link:hover,
.menu-link.active {
    color: var(--color-white);
    padding-left: 10px;
    border-color: var(--color-accent);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    backdrop-filter: blur(2px);
}

body.menu-open .menu-overlay {
    display: block;
}

body.menu-open #main-content {
    opacity: 0.3;
    pointer-events: none;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
}

/* ----------------------------------------------------------------
   MAIN LAYOUT
   ---------------------------------------------------------------- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    transition: opacity 0.4s ease;
}

.golden-grid-x {
    display: grid;
    grid-template-columns: var(--golden-major) var(--golden-minor);
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .golden-grid-x {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .top-navbar {
        padding: 15px 20px;
    }

    .nav-logo {
        font-size: 0.95rem;
        gap: 10px;
    }

    .nav-logo img {
        height: 32px;
    }

    .main-content {
        padding: 40px 20px;
    }
}

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px;
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-content h1 strong {
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.5;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ----------------------------------------------------------------
   CARDS & SURFACES
   ---------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-mid);
}

/* Golden Ratio decorative background  */
.golden-deco {
    position: relative;
    overflow: hidden;
}

.golden-deco::after {
    content: '';
    position: absolute;
    right: -5%;
    bottom: -10%;
    width: 38.2%;
    aspect-ratio: 1 / 1.618;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 89 144' fill='none' stroke='%23ff7474' stroke-width='.8' opacity='.12'%3E%3Crect x='0' y='0' width='89' height='89'/%3E%3Crect x='0' y='89' width='55' height='55'/%3E%3Crect x='55' y='89' width='34' height='34'/%3E%3Crect x='55' y='123' width='21' height='21'/%3E%3Ccircle cx='89' cy='89' r='55'/%3E%3Ccircle cx='55' cy='89' r='34'/%3E%3Ccircle cx='55' cy='123' r='21'/%3E%3C/svg%3E") no-repeat center / contain;
    pointer-events: none;
    z-index: 0;
}

.golden-deco>* {
    position: relative;
    z-index: 1;
}

/* Inverted golden deco for dark panels */
.golden-deco-light::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 89 144' fill='none' stroke='%23ffffff' stroke-width='.8' opacity='.06'%3E%3Crect x='0' y='0' width='89' height='89'/%3E%3Crect x='0' y='89' width='55' height='55'/%3E%3Crect x='55' y='89' width='34' height='34'/%3E%3Crect x='55' y='123' width='21' height='21'/%3E%3Ccircle cx='89' cy='89' r='55'/%3E%3Ccircle cx='55' cy='89' r='34'/%3E%3Ccircle cx='55' cy='123' r='21'/%3E%3C/svg%3E") no-repeat center / contain;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--fg);
    display: inline-block;
    padding-bottom: 5px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ----------------------------------------------------------------
   GALLERY / IMAGE GRIDS
   ---------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Outer wrapper for images (Hero & Gallery) */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #000;
}

.image-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55) contrast(1.05);
    /* Base brightness for Hero */
    transition: filter 0.5s ease, transform 0.8s ease;
    z-index: 0;
}

/* Specific to gallery items – apply grayscale by default */
.gallery-item .image-base {
    filter: brightness(0.55) contrast(1.05) grayscale(100%);
}

.image-reveal {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.8s ease;

    /* Large mask size to allow for smooth positional sweeping */
    mask-size: 300% 300%;
    -webkit-mask-size: 300% 300%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    z-index: 1;
}

/* User Hover -> Reveal Full Brightness instantly, scaling both layers */
.gallery-item:hover .image-base {
    filter: brightness(1) contrast(1) grayscale(0%);
    transform: scale(1.03);
}

.gallery-item:hover .image-reveal,
.no-sweep .gallery-item:hover .image-reveal {
    opacity: 0 !important;
    /* Suspend active sweep effect when hovered */
    animation: none !important;
}

/* ────────────────────────────────────────────────────────────────
   IDLE SWEEP ANIMATIONS
   ──────────────────────────────────────────────────────────────── */
/* Animation Trigger */
.active-sweep .image-reveal {
    opacity: 1;
    animation: moveMask var(--sweep-duration, 5s) ease-in-out forwards;
    -webkit-animation: moveMask var(--sweep-duration, 5s) ease-in-out forwards;
}

/* Suspend idle sweeps for no-sweep galleries (Events page) */
.no-sweep .active-sweep .image-reveal {
    animation: none !important;
    opacity: 0 !important;
}

/* Event gallery fallback hover scale */
.no-sweep .gallery-item:hover .image-base {
    transform: scale(1.03);
}

/* Positional sweep instead of scaling */
@keyframes moveMask {
    0% {
        mask-position: 150% 150%;
        -webkit-mask-position: 150% 150%;
    }

    50% {
        mask-position: 50% 50%;
        -webkit-mask-position: 50% 50%;
    }

    100% {
        mask-position: -50% -50%;
        -webkit-mask-position: -50% -50%;
    }
}

/* Specific Pattern Gradients with ultra-soft feathering */
.mask-horizontal {
    mask-image: linear-gradient(90deg, transparent 20%, black 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, black 50%, transparent 80%);
}

.mask-diagonal {
    mask-image: linear-gradient(135deg, transparent 20%, black 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(135deg, transparent 20%, black 50%, transparent 80%);
}

.mask-vertical {
    mask-image: linear-gradient(180deg, transparent 20%, black 50%, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, transparent 20%, black 50%, transparent 80%);
}

.mask-radial {
    mask-image: radial-gradient(circle, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle, black 20%, transparent 70%);
}


.gallery-item-cap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.gallery-item:hover .gallery-item-cap {
    opacity: 1;
}

/* ----------------------------------------------------------------
   MEMBERS HALL
   ---------------------------------------------------------------- */
.hall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.member-card {
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.member-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.member-card-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    filter: none;
    transition: filter 0.5s ease, transform 0.4s ease;
    display: block;
}

.member-card:hover .member-card-photo,
.member-card[data-pulsing="true"] .member-card-photo {
    filter: none;
    transform: scale(1.03);
}

.member-card-info {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.member-card-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.member-card-designation {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.member-details-panel {
    position: absolute;
    inset: 0;
    background: var(--color-black);
    color: white;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.member-card.details-open .member-details-panel {
    transform: translateY(0);
}

.member-details-panel h3 {
    font-family: var(--font-display);
    margin-bottom: 4px;
}

.member-details-panel .detail-row {
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.85;
}

/* ----------------------------------------------------------------
   BUTTONS & FORMS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--fg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

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

.btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: #ef4444;
    color: #fff;
}

.btn-success {
    border-color: #10b981;
    color: #10b981;
}

.btn-success:hover {
    background: #10b981;
    color: #fff;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-white {
    border-color: white;
    color: white;
}

.btn-white:hover {
    background: white;
    color: black;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.form-control {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--color-white, #ffffff);
    color: var(--color-black, #000000);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px !important;
}

select.form-control option {
    background-color: #ffffff;
    color: #000000;
}

.card select.form-control,
.card[style*="background:var(--color-black)"] select.form-control,
.login-card select.form-control {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.card select.form-control option,
.card[style*="background:var(--color-black)"] select.form-control option,
.login-card select.form-control option {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-accent-soft);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    opacity: 0.3;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fg);
}

.divider span {
    padding: 0 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ----------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-family: var(--font-display);
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------------
   STATS & GRIDS
   ---------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 500px) {
    .welcome-stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 30px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.stat-card.card-black {
    background: var(--color-black);
    color: #ffffff;
    border-color: transparent;
}

.stat-card.card-black:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.stat-card.card-accent {
    background: var(--color-accent);
    color: #ffffff;
    border-color: transparent;
}

.stat-card.card-accent:hover {
    box-shadow: 0 10px 20px rgba(255, 116, 116, 0.25);
    color: #ffffff;
    border-color: #ffffff;
}

.stat-value {
    font-size: 3rem;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ----------------------------------------------------------------
   BADGES
   ---------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-pending {
    color: #d97706;
    background: #fef3c7;
}

.badge-approved {
    color: #059669;
    background: #d1fae5;
}

.badge-rejected {
    color: #dc2626;
    background: #fee2e2;
}

.badge-deferred {
    color: #4f46e5;
    background: #e0e7ff;
}

.badge-unregistered {
    color: #6b7280;
    background: #f3f4f6;
}

/* ----------------------------------------------------------------
   TOAST
   ---------------------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--fg);
    color: var(--bg);
    padding: 15px 25px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    font-family: var(--font-display);
    animation: slideUpToast 0.3s ease;
    display: flex;
    gap: 10px;
    align-items: center;
}

.toast-error {
    background: #ef4444;
    color: white;
}

.toast-success {
    background: #10b981;
    color: white;
}

@keyframes slideUpToast {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ----------------------------------------------------------------
   FILE UPLOADS
   ---------------------------------------------------------------- */
.file-upload-area {
    border: 1px dashed var(--fg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    background: rgba(0, 0, 0, 0.03);
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

/* ----------------------------------------------------------------
   COLLAPSIBLE SECTIONS
   ---------------------------------------------------------------- */
.collapsible-section {
    border-bottom: 1px solid var(--border);
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.collapsible-header:hover {
    opacity: 0.7;
}

.collapsible-header .toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    font-weight: 200;
}

.collapsible-section.open .toggle-icon {
    transform: rotate(45deg);
}

.collapsible-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collapsible-section.open .collapsible-body {
    max-height: 1500px;
}

.collapsible-body-inner {
    padding: 0 0 24px 0;
    color: var(--text-light);
    line-height: 1.8;
}

.collapsible-body-inner ul {
    padding-left: 20px;
    margin-top: 8px;
}

.collapsible-body-inner li {
    margin-bottom: 6px;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer {
    background: var(--color-black);
    color: white;
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 36px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    opacity: 0.6;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.4;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.social-links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ----------------------------------------------------------------
   ANIMATED ENTRY
   ---------------------------------------------------------------- */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

/* ----------------------------------------------------------------
   LOGIN PAGE
   ---------------------------------------------------------------- */
.login-full {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-aside {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.login-aside-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(255, 116, 116, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: white;
}

.login-aside-overlay h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.login-panel {
    width: 500px;
    flex-shrink: 0;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 900px) {
    .login-full {
        flex-direction: column;
    }

    .login-panel {
        width: 100%;
        padding: 40px 24px;
    }

    .login-aside {
        min-height: 200px;
    }
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-family: var(--font-display);
    font-size: 1rem;
}

.login-logo img {
    height: 36px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* ----------------------------------------------------------------
   INFO BLOCKS
   ---------------------------------------------------------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Balanced 3-column layout */
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.info-block {
    border-left: 3px solid var(--color-accent);
    padding: 20px 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.info-block h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-block p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   MEMBERSHIP CATEGORIES TABLE
   ---------------------------------------------------------------- */
.category-card {
    border: 1px solid var(--border);
    padding: 30px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

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

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-card .cat-icon {
    width: 36px;
    height: 36px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------------
   SCROLL PROGRESS BAR
   ---------------------------------------------------------------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-accent);
    z-index: 2000;
    transition: width 0.1s ease;
    width: 0;
}

/* ----------------------------------------------------------------
   BACK TO TOP
   ---------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--fg);
    background: var(--surface);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
}

#back-to-top:hover {
    background: var(--fg);
    color: var(--bg);
}

#back-to-top.visible {
    display: flex;
}

/* ----------------------------------------------------------------
   ALLIED MEMBERS SECTION & ULTRA-PREMIUM EFFECTS (NEW)
   ---------------------------------------------------------------- */

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body.dark-mode .glass-panel {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px 0 rgba(255, 116, 116, 0.1);
}

/* Allied Members Layouts */
.allied-grid-platinum {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.allied-card-platinum {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0a0a0a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.allied-card-platinum::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #d5d5d5, #ff7474, #d5d5d5);
}

body.dark-mode .allied-card-platinum {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #0a0a0a !important;
}

.allied-card-platinum:hover {
    transform: translateY(-6px);
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--color-accent);
    border-color: var(--color-accent) !important;
}

.allied-grid-gold {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.allied-card-gold {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 24px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    border-top: 3px solid #d4af37 !important;
    color: #0a0a0a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

body.dark-mode .allied-card-gold {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #0a0a0a !important;
}

.allied-card-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 0 1px #d4af37;
    border-color: #d4af37 !important;
}

.allied-flex-silver {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.allied-card-silver {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    border-top: 3px solid #b0b0b0 !important;
    color: #0a0a0a !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

body.dark-mode .allied-card-silver {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #0a0a0a !important;
}

.allied-card-silver:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 0 1px #b0b0b0;
    border-color: #b0b0b0 !important;
}

.allied-badge-silver {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333333 !important;
    border-radius: 30px;
    transition: all 0.2s;
}

body.dark-mode .allied-badge-silver {
    background: #ffffff !important;
    border-color: #e0e0e0 !important;
    color: #333333 !important;
}

.allied-badge-silver:hover {
    border-color: var(--color-accent) !important;
    background: var(--color-accent-soft) !important;
    color: var(--color-accent-dark) !important;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Footer Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--color-accent);
}

.social-links svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ────────────────────────────────────────────────────────────────
   SITE-WIDE SEARCH & OVERLAY MODAL
   ──────────────────────────────────────────────────────────────── */
.nav-search-container {
    position: relative;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: var(--fg);
    padding: 0;
}
body.dark-mode .nav-search-container {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}
.nav-search-container:hover {
    background: rgba(0, 0, 0, 0.08);
}
body.dark-mode .nav-search-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.nav-search-container svg {
    width: 16px;
    height: 16px;
}

/* Mobile search toggle button in side drawer (balances the top-right close button) */
.mobile-nav-search-btn {
    display: none;
}
@media (max-width: 1600px) {
    .mobile-nav-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        left: 25px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 6px;
        cursor: pointer;
    }
    .mobile-nav-search-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    .mobile-nav-search-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .top-navbar .nav-search-container {
        display: none !important;
    }
}

.search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal.open {
    display: flex;
}
.search-modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: zoomInSearch 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes zoomInSearch {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}
.search-modal-header input {
    flex: 1;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px 16px;
    color: var(--fg);
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-body);
}
.search-modal-header input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.03);
}
.search-close-btn {
    background: transparent;
    border: none;
    font-size: 2.2rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    line-height: 1;
}
.search-close-btn:hover {
    color: white;
}
.search-results-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.search-results-sidebar {
    width: 230px;
    border-right: 1px solid var(--border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.15);
}
.search-tab-btn {
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-tab-btn:hover, .search-tab-btn.active {
    background: rgba(58, 150, 221, 0.1);
    color: var(--color-accent);
}
.search-tab-count {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 10px;
}
.search-results-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}
.search-placeholder {
    opacity: 0.5;
    text-align: center;
    margin-top: 80px;
    font-size: 0.95rem;
}
.search-result-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.search-result-item:hover {
    background: rgba(255, 255, 255, 0.01);
}
.search-result-category {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.search-result-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.search-result-title a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}
.search-result-title a:hover {
    color: var(--color-accent);
}
.search-result-snippet {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── GOOGLE DRIVE FILES REPOSITORY & PORTAL UPGRADES ── */
.gdrive-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    overflow: hidden;
}
.gdrive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}
.gdrive-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-light);
}
.gdrive-breadcrumb-item {
    cursor: pointer;
    transition: color 0.2s;
}
.gdrive-breadcrumb-item:hover {
    color: var(--color-accent);
}
.gdrive-breadcrumb-item.active {
    color: white;
    cursor: default;
}
.gdrive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
}
.gdrive-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.gdrive-item:hover {
    border-color: var(--color-accent);
    background: rgba(58, 150, 221, 0.03);
}
.gdrive-item.selected {
    border-color: var(--color-accent);
    background: rgba(58, 150, 221, 0.08);
}
.gdrive-item-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: var(--text-light);
}
.gdrive-item.selected .gdrive-item-icon {
    color: var(--color-accent);
}
.gdrive-item-name {
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}
.gdrive-item-meta {
    font-size: 0.72rem;
    color: var(--text-light);
    opacity: 0.7;
}
.gdrive-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
    width: 100%;
}
.gdrive-tag-badge {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1px 4px;
    border-radius: 3px;
    color: var(--text-light);
}

.manage-members-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
    gap: 5px;
}
.manage-members-tab {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.manage-members-tab:hover {
    color: white;
}
.manage-members-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.priority-badge {
    font-size: 0.7rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}