/* ============================================================
   GuvenHost Welcome Popup
   2026-05-01 (welcome popup) → 2026-05-02 (promo bar topbar'a tasindi)
   → 2026-05-12 (marka tema yenilemesi — lacivert+mavi paleti)

   Tasarim prensipleri:
   - Marka renkleri: #0a1a35 (lacivert) + #4d9aff (mavi)
   - Premium kurumsal his: subtle gradient borders, blue glow shadow
   - GuvenHost icon SVG (beyaz variant) ile branding
   - Accessibility: prefers-reduced-motion + role="dialog" + focus trap
   ============================================================ */

/* CSS Custom Properties (theme palette) — DRY ve gelecekte renk degisikligi tek satir */
.gh-welcome-overlay {
    --gh-brand-dark:    #0a1a35;
    --gh-brand-mid:     #1e40af;
    --gh-brand-light:   #4d9aff;
    --gh-text-primary:  #0f172a;
    --gh-text-muted:    #64748b;
    --gh-card-bg:       #eff6ff;
    --gh-card-border:   #bfdbfe;
}

.gh-welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 53, 0.78); /* lacivert overlay (mavi-siyah karisik, marka uyumlu) */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gh-welcome-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.gh-welcome-overlay.is-closing {
    opacity: 0;
}

.gh-welcome-modal {
    position: relative;
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    /* Iki katmanli shadow: nötr derinlik + marka mavisi soft glow */
    box-shadow:
        0 30px 80px rgba(10, 26, 53, 0.45),
        0 0 0 1px rgba(77, 154, 255, 0.15);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(.2, 1.3, .4, 1),
        opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.gh-welcome-overlay.is-visible .gh-welcome-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gh-welcome-overlay.is-closing .gh-welcome-modal {
    transform: scale(0.92) translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

/* ───────────────────────── IMAGE AREA (marka gradient + icon) ───────────────────────── */
.gh-welcome-image {
    position: relative;
    width: 100%;
    height: 200px;
    /* Marka lacivert → mavi diagonal gradient */
    background: linear-gradient(135deg,
        var(--gh-brand-dark) 0%,
        var(--gh-brand-mid) 55%,
        var(--gh-brand-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Geometric pattern: dots radial + grid line subtle (depth feel) */
.gh-welcome-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(77, 154, 255, 0.40) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: gh-welcome-image-pulse 5s ease-in-out infinite;
}

/* Sparkle dot pattern (subtle stars) */
.gh-welcome-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.6) 1px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4) 1px, transparent 1.5px),
        radial-gradient(circle at 88% 60%, rgba(255, 255, 255, 0.5) 1.5px, transparent 2px),
        radial-gradient(circle at 15% 40%, rgba(255, 255, 255, 0.3) 1px, transparent 1.5px);
    background-size: 200px 200px;
    opacity: 0.7;
    animation: gh-welcome-sparkle 3s ease-in-out infinite alternate;
}

/* GuvenHost icon SVG — beyaz variant, soft drop shadow + gentle float */
.gh-welcome-image img,
.gh-welcome-icon {
    position: relative;
    width: 88px;
    height: 88px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
    animation: gh-welcome-icon-float 3.5s ease-in-out infinite;
}

/* Emoji fallback (legacy support) */
.gh-welcome-image-emoji {
    position: relative;
    font-size: 92px;
    z-index: 2;
    animation: gh-welcome-icon-float 2.5s ease-in-out infinite;
}

/* ───────────────────────── BODY ───────────────────────── */
.gh-welcome-body {
    padding: 28px 30px 24px;
    text-align: center;
}

.gh-welcome-title {
    margin: 0 0 10px;
    font-family: 'Rubik', 'Karla', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--gh-text-primary);
    letter-spacing: -0.4px;
}

.gh-welcome-subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--gh-text-muted);
    line-height: 1.6;
}

/* ───────────────────────── DISCOUNT CARD (premium mavi tarz) ───────────────────────── */
.gh-welcome-discount {
    position: relative;
    background: linear-gradient(135deg, var(--gh-card-bg) 0%, #dbeafe 100%);
    border: 1px solid var(--gh-card-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Sol kenarda mavi şerit (ribbon accent) */
.gh-welcome-discount::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gh-brand-light) 0%, var(--gh-brand-mid) 100%);
}

