/* Bar Borsa - Wall Street Dark TV Styling */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --bg-dark: #070a0f;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --border-color: #1e293b;
    --border-highlight: #334155;
    
    --green-rise: #00e676;
    --green-glow: rgba(0, 230, 118, 0.4);
    --red-drop: #ff1744;
    --red-glow: rgba(255, 23, 68, 0.4);
    --gold-accent: #ffc107;
    --gold-glow: rgba(255, 193, 7, 0.5);
    --cyan-accent: #00e5ff;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-financial: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* TV HEADER SECTION */
.tv-header {
    height: 80px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 10, 15, 0.95) 100%);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo-img {
    height: 52px;
    max-width: 160px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 12px rgba(255, 193, 7, 0.4));
}

.brand-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffc107, #ff9100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--gold-accent);
    letter-spacing: 3px;
    font-weight: 700;
}

/* MARQUEE TICKER STREAM */
.ticker-wrapper {
    flex: 1;
    margin: 0 2rem;
    height: 44px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--gold-accent);
    color: #000;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    gap: 2rem;
    padding-left: 1rem;
    font-family: var(--font-financial);
    font-size: 0.9rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-up { color: var(--green-rise); }
.ticker-down { color: var(--red-drop); }

/* HEADER STATS & CLOCK */
.header-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-box {
    text-align: right;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-financial);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan-accent);
}

.live-badge {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid var(--green-rise);
    color: var(--green-rise);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-status-badge {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid var(--green-rise);
    color: var(--green-rise);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
    transition: all 0.3s ease;
}

.db-pulse-dot {
    width: 9px;
    height: 9px;
    background: var(--green-rise);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-rise);
    animation: pulse 1.5s infinite;
}

.db-status-badge.disconnected {
    background: rgba(255, 193, 7, 0.18);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.25);
}

