/* Shared TyeLock background — matches the Etsy Tools portal. */
html,
body {
    background-color: #05070c !important;
    background-image: none !important;
}

#root {
    background-color: transparent !important;
    background-image: none !important;
}

body {
    position: relative;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #c084fc, transparent 70%);
    animation: tyelock-float-purple 15s ease-in-out infinite alternate;
}

body::after {
    width: 600px;
    height: 600px;
    right: -100px;
    bottom: -150px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    animation: tyelock-float-blue 20s ease-in-out infinite alternate;
}

.glow-orb {
    display: none !important;
}

.noise,
.app::before,
.app::after {
    display: none !important;
}

/* ==========================================================================
   BACK-LINK — Tutarli geri butonu, her sayfada ayni pill stili.
   ========================================================================== */
.back-link:not(.btn-map-link) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
    padding: 0.45rem 0.95rem !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
    margin: 0 !important;
    min-height: unset !important;
    width: auto !important;
    box-shadow: none !important;
}

.back-link:not(.btn-map-link):hover {
    color: #f8fafc !important;
    border-color: rgba(129, 140, 248, 0.55) !important;
    background: rgba(99, 102, 241, 0.1) !important;
    transform: translateY(-1px) !important;
}

.back-link:not(.btn-map-link):focus-visible {
    outline: 2px solid #818cf8 !important;
    outline-offset: 3px !important;
}

.back-link:not(.btn-map-link) i {
    font-size: 0.75rem !important;
    opacity: 0.75 !important;
}

/* Page-specific placement adjustments */
.app > .back-link {
    position: absolute !important;
    top: 28px !important;
    right: 20px !important;
    margin: 0 !important;
}

.tyelock-back-placeholder {
    display: none !important;
}


/* ==========================================================================
   GLOBAL VERSION BADGE
   ========================================================================== */
.tyelock-global-version {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.18rem 0.45rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.tyelock-global-footer {
    position: fixed;
    left: 50%;
    bottom: 0.45rem;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    transform: translateX(-50%);
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(5, 7, 12, 0.72);
    color: #64748b;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
}

@keyframes tyelock-float-purple {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(80px, 50px) scale(1.1); }
}

@keyframes tyelock-float-blue {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-100px, -60px) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

@media print {
    body::before,
    body::after,
    .back-link:not(.btn-map-link),
    .tyelock-global-footer,
    .tyelock-global-version {
        display: none !important;
    }
}