.gh-welcome-discount-line1 {
    font-size: 11px;
    font-weight: 700;
    color: var(--gh-brand-mid);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.gh-welcome-discount-line2 {
    font-family: 'Rubik', sans-serif;
    font-size: 32px;
    font-weight: 800;
    /* Mavi gradient text (modern WebKit clip) */
    background: linear-gradient(135deg, var(--gh-brand-mid) 0%, var(--gh-brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gh-brand-mid); /* fallback if clip yok */
    letter-spacing: -0.6px;
    line-height: 1;
    margin: 2px 0 6px;
}

.gh-welcome-discount-line3 {
    font-size: 13px;
    color: var(--gh-text-primary);
    margin-top: 4px;
    line-height: 1.5;
}

.gh-welcome-discount-line3 code {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--gh-card-border);
    color: var(--gh-brand-mid);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 12px;
    margin: 0 2px;
    letter-spacing: 0.5px;
}

/* ───────────────────────── CTA (marka mavisi gradient + glow) ───────────────────────── */
.gh-welcome-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gh-brand-light) 0%, var(--gh-brand-mid) 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition:
        transform .25s cubic-bezier(.2, 1, .3, 1),
        box-shadow .25s ease,
        background .25s ease;
    /* Blue glow shadow — marka renginde derinlik */
    box-shadow:
        0 6px 18px rgba(30, 64, 175, 0.35),
        0 0 0 1px rgba(77, 154, 255, 0.4) inset;
    text-align: center;
    letter-spacing: 0.3px;
}

.gh-welcome-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(30, 64, 175, 0.5),
        0 0 0 1px rgba(77, 154, 255, 0.6) inset;
    background: linear-gradient(135deg, var(--gh-brand-mid) 0%, var(--gh-brand-dark) 100%);
}

.gh-welcome-cta:active {
    transform: translateY(0);
    transition: transform .1s ease;
}

/* ───────────────────────── DISMISS link ───────────────────────── */
.gh-welcome-dismiss {
    background: none;
    border: none;
    color: var(--gh-text-muted);
    font-size: 12px;
    margin-top: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(100, 116, 139, 0.4);
    transition: color .2s ease, text-decoration-color .2s ease;
}

.gh-welcome-dismiss:hover {
    color: var(--gh-brand-mid);
    text-decoration-color: var(--gh-brand-mid);
}

/* ───────────────────────── CLOSE button (× sağ üst) ─────────────────────────
   2026-05-12: HTML &times; entity yerine SVG icon kullanıldı.
   Sebep: font'a bağlı &times; karakteri farklı browser'larda offset oluyordu
   (orantısız, merkez kayıyordu). SVG geometrik olarak tam ortalı + ölçeklenebilir.
*/
.gh-welcome-close,
.gh-promo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: var(--gh-text-primary, #0f172a);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition:
        transform .25s cubic-bezier(.2, 1, .3, 1),
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease;
}

