/* ============================================================================
   Drop Hunter — shared marketing / public-site theme
   Dark, modern look that matches the dashboard. Linked on all public pages
   (index, product, pricing, community, faq, status, about, contact).
   Split in two parts:
     1) The dh-* design system (hero, cards, buttons, sections)
     2) Dark overrides for the legacy Bootstrap + per-page classes these
        pages already use (.hero-section, .card, .bg-light, .pricing-card, ...)
   ============================================================================ */

:root {
    --dh-bg: #14141f;
    --dh-card: #1f1f2e;
    --dh-text: #e8e9ea;
    --dh-muted: #a9adc1;
    --dh-accent: #8b7bf0;
    --dh-accent2: #a78bfa;
    --dh-green: #10b981;
    --dh-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(1100px 560px at 50% -8%, rgba(118, 75, 162, 0.38), transparent 60%),
        radial-gradient(900px 520px at 88% 8%, rgba(102, 126, 234, 0.18), transparent 55%),
        var(--dh-bg);
    color: var(--dh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 123, 240, 0.35); }

/* ---------- Navbar ---------- */
.dh-nav {
    background: rgba(20, 20, 31, 0.72) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dh-nav .nav-link { color: rgba(232, 233, 234, 0.82) !important; font-weight: 500; }
.dh-nav .nav-link:hover,
.dh-nav .nav-link.active { color: #fff !important; }
.dh-nav .navbar-toggler { box-shadow: none; border: 0; }
.dh-nav .dropdown-menu-dark { background: var(--dh-card); border: 1px solid rgba(255, 255, 255, 0.08); }

/* ---------- Buttons ---------- */
.btn-dh-primary {
    background: var(--dh-grad);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(118, 75, 162, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-dh-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(118, 75, 162, 0.6);
    color: #fff !important;
}
.btn-dh-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--dh-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}
.btn-dh-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(139, 123, 240, 0.6);
    color: #fff !important;
    transform: translateY(-2px);
}

/* ---------- Hero (index) ---------- */
.dh-hero { padding: 140px 0 70px; }
.dh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dh-accent2);
    background: rgba(139, 123, 240, 0.12);
    border: 1px solid rgba(139, 123, 240, 0.3);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.4rem;
}
.dh-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--dh-green);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: dh-pulse 1.8s infinite;
}
@keyframes dh-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.dh-hero-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}
.dh-grad-text {
    background: linear-gradient(120deg, #a78bfa, #7f9cf5 60%, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dh-hero-lead {
    font-size: 1.15rem;
    color: var(--dh-muted);
    line-height: 1.6;
    margin-bottom: 1.8rem;
    max-width: 30rem;
}
.text-lg-start .dh-hero-lead { margin-left: 0; margin-right: 0; }
.dh-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    color: var(--dh-muted);
    font-size: 0.9rem;
    justify-content: center;
}
.dh-trust i { color: var(--dh-green); margin-right: 0.35rem; }