.db-status-badge.disconnected .db-pulse-dot {
    background: var(--gold-accent);
    box-shadow: 0 0 10px var(--gold-accent);
    animation: pulse 1.5s infinite;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green-rise);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-rise);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.clock-display {
    font-family: var(--font-financial);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* MAIN TV GRID SECTION - 5 COLUMNS PER ROW */
.tv-main-container {
    flex: 1;
    padding: 0.8rem 1rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: minmax(130px, auto);
    gap: 0.75rem;
    min-height: calc(100vh - 130px);
}

/* PRODUCT CARD STYLING FOR BAR TV DISPLAY */
.product-card {
    background: linear-gradient(145deg, #0f172a 0%, #162032 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.product-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Flash Animations when prices update */
/* Fiyat Düştüğünde YEŞİL IŞIMA (İndirim / Fırsat) */
.product-card.flash-green {
    animation: flashGreen5x 0.5s ease-in-out 5 alternate;
}
/* Fiyat Yükseldiğinde KIRMIZI IŞIMA (Zam / Talep) */
.product-card.flash-red {
    animation: flashRed 1s ease-out;
}

@keyframes flashGreen5x {
    0% {
        border-color: var(--border-color);
        box-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
    }
    100% {
        border-color: #00e676;
        box-shadow: 0 0 55px rgba(0, 230, 118, 0.95), inset 0 0 30px rgba(0, 230, 118, 0.35);
        background: linear-gradient(145deg, #082d1c 0%, #10422b 100%);
    }
}
@keyframes flashRed {
    0% { border-color: var(--red-drop); box-shadow: 0 0 35px var(--red-glow); }
    100% { border-color: var(--border-color); }
}

/* FLIP Smooth Reordering & Top Rank Glow Animations */
.product-card.card-moving-up {
    z-index: 20 !important;
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.5) !important;
    border-color: #00e676 !important;
}

.product-card.top-rank-glow {
    animation: topRankPulse 1.4s ease-out;
}

@keyframes topRankPulse {
    0% {
        box-shadow: 0 0 45px rgba(255, 193, 7, 0.95), inset 0 0 25px rgba(255, 193, 7, 0.5) !important;
        border-color: #ffc107 !important;
    }
    100% {
        box-shadow: none;
    }
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.category-pill {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.8px;
}

.cat-bira { background: rgba(255, 193, 7, 0.2); color: #ffc107; border: 1px solid rgba(255, 193, 7, 0.4); }
.cat-viski { background: rgba(255, 145, 0, 0.2); color: #ff9100; border: 1px solid rgba(255, 145, 0, 0.4); }
.cat-kokteyl { background: rgba(0, 229, 255, 0.2); color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.4); }
.cat-tekila { background: rgba(234, 128, 252, 0.2); color: #ea80fc; border: 1px solid rgba(234, 128, 252, 0.4); }
.cat-votka { background: rgba(128, 222, 234, 0.2); color: #80deea; border: 1px solid rgba(128, 222, 234, 0.4); }
.cat-likor { background: rgba(255, 82, 82, 0.2); color: #ff5252; border: 1px solid rgba(255, 82, 82, 0.4); }

.code-pill {
    font-family: var(--font-financial);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.product-title {
    font-size: clamp(0.95rem, 1.15vw, 1.25rem) !important;
    font-weight: 800 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 2.6em !important;
    min-height: 2.6em !important;
    max-height: 2.6em !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.2px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* BIG CENTERED PRICE AREA IN THE MIDDLE OF CARD */
.price-box-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.2rem 0;
    padding: 0.25rem 0;
    text-align: center;
    flex: 1;
}

.current-price-big {
    font-family: var(--font-financial);
    font-size: clamp(2.2rem, 3.0vw, 3.0rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1.5px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.currency-big {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 800;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.price-arrow-big {
    font-size: clamp(2.0rem, 2.8vw, 2.8rem);
    font-weight: 900;
    margin-left: 0.4rem;
    line-height: 1;
    display: inline-block;
}

.price-arrow-big.arrow-drop {
    color: var(--green-rise);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

.price-arrow-big.arrow-rise {
    color: var(--red-drop);
    text-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
}

.card-right-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: auto;
}

/* CENTERED DISCOUNT BADGE DIRECTLY BELOW BIG PRICE */
.center-discount-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.15rem 0 0.35rem 0;
    width: 100%;
}

.change-pill {
    font-family: var(--font-financial);
    font-size: clamp(0.82rem, 1.0vw, 1.05rem);
    font-weight: 900;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    max-width: 98%;
    box-sizing: border-box;
}

/* Fiyat Düştüğünde: YEŞİL ÇERÇEVE VE SİYAH/KOYU ZEMİNDE PARLAK BEYAZ YAZI */
.change-drop {
    background: rgba(0, 230, 118, 0.25);
    color: #ffffff !important;
    border: 1.5px solid #00e676;
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.4);
}

/* Fiyat Yükseldiğinde: KIRMIZI ÇERÇEVE VE SİYAH/KOYU ZEMİNDE PARLAK BEYAZ YAZI */
.change-rise {
    background: rgba(255, 23, 68, 0.25);
    color: #ffffff !important;
    border: 1.5px solid #ff1744;
    box-shadow: 0 0 16px rgba(255, 23, 68, 0.4);
}

/* Borsa Durdurulduğunda: KAN KIRMIZISI VE PARLAK YAZI */
.change-stopped {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff !important;
    border: 1.5px solid #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* BOTTOM ROW (BAŞLANGIÇ LİSTE FİYATI & FİYAT DÜŞME SAYACI) */
.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    width: 100%;
}

.base-price-tag {
    font-family: var(--font-financial);
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.change-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* PENDING 2-MINUTE PRICE INCREASE COUNTDOWN BADGE */
.pending-countdown-badge {
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    font-family: var(--font-financial);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    animation: amberPulse 1.5s infinite alternate;
}

/* ⏬ FİYAT DÜŞME GERİ SAYIM ROZETİ (SAYAÇ) */
.decay-countdown-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-financial);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    transition: all 0.3s ease;
}
.decay-countdown-badge .decay-time-val {
    font-family: var(--font-financial);
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.pulse-amber-dot {
    width: 5px;
    height: 5px;
    background: var(--gold-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--gold-accent);
    animation: pulse 1s infinite;
}

@keyframes amberPulse {
    0% { border-color: rgba(255, 193, 7, 0.4); box-shadow: 0 0 5px rgba(255, 193, 7, 0.2); }
    100% { border-color: var(--gold-accent); box-shadow: 0 0 14px rgba(255, 193, 7, 0.6); }
}

/* HIDE MIN/MAX BOUNDS (TABAN & TAVAN) ON TV DISPLAY AS REQUESTED */
.bounds-container {
    display: none !important;
}

/* FLOATING CONTROLS TOOLBAR FOR DEMO/ADMIN - HIDDEN BY DEFAULT FOR PUBLIC/CUSTOMERS */
.demo-toolbar {
    height: 60px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border-color);
    display: none !important; /* Default hidden for customers */
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
    z-index: 100;
}

body.show-admin .demo-toolbar {
    display: flex !important;
}

@media screen and (min-width: 769px) {
    body:not(.show-admin) .tv-main-container {
        height: calc(100vh - 80px) !important;
    }
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-tool {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-highlight);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-tool:hover {
    background: #334155;
    transform: translateY(-2px);
}

.btn-tool.btn-danger {
    background: rgba(255, 23, 68, 0.2);
    border-color: var(--red-drop);
    color: var(--red-drop);
}
.btn-tool.btn-danger:hover {
    background: var(--red-drop);
    color: #fff;
}

.btn-tool.btn-gold {
    background: rgba(255, 193, 7, 0.2);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
}

/* ==========================================================================
   PWA & MOBILE RESPONSIVE GRID STYLING
   ========================================================================== */

/* MOBILE PORTRAIT MODE (Dik Ekran Telefonda) */
@media screen and (orientation: portrait) and (max-width: 768px) {
    .tv-header {
        height: 65px;
        padding: 0 0.8rem;
    }
    .brand-title { font-size: 1.2rem; }
    .brand-logo-img { height: 36px; }
    .header-stats .stat-box, .live-badge { display: none; }
    .ticker-wrapper { margin: 0 0.5rem; height: 36px; }

    .tv-main-container {
        height: calc(100vh - 65px) !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        overflow-y: auto !important;
        padding: 0.6rem !important;
        gap: 0.6rem !important;
    }
    .product-title { font-size: 1.0rem !important; }
    .current-price { font-size: 1.8rem !important; }
}

/* MOBILE & TABLET LANDSCAPE PWA MODE (Yatay Ekran PWA - Tüm Ürünler Ekrana Sığar) */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .tv-header {
        height: 46px !important;
        padding: 0 0.8rem !important;
    }
    .brand-title { font-size: 1.05rem !important; letter-spacing: 1px !important; }
    .brand-subtitle { display: none !important; }
    .brand-logo-img { height: 30px !important; }
    .ticker-wrapper { height: 30px !important; margin: 0 0.5rem !important; }
    .ticker-label { font-size: 0.68rem !important; padding: 0 0.4rem !important; }
    .ticker-content { font-size: 0.78rem !important; }
    .header-stats { gap: 0.5rem !important; }
    .stat-box { display: none !important; }
    .live-badge { padding: 0.2rem 0.4rem !important; font-size: 0.62rem !important; }
    .clock-display { font-size: 0.9rem !important; padding: 0.15rem 0.4rem !important; }

    .tv-main-container {
        height: calc(100vh - 46px) !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        padding: 0.4rem !important;
        overflow: hidden !important;
    }

    .product-card {
        padding: 0.4rem 0.55rem !important;
        border-radius: 10px !important;
    }

    .category-pill {
        font-size: 0.58rem !important;
        padding: 0.15rem 0.35rem !important;
    }

    .code-pill {
        font-size: 0.62rem !important;
    }

    .product-title {
        color: #ffffff !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        margin-top: 0.15rem !important;
        margin-bottom: 0.15rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: block !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }

    .price-row {
        padding-top: 0.1rem !important;
    }

    .current-price {
        font-size: 1.35rem !important;
    }

    .currency {
        font-size: 0.75rem !important;
    }

    .base-price-tag {
        font-size: 0.6rem !important;
    }

    .change-pill {
        font-size: 0.68rem !important;
        padding: 0.15rem 0.35rem !important;
        border-radius: 5px !important;
    }
}

/* ==========================================================================
   FULL-SCREEN 30-SECOND PRICE DROP ANNOUNCEMENT MODAL (TV OVERLAY)
   ========================================================================== */
.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.92);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    z-index: 99999 !important;
}

/* ANNOUNCEMENT CARD CONTENT */
.announcement-box {
    width: 85%;
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 3px solid var(--gold-accent);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 0 80px rgba(255, 193, 7, 0.3), inset 0 0 30px rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay-modal.active .announcement-box {
    transform: scale(1);
}

/* Top Flash Header */
.announcement-header {
    text-align: center;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.popup-brand-logo {
    height: 75px;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(255, 193, 7, 0.6));
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(90deg, #ff1744, #ff9100);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.6);
    animation: flashBadge 1s infinite alternate;
}

@keyframes flashBadge {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); box-shadow: 0 0 45px rgba(255, 145, 0, 0.8); }
}

.announcement-body {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: center;
}

.image-frame {
    width: 380px;
    height: 380px;
    border-radius: 24px;
    border: 3px solid var(--border-highlight);
    background: #000;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.announcement-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.price-comparison-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.old-price-box {
    font-family: var(--font-financial);
    font-size: 2.2rem;
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: var(--red-drop);
    text-decoration-thickness: 4px;
}

.arrow-icon {
    font-size: 2.5rem;
    color: var(--gold-accent);
    animation: arrowBounce 1s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.new-price-box {
    font-family: var(--font-financial);
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--green-rise);
    text-shadow: 0 0 30px var(--green-glow);
    display: flex;
    align-items: baseline;
}

.drop-amount-tag {
    display: inline-block;
    background: rgba(0, 230, 118, 0.15);
    border: 2px solid var(--green-rise);
    color: var(--green-rise);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    width: fit-content;
}

.announcement-footer-note {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-accent);
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

/* COUNTDOWN TIMER BAR */
.countdown-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-top: 2.5rem;
    overflow: hidden;
}

.countdown-bar-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--gold-accent), var(--green-rise));
    transition: width 0.1s linear;
}

/* ==========================================================================
   2-MINUTE BRAND LOGO SHOWCASE POPUP STYLES
   ========================================================================== */
.logo-announcement-box {
    text-align: center;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 90px rgba(0, 229, 255, 0.4), inset 0 0 35px rgba(0, 229, 255, 0.15);
}

.brand-badge {
    background: linear-gradient(90deg, #00e5ff, #00e676);
    color: #000;
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
}

.logo-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.logo-hero-frame {
    background: rgba(15, 23, 42, 0.85);
    border: 3px solid var(--cyan-accent);
    border-radius: 24px;
    padding: 1.5rem 3.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.4);
    animation: logoPulseGlow 2s infinite alternate;
}

@keyframes logoPulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 40px rgba(0, 229, 255, 0.4); }
    100% { transform: scale(1.04); box-shadow: 0 0 80px rgba(0, 229, 255, 0.8); }
}

.hero-logo-img {
    max-height: 190px;
    max-width: 500px;
    object-fit: contain;
}

.slogan-title {
    font-size: 2.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #ffffff, #ffc107, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.slogan-subtitle {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* DEFAULT (DESKTOP & TV) COMPONENT MODES */
.mobile-col-headers {
    display: none;
}
.mobile-left-strip {
    display: none;
}
.stock-avatar-circle {
    display: none;
}
.card-left-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* MOBILE BORSA STOCK LIST VIEW (PORTRAIT & PWA MOBILE VIEW MATCHING USER SCREENSHOT) */
@media screen and (max-width: 768px), screen and (orientation: portrait) and (max-width: 900px) {
    html, body {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* TOP MOBILE HEADER (CONTAINER FOR LOGO & CLOCK, PLUS FULL-WIDTH WHEEL BANNER ABOVE CANLI AKIŞ) */
    .tv-header {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
        border-bottom: 2px solid var(--gold-accent) !important;
        padding: 0.5rem 0.75rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        min-height: 48px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
        position: relative !important;
        gap: 0.35rem 0 !important;
    }

    /* TOP ROW INSIDE HEADER: LOGO LEFT, CLOCK RIGHT */
    .tv-header > .brand-container {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.45rem !important;
        margin: 0 !important;
        padding-right: 0 !important;
    }

    .brand-logo-img {
        height: 28px !important;
    }
    .brand-title {
        font-size: 0.95rem !important;
        color: #ffffff !important;
    }
    .brand-subtitle {
        font-size: 0.58rem !important;
        color: #94a3b8 !important;
    }

    .header-stats {
        display: contents !important; /* Transparent flex wrapper so order 2, 3, 4 arrange cleanly */
    }

    .stat-box, .live-badge {
        display: none !important;
    }

    .db-status-badge {
        order: 2 !important;
        margin-left: auto !important;
        padding: 0.2rem 0.55rem !important;
        font-size: 0.7rem !important;
    }

    .clock-display {
        order: 3 !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        padding: 0.2rem 0.45rem !important;
        border-radius: 6px !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: 0.35rem !important;
        flex-shrink: 0 !important;
    }

    /* FULL-WIDTH HORIZONTAL WHEEL BANNER DIRECTLY ABOVE CANLI AKIŞ (TICKER WRAPPER) */
    .wheel-countdown-badge {
        order: 4 !important;
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.35rem !important;
        padding: 0.35rem 0.65rem !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, rgba(88, 28, 135, 0.95) 0%, rgba(109, 40, 217, 0.95) 100%) !important;
        border: 1.5px solid #a78bfa !important;
        box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
    }

    .wheel-badge-content {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: 100% !important;
        white-space: nowrap !important;
    }

    .active-deal-mode {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.45rem !important;
        width: 100% !important;
        white-space: nowrap !important;
    }

    .wheel-deal-badge-title {
        font-size: 0.68rem !important;
        padding: 0.18rem 0.45rem !important;
        background: #f59e0b !important;
        color: #000000 !important;
        border-radius: 6px !important;
        font-weight: 900 !important;
        flex-shrink: 0 !important;
    }

    .wheel-deal-name {
        font-size: 0.85rem !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .wheel-deal-old-p {
        display: inline-block !important;
        font-size: 0.75rem !important;
        color: #cbd5e1 !important;
        text-decoration: line-through !important;
        flex-shrink: 0 !important;
    }

    .wheel-deal-arr {
        display: inline-block !important;
        font-size: 0.75rem !important;
        color: #f59e0b !important;
        flex-shrink: 0 !important;
    }

    .wheel-deal-new-p {
        display: inline-block !important;
        font-size: 0.9rem !important;
        color: #4ade80 !important;
        font-weight: 900 !important;
        flex-shrink: 0 !important;
    }

    .wheel-deal-timer-pill {
        font-size: 0.72rem !important;
        padding: 0.15rem 0.45rem !important;
        background: rgba(239, 68, 68, 0.25) !important;
        border: 1px solid #ef4444 !important;
        color: #fca5a5 !important;
        border-radius: 12px !important;
        font-weight: 800 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .wheel-badge-text {
        font-size: 0.8rem !important;
        color: #ede9fe !important;
        font-family: var(--font-financial) !important;
        font-weight: 800 !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* KAYAN YAZI (CANLI AKIŞ) DIRECTLY ABOVE TUBORG FIÇI (FIRST PRODUCT) */
    .ticker-wrapper {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0.2rem 0 !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        position: relative !important;
    }

    .ticker-label {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        padding: 0 0.5rem !important;
        background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%) !important;
        color: #000000 !important;
        letter-spacing: 0.5px !important;
        height: 28px !important;
        line-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        flex-shrink: 0 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.15) !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .ticker-content {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        font-family: var(--font-financial) !important;
        line-height: 28px !important;
        height: 28px !important;
        letter-spacing: 0.3px !important;
        color: #0f172a !important;
        display: flex !important;
        align-items: center !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }

    .ticker-item {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        margin-right: 1.8rem !important;
        color: #0f172a !important;
        height: 28px !important;
        line-height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
    }

    .ticker-item strong {
        color: #0f172a !important;
        font-weight: 800 !important;
    }

    .ticker-down {
        color: #dc2626 !important;
        font-weight: 800 !important;
    }

    .ticker-up {
        color: #059669 !important;
        font-weight: 800 !important;
    }

    /* SEMBOL SATIRI TAMAMEN KALDIRILDI */
    .mobile-col-headers {
        display: none !important;
    }

    /* MOBILE MAIN CONTAINER */
    .tv-main-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        padding: 0.35rem 0 140px 0 !important; /* Generous bottom padding so floating action buttons never overlap the last product card */
        margin-bottom: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        background: #f1f5f9 !important;
    }

    /* PRODUCT CARD AS HORIZONTAL MOBILE STOCK ROW */
    .product-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #ffffff !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        padding: 0.5rem 0.6rem 0.5rem 0.8rem !important;
        position: relative !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
        margin: 0 !important;
        min-height: 56px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 0.35rem !important;
    }

    .product-card:hover {
        background: #f8fafc !important;
    }

    /* LEFT-EDGE COLOR STRIP (Green for drop, Red for rise) */
    .mobile-left-strip {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
    }
    .mobile-left-strip.strip-drop { background: #10b981 !important; }
    .mobile-left-strip.strip-rise { background: #ef4444 !important; }
    .mobile-left-strip.strip-neutral { background: #94a3b8 !important; }

    /* HIDE CATEGORY PILL & CODE PILL ON MOBILE ONLY TO GIVE FULL SPACE TO PRODUCT NAMES */
    .card-top {
        display: none !important;
    }

    .product-title {
        color: #0f172a !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: block !important;
        text-align: left !important;
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    /* CENTER: BIG PRICE + ARROW ON MOBILE */
    .price-box-center {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .current-price-big {
        color: #0f172a !important;
        font-size: 1.2rem !important;
        font-weight: 900 !important;
        text-shadow: none !important;
        line-height: 1 !important;
    }

    .currency-big {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
        margin-left: 0.15rem !important;
    }

    .price-arrow-big {
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        margin-left: 0.2rem !important;
        line-height: 1 !important;
    }

    .price-arrow-big.arrow-drop {
        color: #059669 !important;
        text-shadow: none !important;
    }

    .price-arrow-big.arrow-rise {
        color: #dc2626 !important;
        text-shadow: none !important;
    }

    /* RIGHT GROUP ON MOBILE: STACKS DISCOUNT PILL & BASE PRICE TAG VERTICALLY */
    .card-right-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 0.15rem !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .center-discount-box {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .card-bottom-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 0 !important;
        border: none !important;
        flex-shrink: 0 !important;
    }

    .base-price-tag {
        font-size: 0.58rem !important;
        color: #64748b !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        text-align: right !important;
        margin-top: 0.05rem !important;
    }

    .change-pill {
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        padding: 0.12rem 0.38rem !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
        box-shadow: none !important;
    }

    .change-drop {
        background: rgba(16, 185, 129, 0.12) !important;
        color: #059669 !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
    }

    .change-rise {
        background: rgba(239, 68, 68, 0.12) !important;
        color: #dc2626 !important;
        border: 1px solid rgba(239, 68, 68, 0.3) !important;
    }

    .change-neutral {
        background: rgba(100, 116, 139, 0.1) !important;
        color: #475569 !important;
        border: 1px solid rgba(100, 116, 139, 0.2) !important;
    }

    /* ==========================================================================
       MOBILE RESPONSIVE OVERLAY MODALS & POPUPS (#announcementModal, #bestDealModal, etc.)
       ========================================================================== */
    .overlay-modal {
        padding: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .announcement-box, .best-deal-box, .logo-announcement-box {
        width: 92vw !important;
        max-width: 440px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        padding: 1rem !important;
        border-radius: 16px !important;
        margin: auto !important;
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.8) !important;
    }

    .announcement-header {
        padding-bottom: 0.6rem !important;
        margin-bottom: 0.8rem !important;
        gap: 0.5rem !important;
    }

    .popup-brand-logo {
        max-height: 26px !important;
    }

    .announcement-badge {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.6rem !important;
        letter-spacing: 0.5px !important;
    }

    /* ANNOUNCEMENT POPUP BODY (SWITCH FROM HORIZONTAL ROW TO VERTICAL COLUMN ON MOBILE) */
    .announcement-body {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding: 0 !important;
    }

    .image-frame {
        width: 100% !important;
        max-height: 130px !important;
        border-radius: 12px !important;
        padding: 0.3rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #popupImage {
        max-height: 120px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .product-details-col {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .announcement-title {
        font-size: 1.15rem !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .price-comparison-box {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        padding: 0.5rem 0.8rem !important;
        margin: 0.2rem 0 !important;
    }

    .old-price-box {
        font-size: 1.15rem !important;
    }

    .arrow-icon {
        font-size: 1.3rem !important;
    }

    .new-price-box {
        font-size: 2.2rem !important;
    }

    .drop-amount-tag {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.8rem !important;
        border-radius: 8px !important;
        margin-top: 0.2rem !important;
        text-align: center !important;
    }

    .announcement-footer-note {
        font-size: 0.8rem !important;
        margin-top: 0.4rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    .countdown-bar-container {
        margin-top: 0.8rem !important;
        height: 6px !important;
    }

    /* 2-MINUTE BRAND LOGO SHOWCASE POPUP MOBILE STYLES */
    .logo-hero-frame {
        padding: 0.6rem 1.2rem !important;
        margin-bottom: 0.8rem !important;
        border-radius: 16px !important;
    }

    .hero-logo-img {
        max-height: 85px !important;
        max-width: 220px !important;
    }

    .slogan-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }

    .slogan-subtitle {
        font-size: 0.82rem !important;
        margin-bottom: 0.8rem !important;
        line-height: 1.3 !important;
    }

    /* BEST DEAL MODAL MOBILE STYLES */
    .best-deal-box {
        padding: 1rem !important;
    }

    .best-deal-img {
        max-height: 110px !important;
    }

    .best-deal-title {
        font-size: 1.15rem !important;
    }

    .deal-price-card {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }

    .deal-savings-tag {
        font-size: 0.78rem !important;
        padding: 0.4rem !important;
    }

    .deal-adv-note {
        font-size: 0.78rem !important;
        padding: 0.6rem !important;
    }

    .btn-deal-action {
        font-size: 0.9rem !important;
        padding: 0.7rem !important;
    }

    /* MOBILE WHEEL OVERLAY MODAL RESPONSIVE SCALING */
    .wheel-spin-card {
        padding: 1rem 1.2rem !important;
        max-width: 95vw !important;
    }

    .wheel-spin-header h2 {
        font-size: 1.1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .wheel-spin-wrapper {
        width: 320px !important;
        height: 320px !important;
        margin-bottom: 1rem !important;
    }

    .wheel-spin-box {
        width: 300px !important;
        height: 300px !important;
    }

    .wheel-pointer {
        top: -22px !important;
        font-size: 2.2rem !important;
    }

    .wheel-slice-item {
        width: 140px !important;
        height: 30px !important;
        margin-top: -15px !important;
        padding-right: 14px !important;
        padding-left: 36px !important;
    }

    .wheel-slice-item .slice-prod-name {
        font-size: 0.65rem !important;
    }

    .wheel-slice-item .slice-prod-price {
        font-size: 0.72rem !important;
    }
}

/* FLOATING MOBILE ACTION BUTTONS CONTAINER ("Kurallar" & "Avantajları Gör") */
.mobile-floating-actions {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 14px;
    z-index: 9990;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

@media screen and (max-width: 768px), screen and (orientation: portrait) and (max-width: 900px) {
    .mobile-floating-actions {
        display: flex !important;
    }
}

.mobile-rules-btn, .mobile-best-deal-btn {
    pointer-events: auto;
}

.mobile-rules-btn {
    background: #1e293b;
    color: var(--gold-accent);
    border: 1.5px solid var(--gold-accent);
    font-family: var(--font-financial);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.15s ease, background 0.2s ease;
}

.mobile-rules-btn:hover {
    background: #0f172a;
    transform: scale(1.04);
}

.mobile-best-deal-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #e65100 100%);
    color: #000000;
    border: 1.5px solid #ffffff;
    font-family: var(--font-financial);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.65rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.3px;
    animation: dealBtnPulse 1.8s infinite alternate;
}

@keyframes dealBtnPulse {
    0% { transform: scale(1); box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5); }
    100% { transform: scale(1.05); box-shadow: 0 10px 25px rgba(255, 152, 0, 0.9), 0 0 20px rgba(255, 235, 59, 0.7); }
}

/* RULES MODAL & HEALTH ADVISORY STYLES */
.rules-box {
    max-width: 520px !important;
    border: 2px solid var(--gold-accent) !important;
    background: linear-gradient(145deg, #0e1626 0%, #162032 100%) !important;
    box-shadow: 0 0 50px rgba(255, 193, 7, 0.35) !important;
    border-radius: 20px !important;
    padding: 1.25rem !important;
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.rules-badge {
    background: linear-gradient(90deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    font-weight: 900 !important;
}

.rules-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 70vh;
    overflow-y: auto;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3.5px solid var(--gold-accent);
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
}

.rule-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rule-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.rule-item p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.35;
}

.health-warning-box {
    background: rgba(220, 38, 38, 0.15);
    border: 1.5px solid #ef4444;
    color: #fca5a5;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    line-height: 1.45;
    margin-top: 0.5rem;
}

.best-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.best-deal-badge {
    background: linear-gradient(90deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    font-weight: 900 !important;
}

.btn-close-deal {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-deal:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.best-deal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.best-deal-hero {
    display: flex;
    justify-content: center;
}

.best-deal-img {
    max-height: 150px;
    border-radius: 12px;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.best-deal-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.best-deal-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 0.2rem;
}

.deal-price-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-comparison-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deal-old-price, .deal-new-price {
    display: flex;
    flex-direction: column;
}

.deal-old-price .label, .deal-new-price .label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.deal-old-price .val {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 700;
}

.deal-new-price .val {
    font-size: 1.6rem;
    color: #00e676;
    font-weight: 900;
}

.deal-arrow {
    font-size: 1.4rem;
    color: var(--gold-accent);
}

.deal-savings-tag {
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid #00e676;
    color: #00e676;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.deal-adv-note {
    font-size: 0.85rem;
    color: #cbd5e1;
    background: rgba(255,255,255,0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-accent);
    line-height: 1.4;
}

.btn-deal-action, .btn-next-deal {
    background: linear-gradient(135deg, #2563eb 0%, #00b0ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-family: var(--font-financial) !important;
    font-weight: 900 !important;
    font-size: 1.05rem !important;
    padding: 0.85rem 1.2rem !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(0, 176, 255, 0.4) !important;
    transition: transform 0.15s ease, background 0.2s ease !important;
    margin-top: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.btn-deal-action:hover, .btn-next-deal:hover {
    transform: scale(1.03) !important;
    background: linear-gradient(135deg, #1d4ed8 0%, #0091ea 100%) !important;
    box-shadow: 0 6px 25px rgba(0, 176, 255, 0.6) !important;
}

/* TV FULLSCREEN / OVERLAY REKLAM BANNER MODAL */
.ad-banner-modal-box {
    background: #0f172a;
    border: 3px solid #ffc107;
    border-radius: 16px;
    width: 96vw;
    height: 94vh;
    max-width: 1850px;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(255, 193, 7, 0.6), 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: adModalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes adModalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ad-modal-header {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    padding: 0.6rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 193, 7, 0.4);
    flex-shrink: 0;
}

.ad-header-badge {
    font-family: var(--font-financial);
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffc107;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ad-timer-badge {
    background: #dc2626;
    color: #ffffff;
    font-family: var(--font-financial);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.6);
}

.ad-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.ad-banner-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   WHEEL OF FORTUNE (ÇARKIFELEK) STYLES
   ========================================================================== */

/* HEADER COUNTDOWN & ACTIVE DEAL BADGE */
.wheel-countdown-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.45) 100%);
    border: 1px solid #a78bfa;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.5);
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.wheel-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #a7f3d0;
    border-radius: 50%;
    box-shadow: 0 0 10px #a7f3d0;
    animation: wheelPulse 1.5s infinite;
}

@keyframes wheelPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.wheel-badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wheel-badge-text {
    color: #ede9fe;
    font-family: var(--font-financial);
    font-weight: 800;
    font-size: 0.88rem;
}

.wheel-badge-text strong {
    color: #fbbf24;
}

/* ACTIVE DEAL MODE IN HEADER (Placed to the left of DB AKTİF & Clock) */
.active-deal-mode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-financial);
}

.wheel-deal-badge-title {
    color: #000;
    background: #f59e0b;
    font-weight: 900;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wheel-deal-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

.wheel-deal-old-p {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.wheel-deal-arr {
    color: #f59e0b;
    font-size: 0.85rem;
}

.wheel-deal-new-p {
    color: #4ade80;
    font-weight: 900;
    font-size: 1.05rem;
}

.wheel-deal-timer-pill {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid #ef4444;
    padding: 0.2rem 0.6rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* FULLSCREEN WHEEL SPIN OVERLAY MODAL (CENTERED ON SCREEN) */
.wheel-spin-card {
    background: radial-gradient(circle, #2e1065 0%, #0f172a 100%);
    border: 3px solid #c084fc;
    border-radius: 28px;
    padding: 1.8rem 2.2rem;
    max-width: 820px;
    width: 92vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 120px rgba(192, 132, 252, 0.75), 0 25px 65px rgba(0, 0, 0, 0.95);
    animation: modalPop 0.4s ease-out;
    margin: auto;
}

.wheel-spin-header h2 {
    color: #fef08a;
    font-family: var(--font-financial);
    font-size: 1.6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(254, 240, 138, 0.7);
    letter-spacing: 1px;
}

.wheel-spin-wrapper {
    position: relative;
    width: 520px;
    height: 520px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.4rem;
    color: #ef4444;
    z-index: 25;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.95));
    animation: pointerBounce 0.6s infinite alternate;
}

.wheel-spin-box {
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    box-shadow: 0 0 55px rgba(192, 132, 252, 0.7);
    transition: transform 11s cubic-bezier(0.1, 0.85, 0.2, 1);
}

.wheel-spin-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.wheel-slice-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 50%;
}

.wheel-slice-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 235px;
    height: 44px;
    margin-top: -22px;
    margin-left: 0px;
    transform-origin: 0% 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 96px;
    padding-right: 22px;
    text-align: center;
    box-sizing: border-box;
}

.wheel-slice-item .slice-prod-name {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    text-shadow: 0 2px 5px #000000, 0 0 8px #000000, 0 0 3px #000000;
    white-space: nowrap;
    line-height: 1.15;
    font-family: var(--font-heading);
    letter-spacing: 0.2px;
    max-width: 117px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wheel-slice-item .slice-prod-price {
    color: #fef08a;
    font-weight: 900;
    font-size: 0.88rem;
    text-shadow: 0 2px 6px #000000, 0 0 10px rgba(254, 240, 138, 0.6);
    line-height: 1.15;
    font-family: var(--font-financial);
}

.wheel-winner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid #f59e0b;
    padding: 1.2rem 1.8rem;
    border-radius: 16px;
    width: 100%;
    animation: winnerPop 0.5s ease-out;
}

.wheel-spin-card.closing {
    animation: modalFadeOut 0.8s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes modalFadeOut {
    0% { transform: scale(1); opacity: 1; filter: blur(0px); }
    100% { transform: scale(0.65) translateY(30px); opacity: 0; filter: blur(12px); }
}

.winner-badge {
    background: #f59e0b;
    color: #000;
    font-family: var(--font-financial);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
}

.wheel-winner-box h1 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-financial);
}

.winner-price-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.winner-old-price {
    font-size: 1.3rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.winner-arrow {
    font-size: 1.4rem;
    color: #f59e0b;
}

.winner-new-price {
    font-size: 2.2rem;
    color: #4ade80;
    font-weight: 900;
    font-family: var(--font-financial);
}

.winner-timer-text {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ============================================================
   FİYAT DÜŞÜŞ SPOTLIGHT — Ekran ortası animasyonlu popup
   ============================================================ */

@keyframes pdropBackdropIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdropBackdropOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes pdropCardIn {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotateX(20deg); }
    60%  { transform: translate(-50%, -50%) scale(1.06) rotateX(-3deg); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotateX(0deg); }
}
@keyframes pdropCardOut {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) translateY(-40px); }
}

@keyframes pdropBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0.7); }
    50%       { box-shadow: 0 0 0 18px rgba(0,230,118,0); }
}

@keyframes pdropBarGrow {
    from { width: 0 !important; }
    to   { /* final width set inline */ }
}

@keyframes pdropDotFade {
    to { opacity: 0; transform: scale(0.4); }
}

@keyframes pdropSavingsShine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Overlay wrapper */
.pdrop-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

/* Backdrop blur */
.pdrop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.pdrop-enter .pdrop-backdrop { animation: pdropBackdropIn  0.35s ease forwards; }
.pdrop-exit  .pdrop-backdrop { animation: pdropBackdropOut 0.55s ease forwards; }

/* Card */
.pdrop-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: min(560px, 90vw);
    background: linear-gradient(145deg, #0a1a0f 0%, #0f2a18 40%, #071510 100%);
    border: 2px solid #00e676;
    border-radius: 24px;
    padding: 36px 40px 30px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(0,230,118,0.15),
        0 0 60px rgba(0,230,118,0.25),
        0 30px 80px rgba(0,0,0,0.6);
}
.pdrop-enter .pdrop-card { animation: pdropCardIn  0.55s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.pdrop-exit  .pdrop-card { animation: pdropCardOut 0.55s ease forwards; }

/* Badge */
.pdrop-badge {
    display: inline-block;
    background: #00e676;
    color: #042a0e;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 5px 18px;
    border-radius: 30px;
    margin-bottom: 18px;
    animation: pdropBadgePulse 1s ease infinite;
}

/* Product name */
.pdrop-name {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(0,230,118,0.3);
}

/* Category */
.pdrop-category {
    font-size: 0.82rem;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
    opacity: 0.75;
}

/* Price row */
.pdrop-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.pdrop-old-price, .pdrop-new-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pdrop-old-label, .pdrop-new-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.pdrop-old-val {
    font-family: var(--font-financial);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #ef4444;
    text-decoration: line-through;
    opacity: 0.8;
}

.pdrop-arrow {
    font-size: 2rem;
    color: #fbbf24;
    line-height: 1;
    margin-top: 16px;
}

.pdrop-new-val {
    font-family: var(--font-financial);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 24px rgba(255,255,255,0.8), 0 0 8px rgba(255,255,255,0.5);
    animation: pdropBadgePulse 0.8s ease infinite;
}

/* Savings */
.pdrop-savings {
    font-size: clamp(0.9rem, 2.2vw, 1.15rem);
    font-weight: 800;
    color: #fbbf24;
    background: linear-gradient(90deg, #78350f, #92400e, #b45309, #92400e, #78350f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pdropSavingsShine 2s linear infinite;
    margin-bottom: 16px;
}

/* Progress bar */
.pdrop-bar-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.pdrop-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e676, #4ade80, #00e676);
    background-size: 200% auto;
    border-radius: 99px;
    animation: pdropBarGrow 0.8s 0.4s ease both, pdropSavingsShine 1.5s linear infinite;
}

/* Timer dots */
.pdrop-timer-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pdrop-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px rgba(0,230,118,0.7);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pdrop-dot-gone {
    animation: pdropDotFade 0.4s ease forwards;
}

/* ============================================================
   BORSA SEANSI SONA ERDİ — POS Offline Overlay
   ============================================================ */

@keyframes posOfflineIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes posOfflineOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}
@keyframes posOfflineCardIn {
    0%   { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes posDotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1.0); opacity: 1; }
}
@keyframes posIconPulse {
    0%, 100% { text-shadow: 0 0 0 rgba(239,68,68,0); }
    50%      { text-shadow: 0 0 40px rgba(239,68,68,0.8), 0 0 80px rgba(239,68,68,0.4); }
}
@keyframes posGlitch {
    0%,95%,100% { clip-path: none; transform: none; }
    96%  { clip-path: inset(20% 0 50% 0); transform: translateX(-4px); }
    97%  { clip-path: inset(60% 0 10% 0); transform: translateX(4px); }
    98%  { clip-path: inset(40% 0 30% 0); transform: translateX(-2px); }
}

/* Full-screen overlay */
.pos-offline-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(5, 5, 10, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-offline-enter { animation: posOfflineIn  0.6s ease forwards; }
.pos-offline-exit  { animation: posOfflineOut 0.8s ease forwards; }

/* Center card */
.pos-offline-card {
    text-align: center;
    animation: posOfflineCardIn 0.7s 0.2s cubic-bezier(0.34,1.2,0.64,1) both;
    max-width: 520px;
    width: 90vw;
}

/* Red pulsing icon */
.pos-offline-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 24px;
    animation: posIconPulse 2s ease infinite;
}

/* Title "BORSA SEANSI" */
.pos-offline-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.1em;
    line-height: 1;
    animation: posGlitch 6s infinite;
}

/* Subtitle "SONA ERDİ" */
.pos-offline-subtitle {
    font-family: var(--font-financial);
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
}

/* Horizontal divider */
.pos-offline-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    margin: 0 auto 24px;
}

/* Connection message */
.pos-offline-msg {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Waiting message */
.pos-offline-msg2 {
    font-size: clamp(0.78rem, 1.8vw, 0.92rem);
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Animated waiting dots */
.pos-offline-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pos-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: posDotPulse 1.4s ease-in-out infinite;
}
.pos-dot:nth-child(1) { animation-delay: 0s;    }
.pos-dot:nth-child(2) { animation-delay: 0.16s; }
.pos-dot:nth-child(3) { animation-delay: 0.32s; }

/* ============================================================
   BORSA YENİDEN BAŞLADI — Reconnect Toast
   ============================================================ */

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

.pos-reconnect-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999998;
    background: linear-gradient(135deg, #052e16, #14532d);
    border: 1.5px solid #22c55e;
    border-radius: 14px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(34,197,94,0.2);
    transform: translateX(120%);
    opacity: 0;
    transition: none;
    max-width: 340px;
}
.pos-reconnect-toast span {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.pos-reconnect-toast strong {
    color: #4ade80;
    display: block;
    margin-bottom: 3px;
}
.pos-reconnect-toast small {
    color: #86efac;
    font-size: 0.8rem;
    line-height: 1.4;
}
.pos-toast-show {
    animation: toastSlideIn 0.5s cubic-bezier(0.34,1.3,0.64,1) forwards;
}
.pos-reconnect-toast:not(.pos-toast-show) {
    animation: toastSlideOut 0.5s ease forwards;
}

/* ==================================================================
   BORSA STOPPED SELECTION & STATUS STYLING
   ================================================================== */
.borsa-stopped-banner {
    width: calc(100% - 2rem);
    margin: 0.75rem 1rem 0.25rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
    border: 2px solid #ef4444;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.4);
    border-radius: 14px;
    padding: 0.85rem 1.5rem;
    backdrop-filter: blur(10px);
    z-index: 100;
    box-sizing: border-box;
    animation: stoppedPulseBorder 2s infinite alternate;
}

@keyframes stoppedPulseBorder {
    0% { border-color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
    100% { border-color: #f59e0b; box-shadow: 0 0 45px rgba(245, 158, 11, 0.6); }
}

.stopped-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stopped-icon-pulse {
    font-size: 2rem;
    animation: pulseIcon 1.2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.stopped-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stopped-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stopped-sub {
    font-size: 0.9rem;
    color: #fef08a;
    font-weight: 600;
}

.stopped-badge-tag {
    background: #ef4444;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.db-status-badge.borsa-stopped-badge {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.db-status-badge.borsa-active-badge {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--green-rise);
    color: var(--green-rise);
}

.stopped-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseDot 1.2s infinite;
}

.change-stopped {
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid #f59e0b !important;
    color: #fef08a !important;
}

