/* ==========================================================================
   DMNKND — Imperial Sakura Dragon Footer
   --------------------------------------------------------------------------
   Hem dmnknd.com hem de shop.dmnknd.com için ortak akıcı, sinematik footer.
   Tema: Japon ağaçları, Asya ejderleri, kraliyet altını; vurgu slate-gri (mağaza ile uyumlu).
   ========================================================================== */

/* --------------------------------- Token --------------------------------- */
:root {
    --imp-bg-0:        #090a0e;
    --imp-bg-1:        #0c0d12;
    --imp-bg-2:        #13151c;
    --imp-ink:         #f7f4ed;
    --imp-ink-soft:    rgba(247, 244, 237, 0.78);
    --imp-ink-mute:    rgba(247, 244, 237, 0.55);
    --imp-line:        rgba(247, 244, 237, 0.10);
    --imp-line-soft:   rgba(247, 244, 237, 0.06);

    --imp-gold:        #d4af37;
    --imp-gold-warm:   #f5d76e;
    --imp-gold-deep:   #8a6a14;
    --imp-crimson:     #4a4f5e;
    --imp-crimson-deep:#2f323c;
    --imp-sakura:      #f9c5cc;
    --imp-jade:        #0f7060;

    --imp-radius:      18px;
    --imp-radius-sm:   10px;
    --imp-ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --imp-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------------------------- Page layout helper ------------------------- */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}
/* Sabit öğeler sütunu şişirmesin; kısa içerikte kalan yüksekliği içerik alanı alsın */
#page-preloader,
#modernNavbar,
#compactNavbar,
#anasayfaSponsorModal {
    flex: 0 0 auto !important;
}
/* Diğer doğrudan çocuklar varsayılan flex (büyümez); kısa içerikte boşluk .modern-footer margin-top: auto ile dolar */
body .modern-footer {
    margin-top: auto !important;
    flex-shrink: 0;
}

/* Eski sayfalarla uyum */
body.formlar-page section,
body.uyelerimiz-page section,
body.turnuvalar-page section { padding-top: 2.5rem; }

/* ============================== Footer kabuğu ============================ */
.modern-footer {
    --footer-link:        var(--imp-ink-soft);
    --footer-link-hover:  var(--imp-gold-warm);

    position: relative;
    /* Navbar (10002+) ve modalların altında kalsın; iç dekorda isolation yeterli */
    z-index: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--imp-ink);
    background:
        radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(80% 60% at 92% -5%,   rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(140% 80% at 50% 110%, rgba(0, 0, 0, 0.22), transparent 60%),
        linear-gradient(180deg, var(--imp-bg-0) 0%, var(--imp-bg-1) 55%, #050608 100%);
    border-top: 1px solid var(--imp-line);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
    font-family: "Inter", "Poppins", system-ui, sans-serif;
}

/* Üst altın fırça çizgisi */
.modern-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.08) 12%,
        var(--imp-gold-warm) 50%,
        rgba(212, 175, 55, 0.08) 88%,
        transparent 100%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 4;
}

/* Mürekkep doku katmanı */
.modern-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.04) 50%, transparent 51%),
        radial-gradient(1px 1px at 80% 60%, rgba(255, 255, 255, 0.035) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 80%, rgba(255, 255, 255, 0.025) 50%, transparent 51%);
    background-size: 240px 240px, 320px 320px, 200px 200px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

/* ----------------------------- Üst marquee şerit ------------------------- */
.imp-footer-marquee {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--imp-line);
    background:
        linear-gradient(90deg,
            rgba(40, 42, 52, 0.85) 0%,
            rgba(55, 58, 70, 0.55) 50%,
            rgba(40, 42, 52, 0.85) 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.imp-footer-marquee__track {
    display: flex;
    flex-shrink: 0;
    width: max-content;
    min-width: 0;
    gap: 0;
    animation: imp-marquee 38s linear infinite;
    will-change: transform;
}
.imp-footer-marquee__group {
    display: flex;
    flex-shrink: 0;
    gap: clamp(2.6rem, 4.8vw, 4.4rem);
    padding-right: clamp(2.6rem, 4.8vw, 4.4rem);
}
.imp-footer-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: "Cinzel", "Inter", serif;
    font-weight: 600;
    font-size: clamp(0.85rem, 1vw, 1rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--imp-ink);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}