/* Supported-platform strip */
.dh-platforms {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.6rem; margin-top: 1.4rem; justify-content: center;
}
.dh-plat-label {
    font-size: 0.78rem; color: var(--dh-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.dh-plat {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; font-weight: 600; color: #fff;
    border-radius: 999px; padding: 0.32rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}
.dh-plat-twitch i { color: #9146ff; }
.dh-plat-kick i { color: #53fc18; }

/* ---------- Hero alert preview (index) ---------- */
.dh-alert-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(40, 40, 60, 0.9), rgba(26, 26, 42, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: dh-float 5s ease-in-out infinite;
}
@keyframes dh-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.dh-alert-glow {
    position: absolute; inset: -40% 40% auto -40%;
    height: 220px;
    background: radial-gradient(circle, rgba(139, 123, 240, 0.35), transparent 60%);
    pointer-events: none;
}
.dh-alert-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.1rem; position: relative;
}
.dh-live {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 999px; padding: 0.28rem 0.65rem;
}
.dh-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: dh-pulse 1.4s infinite; }
.dh-alert-body { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1rem; position: relative; }
.dh-alert-cover {
    width: 52px; height: 68px; flex: 0 0 auto;
    border-radius: 10px;
    background: var(--dh-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.3rem;
    overflow: hidden;
}
.dh-alert-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-alert-info { min-width: 0; }
.dh-alert-game { font-weight: 700; font-size: 1.05rem; color: #fff; overflow-wrap: anywhere; }
.dh-alert-reward { font-size: 0.9rem; color: var(--dh-muted); margin-top: 0.2rem; display: flex; align-items: center; }
.dh-alert-reward i { color: var(--dh-accent2); margin-right: 0.4rem; }
.dh-reward-thumb { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; margin-right: 0.45rem; flex: 0 0 auto; }
.dh-alert-tracking { font-size: 0.8rem; color: var(--dh-muted); margin-top: 0.35rem; }
.dh-alert-tracking i { color: var(--dh-accent2); margin-right: 0.35rem; }
.dh-progress { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 0.7rem; }
.dh-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8b7bf0, #10b981); }
.dh-alert-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--dh-muted); margin-bottom: 1.1rem; }
.dh-alert-meta i { color: var(--dh-accent2); margin-right: 0.3rem; }
.dh-alert-time { color: #6b7280; }
.dh-alert-cta {
    display: block; text-align: center;
    background: var(--dh-grad); color: #fff !important;
    font-weight: 700; text-decoration: none;
    border-radius: 12px; padding: 0.7rem;
    transition: transform 0.15s ease;
}
.dh-alert-cta:hover { transform: translateY(-2px); }
.dh-alert-badges {
    display: flex; justify-content: center; gap: 1.2rem;
    margin-top: 1.3rem; color: var(--dh-muted); font-size: 0.85rem;
}
.dh-alert-badges i { color: var(--dh-accent2); margin-right: 0.35rem; }

/* ---------- Sections / typography ---------- */
.dh-section { padding: 72px 0; }
.dh-section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.03));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dh-h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.dh-sub { color: var(--dh-muted); font-size: 1.08rem; max-width: 40rem; margin: 0.75rem auto 0; }
.dh-link { color: var(--dh-accent2); text-decoration: none; }
.dh-link:hover { color: #fff; text-decoration: underline; }

/* Cards */
.dh-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dh-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 123, 240, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.dh-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
.dh-card p { color: var(--dh-muted); margin: 0; line-height: 1.6; }
.dh-ico {
    width: 54px; height: 54px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; margin-bottom: 1.1rem;
}
.dh-ico-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dh-ico-violet { background: var(--dh-grad); }
.dh-ico-green { background: linear-gradient(135deg, #10b981, #059669); }

/* Feature grid item */
.dh-feature {
    display: flex; align-items: flex-start; gap: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px; padding: 1.2rem 1.3rem; height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.dh-feature:hover { border-color: rgba(139, 123, 240, 0.4); transform: translateY(-3px); }
.dh-feature i { color: var(--dh-accent2); font-size: 1.4rem; margin-top: 0.15rem; }
.dh-feature h5 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; color: #fff; }
.dh-feature p { color: var(--dh-muted); font-size: 0.9rem; margin: 0; }

/* Steps */
.dh-step { text-align: center; padding: 0 0.5rem; }
.dh-step-num {
    width: 56px; height: 56px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800; color: #fff;
    background: var(--dh-grad);
    box-shadow: 0 10px 24px rgba(118, 75, 162, 0.4);
    margin-bottom: 1rem;
}
.dh-step-num.dh-step-done { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35); }
.dh-step h4 { font-size: 1.12rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.dh-step p { color: var(--dh-muted); font-size: 0.92rem; margin: 0; }

/* Callout / final CTA cards */
.dh-cta-card, .dh-final {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.dh-final::before {
    content: "";
    position: absolute; inset: -50% 20% auto -20%; height: 260px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.4), transparent 60%);
    pointer-events: none;
}
.dh-cta-card > *, .dh-final > * { position: relative; }

/* Stats strip */
.dh-stats { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.dh-stat { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--dh-text); }
.dh-stat i { font-size: 1.6rem; color: var(--dh-accent2); }
.dh-stat span { font-weight: 600; font-size: 0.95rem; }

/* Legal */
.dh-legal { padding: 26px 0 8px; }
.dh-legal small { color: #6b7280; font-size: 0.78rem; }

@media (max-width: 768px) {
    .dh-hero { padding: 118px 0 50px; }
    .dh-hero-lead { max-width: 100%; }
    .dh-trust { justify-content: center; }
}

/* ============================================================================
   PART 2 — Dark overrides for legacy Bootstrap + per-page classes so the
   existing page markup (product/pricing/community/faq/status/about) inherits
   the dark theme without a full rewrite.
   ============================================================================ */

/* Legacy hero used by product/pricing/community/faq/about */
.hero-section {
    background:
        radial-gradient(1000px 480px at 50% -20%, rgba(118, 75, 162, 0.45), transparent 60%),
        transparent !important;
    color: #fff !important;
    padding: 140px 0 60px 0;
}
.hero-section .lead { color: var(--dh-muted) !important; }

/* Generic Bootstrap surfaces → dark */
.bg-light { background: rgba(255, 255, 255, 0.03) !important; }
.bg-white { background: var(--dh-card) !important; }
section.bg-light, section.bg-white { border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.text-dark { color: var(--dh-text) !important; }
.text-muted { color: var(--dh-muted) !important; }
.text-white-50 { color: rgba(255, 255, 255, 0.6) !important; }
hr { border-color: rgba(255, 255, 255, 0.1); }

/* Headings default to light */
h1, h2, h3, h4, h5, h6 { color: #fff; }
.lead { color: var(--dh-muted); }

/* Cards → dark glass */
.card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--dh-text);
    border-radius: 16px;
}
.card .card-title, .card h1, .card h2, .card h3, .card h4, .card h5 { color: #fff; }
.card.border-0 { border: 1px solid rgba(255, 255, 255, 0.08) !important; }
.shadow-sm, .shadow, .shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important; }

/* Buttons remap */
.btn-primary {
    background: var(--dh-grad);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(118, 75, 162, 0.4);
}
.btn-primary:hover { background: var(--dh-grad); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(118, 75, 162, 0.55); }
.btn-outline-primary {
    color: var(--dh-accent2);
    border: 1px solid rgba(139, 123, 240, 0.6);
    border-radius: 12px;
    font-weight: 600;
    background: rgba(139, 123, 240, 0.06);
}
.btn-outline-primary:hover { background: rgba(139, 123, 240, 0.18); color: #fff; border-color: var(--dh-accent2); }
.btn-outline-secondary { color: var(--dh-muted); border-color: rgba(255, 255, 255, 0.2); border-radius: 12px; }
.btn-outline-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-light { border-radius: 12px; font-weight: 700; }
.btn-outline-light { border-radius: 12px; font-weight: 600; }

/* Tables → dark */
.table { color: var(--dh-text); }
.table > :not(caption) > * > * { background: transparent; color: var(--dh-text); border-color: rgba(255, 255, 255, 0.08); }
.table thead th { color: #fff; border-color: rgba(255, 255, 255, 0.12); }

/* Accordion (faq) → dark */
.accordion { --bs-accordion-bg: transparent; }
.accordion-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.accordion-button {
    background: transparent;
    color: #fff;
    font-weight: 600;
}
.accordion-button:not(.collapsed) { background: rgba(139, 123, 240, 0.12); color: #fff; box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: rgba(139, 123, 240, 0.4); }
.accordion-button::after { filter: invert(1) brightness(1.6); }
.accordion-body { color: var(--dh-muted); }

/* ---------- product.php ---------- */
.feature-detail { padding: 60px 0; }
.feature-detail:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.feature-icon-large { font-size: 4rem; margin-bottom: 1.5rem; color: var(--dh-accent2); }
.screenshot-placeholder {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 15px;
    min-height: 300px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.comparison-table {
    background: var(--dh-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.comparison-table th { background: rgba(255, 255, 255, 0.04); color: #fff; font-weight: 600; padding: 1rem; }
.comparison-table td { padding: 1rem; vertical-align: middle; border-color: rgba(255, 255, 255, 0.08); }
.plan-badge { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }
.plan-active { background: var(--dh-grad); color: #fff; }

/* ---------- pricing.php ---------- */
.pricing-card { border-radius: 18px; transition: all 0.3s ease; height: 100%; }
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.pricing-card.featured { border: 2px solid rgba(139, 123, 240, 0.7); position: relative; }
.featured-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--dh-grad); color: #fff;
    padding: 0.5rem 1.5rem; border-radius: 25px; font-weight: bold; font-size: 0.875rem;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.5);
}
.price-amount {
    font-size: 3.5rem; font-weight: bold; line-height: 1;
    background: linear-gradient(120deg, #a78bfa, #7f9cf5 60%, #667eea);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.feature-list li:last-child { border-bottom: none; }
.tier-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }

/* ---------- community.php ---------- */
.discord-widget { border-radius: 15px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.support-card { border-radius: 15px; transition: all 0.3s ease; }
.support-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.roadmap-status { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.875rem; font-weight: 600; }

/* ---------- about.php ---------- */
.value-card { border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.08); transition: all 0.3s ease; background: rgba(255, 255, 255, 0.035); }
.value-card:hover { border-color: rgba(139, 123, 240, 0.5); transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }

/* ---------- status.php ---------- */
.status-container {
    background: var(--dh-card);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
    overflow: hidden;
}
.header-section { background: var(--dh-grad); color: #fff; border-radius: 18px 18px 0 0; padding: 2rem; }
.status-badge { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-right: 0.5rem; }
.status-live { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.status-exploring { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.status-planned { background: rgba(139, 123, 240, 0.16); color: #c4b5fd; }
.status-idea { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.feature-item { border-left: 4px solid rgba(255, 255, 255, 0.12); padding-left: 1rem; margin-bottom: 1rem; }
.feature-item.live { border-color: #10b981; }
.feature-item.exploring { border-color: #f59e0b; }
.feature-item.planned { border-color: #8b7bf0; }
.feature-item.idea { border-color: #38bdf8; }
.last-updated { font-size: 0.9rem; color: var(--dh-muted); font-style: italic; }
.feedback-card {
    background: rgba(139, 123, 240, 0.08);
    border: 2px dashed rgba(139, 123, 240, 0.35);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.feedback-card:hover { border-color: rgba(139, 123, 240, 0.6); transform: translateY(-2px); }

/* ---------- contact.php ---------- */
.dh-form-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
.dh-form-card .form-label { color: var(--dh-text); font-weight: 600; font-size: 0.92rem; }
.dh-form-card .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--dh-text);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}
.dh-form-card .form-control::placeholder { color: rgba(169, 173, 193, 0.6); }
.dh-form-card .form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--dh-accent);
    box-shadow: 0 0 0 0.2rem rgba(139, 123, 240, 0.25);
    color: #fff;
}
.dh-alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    border-radius: 12px;
    padding: 1rem 1.2rem;
}
.dh-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-radius: 12px;
    padding: 1rem 1.2rem;
}

/* Footer spacing tweak on dark pages */
footer.dashboard-footer, footer { border-top-color: rgba(139, 92, 246, 0.12) !important; }

/* ============================================================================
   Blog (/blog, /blog/{slug})
   ============================================================================ */

/* ---- Listing cards ---- */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dh-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 123, 240, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color: var(--dh-text);
}
.blog-card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #14141f;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.blog-card-cover-fallback { color: #fff; font-size: 2rem; opacity: 0.85; }

/* Blurred backdrop so portrait game art never crops badly in a wide frame */
.blog-cover-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(22px) brightness(0.5);
    transform: scale(1.25);
}
.blog-cover-img {
    position: relative; z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.blog-card-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-tag {
    align-self: flex-start;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--dh-accent2);
    background: rgba(139, 123, 240, 0.12);
    border: 1px solid rgba(139, 123, 240, 0.3);
    border-radius: 999px; padding: 0.2rem 0.6rem; margin-bottom: 0.7rem;
}
.blog-card-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 0.5rem; line-height: 1.3; }
.blog-card-excerpt { color: var(--dh-muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 1rem; flex: 1; }
.blog-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--dh-muted); }
.blog-card-readmore { color: var(--dh-accent2); font-weight: 600; }

/* ---- Article ---- */
.blog-article { padding-top: 120px; padding-bottom: 40px; }
.blog-article-header { padding: 0 0 1.5rem; }
.blog-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--dh-accent2);
    background: rgba(139, 123, 240, 0.12);
    border: 1px solid rgba(139, 123, 240, 0.3);
    border-radius: 999px; padding: 0.2rem 0.65rem; margin: 0 0.3rem 0.3rem 0;
}
.blog-article-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 0.9rem; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--dh-muted); font-size: 0.9rem; }
.blog-article-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    background: #14141f;
}

/* Rewards grid (rendered from rewards_json — real drop rewards) */
.blog-rewards {
    margin: 0 0 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}
.blog-rewards-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 1rem; }
.blog-rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.9rem; }
.blog-reward {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.7rem;
    text-align: center;
}
.blog-reward-thumb {
    width: 100%; aspect-ratio: 1 / 1;
    border-radius: 8px; overflow: hidden;
    background: rgba(139, 123, 240, 0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.55rem;
}
.blog-reward-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-reward-thumb i { color: var(--dh-accent2); font-size: 1.5rem; }
.blog-reward-name { font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.3; overflow-wrap: anywhere; }
.blog-reward-req { font-size: 0.75rem; color: var(--dh-muted); margin-top: 0.3rem; }
.blog-reward-req i { color: var(--dh-accent2); }

/* Article typography (renders sanitized body_html) */
.blog-body { font-size: 1.08rem; line-height: 1.75; color: #d7d9e3; }
.blog-body h2 { font-size: 1.55rem; font-weight: 800; color: #fff; margin: 2.2rem 0 0.9rem; letter-spacing: -0.01em; }
.blog-body h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin: 1.7rem 0 0.7rem; }
.blog-body p { margin: 0 0 1.15rem; }
.blog-body ul, .blog-body ol { margin: 0 0 1.15rem 1.25rem; }
.blog-body li { margin-bottom: 0.5rem; }
.blog-body a { color: var(--dh-accent2); text-decoration: underline; text-underline-offset: 2px; }
.blog-body a:hover { color: #fff; }
.blog-body strong { color: #fff; }
.blog-body blockquote {
    border-left: 3px solid var(--dh-accent);
    background: rgba(139, 123, 240, 0.08);
    margin: 1.5rem 0; padding: 0.9rem 1.2rem; border-radius: 0 10px 10px 0; color: var(--dh-text);
}
.blog-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.2rem 0; }

/* Article CTA */
.blog-cta {
    margin: 3rem 0 1rem;
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(118, 75, 162, 0.35), transparent 60%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 123, 240, 0.35);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
}
.blog-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.6rem; }
.blog-cta p { color: var(--dh-muted); max-width: 34rem; margin: 0 auto 1.3rem; }

/* Related posts */
.blog-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.blog-related-item {
    display: flex; align-items: center; gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px; padding: 0.6rem; height: 100%;
    text-decoration: none; color: var(--dh-text);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-related-item:hover { border-color: rgba(139, 123, 240, 0.4); transform: translateY(-2px); color: var(--dh-text); }
.blog-related-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.blog-related-item span { font-size: 0.9rem; font-weight: 600; line-height: 1.3; }

