/* ==========================================================================
   Anadolu Kuyumculuk - Canlı Fiyat & TV Vitrin Ekranı Stilleri
   ========================================================================== */

:root {
    --bg-main: #0c0f17;
    --bg-card: #151a26;
    --bg-card-header: #1b2233;
    --bg-hover: #1e2638;
    
    --gold-primary: #d4af37;
    --gold-light: #f7e089;
    --gold-dark: #aa8210;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f7e089 50%, #aa8210 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --green-up: #10b981;
    --green-glow: rgba(16, 185, 129, 0.35);
    --red-down: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.35);
    
    --border-color: rgba(212, 175, 55, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-price: 'Oswald', sans-serif;
}

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

body {
    background: radial-gradient(circle at 50% 0%, #171d2b 0%, #0a0d14 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================
   Header Bar
   ========================================== */
.header {
    background: rgba(18, 22, 33, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold-dark);
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gold-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1603;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 2px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.brand-text .sub-text {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-secondary);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green-up);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green-up);
    box-shadow: 0 0 10px var(--green-up);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red-down);
}
.status-indicator.offline .status-dot {
    background-color: var(--red-down);
    box-shadow: 0 0 10px var(--red-down);
    animation: none;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.clock-box {
    text-align: right;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.live-time {
    font-family: var(--font-price);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.live-date {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: capitalize;
}

.btn-fullscreen {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}
.btn-fullscreen:hover {
    background: var(--gold-dark);
    color: #fff;
    border-color: var(--gold-primary);
}

/* ==========================================
   Main Grid Layout
   ========================================== */
.main-container {
    max-width: 1800px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 24px;
    flex: 1;
    width: 100%;
}

/* ==========================================
   Sol Taraf: Fiyat Tablosu
   ========================================== */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.table-header-title {
    background: var(--bg-card-header);
    border-bottom: 2px solid var(--border-color);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.source-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.table-responsive {
    flex: 1;
    overflow-x: auto;
}

.gold-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.gold-table thead th {
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: 1px;
}

.gold-table thead th.col-price {
    text-align: right;
    width: 25%;
}
.gold-table thead th.col-dir {
    text-align: center;
    width: 12%;
}

.gold-row {
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.2s ease;
}
.gold-row:last-child {
    border-bottom: none;
}
.gold-row:hover {
    background-color: var(--bg-hover);
}

.product-name {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.coin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-price);
    font-size: 13px;
    font-weight: 600;
}

.coin-badge.gold {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-dark);
    color: var(--gold-light);
}
.coin-badge.new {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--green-up);
    color: var(--green-up);
}
.coin-badge.ata {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--red-down);
    color: #fca5a5;
}

.name-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.price {
    padding: 16px 20px;
    font-family: var(--font-price);
    font-size: 26px;
    font-weight: 600;
    text-align: right;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.buy-price {
    color: #cbd5e1;
}

.sell-price {
    color: var(--gold-light);
    font-weight: 700;
}

.price-change-pct {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 3px;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.price-change-pct.pct-up {
    color: #34d399; /* Canlı Açık Yeşil */
}

.price-change-pct.pct-down {
    color: #f87171; /* Canlı Açık Kırmızı */
}

.price-change-pct.pct-neutral {
    color: var(--text-muted);
}

.tl-sym {
    font-size: 0.72em;
    font-weight: 500;
    margin-left: 2px;
    opacity: 0.9;
    color: var(--gold-light);
    display: inline-block;
    vertical-align: baseline;
}

.buy-price .tl-sym {
    color: #94a3b8;
}

.direction {
    padding: 16px;
    text-align: center;
    font-size: 18px;
}

.arrow-up {
    color: var(--green-up);
    animation: bounceUp 1s ease;
}

.arrow-down {
    color: var(--red-down);
    animation: bounceDown 1s ease;
}

.arrow-neutral {
    color: var(--text-muted);
}

/* Fiyat Değişim Animasyonları */
@keyframes flashGreen {
    0% { background-color: var(--green-glow); color: #fff; }
    100% { background-color: transparent; }
}

@keyframes flashRed {
    0% { background-color: var(--red-glow); color: #fff; }
    100% { background-color: transparent; }
}

.flash-up {
    animation: flashGreen 1.4s ease-out;
}

.flash-down {
    animation: flashRed 1.4s ease-out;
}

/* Alt Ticker Şeridi */
.bottom-ticker {
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-rates {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    white-space: nowrap;
    flex: 1;
}

.ticker-item:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 12px;
}

.ticker-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.ticker-val {
    font-family: var(--font-price);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
}

.ticker-disclaimer {
    width: 100%;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
    font-style: italic;
    letter-spacing: 0.5px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ticker-disclaimer i {
    color: var(--gold-primary);
    font-size: 12px;
}

/* ==========================================
   Sağ Taraf: Slayt & QR Kartı
   ========================================== */
.side-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Slayt Kartı */
.slider-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    min-height: 340px;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(12, 15, 23, 0.95) 0%, rgba(12, 15, 23, 0.75) 60%, transparent 100%);
    padding: 24px 20px 34px 20px;
    color: #fff;
    text-align: center;
}

.slide-caption h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--gold-light);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.slide-caption p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 22, 33, 0.7);
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.slide-btn:hover {
    background: var(--gold-dark);
    color: #fff;
}
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: var(--gold-primary);
    width: 22px;
    border-radius: 10px;
}