.imp-footer-marquee__item .imp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--imp-gold-warm);
    box-shadow: 0 0 12px rgba(245, 215, 110, 0.7);
    flex-shrink: 0;
}
@keyframes imp-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ------------------------------ Sakura yağmuru --------------------------- */
.imp-sakura-layer {
    position: absolute;
    inset: 0;
    bottom: -72px;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.imp-petal {
    position: absolute;
    top: -46px;
    width: 14px;
    height: 14px;
    background: radial-gradient(ellipse at 30% 30%,
        var(--imp-sakura) 0%,
        #f4a4b0 60%,
        rgba(244, 164, 176, 0) 100%);
    border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%;
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    animation: imp-petal-fall var(--imp-petal-dur, 22s) linear infinite;
    animation-delay: var(--imp-petal-delay, 0s);
    will-change: transform, opacity;
}
.imp-petal::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 60%);
    border-radius: inherit;
    mix-blend-mode: overlay;
}
@keyframes imp-petal-fall {
    0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
    10%  { opacity: 0.85; }
    90%  { opacity: 0.7; }
    100% {
        opacity: 0;
        transform:
            translate3d(var(--imp-petal-drift, 60px), calc(100% + 128px), 0)
            rotate(var(--imp-petal-spin, 540deg));
    }
}

/* ------------------------------- Ejder silueti --------------------------- */
.imp-dragon-orb {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    inset: auto -120px -200px auto;
    width: clamp(360px, 45vw, 720px);
    height: clamp(360px, 45vw, 720px);
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent 70%),
        radial-gradient(closest-side, rgba(100, 105, 120, 0.35), transparent 72%);
    filter: blur(20px);
    animation: imp-orb-drift 16s ease-in-out infinite alternate;
}
.imp-dragon-svg {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    right: clamp(-120px, -6vw, 0px);
    bottom: clamp(-40px, -2vw, 20px);
    width: clamp(280px, 32vw, 540px);
    height: auto;
    color: rgba(212, 175, 55, 0.18);
    opacity: 0.85;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.18));
    animation: imp-dragon-float 14s ease-in-out infinite;
}
@keyframes imp-orb-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-30px, -20px, 0) scale(1.06); }
}
@keyframes imp-dragon-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50%      { transform: translate3d(-10px, -8px, 0) rotate(1deg); }
}

/* ------------------------------- Container ------------------------------- */
.footer-container {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.25rem 2rem 1.75rem;
    width: 100%;
    box-sizing: border-box;
}

/* ----------------------------- Brand kuşağı ------------------------------ */
.imp-footer-crest {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: end;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--imp-line);
    margin-bottom: 2rem;
}
.imp-footer-crest__lede {
    font-family: "Cinzel", "Inter", serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--imp-ink);
    margin: 0;
    text-wrap: balance;
}
.imp-footer-crest__lede .imp-accent {
    font-family: inherit;
    font-weight: inherit;
    background: linear-gradient(120deg, var(--imp-gold-warm) 0%, var(--imp-gold) 50%, var(--imp-crimson) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: normal;
}
.imp-footer-crest__sub {
    margin: 0.85rem 0 0;
    color: var(--imp-ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 46ch;
}
.imp-footer-crest__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.08), rgba(74, 79, 94, 0.22));
    color: var(--imp-gold-warm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.4s var(--imp-ease), background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.imp-footer-crest__cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(245, 215, 110, 0.25) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--imp-ease);
}
.imp-footer-crest__cta:hover {
    transform: translateY(-2px);
    color: #1a1108;
    background: linear-gradient(120deg, var(--imp-gold-warm), var(--imp-gold));
    border-color: var(--imp-gold-warm);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}
.imp-footer-crest__cta:hover::after { transform: translateX(100%); }
.imp-footer-crest__cta .imp-arrow { transition: transform 0.4s var(--imp-ease); }
.imp-footer-crest__cta:hover .imp-arrow { transform: translateX(4px); }

