/* ============================================================
   UNDERLIFE — DESIGN SYSTEM (Dark Mode / Glassmorphism)
   ============================================================ */

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

:root {
    --section-padding: clamp(4rem, 12vw, 10rem);
    --border-radius: 16px;
    --container-max: 1280px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .site-title, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--white); }

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

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }

.text-center { text-align: center; }
.cyan-text { color: var(--cyan); }

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 900;
}

.section-desc {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

/* === GLASSMORPHISM COMPONENTS === */
.glass-header {
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.glass-header.scrolled {
    background: rgba(5, 6, 8, 0.95);
    padding: 0.5rem 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 85, 255, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    border: none;
}

.btn-neon-orange {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
}
.btn-neon-orange:hover {
    box-shadow: 0 0 35px rgba(255, 85, 0, 0.6);
    transform: scale(1.05);
    color: white;
}

.btn-outline-cyan {
    border: 2px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
}
.btn-outline-cyan:hover {
    background: var(--cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    background: transparent;
    font-size: 0.85rem;
}
.btn-outline-white:hover { border-color: var(--cyan); color: var(--cyan); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 85, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}
.pulse-animation { animation: pulse 2s infinite; }

/* === HEADER / NAV === */
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-text { font-size: 1.4rem; color: var(--white); }
.logo-accent { color: var(--cyan); }
.logo img, .custom-logo { max-height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover { color: var(--cyan); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta { color: var(--secondary) !important; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-header { padding: 0.6rem 1.5rem; font-size: 0.85rem; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 2rem;
    background: rgba(5, 6, 8, 0.98);
    border-top: 1px solid var(--glass-border);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.mobile-menu.active { display: flex; }
.mobile-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-link:hover { color: var(--cyan); }

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 20%, rgba(0, 85, 255, 0.15), transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(0, 229, 255, 0.08), transparent 50%);
    background-size: cover;
    background-position: center;
}

.hero-content { max-width: 850px; text-align: center; margin: 0 auto; }
.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === BENTO GRID (CAUSA) === */
.section-adn { padding: var(--section-padding) 0; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.bento-item { text-align: left; }
.bento-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--white); }
.bento-item p { font-size: 0.9rem; color: var(--text-muted); }
.icon-bento {
    font-size: 28px;
    color: var(--cyan);
    margin-bottom: 1rem;
    display: block;
    width: 28px;
    height: 28px;
}

/* === TRANSPARENCY === */
.section-transparency { padding: var(--section-padding) 0; }
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.stats-list { list-style: none; margin-top: 2rem; }
.stats-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1rem;
}
.stats-list li strong {
    font-size: 1.5rem;
    color: var(--cyan);
    font-family: 'Outfit', sans-serif;
    margin-right: 0.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
}
.dot.active {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.transparency-card h3 { margin-bottom: 0.5rem; }
.transparency-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* === DONATIONS === */
.donation-note { color: var(--text-muted); font-size: 0.85rem; }

/* === DONATION SLIDER & MULTI-STEP === */
.slider-header-new {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.prefix-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.amount-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.currency-symbol {
    font-size: 2.5rem;
    color: var(--cyan);
    font-weight: 800;
}
.amount-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    width: 280px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}
.amount-input:focus { border-color: var(--cyan); }
.impact-text { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; }

.range-wrapper {
    padding: 2rem 0;
    position: relative;
}
.neon-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--cyan);
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan);
    transition: transform 0.2s;
}
.neon-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.range-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.donor-identity-fields {
    margin: 2.5rem 0;
    text-align: left;
}
.field-group { margin-bottom: 1.5rem; }
.field-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.checkbox-group input { cursor: pointer; }

/* Modal Steps */
.modal-step {
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Toast Notifier */
#underlife-toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}
.underlife-toast {
    pointer-events: all;
    background: rgba(10, 11, 16, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--cyan);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.underlife-toast.error { border-color: var(--secondary); box-shadow: 0 10px 30px rgba(255, 85, 0, 0.2); }
.underlife-toast.success { border-color: #00ff88; box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

/* === CONTACT === */
.section-contact { padding: var(--section-padding) 0; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-details { list-style: none; }
.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-muted);
}
.contact-details a { color: var(--text-muted); }
.contact-details a:hover { color: var(--cyan); }
.contact-icon { color: var(--cyan); font-size: 18px; }

.contact-form-wrapper {
    background: var(--glass-bg);
}

/* === FOOTER === */
.footer-underlife {
    background-color: var(--bg-darker);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-title {
    color: var(--cyan);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}
.brand-tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }
.transparency-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(0, 229, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 229, 255, 0.1);
}
.transparency-badge .dashicons { color: var(--cyan); font-size: 16px; }

#footer-menu { list-style: none; }
#footer-menu li { margin-bottom: 0.5rem; }
#footer-menu a { color: var(--text-muted); font-size: 0.9rem; }
#footer-menu a:hover { color: var(--cyan); }

.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.contact-list .dashicons { color: var(--cyan); font-size: 16px; }

.footer-newsletter {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.4rem;
    margin-top: 0.75rem;
}
.footer-newsletter input {
    background: transparent;
    border: none;
    color: white;
    padding: 0 1rem;
    flex-grow: 1;
    outline: none;
    font-size: 0.9rem;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter button {
    background: var(--cyan);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.footer-newsletter button:hover { background: var(--primary); }
.footer-newsletter button .dashicons { font-size: 16px; color: var(--bg-dark); }

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}
.container-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.social-icons a:hover { color: var(--cyan); }
.social-icons .dashicons { font-size: 20px; }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* === PROJECT PAGES === */
.project-hero {
    padding: 10rem 0 4rem;
    background: radial-gradient(circle at top right, rgba(0, 85, 255, 0.1), transparent);
}
.project-featured-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    max-height: 500px;
}
.project-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.project-categories { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.category-badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.project-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.project-excerpt { color: var(--text-muted); font-size: 1.15rem; }

.project-content { padding: 4rem 0; }
.grid-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}
.project-body { color: var(--text-muted); line-height: 1.8; }
.project-body h2, .project-body h3 { color: var(--white); margin: 2rem 0 1rem; }
.project-body p { margin-bottom: 1rem; }
.project-body img { border-radius: var(--border-radius); margin: 1.5rem 0; }

.sidebar-cta { margin-bottom: 2rem; }
.sidebar-cta h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.sidebar-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.sidebar-info h4 { color: var(--cyan); margin-bottom: 0.75rem; }
.info-list { list-style: none; }
.info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.info-list .dashicons { color: var(--cyan); font-size: 16px; }

/* === PAGE === */
.page-hero {
    padding: 10rem 0 3rem;
    background: radial-gradient(circle at top left, rgba(0, 85, 255, 0.1), transparent);
}
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-content { padding: 3rem 0 5rem; }
.entry-content { max-width: 800px; color: var(--text-muted); line-height: 1.8; }
.entry-content h2 { color: var(--white); margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1rem; }

/* === INDEX / BLOG === */
.section-fallback { padding: 10rem 0 5rem; }
.page-header { margin-bottom: 3rem; }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.post-thumb { overflow: hidden; border-radius: var(--border-radius) var(--border-radius) 0 0; max-height: 200px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 1.5rem; }
.post-title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.post-title a { color: var(--white); }
.post-title a:hover { color: var(--cyan); }
.post-excerpt { font-size: 0.9rem; color: var(--text-muted); }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .btn-header { display: none; }
    .mobile-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .donation-options { grid-template-columns: 1fr; gap: 2rem; }
    .donation-card.promoted { transform: none; border-width: 2px; }
    .grid-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 10rem 0 5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    :root { --section-padding: 3rem; }
}

/* === DONATION MODAL === */
.donation-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5,6,8,0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.donation-modal {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: var(--white); }
.modal-text { margin: 1rem 0 2rem; font-size: 1.1rem; }
.donation-type-toggle {
    display: flex; gap: 1rem; margin-bottom: 1.5rem;
}
.toggle-option { flex: 1; cursor: pointer; }
.toggle-option input { display: none; }
.toggle-btn {
    display: block;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 0.9rem;
}
.toggle-option input:checked + .toggle-btn {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}
.modal-assurance { margin-bottom: 2rem; color: var(--text-muted); }
.w-100 { width: 100%; justify-content: center; }
.mt-2 { margin-top: 1rem; }
.donation-loader { margin-top: 1.5rem; }
.loader-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(0,229,255,0.2);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.5rem;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
