/**
 * Story Forge - Community Projects CSS
 * Forge-themed styling
 */

/* ============================================
   VARIABLES & BASE
   ============================================ */
:root {
    /* Forge Theme Palette */
    --forge-primary: #e67e22;
    /* Molten Orange */
    --forge-primary-dark: #d35400;
    /* Ember Red */
    --forge-secondary: #2c3e50;
    /* Dark Metal */
    --forge-accent: #f1c40f;
    /* Gold Sparks */
    --forge-glow: rgba(230, 126, 34, 0.6);

    --forge-bg: #0f1014;
    /* Deep Black/Grey */
    --forge-card-bg: #1a1c24;
    /* Metallic Card */
    --forge-border: #34495e;
    /* Steel Border */

    --forge-text-main: #ecf0f1;
    --forge-text-muted: #95a5a6;

    /* Legacy mapping for compatibility if needed */
    --lab-primary: var(--forge-primary);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
/* Override main site body background for video to show */
body.story-forge-page {
    background: transparent !important;
    background-color: #0a0a0a !important;
}

.story-forge-page {
    min-height: 100vh;
    background: transparent;
    /* Show video background */
    font-family: 'Inter', sans-serif;
    color: var(--forge-text-main);
}

.lab-container {
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0a0a0a;
    /* Fond sombre pour combler les espaces */
}

.video-background video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    /* Limiter le zoom pour éviter le flou */
    max-width: none;
    /* Améliorer le rendu de la vidéo */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   HERO SECTION - THE FORGE HEART
   ============================================ */
.lab-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    /* Give it vertical space */
    padding: 40px 20px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 20px;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.lab-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    z-index: 0;
    object-fit: cover;
    /* Removed filters to show raw video as requested */
}

/* Overlay gradient removed as requested to show raw video */
.lab-hero::before {
    content: none;
    display: none;
}

.lab-hero h1 i {
    -webkit-text-fill-color: #e67e22;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.8));
    animation: flame-flicker 3s infinite;
}

@keyframes flame-flicker {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.6));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(241, 196, 15, 0.8));
        transform: scale(1.05);
    }
}

.lab-hero p {
    font-size: 1.3rem;
    /* Larger text */
    color: #ffffff;
    /* Brighter */
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    /* Strong shadow */
    background: rgba(0, 0, 0, 0.3);
    /* Subtle backing for readability */
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

/* ============================================
   STATS BAR
   ============================================ */
.lab-stats-bar {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin: 0 auto 50px;
    padding: 20px 40px;
    max-width: 900px;
    /* Constrain width */

    background: rgba(20, 20, 20, 0.6);
    /* Darker glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    /* Pill shape */

    position: relative;
    z-index: 1;
}

.lab-stat {
    text-align: center;
    position: relative;
}

.lab-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.lab-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(230, 126, 34, 0.6);
}

.lab-stat-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    /* Lighter grey */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
/* Default Authenticated State */
.lab-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    position: relative;
    cursor: pointer;

    /* Transparent to show lava effect */
    background: transparent !important;
    border: 2px solid rgba(230, 126, 34, 0.6) !important;

    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

    border-radius: 60px;
    padding: 20px 60px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    height: auto;
    width: auto;
    min-width: 320px;

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(230, 126, 34, 0.3);

    z-index: 1;
    overflow: hidden;
    outline: none;
    text-decoration: none;
}

.lab-cta-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 45px rgba(230, 126, 34, 0.3),
        inset 0 1px 5px rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(230, 126, 34, 0.5) !important;
}

.lab-cta-btn i,
.lab-cta-btn span {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.lab-cta-btn:active {
    transform: translateY(-1px) scale(0.98);
}

@keyframes lava-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Filter Section Container */
.lab-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Empty State Styling */
.no-projects-message {
    text-align: center;
    padding: 60px;
    background: rgba(0, 0, 0, 0.6) !important;
    /* Force darker background */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(230, 126, 34, 0.3);
    max-width: 600px;
    margin: 50px auto;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-projects-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--forge-primary);
    text-transform: uppercase;
    font-weight: 800;
}

.no-projects-message p {
    font-size: 1.1rem;
    color: #ecf0f1;
    margin-bottom: 25px;
}