/* ==========================================
   Instagram Reels & Canlı Vitrin Stilleri (Yöntem A)
   ========================================== */
.ig-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 15;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.4);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: igPulse 2.5s infinite;
}

@keyframes igPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(253, 29, 29, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 6px 20px rgba(253, 29, 29, 0.65); }
}

.ig-follow-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 15;
    background: rgba(15, 20, 31, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}
.ig-follow-pill:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.reels-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(12, 15, 23, 0.25);
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
}
.reels-slide-overlay:hover {
    background: rgba(12, 15, 23, 0.1);
}

.reels-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow: 0 0 25px rgba(253, 29, 29, 0.6);
    transition: all 0.3s ease;
    animation: playBounce 2s infinite ease-in-out;
}
.reels-slide-overlay:hover .reels-play-btn {
    transform: scale(1.15);
    box-shadow: 0 0 35px rgba(253, 29, 29, 0.85);
}

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

.reels-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(225, 48, 108, 0.2);
    color: #ff6b8b;
    border: 1px solid rgba(225, 48, 108, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ig-action-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}
.ig-btn-sm {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.ig-btn-sm:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
    color: #fff;
}

/* Instagram Reels Video Popup Modal */
.reels-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.reels-modal-dialog {
    background: #0f141f;
    border: 2px solid var(--gold-dark);
    border-radius: 20px;
    width: 95%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.reels-modal-header {
    background: #171e2e;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.reels-modal-header h4 {
    font-size: 14px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.reels-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}
.reels-modal-close:hover {
    color: #f87171;
}
.reels-modal-body {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.reels-modal-footer {
    padding: 12px 18px;
    background: #121824;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* QR Kod Kartı */
.qr-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qr-image-wrapper {
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.qr-code {
    width: 85px;
    height: 85px;
    display: block;
}

.qr-text h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--gold-light);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.qr-text p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-text p i {
    color: #e1306c;
}

.qr-note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: block;
}

.store-features {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

.feature-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-tag i {
    color: var(--gold-primary);
}

/* ==========================================
   Footer Bar
   ========================================== */
.footer-bar {
    background: rgba(14, 18, 27, 0.95);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 24px;
    font-size: 12px;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-announcement {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-announcement i {
    color: var(--gold-primary);
    margin-right: 6px;
}

.btn-settings-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-settings-toggle:hover {
    background: var(--gold-dark);
    color: #fff;
    border-color: var(--gold-primary);
}

/* ==========================================
   Settings Modal
   ========================================== */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.settings-modal.active {
    display: flex;
}

.settings-box {
    background: var(--bg-card);
    border: 2px solid var(--gold-dark);
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.settings-header {
    background: var(--bg-card-header);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-header h3 {
    font-size: 16px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.settings-body {
    padding: 20px;
}

.settings-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.margin-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
}

.input-group input {
    background: #0c0f17;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--gold-light);
    font-family: var(--font-price);
    font-size: 16px;
    padding: 6px 12px;
    width: 110px;
    text-align: right;
}
.input-group input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.settings-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-subtle);
}

.btn-reset {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-save {
    background: var(--gold-gradient);
    border: none;
    color: #1a1603;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==========================================
   Responsive (TV, Tablet & Mobil)
   ========================================== */
/* ==========================================
   Responsive (TV, Tablet & Mobil)
   ========================================== */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .slider-card {
        aspect-ratio: 16 / 9;
        min-height: 280px;
    }
}

/* Tablet & Küçük Ekranlar */
@media (max-width: 768px) {
    .header {
        padding: 8px 12px;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .brand {
        gap: 10px;
    }

    .gold-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 8px;
    }

    .brand-text h1 {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .brand-text .sub-text {
        display: none; /* Mobilde dikey alanı korumak için */
    }

    .header-right {
        gap: 8px;
    }

    .status-indicator {
        padding: 4px 8px;
        font-size: 11px;
    }

    .clock-box {
        padding: 4px 10px;
    }

    .live-time {
        font-size: 15px;
    }

    .live-date {
        display: none;
    }

    .btn-fullscreen {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* Ana Kapsayıcı */
    .main-container {
        margin: 10px auto;
        padding: 0 8px;
        gap: 14px;
    }

    /* Tablo Kartı */
    .table-card {
        border-radius: 14px;
    }

    .table-header-title {
        padding: 10px 14px;
    }

    .title-left {
        font-size: 14px;
        gap: 8px;
    }

    /* Fiyat Tablosu */
    .gold-table thead th {
        padding: 10px 6px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .gold-table thead th.col-price {
        width: 27%;
    }
    .gold-table thead th.col-dir {
        width: 10%;
        padding: 10px 2px;
    }

    .product-name {
        padding: 10px 6px;
        gap: 8px;
    }

    .coin-badge {
        min-width: 28px;
        height: 24px;
        padding: 0 4px;
        font-size: 10px;
        border-radius: 6px;
    }

    .name-text {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0;
    }

    .price {
        padding: 10px 6px;
        font-size: 17px;
        letter-spacing: 0.2px;
    }

    .direction {
        padding: 10px 2px;
        font-size: 14px;
    }

    /* Alt Bant - Yan Yana Kurlar */
    .bottom-ticker {
        padding: 8px 6px;
        gap: 6px;
    }

    .ticker-rates {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

    .ticker-item {
        font-size: 11px;
        gap: 4px;
        flex: 1;
        justify-content: center;
        white-space: nowrap;
    }

    .ticker-item:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        padding-right: 6px;
    }

    .ticker-label {
        font-size: 11px;
    }

    .ticker-val {
        font-size: 12px;
    }

    .ticker-disclaimer {
        font-size: 10px;
        padding-top: 4px;
    }

    /* Slayt */
    .slider-card {
        min-height: 220px;
        max-height: 270px;
        border-radius: 14px;
    }

    .slide-caption {
        padding: 14px 10px 24px 10px;
    }

    .slide-caption h3 {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .slide-caption p {
        font-size: 11px;
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .slider-dots {
        bottom: 6px;
        gap: 5px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .dot.active {
        width: 14px;
        border-radius: 6px;
    }

    .slide-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    .slide-btn.prev { left: 8px; }
    .slide-btn.next { right: 8px; }

    /* QR Kartı */
    .qr-card {
        padding: 14px;
        border-radius: 14px;
        gap: 12px;
    }

    .qr-content {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .qr-image-wrapper {
        padding: 6px;
        border-radius: 10px;
    }

    .qr-code {
        width: 70px;
        height: 70px;
    }

    .qr-text h4 {
        font-size: 14px;
    }

    .qr-text p {
        font-size: 12px;
    }

    .qr-note {
        font-size: 10px;
    }

    .store-features {
        padding-top: 10px;
        gap: 6px;
    }

    .feature-tag {
        font-size: 10px;
    }

    /* Footer */
    .footer-bar {
        padding: 8px 12px;
        font-size: 10px;
    }

    .footer-announcement {
        font-size: 10px;
        line-height: 1.3;
    }
}

/* Küçük Telefonlar (<= 400px, iPhone SE / mini / eski Android) */
@media (max-width: 400px) {
    .brand-text h1 {
        font-size: 14px;
    }

    .gold-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .status-indicator .status-label {
        display: none; /* Sadece yeşil nokta kalsın */
    }

    .name-text {
        font-size: 11.5px;
    }

    .coin-badge {
        display: none; /* Çok dar ekranda rozeti gizle, yazıya yer kalsın */
    }

    .price {
        font-size: 15px;
        padding: 8px 4px;
    }

    .gold-table thead th {
        font-size: 10px;
        padding: 8px 4px;
    }
}

/* ==========================================
   Gelişmiş Yönetim & Kâr Marjı Paneli Stilleri
   ========================================== */
.admin-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.admin-modal-backdrop.active {
    display: flex;
}

.admin-modal-dialog {
    background: #0f141f;
    border: 2px solid var(--gold-dark);
    border-radius: 18px;
    width: 95%;
    max-width: 680px;
    max-height: 90vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideDown 0.25s ease-out;
}

@keyframes modalSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-modal-header {
    background: #171e2e;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.admin-modal-header h3 {
    font-size: 17px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.admin-btn-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.admin-btn-close:hover {
    color: #fff;
}

.admin-tabs-nav {
    display: flex;
    background: #0b0f17;
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    gap: 8px;
    overflow-x: auto;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.admin-tab-btn:hover {
    color: #f1f5f9;
}
.admin-tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    background: rgba(245, 197, 24, 0.05);
}

.admin-modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}
.admin-tab-content.active {
    display: flex;
}

.admin-card-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card-title {
    font-size: 14px;
    color: var(--gold-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-field label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.admin-control-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.admin-select {
    background: #090c12;
    border: 1px solid var(--border-color);
    color: #f1f5f9;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}
.admin-select:focus {
    border-color: var(--gold-primary);
}

.admin-input {
    background: #090c12;
    border: 1px solid var(--border-color);
    color: var(--gold-light);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-price);
    font-weight: 700;
    width: 100%;
    outline: none;
}
.admin-input:focus {
    border-color: var(--gold-primary);
}

/* Canlı Simülasyon Kartı */
.admin-sim-card {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, rgba(15, 20, 31, 0.9) 100%);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sim-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gold-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sim-col {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-col-label {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.sim-col-raw {
    font-size: 11px;
    color: #64748b;
    text-decoration: line-through;
}

.sim-col-final {
    font-size: 16px;
    font-family: var(--font-price);
    font-weight: 800;
    color: #ffe082;
}

.admin-prod-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-prod-table th {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-prod-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.admin-modal-footer {
    background: #171e2e;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.admin-footer-left {
    display: flex;
    gap: 8px;
}

.admin-footer-right {
    display: flex;
    gap: 10px;
}

.btn-admin {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-admin.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-admin.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-admin.primary {
    background: var(--gold-gradient);
    color: #0c0f17;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}
.btn-admin.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   TEMA DEĞİŞTİRİCİ BUTON (LAMBA İKONU)
   ========================================================================== */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: #f7e089;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:hover {
    background: var(--gold-primary);
    color: #0c0f17;
    border-color: #f7e089;
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn i {
    filter: drop-shadow(0 0 4px rgba(247, 224, 137, 0.5));
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(12deg);
}

/* ==========================================================================
   BEYAZ TEMA (LIGHT LUXURY GOLD THEME)
   ========================================================================== */
body.light-theme,
html.light-theme body {
    --bg-main: #f3f6fa;
    --bg-card: #ffffff;
    --bg-card-header: #f8fafc;
    --bg-hover: #f8fafc;
    
    --gold-primary: #b45309;
    --gold-light: #92400e;
    --gold-dark: #78350f;
    --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --green-up: #059669;
    --green-glow: rgba(5, 150, 105, 0.2);
    --red-down: #dc2626;
    --red-glow: rgba(220, 38, 38, 0.2);
    
    --border-color: rgba(180, 83, 9, 0.25);
    --border-subtle: rgba(0, 0, 0, 0.08);

    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Header & Başlıklar */
body.light-theme .header,
body.light-theme .header-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid #b45309 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html.light-theme .brand-text h1,
html.light-theme .brand-area h1,
html.light-theme #shop-title,
body.light-theme .brand-text h1,
body.light-theme .brand-area h1,
body.light-theme #shop-title,
.light-theme .brand-text h1,
.light-theme .brand-area h1,
.light-theme #shop-title,
.light-theme h1#shop-title {
    color: #000000 !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #000000 !important;
    text-shadow: none !important;
    filter: none !important;
    font-weight: 800 !important;
}

html.light-theme .brand-text .sub-text,
html.light-theme .brand-area .subtitle,
body.light-theme .brand-text .sub-text,
body.light-theme .brand-area .subtitle,
.light-theme .brand-text .sub-text,
.light-theme .brand-area .subtitle {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

body.light-theme .gold-icon {
    box-shadow: 0 4px 15px rgba(180, 83, 9, 0.3) !important;
}

/* Kartlar ve Paneller */
body.light-theme .table-card,
body.light-theme .tv1-prices-panel,
body.light-theme .tv2-prices-panel,
body.light-theme .slider-card,
body.light-theme .qr-card,
body.light-theme .tv2-ticker-box {
    background: #ffffff !important;
    border: 1px solid rgba(180, 83, 9, 0.22) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .table-header-title {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .table-header-title .title-left span,
body.light-theme .table-header-title .title-left i {
    color: #0f172a !important;
}

body.light-theme .table-header-title .title-right {
    color: #b45309 !important;
}

/* Tablolar ve Başlıklar */
body.light-theme .price-table th,
body.light-theme .tv1-subtable th,
body.light-theme .tv2-subtable th {
    background: #fefce8 !important;
    color: #854d0e !important;
    border-bottom: 2px solid rgba(180, 83, 9, 0.28) !important;
}

body.light-theme .price-table tr,
body.light-theme .tv1-subtable td,
body.light-theme .tv2-subtable td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .price-table tr:hover,
body.light-theme .tv1-subtable tr:hover,
body.light-theme .tv2-subtable tr:hover {
    background: #fefce8 !important;
}

body.light-theme .tv1-subtable-wrap,
body.light-theme .tv2-subtable-wrap {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

/* Ürün İsimleri ve Fiyatlar */
body.light-theme .name-text {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body.light-theme .buy-price,
body.light-theme .tv1-subtable .buy-price,
body.light-theme .tv2-subtable .buy-price {
    color: #1e293b !important;
}

body.light-theme .sell-price,
body.light-theme .tv1-subtable .sell-price,
body.light-theme .tv2-subtable .sell-price {
    color: #b45309 !important;
    font-weight: 800 !important;
}

body.light-theme .buy-price .tl-sym {
    color: #64748b !important;
}

body.light-theme .sell-price .tl-sym {
    color: #92400e !important;
}

/* Yüzde Değişimleri */
body.light-theme .price-change-pct.pct-up {
    color: #059669 !important;
}

body.light-theme .price-change-pct.pct-down {
    color: #dc2626 !important;
}

body.light-theme .price-change-pct.pct-neutral {
    color: #64748b !important;
}

/* Yön Okları */
body.light-theme .arrow-up {
    color: #059669 !important;
}

body.light-theme .arrow-down {
    color: #dc2626 !important;
}

body.light-theme .arrow-neutral {
    color: #94a3b8 !important;
}

/* Saat ve Durum */
body.light-theme .clock-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .live-time,
body.light-theme #clock-time,
body.light-theme .clock-icon {
    color: #0f172a !important;
}

body.light-theme .live-date {
    color: #64748b !important;
}

body.light-theme .status-indicator {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

body.light-theme .status-dot {
    background-color: #059669 !important;
    box-shadow: 0 0 8px #059669 !important;
}

/* Tema Butonu (Açıkken Lamba Yanar veya Ay İkonu) */
body.light-theme .theme-toggle-btn {
    background: #fefce8 !important;
    border-color: #ca8a04 !important;
    color: #b45309 !important;
    box-shadow: 0 2px 10px rgba(202, 138, 4, 0.25) !important;
}

body.light-theme .theme-toggle-btn:hover {
    background: #b45309 !important;
    color: #ffffff !important;
    border-color: #78350f !important;
    box-shadow: 0 0 16px rgba(180, 83, 9, 0.4) !important;
}

body.light-theme .theme-toggle-btn i {
    filter: drop-shadow(0 0 3px rgba(180, 83, 9, 0.4)) !important;
}

/* Tam Ekran Butonları */
body.light-theme .btn-fullscreen,
body.light-theme .fullscreen-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .btn-fullscreen:hover,
body.light-theme .fullscreen-btn:hover {
    background: #b45309 !important;
    color: #ffffff !important;
    border-color: #78350f !important;
}

/* Navigasyon / Görünüm Değiştirici */
body.light-theme nav,
body.light-theme .tv-nav-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .tv-switch-btn {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .tv-switch-btn.active,
body.light-theme .tv-switch-btn:hover {
    background: #b45309 !important;
    color: #ffffff !important;
    border-color: #b45309 !important;
}

/* Döviz / Ticker Barları */
body.light-theme .tv1-ticker,
body.light-theme .tv2-ticker-wrap {
    background: #f8fafc !important;
    border-top: 1px solid rgba(180, 83, 9, 0.2) !important;
}

body.light-theme .tv1-ticker .ticker-item,
body.light-theme .tv2-ticker .ticker-item {
    color: #1e293b !important;
}

body.light-theme .tv1-ticker .ticker-val,
body.light-theme .tv2-ticker .ticker-val {
    color: #b45309 !important;
    font-weight: 800 !important;
}

body.light-theme .tv1-ticker .ticker-disclaimer,
body.light-theme .tv2-ticker .ticker-disclaimer {
    color: #64748b !important;
}

/* Rozetler */
body.light-theme .coin-badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .coin-badge.gold {
    background: #fef08a !important;
    color: #854d0e !important;
    border-color: #ca8a04 !important;
}

body.light-theme .coin-badge.new {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

body.light-theme .coin-badge.ata {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    border-color: #fdba74 !important;
}

/* QR Kartı */
body.light-theme .qr-card {
    background: #ffffff !important;
    border: 1px solid rgba(180, 83, 9, 0.22) !important;
}

body.light-theme .qr-title {
    color: #0f172a !important;
}

body.light-theme .qr-sub {
    color: #64748b !important;
}

