/* DarkSteady Hub — shared chrome injected into every tool page:
   1. A "back to Hub" pill, bottom-left, always fully visible (never in the way of tool UI).
   2. A prominent inline "Support" banner, placed in the page's own content flow
      (between the intro text and the tool itself) by each tool's HTML.
   Namespaced under .dh- so it never collides with a tool's own CSS. */

.dh-back-to-hub {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px 12px 14px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #ffffff;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dh-back-to-hub:hover {
    transform: translateY(-2px);
    border-color: rgba(50, 205, 50, 0.6);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(50, 205, 50, 0.25);
}

.dh-back-to-hub svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #32cd32;
}

.dh-back-to-hub-label .dh-accent {
    color: #32cd32;
}

@media (max-width: 480px) {
    .dh-back-to-hub-label {
        display: none;
    }

    .dh-back-to-hub {
        padding: 12px;
    }
}

/* ========== Support block — sits BELOW the tool itself (between the app and the
   SEO content), not inside or above it. Compact, centered, uses the tool's OWN
   --primary-color so it always matches that tool's exact accent shade. ========== */
.dh-support-block {
    max-width: 1150px;
    margin: 8px auto 0;
    padding: 28px 24px 8px;
    box-sizing: border-box;
    text-align: center;
}

.dh-support-text {
    margin: 0 0 16px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.95rem;
    color: #b4b4b4;
}

.dh-support-text strong {
    color: #e8e8e8;
    font-weight: 700;
}

.dh-support-cta {
    display: inline-block;
    padding: 14px 38px;
    background: var(--primary-color, #a3ff00);
    color: #070707;
    text-decoration: none;
    border-radius: 100px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    box-shadow: 0 0 20px rgba(163, 255, 0, 0.45), 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dh-support-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(163, 255, 0, 0.65), 0 10px 26px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .dh-support-block {
        padding: 22px 16px 4px;
    }

    .dh-support-text {
        font-size: 0.88rem;
    }

    .dh-support-cta {
        padding: 13px 32px;
        font-size: 0.9rem;
    }
}

/* Compact variant for tools with their own dense toolbar (e.g. Normal Map Generator's
   topbar), where the block above would break a tight single-row header — same CTA,
   sized to fit right in that row so it's visible without needing to scroll down. */
.dh-support-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 32px;
    background: var(--primary-color, #a3ff00);
    color: #070707 !important;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(163, 255, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dh-support-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(163, 255, 0, 0.65);
}

.dh-support-compact svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .dh-support-compact span {
        display: none;
    }

    .dh-support-compact {
        width: 32px;
        padding: 0;
        justify-content: center;
    }
}

/* ========== Hub top navbar clone — same chrome as the Hub itself, injected into
   every tool page so navigation feels continuous. Colors hardcoded (tools don't
   define the Hub's CSS variables). ========== */
/* Matches the Hub's own .navbar exactly: wide pill, content pushed to the right,
   big logo absolutely positioned at the left edge (intentionally overflows the
   pill's own height — that's how it looks on the Hub itself). */
.dh-navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0 40px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    z-index: 999995;
}

.dh-navbar-logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.dh-navbar-logo img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(50, 205, 50, 0.3));
}

.dh-navbar-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.dh-navbar-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.dh-navbar-link:hover {
    color: #32cd32;
}

.dh-navbar-support {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(50, 205, 50, 0.15);
    border: 1px solid rgba(50, 205, 50, 0.4);
    color: #32cd32;
    text-decoration: none;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.dh-navbar-support:hover {
    background: rgba(50, 205, 50, 0.3);
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .dh-navbar-links {
        display: none;
    }

    .dh-navbar {
        gap: 16px;
        padding: 0 20px;
        width: auto;
        justify-content: center;
    }

    .dh-navbar-logo {
        position: static;
        transform: none;
    }

    .dh-navbar-logo img {
        height: 40px;
    }
}

/* ========== Hub bottom bar clone — same monthly-cycle progress bar as the Hub,
   dismissible (shares the Hub's own localStorage key, so dismissing it anywhere
   keeps it dismissed everywhere). ========== */
.dh-bottom-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 92%;
    max-width: 620px;
    padding: 14px 24px 16px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(50, 205, 50, 0.25);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    z-index: 999997;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.dh-bottom-bar.dh-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.dh-bottom-bar-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.dh-bottom-bar-text {
    flex: 1;
    min-width: 0;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.8rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dh-bottom-bar-day {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    color: #32cd32;
    white-space: nowrap;
}

.dh-bottom-bar-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #888888;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: color 0.3s;
}

.dh-bottom-bar-close:hover {
    color: #ffffff;
}

.dh-bottom-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.dh-bottom-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: #32cd32;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 480px) {
    .dh-bottom-bar-day {
        display: none;
    }
}

/* ========== Floating "Support the Hub" button — bottom-left, same treatment as
   the Hub's own. Pushed above the bottom bar via JS toggling .dh-has-bar. ========== */
.dh-support-float {
    position: fixed;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border-radius: 100px;
    background: #32cd32;
    color: #070707;
    text-decoration: none;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.6), 0 8px 22px rgba(0, 0, 0, 0.35);
    z-index: 999996;
    transition: bottom 0.35s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s ease, box-shadow 0.25s ease;
}

.dh-support-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(50, 205, 50, 0.85), 0 10px 26px rgba(0, 0, 0, 0.4);
}

body.dh-has-bar .dh-support-float {
    bottom: 96px;
}

/* Wide enough that the bottom bar (centered, max-width 620px) never reaches the
   floating button's left-edge column — let them sit level with each other instead
   of stacking one above the other. */
@media (min-width: 1150px) {
    body.dh-has-bar .dh-support-float {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .dh-support-float {
        left: 14px;
        bottom: 14px;
        padding: 12px 20px;
        font-size: 0.78rem;
    }

    body.dh-has-bar .dh-support-float {
        bottom: 92px;
    }
}