/* Filter Buttons */
.lab-filter-btn {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassy button */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    /* Pill shape */
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lab-filter-btn:hover,
.lab-filter-btn.active {
    background: var(--forge-primary);
    border-color: var(--forge-primary);
    color: white;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.5);
}

.lab-search {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--forge-border);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

.lab-search:focus {
    outline: none;
    border-color: var(--forge-primary);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.2);
}



/* ============================================
   PROJECT CARDS
   ============================================ */
.lab-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.lab-project-card {
    background: rgba(26, 28, 36, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
    border-radius: 8px;
    /* More angular */
    overflow: hidden;
    border: 1px solid var(--forge-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lab-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--forge-primary);
}

.lab-project-image {
    height: 220px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.lab-project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--forge-card-bg), transparent);
}

.lab-project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.lab-project-badge.category {
    background: rgba(0, 0, 0, 0.7);
    color: var(--forge-accent);
    border: 1px solid var(--forge-accent);
}

.lab-project-badge.featured {
    background: var(--forge-primary);
    color: white;
    right: 15px;
    left: auto;
    box-shadow: 0 0 10px var(--forge-glow);
}

.lab-project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lab-project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.lab-project-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.lab-project-title a:hover {
    color: var(--forge-primary);
}

.lab-project-author {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lab-project-author-avatar {
    background: var(--forge-secondary);
    color: var(--forge-text-muted);
    border: 1px solid var(--forge-border);
}

.lab-project-author-name {
    color: var(--forge-text-muted);
}

/* Progress Bar Overhaul */
.lab-progress-amount {
    color: var(--forge-primary);
}

.lab-progress-bar {
    background: #0f1014;
    border: 1px solid #34495e;
    height: 8px;
    border-radius: 4px;
}

.lab-progress-fill {
    background: linear-gradient(90deg, #d35400, #e67e22, #f1c40f);
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.5);
    border-radius: 2px;
}

.lab-progress-bar.funded .lab-progress-fill {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

/* Action Buttons in Card */
.lab-btn-primary {
    background: linear-gradient(135deg, var(--forge-primary), var(--forge-primary-dark));
    color: white;
    border: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.lab-btn-primary:hover {
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
}

.lab-btn-secondary {
    border: 1px solid var(--forge-border);
    color: var(--forge-text-muted);
}

.lab-btn-secondary:hover {
    border-color: var(--forge-text-main);
    color: white;
}

/* ============================================
   MODALS - Premium Glassmorphism Design
   ============================================ */
.lab-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lab-modal-backdrop.active {
    display: flex;
    opacity: 1;
    animation: modalBackdropIn 0.4s ease;
}

@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lab-modal {
    background: linear-gradient(145deg, rgba(20, 22, 30, 0.95), rgba(15, 16, 20, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(230, 126, 34, 0.4);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(230, 126, 34, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0) scale(1);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

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

.lab-modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(211, 84, 0, 0.1));
    border-bottom: 1px solid rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.lab-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 126, 34, 0.5), transparent);
}

.lab-modal-header h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lab-modal-header h3 i {
    color: var(--forge-primary);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.6));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(241, 196, 15, 0.8));
        transform: scale(1.1);
    }
}

.lab-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    transform: rotate(90deg);
}

.lab-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--forge-primary) transparent;
}

.lab-modal-body::-webkit-scrollbar {
    width: 6px;
}

.lab-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.lab-modal-body::-webkit-scrollbar-thumb {
    background: var(--forge-primary);
    border-radius: 3px;
}

.lab-modal-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ============================================
   FORM ELEMENTS - Forge Style
   ============================================ */
.lab-form-group {
    margin-bottom: 25px;
}

