:root {
    --jet-black: #2d3142;
    --silver: #bfc0c0;
    --white: #ffffff;
    --coral-glow: #ef8354;
    --blue-slate: #4f5d75;
    --light-bg: #f8f9fa;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--light-bg);
    color: var(--jet-black);
    overflow-x: hidden;
}

/* Helper Utilities */
.bg-jet-black {
    background-color: var(--jet-black) !important;
}

.bg-blue-slate {
    background-color: var(--blue-slate) !important;
}

.text-coral {
    color: var(--coral-glow) !important;
}

/* Button Customizations */
.btn-coral {
    background-color: var(--coral-glow) !important;
    color: var(--white) !important;
    border: none;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-coral:hover {
    background-color: #df6f40 !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 131, 84, 0.25);
}

.btn-outline-slate {
    border: 2px solid var(--blue-slate) !important;
    color: var(--blue-slate) !important;
    background: transparent !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-slate:hover {
    background-color: var(--blue-slate) !important;
    color: var(--white) !important;
}

.hover-coral {
    transition: color 0.2s ease;
}

.hover-coral:hover {
    color: var(--coral-glow) !important;
}

/* Navbar Styles Fixes */
.navbar {
    border-bottom: 1px solid rgba(191, 192, 192, 0.2);
    backdrop-filter: blur(8px);
    z-index: 1030;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--coral-glow) !important;
    opacity: 1;
}

.navbar-nav .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    z-index: 9999 !important;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar-nav .nav-item.dropdown .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }

    .navbar .dropdown-menu {
        margin-top: 0 !important;
    }
}

.dropdown-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--coral-glow) !important;
}

/* ==========================================================================
✨ FIXED & CLEAN SEAMLESS MARQUEE CSS (JEDA BLANK HILANG TOTAL)
========================================================================== */
.marquee-container {
    background-color: #f1f3f5;
    border-bottom: 1px solid rgba(191, 192, 192, 0.5);
    overflow: hidden;
    width: 100%;
    padding: 12px 0;
    position: relative;
    z-index: 1020;
    display: flex;
}

.marquee-content {
    display: flex;
    width: max-content;
}

.marquee-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Geser ke kiri secara infinity */
    animation: marquee-seamless 40s linear infinite;
}

.donor-badge {
    background: var(--white);
    border: 1px solid rgba(191, 192, 192, 0.6);
    padding: 6px 16px;
    border-radius: 50px;
    margin-right: 20px;
    /* Jarak antar badge */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(45, 49, 66, 0.03);
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* KUNCI UTAMA: Pindah dari 0 ke -50% agar langsung menyambung ke data pertama */
@keyframes marquee-seamless {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-25%);
    }
}

/* ========================================================================== */

/* Premium Ad Placements UX */
.ad-banner-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: var(--silver);
    color: var(--blue-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.65;
    border: 1px dashed var(--blue-slate);
}

.ad-box-multiplier {
    width: 100%;
    max-width: 305px;
    height: 255px;
    background-color: var(--silver);
    color: var(--blue-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px dashed var(--blue-slate);
}

/* Clean Card Architecture */
.custom-card {
    border: 1px solid rgba(191, 192, 192, 0.35);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 6px 24px rgba(45, 49, 66, 0.04);
}

.email-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    background: var(--white);
}

.email-item:hover,
.email-item.active {
    background-color: rgba(79, 93, 117, 0.06) !important;
    border-left-color: var(--coral-glow) !important;
}

.custom-card.position-relative {
    position: relative !important;
}

.custom-card .position-absolute {
    position: absolute !important;
    right: 1.5rem !important;
    bottom: -1rem !important;
    z-index: 0;
}

.custom-card .row {
    position: relative;
    z-index: 1;
}

/* --- TEMA KHUSUS CARD DONASI CTA --- */
.donation-cta-card {
    background-color: #1e2229 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-cta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 131, 84, 0.15) !important;
    border-color: rgba(239, 131, 84, 0.4) !important;
}

.donation-cta-card:hover .cta-badge {
    background-color: rgba(239, 131, 84, 0.15) !important;
    border-color: rgba(239, 131, 84, 0.25) !important;
}