/* Brand sağ kanat: rozet */
.imp-footer-crest__seal {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.imp-footer-seal {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(closest-side, rgba(90, 95, 110, 0.45), rgba(45, 48, 58, 0.82) 70%, rgba(12, 13, 18, 0.92));
    border: 1px solid rgba(245, 215, 110, 0.45);
    box-shadow:
        inset 0 0 0 1px rgba(245, 215, 110, 0.08),
        inset 0 0 30px rgba(0, 0, 0, 0.55),
        0 12px 32px rgba(0, 0, 0, 0.55);
    color: var(--imp-gold-warm);
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    position: relative;
    overflow: hidden;
}
.imp-footer-seal::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    border: 1px dashed rgba(245, 215, 110, 0.35);
    pointer-events: none;
}
.imp-footer-seal__rune {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 12px rgba(245, 215, 110, 0.5);
}
.imp-footer-crest__motto {
    text-align: right;
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--imp-ink-mute);
    line-height: 1.6;
}
.imp-footer-crest__motto strong {
    display: block;
    color: var(--imp-gold-warm);
    font-weight: 700;
    letter-spacing: 0.4em;
}

/* ------------------------------ Pillar grid ------------------------------ */
.footer-content,
.footer-pro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.footer-column,
.footer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: var(--imp-radius);
    background: linear-gradient(180deg, rgba(247, 244, 237, 0.025) 0%, rgba(247, 244, 237, 0.01) 100%);
    border: 1px solid var(--imp-line);
    transition: transform 0.5s var(--imp-ease), border-color 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
    isolation: isolate;
    overflow: hidden;
}
.footer-column::before,
.footer-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(245, 215, 110, 0.0), rgba(245, 215, 110, 0.0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s ease, opacity 0.5s ease;
    opacity: 0.6;
}
.footer-column:hover,
.footer-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 215, 110, 0.32);
    background: linear-gradient(180deg, rgba(247, 244, 237, 0.05) 0%, rgba(247, 244, 237, 0.02) 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 215, 110, 0.08);
}
.footer-column:hover::before,
.footer-panel:hover::before {
    background: linear-gradient(135deg, var(--imp-gold-warm), rgba(74, 79, 94, 0.55));
    opacity: 1;
}

/* Brand kolonu — grid hücresi diğer sütunlarla aynı yükseklikte uzar; justify-content ile
   ana eksende (sütun modunda dikey) blok kartın ortasına; align-items ile yatay orta */
.footer-brand {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
    min-height: 0;
    background: linear-gradient(180deg, rgba(74, 79, 94, 0.14) 0%, rgba(247, 244, 237, 0.02) 100%);
    border-color: rgba(245, 215, 110, 0.18);
}
/* Marka kartı: üçlü sınıf — diğer stillerden bağımsız ortalama */
.footer-column.footer-brand.footer-panel {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-column.footer-brand.footer-panel .footer-logo {
    width: 100%;
    box-sizing: border-box;
}
.footer-column.footer-brand.footer-panel .footer-founder {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.footer-column.footer-brand.footer-panel .imp-footer-socials {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin-inline: auto;
}
.footer-column.footer-brand.footer-panel .footer-title-group {
    align-items: center;
    text-align: center;
}
.footer-column.footer-brand.footer-panel > .footer-logo,
.footer-column.footer-brand.footer-panel > .footer-title-group,
.footer-column.footer-brand.footer-panel > .imp-footer-socials {
    flex-shrink: 0;
    min-width: 0;
}
.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
}
.footer-logo-image {
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(closest-side, rgba(245, 215, 110, 0.18), transparent 70%);
}
.footer-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--imp-ease);
}
.footer-brand:hover .footer-logo-image img { transform: scale(1.06) rotate(-2deg); }
.footer-logo-compact { display: none; }
.footer-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.footer-founder {
    margin: 0;
    font-family: "ShimesOnePersonal", "Cinzel", serif;
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1;
    color: var(--imp-gold-warm);
    text-shadow: 0 0 22px rgba(245, 215, 110, 0.18);
    letter-spacing: 0.01em;
}
.footer-brand-note {
    margin: 0.25rem 0 0;
    color: var(--imp-ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

/* Kolon başlıkları (h4) */
.footer-column h4 {
    margin: 0 0 0.4rem;
    font-family: "Cinzel", "Inter", serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--imp-gold-warm);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}
.footer-column h4::before {
    content: "";
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--imp-gold-warm), transparent);
    flex-shrink: 0;
}