.gh-welcome-close svg,
.gh-promo-close svg {
    display: block; /* inline gap'i sıfırla */
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.gh-welcome-close:hover,
.gh-promo-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.gh-welcome-close:focus-visible,
.gh-promo-close:focus-visible {
    outline: 2px solid var(--gh-brand-light, #4d9aff);
    outline-offset: 2px;
}

/* ───────────────────────── CODE COPY ROW (modal içinde) ───────────────────────── */
.gh-welcome-code-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
}

.gh-welcome-code {
    flex: 1;
    background: #fff;
    border: 1px dashed var(--gh-card-border, #bfdbfe);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 15px;
    color: var(--gh-brand-mid, #1e40af);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: all; /* tek tıkla seçilebilsin */
}

.gh-welcome-code-copy {
    background: var(--gh-brand-mid, #1e40af);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s ease, transform .15s ease;
    white-space: nowrap;
}

.gh-welcome-code-copy svg {
    display: block;
    width: 14px;
    height: 14px;
}

.gh-welcome-code-copy:hover {
    background: var(--gh-brand-dark, #0a1a35);
    transform: translateY(-1px);
}

.gh-welcome-code-copy.is-copied {
    background: #059669; /* success green */
    pointer-events: none;
}

/* ───────────────────────── ANIMATIONS ───────────────────────── */
@keyframes gh-welcome-image-pulse {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}

@keyframes gh-welcome-sparkle {
    0%   { opacity: 0.3; transform: translateY(0); }
    100% { opacity: 0.8; transform: translateY(-3px); }
}

@keyframes gh-welcome-icon-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-6px) rotate(-2deg); }
    50%      { transform: translateY(-9px) rotate(0deg); }
    75%      { transform: translateY(-6px) rotate(2deg); }
}

/* ───────────────────────── MOBILE ───────────────────────── */
@media (max-width: 480px) {
    .gh-welcome-modal { border-radius: 18px; }
    .gh-welcome-image { height: 170px; }
    .gh-welcome-image img,
    .gh-welcome-icon { width: 70px; height: 70px; }
    .gh-welcome-image-emoji { font-size: 72px; }
    .gh-welcome-body { padding: 22px 22px 20px; }
    .gh-welcome-title { font-size: 22px; }
    .gh-welcome-discount-line2 { font-size: 26px; }
    .gh-welcome-cta { padding: 12px 18px; font-size: 14px; }
    .gh-welcome-close { width: 30px; height: 30px; font-size: 20px; top: 10px; right: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SIDE SLIDE-IN PROMO — sağdan/soldan kayan banner
   Modal'dan farkı: overlay yok, scroll lock yok, daha az invazif
   ═══════════════════════════════════════════════════════════════════ */

.gh-side-promo {
    --side-bg-from: var(--gh-brand-light, #4d9aff);
    --side-bg-to: var(--gh-brand-mid, #1e40af);
    --side-text: #fff;

    position: fixed;
    bottom: 24px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(135deg, var(--side-bg-from) 0%, var(--side-bg-to) 100%);
    color: var(--side-text);
    border-radius: 16px;
    padding: 20px 22px 18px;
    box-shadow:
        0 20px 50px rgba(10, 26, 53, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    z-index: 10500;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.5s cubic-bezier(.2, 1.2, .3, 1),
        opacity 0.4s ease;
}

/* Accent variants — config'teki 'accent' field'ından geliyor */
.gh-side-promo--brand {
    --side-bg-from: #4d9aff;
    --side-bg-to: #1e40af;
}
.gh-side-promo--orange {
    --side-bg-from: #fb923c;
    --side-bg-to: #ea580c;
}
.gh-side-promo--green {
    --side-bg-from: #34d399;
    --side-bg-to: #059669;
}
.gh-side-promo--red {
    --side-bg-from: #f87171;
    --side-bg-to: #dc2626;
}

/* Right side (default) */
.gh-side-promo--right {
    right: 24px;
    transform: translateX(calc(100% + 32px));
}
/* Left side variant */
.gh-side-promo--left {
    left: 24px;
    transform: translateX(calc(-100% - 32px));
}

.gh-side-promo.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.gh-side-promo.is-closing {
    opacity: 0;
}
.gh-side-promo.is-closing.gh-side-promo--right {
    transform: translateX(calc(100% + 32px));
}
.gh-side-promo.is-closing.gh-side-promo--left {
    transform: translateX(calc(-100% - 32px));
}

/* Yüzde badge (sol üst köşede yuvarlak) */
.gh-side-promo-badge {
    position: absolute;
    top: -14px;
    left: -10px;
    background: #fff;
    color: var(--side-bg-to);
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border: 3px solid currentColor;
    line-height: 1;
}

/* Side promo'nun kendi kapatma butonu (modal'dan farklı: küçük, opacity'li) */
.gh-side-promo .gh-promo-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}
.gh-side-promo .gh-promo-close:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: rotate(90deg);
    box-shadow: none;
}

.gh-side-promo-body {
    padding-right: 24px; /* close butonu için boşluk */
}

.gh-side-promo-title {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.gh-side-promo-subtitle {
    font-size: 13px;
    opacity: 0.92;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* İndirim kodu — tıklanabilir, copy interaction */
.gh-side-promo-code {
    background: rgba(255, 255, 255, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background .2s ease, border-color .2s ease;
}

.gh-side-promo-code:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.7);
}

.gh-side-promo-code-text {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    color: #fff;
}

.gh-side-promo-code-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gh-side-promo-code.is-copied {
    background: rgba(5, 150, 105, 0.85); /* success green */
    border-color: rgba(255, 255, 255, 0.6);
}

.gh-side-promo-code-action svg {
    display: block;
    width: 12px;
    height: 12px;
}

.gh-side-promo-cta {
    display: block;
    width: 100%;
    background: #fff;
    color: var(--side-bg-to) !important;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gh-side-promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    color: var(--side-bg-to) !important;
}

/* Mobile: side promo bottom-center'a sıkıştır */
@media (max-width: 480px) {
    .gh-side-promo {
        bottom: 12px;
        left: 12px !important;
        right: 12px !important;
        width: auto;
        max-width: none;
        padding: 18px 18px 16px;
    }
    .gh-side-promo--right,
    .gh-side-promo--left {
        transform: translateY(calc(100% + 24px));
    }
    .gh-side-promo.is-visible {
        transform: translateY(0);
    }
    .gh-side-promo.is-closing {
        transform: translateY(calc(100% + 24px));
    }
    .gh-side-promo-badge {
        width: 48px;
        height: 48px;
        font-size: 15px;
        top: -12px;
        left: -8px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   STICKY BOTTOM BAR — sayfanın altına yapışık bar
   ═══════════════════════════════════════════════════════════════════ */

.gh-sticky-promo {
    --sticky-bg-from: var(--gh-brand-mid, #1e40af);
    --sticky-bg-to: var(--gh-brand-dark, #0a1a35);

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--sticky-bg-from) 0%, var(--sticky-bg-to) 100%);
    color: #fff;
    padding: 12px 16px 12px 24px;
    z-index: 10400;
    box-shadow: 0 -8px 30px rgba(10, 26, 53, 0.35);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(.2, 1.2, .3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-sticky-promo--brand {
    --sticky-bg-from: #1e40af;
    --sticky-bg-to: #0a1a35;
}
.gh-sticky-promo--orange {
    --sticky-bg-from: #ea580c;
    --sticky-bg-to: #c2410c;
}
.gh-sticky-promo--green {
    --sticky-bg-from: #059669;
    --sticky-bg-to: #047857;
}

.gh-sticky-promo.is-visible {
    transform: translateY(0);
}
.gh-sticky-promo.is-closing {
    transform: translateY(100%);
}

.gh-sticky-promo-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

.gh-sticky-promo-badge {
    background: #fff;
    color: var(--sticky-bg-to);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gh-sticky-promo-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gh-sticky-promo-text strong {
    font-size: 15px;
    font-weight: 700;
}

.gh-sticky-promo-text span {
    font-size: 12px;
    opacity: 0.9;
}

.gh-sticky-promo-code {
    background: rgba(255, 255, 255, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s ease;
    white-space: nowrap;
}

.gh-sticky-promo-code:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gh-sticky-promo-code.is-copied {
    background: rgba(5, 150, 105, 0.7);
}

.gh-sticky-promo-code svg {
    display: block;
    width: 13px;
    height: 13px;
    opacity: 0.85;
}

.gh-sticky-promo-cta {
    background: #fff;
    color: var(--sticky-bg-to) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: transform .2s ease;
    white-space: nowrap;
}

.gh-sticky-promo-cta:hover {
    transform: translateY(-1px);
    color: var(--sticky-bg-to) !important;
}

.gh-sticky-promo .gh-promo-close {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 12px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    box-shadow: none;
}

.gh-sticky-promo .gh-promo-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: none;
}

/* Sticky bar açıkken sayfa içeriği son satırı bar'ın arkasına kalmasın */
body.gh-has-sticky-promo {
    padding-bottom: 70px;
}

@media (max-width: 600px) {
    .gh-sticky-promo {
        padding: 10px 12px;
    }
    .gh-sticky-promo-content {
        gap: 10px;
    }
    .gh-sticky-promo-badge {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    .gh-sticky-promo-text strong { font-size: 13px; }
    .gh-sticky-promo-text span { font-size: 11px; }
    .gh-sticky-promo-cta { font-size: 12px; padding: 8px 14px; }
    body.gh-has-sticky-promo { padding-bottom: 110px; } /* mobile wrap eder */
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATION VARIANTS (style.animation field)
   Modal/side/sticky promo'lara özel giriş efektleri:
   confetti | pulse | shake | bounce | rotate-in
   ═══════════════════════════════════════════════════════════════════ */

/* ── CONFETTI (modal içinde düşen renkli partiküller) ── */
.gh-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.gh-confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 14px;
    border-radius: 2px;
    opacity: 0.95;
    animation-name: gh-confetti-fall;
    animation-timing-function: cubic-bezier(.55, .15, .45, .85);
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes gh-confetti-fall {
    0%   { transform: translateY(-20px) rotate(0deg);    opacity: 0.95; }
    100% { transform: translateY(560px) rotate(720deg);  opacity: 0; }
}

/* ── PULSE (sürekli yumuşak parlama — dikkat çekme) ── */
.gh-promo--anim-pulse.is-visible .gh-welcome-modal,
.gh-promo--anim-pulse.is-visible.gh-side-promo {
    animation: gh-promo-pulse 2.5s ease-in-out infinite;
}

@keyframes gh-promo-pulse {
    0%, 100% { box-shadow: 0 30px 80px rgba(10, 26, 53, 0.45), 0 0 0 1px rgba(77, 154, 255, 0.15); }
    50%      { box-shadow: 0 30px 80px rgba(10, 26, 53, 0.45), 0 0 40px 4px rgba(77, 154, 255, 0.55); }
}

/* ── SHAKE (kısa titreme — flash sale dikkat çekme) ── */
.gh-promo--anim-shake.is-visible .gh-welcome-modal,
.gh-promo--anim-shake.is-visible.gh-side-promo {
    animation: gh-promo-shake 0.6s ease-in-out 1.5;
    animation-delay: 0.5s;
}

@keyframes gh-promo-shake {
    0%, 100%       { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80%      { transform: translateX(6px); }
}

/* ── BOUNCE (yaylanarak giriş — eğlenceli) ── */
.gh-promo--anim-bounce.is-visible .gh-welcome-modal,
.gh-promo--anim-bounce.is-visible .gh-wheel-modal {
    animation: gh-promo-bounce-in 0.8s cubic-bezier(.2, 1.4, .35, 1) 1;
}

@keyframes gh-promo-bounce-in {
    0%   { transform: scale(0.5) translateY(40px); opacity: 0; }
    60%  { transform: scale(1.08) translateY(-8px); opacity: 1; }
    80%  { transform: scale(0.96) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}

/* ── ROTATE-IN (döne döne giriş — özel günler) ── */
.gh-promo--anim-rotate-in.is-visible .gh-welcome-modal {
    animation: gh-promo-rotate-in 0.7s cubic-bezier(.2, 1.2, .3, 1) 1;
}

@keyframes gh-promo-rotate-in {
    0%   { transform: rotate(-180deg) scale(0.3); opacity: 0; }
    60%  { transform: rotate(10deg) scale(1.05); opacity: 1; }
    100% { transform: rotate(0) scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   SPIN WHEEL (ÇARK) — gamification promo
   ═══════════════════════════════════════════════════════════════════ */

.gh-wheel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 26, 53, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gh-wheel-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.gh-wheel-overlay.is-closing {
    opacity: 0;
}

.gh-wheel-modal {
    position: relative;
    background: linear-gradient(160deg, #fff 0%, #f1f5f9 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(10, 26, 53, 0.55),
        0 0 0 1px rgba(77, 154, 255, 0.15),
        0 0 40px rgba(77, 154, 255, 0.25);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(.2, 1.3, .4, 1), opacity 0.4s ease;
    padding: 28px 30px 24px;
    text-align: center;
}

.gh-wheel-overlay.is-visible .gh-wheel-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.gh-wheel-overlay.is-closing .gh-wheel-modal {
    transform: scale(0.92) translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.gh-wheel-title {
    margin: 0 0 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gh-text-primary, #0a1a35);
    letter-spacing: -0.3px;
}

.gh-wheel-subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--gh-text-muted, #64748b);
    line-height: 1.5;
}

.gh-wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 22px;
    max-width: 100%;
}

/* Pointer (üst orta, çark dönüşünde aşağıyı gösterir) */
.gh-wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #dc2626;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    animation: gh-wheel-pointer-bob 1.8s ease-in-out infinite;
}

@keyframes gh-wheel-pointer-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

/* Çarkın kendisi — conic-gradient ile dilim renkleri inline style'dan gelir */
.gh-wheel-spinner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow:
        0 0 0 8px #fff,
        0 0 0 11px var(--gh-brand-dark, #0a1a35),
        0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(0deg);
    will-change: transform;
}

/* Çark merkezi (logo) */
.gh-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gh-brand-dark, #0a1a35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 4px #fff;
    z-index: 3;
}

.gh-wheel-center img {
    width: 40px;
    height: 40px;
}

/* Dilim etiketleri — her biri kendi açısına döndürülmüş */
.gh-wheel-label {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform-origin: center center;
}

.gh-wheel-label > span {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Çevir butonu */
.gh-wheel-spin-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gh-brand-light, #4d9aff) 0%, var(--gh-brand-mid, #1e40af) 100%);
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1.5px;
    padding: 14px 36px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gh-wheel-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(30, 64, 175, 0.55);
}

.gh-wheel-spin-btn:disabled,
.gh-wheel-spin-btn.is-spinning {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gh-wheel-dismiss {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--gh-text-muted, #64748b);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: 8px;
    transition: color .2s ease;
}

.gh-wheel-dismiss:hover {
    color: var(--gh-brand-mid, #1e40af);
}

/* ── WIN STATE ── */
.gh-wheel-stage--win {
    text-align: center;
    padding: 10px 0;
}

.gh-wheel-win-burst {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
    animation: gh-wheel-burst 1.2s ease-out 1;
}

@keyframes gh-wheel-burst {
    0%   { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    50%  { transform: scale(1.3) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}

.gh-wheel-win-title {
    margin: 0 0 6px;
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--gh-text-primary, #0a1a35);
    letter-spacing: -0.3px;
}

.gh-wheel-win-amount {
    font-family: 'Rubik', sans-serif;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gh-brand-light, #4d9aff) 0%, var(--gh-brand-mid, #1e40af) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gh-brand-mid, #1e40af);
    line-height: 1;
    margin: 8px 0 4px;
    letter-spacing: -1px;
}

.gh-wheel-win-desc {
    font-size: 14px;
    color: var(--gh-text-muted, #64748b);
    margin: 4px 0 16px;
}

.gh-wheel-win-code {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px dashed var(--gh-brand-mid, #1e40af);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.gh-wheel-win-code:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-1px);
}

.gh-wheel-win-code.is-copied {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #059669;
}

.gh-wheel-win-code-text {
    font-family: 'Courier New', monospace;
    font-weight: 800;
    font-size: 20px;
    color: var(--gh-brand-mid, #1e40af);
    letter-spacing: 1.5px;
}

.gh-wheel-win-code-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gh-brand-mid, #1e40af);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.gh-wheel-win-code-copy svg {
    display: block;
    width: 12px;
    height: 12px;
}

.gh-wheel-win-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--gh-brand-light, #4d9aff) 0%, var(--gh-brand-mid, #1e40af) 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

.gh-wheel-win-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.5);
    color: #fff !important;
}

/* ── LOSE STATE ── */
.gh-wheel-stage--lose {
    text-align: center;
    padding: 20px 0;
}

.gh-wheel-lose-icon {
    font-size: 56px;
    margin-bottom: 12px;
}

.gh-wheel-lose-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--gh-text-primary, #0a1a35);
}

.gh-wheel-lose-desc {
    color: var(--gh-text-muted, #64748b);
    font-size: 14px;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Spin wheel close button (sağ üst, modal style) */
.gh-wheel-modal > .gh-promo-close {
    top: 12px;
    right: 12px;
}

/* Mobile responsive — çark daralır */
@media (max-width: 480px) {
    .gh-wheel-modal {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }
    .gh-wheel-title { font-size: 20px; }
    .gh-wheel-subtitle { font-size: 13px; margin-bottom: 16px; }
    .gh-wheel-container { width: 260px; height: 260px; margin-bottom: 18px; }
    .gh-wheel-label > span { font-size: 12px; top: 14px; }
    .gh-wheel-center { width: 56px; height: 56px; }
    .gh-wheel-center img { width: 32px; height: 32px; }
    .gh-wheel-spin-btn { padding: 12px 28px; font-size: 14px; }
    .gh-wheel-win-amount { font-size: 44px; }
    .gh-wheel-win-burst { font-size: 52px; }
}

/* ───────────────────────── ACCESSIBILITY: reduce motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .gh-welcome-modal,
    .gh-welcome-image::before,
    .gh-welcome-image::after,
    .gh-welcome-image img,
    .gh-welcome-icon,
    .gh-welcome-image-emoji,
    .gh-welcome-close,
    .gh-promo-close,
    .gh-welcome-cta,
    .gh-side-promo,
    .gh-sticky-promo,
    .gh-wheel-modal,
    .gh-wheel-pointer,
    .gh-wheel-win-burst,
    .gh-confetti-piece,
    .gh-promo--anim-pulse.is-visible .gh-welcome-modal,
    .gh-promo--anim-shake.is-visible .gh-welcome-modal {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }
    /* Çark spin'i kullanıcı talep ettiği bir aksiyon (motion-sensitive değil),
       ama duration kısaltılır */
    .gh-wheel-spinner {
        transition-duration: 1s !important;
    }
}