.animate-pulse {
    animation: heartBeat 1.4s infinite;
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* --- HERO PREMIUM COMPONENT MODIFICATION --- */
.hero-premium-card {
    background: linear-gradient(135deg, #4f5d75 0%, #2d3545 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.hero-title {
    font-size: 1.85rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hero-desc {
    font-size: 0.925rem;
    line-height: 1.6;
    max-width: 580px;
    font-weight: 400;
}

.badge-hero-premium {
    background: rgba(45, 49, 66, 0.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.08em;
}

.float-icon-hero i {
    font-size: 9rem;
    color: var(--white);
    transform: rotate(-15deg);
}

.hero-overlay-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(239, 131, 84, 0.12) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: 1;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 20%;
    opacity: 0.5;
}

/* --- HERO SECTION REVISED STYLES --- */
.hero-premium-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%) !important;
    border: 1px solid rgba(191, 192, 192, 0.3) !important;
    color: var(--jet-black) !important;
}

.badge-hero-free {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 800 !important;
    color: var(--jet-black);
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--blue-slate);
    max-width: 480px;
}

.hero-features-pill {
    background: var(--white);
    border: 1px solid rgba(191, 192, 192, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--jet-black);
    box-shadow: 0 2px 6px rgba(45, 49, 66, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-illustration-wrapper {
    position: relative;
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-inbox-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(45, 49, 66, 0.08);
    border: 1px solid rgba(191, 192, 192, 0.4);
    width: 100%;
    max-width: 380px;
    z-index: 2;
}

.shield-badge-floating {
    position: absolute;
    right: 10px;
    bottom: 20px;
    background: #3b82f6;
    color: white;
    width: 60px;
    height: 70px;
    border-radius: 0 0 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    z-index: 3;
    font-size: 1.5rem;
}

/* --- PROFESSIONAL DOMAIN STATS CARD --- */
.domain-stats-pro {
    background: var(--white) !important;
    border: 1px solid rgba(191, 192, 192, 0.4) !important;
    box-shadow: 0 8px 24px rgba(45, 49, 66, 0.05) !important;
    transition: all 0.2s ease;
    border-radius: 16px !important;
}

.domain-stats-pro:hover {
    border-color: var(--blue-slate) !important;
    transform: translateY(-2px);
}

.stat-divider {
    border-color: rgba(191, 192, 192, 0.25) !important;
}

.stat-badge-indicator {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

.stat-badge-public {
    background-color: rgba(239, 131, 84, 0.1);
    color: var(--coral-glow);
}

.stat-badge-private {
    background-color: rgba(79, 93, 117, 0.1);
    color: var(--blue-slate);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--jet-black);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--jet-black);
}

.stat-desc {
    font-size: 0.725rem;
    color: var(--blue-slate);
    line-height: 1.35;
    margin-bottom: 0;
}

/* --- MACOS WINDOW STYLE INBOX --- */
.macos-card {
    border: 1px solid rgba(191, 192, 192, 0.4) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(45, 49, 66, 0.06) !important;
}

.macos-header {
    background: #f1f3f5 !important;
    border-bottom: 1px solid rgba(191, 192, 192, 0.3);
    padding: 12px 16px;
}

.macos-traffic-lights {
    display: flex;
    align-items: center;
    gap: 6px;
}

.macos-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.macos-dot-close {
    background-color: #ff5f56;
    border: 1px solid #e0443e;
}
.macos-dot-minimize {
    background-color: #ffbd2e;
    border: 1px solid #dea123;
}
.macos-dot-maximize {
    background-color: #27c93f;
    border: 1px solid #1aab29;
}

.macos-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--blue-slate);
    letter-spacing: -0.01em;
}

/* --- CUSTOM SEARCHABLE DOMAIN DROPDOWN --- */
.custom-domain-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid rgba(191, 192, 192, 0.5);
    z-index: 1050;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(45, 49, 66, 0.08);
}

.domain-option-item {
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.domain-option-item:hover {
    background-color: rgba(79, 93, 117, 0.08);
    color: var(--coral-glow) !important;
}

/* KUNCI UTAMA: Batasi tinggi dan aktifkan scroll */
.domain-items-wrapper {
    max-height: 200px; /* Card dropdown tetap ringkas */
    overflow-y: auto; /* Bisa di-scroll ke bawah untuk melihat semua data */
    overflow-x: hidden;
}

/* Scrollbar kustom yang tipis & modern */
.domain-items-wrapper::-webkit-scrollbar {
    width: 6px;
}
.domain-items-wrapper::-webkit-scrollbar-track {
    background: #f1f3f5;
}
.domain-items-wrapper::-webkit-scrollbar-thumb {
    background: rgba(191, 192, 192, 0.6);
    border-radius: 10px;
}
.domain-items-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--blue-slate);
}