/* Liste */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-column ul li {
    color: var(--imp-ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-column ul li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--imp-ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 2px 0 2px 12px;
    transition: color 0.35s ease, transform 0.35s var(--imp-ease), padding-left 0.35s var(--imp-ease);
}
.footer-column ul li a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 1px;
    background: var(--imp-gold);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--imp-ease), width 0.45s var(--imp-ease), background 0.45s ease;
}
.footer-column ul li a:hover {
    color: var(--imp-gold-warm);
    padding-left: 22px;
}
.footer-column ul li a:hover::before {
    transform: translateY(-50%) scaleX(1);
    width: 14px;
    background: var(--imp-gold-warm);
}

/* Sosyal pul */
.imp-footer-socials {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    justify-content: center;
    align-items: center;
}
.imp-footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--imp-line);
    background: rgba(247, 244, 237, 0.03);
    color: var(--imp-ink-soft);
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.4s var(--imp-ease-spring), background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.imp-footer-socials a::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, var(--imp-crimson), var(--imp-gold-warm), var(--imp-crimson));
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.imp-footer-socials a iconify-icon,
.imp-footer-socials a svg { position: relative; z-index: 1; }
.imp-footer-socials a:hover {
    transform: translateY(-3px) rotate(-4deg);
    color: var(--imp-bg-1);
    border-color: var(--imp-gold-warm);
    background: var(--imp-gold-warm);
    box-shadow: 0 12px 24px rgba(245, 215, 110, 0.35);
}
.imp-footer-socials a:hover::before { opacity: 0.85; }

/* ------------------------------ Yasal not ------------------------------- */
.footer-meta.footer-legal-note,
.footer-legal-note {
    position: relative;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem 1rem 3rem;
    background: linear-gradient(180deg, rgba(247, 244, 237, 0.03), rgba(247, 244, 237, 0.01));
    border: 1px solid var(--imp-line);
    border-left: 2px solid var(--imp-gold);
    border-radius: 14px;
    color: var(--imp-ink-mute);
    font-size: 0.84rem;
    line-height: 1.65;
}
.footer-legal-note::before {
    content: "卍";
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    color: var(--imp-gold-warm);
    font-size: 1.2rem;
    opacity: 0.75;
}

/* ----------------------------- Bottom strip ----------------------------- */
.footer-bottom {
    position: relative;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--imp-line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.footer-bottom::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--imp-gold-warm), transparent);
    opacity: 0.6;
}
.footer-bottom .footer-meta {
    margin: 0;
    color: var(--imp-ink-mute);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.footer-bottom .imp-footer-mark {
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--imp-gold);
    text-align: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    background: rgba(245, 215, 110, 0.04);
}
.footer-bottom .imp-footer-back {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--imp-ink-soft);
    background: transparent;
    border: 1px solid var(--imp-line);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, transform 0.35s var(--imp-ease);
}
.imp-footer-back .imp-arrow-up {
    width: 8px;
    height: 8px;
    border-left: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.35s var(--imp-ease);
}
.imp-footer-back:hover {
    color: var(--imp-gold-warm);
    border-color: var(--imp-gold-warm);
    background: rgba(245, 215, 110, 0.06);
    transform: translateY(-2px);
}
.imp-footer-back:hover .imp-arrow-up { transform: rotate(45deg) translate(2px, -2px); }

/* ============================== Responsive ============================== */
@media (max-width: 1180px) {
    .footer-content,
    .footer-pro-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .footer-container { padding: 2.25rem 1.25rem 1.25rem; }
    .imp-footer-crest {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        align-items: start;
    }
    .imp-footer-crest__seal { justify-self: start; }
    .imp-footer-crest__motto { text-align: left; }
    .footer-content,
    .footer-pro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-bottom .imp-footer-back { justify-self: center; }
}

