/* ===================================================
   X Marks The Cash — Custom Styles
   Aesthetic: Bold treasure-hunt meets financial urgency
   =================================================== */

:root {
    --xm-gold: #F5A623;
    --xm-gold-light: #FFD580;
    --xm-gold-dim: #8B6914;
    --xm-green: #22C55E;
    --xm-red: #EF4444;
    --xm-bg: #0B0F19;
    --xm-surface: #131925;
    --xm-surface-hover: #1A2236;
    --xm-border: #1E293B;
    --xm-text: #E2E8F0;
    --xm-muted: #64748B;
    --xm-radius: 10px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--xm-bg);
    color: var(--xm-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAV */
.xm-nav {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--xm-border);
}
.xm-logo-icon {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--xm-gold);
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}
.xm-logo-text {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    color: #fff;
}
.xm-nav .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--xm-muted);
    transition: color 0.2s;
}
.xm-nav .nav-link:hover { color: var(--xm-gold); }

/* BUTTONS */
.btn-xm {
    background: linear-gradient(135deg, var(--xm-gold), #E09100);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: var(--xm-radius);
    padding: 0.6rem 1.6rem;
    letter-spacing: 0.03em;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-xm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 166, 35, 0.35);
    color: #000;
}
.btn-xm-outline {
    background: transparent;
    color: var(--xm-gold);
    border: 1.5px solid var(--xm-gold);
    font-weight: 600;
    border-radius: var(--xm-radius);
    padding: 0.6rem 1.6rem;
    transition: background 0.2s, color 0.2s;
}
.btn-xm-outline:hover {
    background: var(--xm-gold);
    color: #000;
}

/* HERO */
.xm-hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(34, 197, 94, 0.05) 0%, transparent 50%);
    text-align: center;
}
.xm-hero h1 {
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.xm-hero h1 .xm-highlight {
    color: var(--xm-gold);
    position: relative;
}
.xm-hero .lead {
    font-size: 1.15rem;
    color: var(--xm-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* STAT PILLS */
.xm-stat-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.xm-stat {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    font-size: 0.85rem;
    color: var(--xm-muted);
}
.xm-stat strong {
    color: var(--xm-gold);
    font-weight: 700;
    margin-right: 0.3rem;
}

/* CARDS */
.xm-card {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    border-radius: var(--xm-radius);
    transition: border-color 0.2s, transform 0.2s;
    overflow: hidden;
}
.xm-card:hover {
    border-color: var(--xm-gold-dim);
    transform: translateY(-2px);
}
.xm-card-body { padding: 1.5rem; }
.xm-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.xm-card-title a {
    color: inherit;
    text-decoration: none;
}
.xm-card-title a:hover { color: var(--xm-gold); }

/* STATUS BADGES */
.xm-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}
.xm-badge-open { background: rgba(34, 197, 94, 0.15); color: var(--xm-green); }
.xm-badge-closing { background: rgba(245, 166, 35, 0.15); color: var(--xm-gold); }
.xm-badge-closed { background: rgba(100, 116, 139, 0.2); color: var(--xm-muted); }
.xm-badge-premium { background: rgba(245, 166, 35, 0.15); color: var(--xm-gold); }
.xm-badge-featured {
    background: linear-gradient(135deg, var(--xm-gold), #E09100);
    color: #000;
}

/* PAYOUT TAG */
.xm-payout {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--xm-green);
}

/* SECTION */
.xm-section {
    padding: 4rem 0;
}
.xm-section-title {
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.xm-section-sub {
    color: var(--xm-muted);
    margin-bottom: 2.5rem;
}

/* PRICING */
.xm-price-card {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    border-radius: var(--xm-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}
.xm-price-card.featured {
    border-color: var(--xm-gold);
    box-shadow: 0 0 40px rgba(245, 166, 35, 0.1);
}
.xm-price-card .price {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.xm-price-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--xm-muted);
}
.xm-price-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1.5rem 0;
}
.xm-price-card ul li {
    padding: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--xm-muted);
}
.xm-price-card ul li i { color: var(--xm-green); margin-right: 0.5rem; }
.xm-price-card ul li.disabled { opacity: 0.4; }
.xm-price-card ul li.disabled i { color: var(--xm-muted); }

/* CATEGORY GRID */
.xm-cat-card {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    border-radius: var(--xm-radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.xm-cat-card:hover {
    border-color: var(--xm-gold-dim);
    transform: translateY(-2px);
    color: inherit;
}
.xm-cat-card i {
    font-size: 1.8rem;
    color: var(--xm-gold);
    margin-bottom: 0.75rem;
    display: block;
}
.xm-cat-card h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.xm-cat-card small { color: var(--xm-muted); }

/* HOW IT WORKS */
.xm-step {
    text-align: center;
    padding: 1rem;
}
.xm-step-num {
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--xm-surface);
    border: 2px solid var(--xm-gold);
    border-radius: 50%;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--xm-gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.xm-step h5 { font-weight: 700; font-size: 1rem; }
.xm-step p { font-size: 0.88rem; color: var(--xm-muted); }

/* DASHBOARD */
.xm-dash-stat {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    border-radius: var(--xm-radius);
    padding: 1.25rem;
}
.xm-dash-stat .label { font-size: 0.78rem; color: var(--xm-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.xm-dash-stat .value { font-size: 1.8rem; font-weight: 800; color: var(--xm-gold); }

/* FORMS */
.xm-form .form-control,
.xm-form .form-select {
    background: var(--xm-surface);
    border: 1px solid var(--xm-border);
    color: var(--xm-text);
    border-radius: var(--xm-radius);
    padding: 0.65rem 1rem;
}
.xm-form .form-control:focus,
.xm-form .form-select:focus {
    border-color: var(--xm-gold);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.15);
    background: var(--xm-surface);
    color: var(--xm-text);
}
.xm-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--xm-muted);
}

/* DEADLINE COUNTDOWN */
.xm-deadline {
    font-size: 0.82rem;
    color: var(--xm-muted);
}
.xm-deadline.urgent { color: var(--xm-red); font-weight: 600; }

/* LOCK OVERLAY */
.xm-locked {
    position: relative;
}
.xm-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--xm-bg) 90%);
    pointer-events: none;
}
.xm-lock-cta {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -3rem;
    padding-bottom: 1rem;
}

/* FOOTER */
.xm-footer {
    background: var(--xm-surface);
    border-top: 1px solid var(--xm-border);
    margin-top: auto;
}
.xm-footer-links a {
    color: var(--xm-muted);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.xm-footer-links a:hover { color: var(--xm-gold); }

/* UTILITIES */
.text-gold { color: var(--xm-gold) !important; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.xm-animate {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}
.xm-animate:nth-child(2) { animation-delay: 0.08s; }
.xm-animate:nth-child(3) { animation-delay: 0.16s; }
.xm-animate:nth-child(4) { animation-delay: 0.24s; }
.xm-animate:nth-child(5) { animation-delay: 0.32s; }
.xm-animate:nth-child(6) { animation-delay: 0.40s; }

/* FAQ ACCORDION */
.accordion-button {
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    box-shadow: none !important;
}
.accordion-button::after {
    filter: invert(0.7);
}
.accordion-button:not(.collapsed) {
    background: var(--xm-surface-hover) !important;
    color: var(--xm-gold) !important;
}
.accordion-collapse { background: var(--xm-surface); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .xm-hero { padding: 3rem 0 2.5rem; }
    .xm-section { padding: 2.5rem 0; }
    .xm-stat-bar { gap: 0.75rem; }
}