.lab-form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-form-input,
.lab-form-textarea,
.lab-form-select {
    width: 100%;
    padding: 15px 18px;
    background: rgba(15, 16, 20, 0.8);
    border: 1px solid rgba(52, 73, 94, 0.6);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.lab-form-input::placeholder,
.lab-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.lab-form-input:hover,
.lab-form-textarea:hover,
.lab-form-select:hover {
    border-color: rgba(52, 73, 94, 0.9);
    background: rgba(15, 16, 20, 0.95);
}

.lab-form-input:focus,
.lab-form-textarea:focus,
.lab-form-select:focus {
    outline: none;
    border-color: var(--forge-primary);
    background: rgba(15, 16, 20, 1);
    box-shadow:
        0 0 0 3px rgba(230, 126, 34, 0.15),
        0 0 20px rgba(230, 126, 34, 0.1);
}

.lab-form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.lab-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e67e22' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

.lab-form-select option {
    background: #1a1c24;
    color: #fff;
    padding: 10px;
}

/* Form helper text */
.lab-form-group small {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ============================================
   FILE UPLOAD ZONE
   ============================================ */
.lab-file-upload {
    padding: 35px 25px;
    background: rgba(15, 16, 20, 0.6);
    border: 2px dashed rgba(230, 126, 34, 0.35);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lab-file-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lab-file-upload:hover {
    border-color: var(--forge-primary);
    background: rgba(230, 126, 34, 0.08);
    transform: translateY(-2px);
}

.lab-file-upload:hover::before {
    opacity: 1;
}

.lab-file-upload i {
    font-size: 2.5rem;
    color: var(--forge-primary);
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.4));
    transition: transform 0.3s ease;
}

.lab-file-upload:hover i {
    transform: scale(1.1);
}

.lab-file-upload p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Media preview grid */
#mediaPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

#mediaPreview img,
#mediaPreview>div {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(230, 126, 34, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#mediaPreview img:hover,
#mediaPreview>div:hover {
    transform: scale(1.05);
    border-color: var(--forge-primary);
}

/* ============================================
   BUTTONS - Enhanced
   ============================================ */
.lab-btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lab-btn-primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    box-shadow:
        0 4px 15px rgba(230, 126, 34, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lab-btn-primary:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow:
        0 8px 25px rgba(230, 126, 34, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.lab-btn-primary:active {
    transform: translateY(-1px);
}

.lab-btn-primary i {
    color: white;
}

.lab-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.lab-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   PLEDGE MODAL SPECIFIC
   ============================================ */
.lab-pledge-amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.lab-pledge-option {
    padding: 18px 15px;
    background: rgba(15, 16, 20, 0.8);
    border: 2px solid rgba(52, 73, 94, 0.5);
    border-radius: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lab-pledge-option:hover {
    border-color: var(--forge-primary);
    background: rgba(230, 126, 34, 0.1);
    color: white;
}

.lab-pledge-option.active {
    border-color: var(--forge-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.25), rgba(211, 84, 0, 0.2));
    color: var(--forge-primary);
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
}

.lab-pledge-custom {
    width: 100%;
    padding: 15px 18px;
    background: rgba(15, 16, 20, 0.8);
    border: 1px solid rgba(52, 73, 94, 0.6);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.lab-pledge-custom:focus {
    outline: none;
    border-color: var(--forge-primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.lab-pledge-message {
    width: 100%;
    min-height: 100px;
    padding: 15px 18px;
    background: rgba(15, 16, 20, 0.8);
    border: 1px solid rgba(52, 73, 94, 0.6);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.lab-pledge-message:focus {
    outline: none;
    border-color: var(--forge-primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.lab-pledge-anonymous {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.lab-pledge-anonymous input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--forge-primary);
    cursor: pointer;
}

.lab-pledge-anonymous label {
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.95rem;
}

/* ============================================
   LOADING STATE
   ============================================ */
.lab-loading {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.lab-loading i {
    font-size: 2.5rem;
    color: var(--forge-primary);
    margin-bottom: 15px;
    display: block;
}

/* ============================================
   RESPONSIVE - Modals
   ============================================ */
@media (max-width: 768px) {
    .lab-modal {
        max-width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .lab-modal-header {
        padding: 20px;
    }

    .lab-modal-header h3 {
        font-size: 1.1rem;
    }

    .lab-modal-body {
        padding: 20px;
        max-height: 55vh;
    }

    .lab-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .lab-modal-footer .lab-btn {
        width: 100%;
    }

    .lab-pledge-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .lab-hero h1 {
        font-size: 2.2rem;
    }
}

/* ============================================
   STORY FORGE - HEADER OVERRIDES
   Keep header consistent with main site (cyan theme)
   ============================================ */
/* Ensure proper padding for fixed navbar */
.story-forge-page {
    padding-top: 130px;
}