@media (max-width: 480px) {
    .footer-content,
    .footer-pro-grid { grid-template-columns: 1fr; }
    .footer-founder { font-size: 2.4rem; }
    .imp-dragon-svg { width: 220px; opacity: 0.55; }
    .imp-footer-marquee__item { font-size: 0.78rem; letter-spacing: 0.14em; }
}

/* ----------------------------- A11y / motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
    .imp-footer-marquee__track,
    .imp-petal,
    .imp-dragon-orb,
    .imp-dragon-svg { animation: none !important; }
    .footer-column,
    .footer-panel,
    .imp-footer-socials a,
    .imp-footer-back,
    .imp-footer-crest__cta { transition: none !important; }
}

/* ===================== HQ parity (hq.dmnknd.com) ======================== */
.footer-cookie-prefs-btn {
    margin-left: 0.75rem;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

.footer-cookie-prefs-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

button.imp-footer-back {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.modern-footer .imp-footer-socials a:hover,
.modern-footer .imp-footer-socials a:hover iconify-icon,
.modern-footer .imp-footer-socials a:hover svg,
.modern-footer .imp-footer-crest__cta:hover,
.modern-footer .imp-footer-crest__cta:hover span,
.modern-footer .imp-footer-crest__cta:hover .imp-arrow {
    color: #1a1108 !important;
}

/* Gömülü footer — imperial bölüm (HQ section-5 ile aynı, tam ekran) */
.content-section.content-section--footer {
    --imp-footer-header-pt: calc(var(--dmnknd-nav-bar-h, 5.5rem) + clamp(0.5rem, 1.5vh, 1rem));
    --imp-footer-stack-chapter: calc(48px + 1.2rem);
    --imp-footer-stack-badge: calc(18px + 0.9rem);
    --imp-footer-stack-title: calc(2 * 1.05 * clamp(1.8rem, 3.8vw, 3rem));
    --imp-footer-stack-description: calc(2 * 1.6 * clamp(0.88rem, 0.95vw, 1rem));
    --imp-footer-content-pt: clamp(0.75rem, 2vh, 1.25rem);
    --imp-footer-content-px: 2rem;
    --imp-footer-crest-mb: clamp(0.5rem, 1.5vh, 1rem);
    --imp-footer-crest-pb: clamp(0.75rem, 2vh, 1.25rem);

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    margin: 0;
    overflow: clip;
    scroll-margin-top: 0;
    background: transparent;
}

/* Ana sayfa: footer son bölüm — altta boş scroll yok */
html:has(.content-section.content-section--footer),
html:has(.content-section.content-section--footer) body {
    min-height: auto;
    height: auto;
}

body:has(.content-section.content-section--footer) .modern-footer--embedded {
    margin-top: 0 !important;
}

.content-section.content-section--footer::before,
.content-section.content-section--footer::after {
    display: none;
}

.content-section.content-section--footer .section-background {
    display: block;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 !important;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: hidden;
    contain: none;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-sakura-layer {
    z-index: 1;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded::before,
.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded::after {
    display: none;
}

.content-section.content-section--footer .imp-footer-unified-top .section-header {
    position: relative;
    z-index: 6;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--imp-footer-header-pt) clamp(1.25rem, 4vw, 3rem) 0;
    box-sizing: border-box;
}

.content-section.content-section--footer .imp-footer-unified-top .section-header,
.content-section.content-section--footer .imp-footer-unified-top .imp-chapter,
.content-section.content-section--footer .imp-footer-unified-top .section-badge,
.content-section.content-section--footer .imp-footer-unified-top .title-accent[data-imp-rise] > span,
.content-section.content-section--footer .imp-footer-unified-top .title-main[data-imp-rise] > span {
    opacity: 1;
    transform: none;
    font-family: "Cinzel", "Inter", serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
}

/* Footer başlık yığını — açıklama başlangıcı 3 sitede aynı dikey konumda */
.content-section.content-section--footer .imp-footer-unified-top .imp-chapter {
    min-height: var(--imp-footer-stack-chapter);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.content-section.content-section--footer .imp-footer-unified-top .imp-chapter__sub {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Orta nokta (U+00B7) — chapter sub küçük, title diğer imperial bölümlerle aynı */
.content-section.content-section--footer .imp-footer-unified-top .imp-word-sep {
    display: inline-block;
    flex-shrink: 0;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: baseline;
    line-height: 1;
    overflow: visible;
}

.content-section.content-section--footer .imp-footer-unified-top .imp-chapter__sub .imp-word-sep {
    margin: 0 0.35em;
    font-family: "Cinzel", "Inter", serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--imp-gold-warm, #f5d76e);
    opacity: 0.85;
    text-shadow: 0 0 10px rgba(245, 215, 110, 0.45);
}

.content-section.content-section--footer .imp-footer-unified-top .section-title > .imp-word-sep {
    align-self: baseline;
    flex-shrink: 0;
    font-family: "Cinzel", "Inter", serif;
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--imp-gold, #d4af37);
    opacity: 0.6;
    letter-spacing: 0;
    text-transform: none;
}

/* title-main overflow:hidden ::before noktayı keser — HTML sep kullan */
.content-section.content-section--footer .imp-footer-unified-top .title-accent + .imp-word-sep + .title-main::before,
.content-section.content-section--footer .imp-footer-unified-top .title-accent + .title-main::before {
    content: none;
    display: none;
}

.content-section.content-section--footer .imp-footer-unified-top .section-badge {
    min-height: var(--imp-footer-stack-badge);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.content-section.content-section--footer .imp-footer-unified-top .section-title {
    min-height: var(--imp-footer-stack-title);
    margin: 0 0 0.7rem;
    box-sizing: border-box;
    font-size: clamp(1.8rem, 3.8vw, 3rem) !important;
    line-height: 1.05 !important;
}

@media (max-width: 560px) {
    .content-section.content-section--footer {
        --imp-footer-stack-chapter: calc(38px + 1.2rem);
    }
}

/* Footer imperial başlık açıklaması — 3 site ortak gövde tipografisi + reveal */
.content-section.content-section--footer .imp-footer-unified-top .section-description {
    max-width: none;
    margin: 0;
    min-height: var(--imp-footer-stack-description);
    box-sizing: border-box;
    white-space: nowrap;
    font-family: "Inter", "Poppins", system-ui, sans-serif !important;
    font-size: clamp(0.88rem, 0.95vw, 1rem) !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--imp-ink-soft) !important;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s var(--imp-ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.6s,
        transform 0.8s var(--imp-ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.6s,
        color 0.5s ease,
        text-shadow 0.5s ease;
}

.content-section.content-section--footer[data-imp-in] .imp-footer-unified-top .section-description {
    opacity: 1;
    transform: translateY(0);
}

.content-section.content-section--footer .imp-footer-unified-top .section-description:hover {
    color: var(--imp-ink) !important;
    text-shadow: 0 0 14px rgba(245, 215, 110, 0.18);
}

@media (prefers-reduced-motion: reduce) {
    .content-section.content-section--footer .imp-footer-unified-top .section-description {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 640px) {
    .content-section.content-section--footer .imp-footer-unified-top .section-description {
        white-space: normal;
    }
}

.content-section.content-section--footer .imp-footer-unified-top .section-title,
.content-section.content-section--footer .imp-footer-unified-top .section-title .title-accent,
.content-section.content-section--footer .imp-footer-unified-top .section-title .title-main {
    font-family: "Cinzel", "Inter", serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    line-height: 1.05 !important;
}

.content-section.content-section--footer .imp-footer-unified-top .imp-chapter__line {
    transform: scaleX(1);
}

.content-section.content-section--footer .imp-footer-unified-top {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .footer-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--imp-footer-content-pt) var(--imp-footer-content-px) 0;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: var(--imp-footer-crest-mb);
    padding-bottom: var(--imp-footer-crest-pb);
    border-bottom: 1px solid var(--imp-line-soft);
    box-sizing: border-box;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded .imp-footer-crest__cta {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    align-self: center;
    margin-top: 0;
    white-space: nowrap;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded .imp-footer-crest__seal {
    justify-self: end;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded > .footer-bottom {
    position: relative;
    z-index: 6;
    flex-shrink: 0;
    margin-top: 0;
    padding: clamp(0.65rem, 1.5vh, 1rem) var(--imp-footer-content-px)
        clamp(0.65rem, 1.5vh, 1rem);
    border-top-color: var(--imp-line-soft);
    box-sizing: border-box;
}

.content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-marquee--bottom {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.85rem 0;
    border-top: 1px solid var(--imp-line);
    border-bottom: none;
    background:
        linear-gradient(
            90deg,
            rgba(40, 42, 52, 0.72) 0%,
            rgba(55, 58, 70, 0.45) 50%,
            rgba(40, 42, 52, 0.72) 100%
        );
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

@media (max-width: 760px) {
    .content-section.content-section--footer {
        --imp-footer-content-px: 1.25rem;
    }

    .content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .footer-container {
        padding: var(--imp-footer-content-pt) var(--imp-footer-content-px) 0;
    }

    .content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded > .footer-bottom {
        padding-left: var(--imp-footer-content-px);
        padding-right: var(--imp-footer-content-px);
    }

    .content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 1.25rem;
    }

    .content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded .imp-footer-crest__cta,
    .content-section.content-section--footer #dmnknd-site-footer.modern-footer--embedded .imp-footer-crest--embedded .imp-footer-crest__seal {
        justify-self: start;
    }
}

/* ----------------------- Print: temiz, motifsiz ------------------------- */
@media print {
    .modern-footer { background: #fff; color: #000; box-shadow: none; }
    .imp-sakura-layer, .imp-dragon-orb, .imp-dragon-svg, .imp-footer-marquee { display: none !important; }
    .footer-column, .footer-panel { background: transparent; border-color: #ccc; }
    .footer-column h4, .footer-founder { color: #000; }
    .footer-column ul li a { color: #000 !important; }
}

/* ===================== Compact navbar uyumu (desktop) ===================== */
@media (min-width: 769px) {
    body.navbar-compact-active .modern-footer { padding: 0; }
    body.navbar-compact-active .modern-footer .footer-container { padding: 0.75rem 1.25rem; }
    body.navbar-compact-active .modern-footer .imp-footer-marquee,
    body.navbar-compact-active .modern-footer .imp-footer-crest,
    body.navbar-compact-active .modern-footer .footer-legal-note,
    body.navbar-compact-active .modern-footer .footer-bottom { display: none; }

    body.navbar-compact-active .modern-footer .footer-content,
    body.navbar-compact-active .modern-footer .footer-pro-grid {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        align-items: center;
        padding: 0;
    }
    body.navbar-compact-active .footer-brand,
    body.navbar-compact-active .footer-column {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        padding: 0.4rem 0.7rem;
        border-radius: 999px;
        background: rgba(247, 244, 237, 0.025);
        border-color: var(--imp-line);
        min-height: auto;
    }
    /* Marka şeridi: row modunda varsayılan flex-start → logo + Ashlee Gang + sosyaller ortada */
    body.navbar-compact-active .modern-footer .footer-brand {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.navbar-compact-active .modern-footer .footer-brand .imp-footer-socials {
        justify-content: center;
    }
    body.navbar-compact-active .footer-brand:hover,
    body.navbar-compact-active .footer-column:hover { transform: none; }

    body.navbar-compact-active .footer-logo-image { width: 36px; height: 36px; border-radius: 10px; }
    body.navbar-compact-active .footer-logo-normal { display: none; }
    body.navbar-compact-active .footer-logo-compact { display: block; }
    body.navbar-compact-active .footer-founder { font-size: 1.4rem; }
    body.navbar-compact-active .footer-brand-note { display: none; }

    body.navbar-compact-active .footer-column h4 { display: none; }
    body.navbar-compact-active .footer-column ul {
        flex-direction: row;
        gap: 0.85rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    body.navbar-compact-active .footer-column ul li:nth-child(n+4) { display: none; }
    body.navbar-compact-active .footer-column ul li a { font-size: 0.84rem; padding-left: 0; }
    body.navbar-compact-active .footer-column ul li a::before { display: none; }
    body.navbar-compact-active .footer-column ul li a:hover { padding-left: 0; color: var(--imp-gold-warm); }
}

/* Compact (mobile fallback): tek kolona indirme */
@media (max-width: 768px) {
    body.navbar-compact-active .modern-footer { padding: 1.25rem 0.85rem; }
}
