* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f3f8;
    color: #1e293b;
    line-height: 1.5;
}

/* NAVBAR TASARIMI (MASAÜSTÜ ORTALAMA VE MOBİL DÜZELTME) */
.navbar {
    background-color: #0f172a;
    color: #ffffff;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
}

.nav-container {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.brand i {
    color: #2563eb;
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Menü linkleri ve kullanıcı işlemlerini dengeli dağıtır */
    flex-grow: 1;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    margin: 0 auto; /* Menü linklerini ortalar */
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.text-primary { color: #2563eb; }
.text-danger { color: #ef4444; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: auto; /* Kullanıcı panelini sağ tarafa hizalar */
}

/* Giriş Yap Kutulu Buton */
.btn-login-box {
    background-color: transparent;
    color: #cbd5e1 !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid #475569;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-login-box:hover {
    background-color: #1e293b;
    color: #ffffff !important;
    border-color: #64748b;
}

/* Üye Ol Butonu */
.btn-register {
    background-color: #2563eb;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.btn-register:hover {
    background-color: #1d4ed8;
}

/* ORTAK SAYFA ÜST BANNER (HERO) STANDARDI */
.page-hero-container {
    max-width: 900px;
    margin: 15px auto;
    padding: 0 10px;
}

.page-hero-card {
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: none;
}

.page-hero-card h1 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-hero-card p {
    font-size: 0.75rem;
    margin: 0;
}

/* MOBİL ÜÇ ÇİZGİ (HAMBURGER) MENÜ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .navbar .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0f172a;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        margin-left: 0;
        gap: 20px;
        border-top: 1px solid #1e293b;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    .navbar .nav-menu.active {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px;
        margin: 0;
    }

    .nav-user {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        border-top: 1px solid #1e293b;
        padding-top: 15px;
        margin-left: 0;
    }
}

/* GENEL İÇERİK KONTEYNERİ */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 10px;
}

/* KART VE TABLO SABİT STİLLERİ */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Kullanıcı Adı Butonu */
.btn-user {
    background-color: transparent;
    color: #cbd5e1 !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid #475569;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-user:hover {
    background-color: #1e293b;
    color: #ffffff !important;
    border-color: #64748b;
}

/* Çıkış Yap Butonu */
.btn-logout {
    background-color: #ef4444;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dc2626;
}

.btn-logout:hover {
    background-color: #dc2626;
}


/* ===== bulten.php ===== */

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}


/* ===== esnek_secim.php ===== */

.yuzde-input::-webkit-outer-spin-button,
.yuzde-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.yuzde-input[type=number] {
    -moz-appearance: textfield;
}

.yuzde-input {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.adet-hucre {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 0.70rem;
    font-weight: 800;
    color: #0369a1;
}

.gercek-hucre {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 0.70rem;
    font-weight: 800;
    color: #15803d;
}


/* ===== istatistikler.php ===== */

.mobil-istikbar-container {
    max-width: 1000px;
    margin: 10px auto;
    padding: 0 4px;
}
.stat-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 75vh;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
    position: relative;
}
.stat-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.60rem;
    table-layout: fixed;
}
.stat-table th, .stat-table td {
    border: 1px solid #cbd5e1;
    padding: 2px 1px;
    text-align: center;
    height: 45px;
    vertical-align: middle;
    width: calc(100% / 16);
}
.stat-table tr.sticky-row-1 {
    position: sticky;
    top: 0;
    z-index: 10;
}
.stat-table tr.sticky-row-2 {
    position: sticky;
    top: 85px; 
    z-index: 10;
}
.dikey-yazi {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    font-size: 0.58rem;
    font-weight: 700;
    max-height: 80px;
    line-height: 1;
}
.dikey-veri {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    font-size: 0.58rem;
    font-weight: 700;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dikey-etiket {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    font-size: 0.58rem;
    font-weight: 800;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grup-baslik {
    font-weight: 800;
    text-align: left;
    padding: 6px;
    font-size: 0.65rem;
    white-space: normal;
    height: auto !important;
    width: 100% !important;
    position: sticky;
    top: 120px;
    z-index: 9;
}
@media (max-width: 768px) {
    .stat-table {
        font-size: 0.55rem;
    }
}


/* ===== kuponlarim.php (Canlı Maç Yanıp Sönme Efekti) ===== */

@keyframes canliYanipSoner {
    0% { opacity: 1; transform: scale(1); background-color: #fef08a; }
    50% { opacity: 0.4; transform: scale(0.97); background-color: #fef9c3; }
    100% { opacity: 1; transform: scale(1); background-color: #fef08a; }
}

.canli-yanip-sonur {
    animation: canliYanipSoner 1.2s infinite ease-in-out !important;
    background-color: #fef08a !important;
}


/* ===== ligler.php ===== */

.ligler-container {
    max-width: 1100px;
    margin: 10px auto;
    padding: 0 4px;
}
.lig-secim-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.puan-tablosu-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px;
}
.puan-tablosu {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.70rem;
    white-space: nowrap;
}
.puan-tablosu th, .puan-tablosu td {
    border: 1px solid #cbd5e1;
    padding: 6px 8px;
    text-align: center;
    vertical-align: middle;
}
.puan-tablosu th {
    background: #0f766e;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
}
.puan-tablosu th:nth-child(2), .puan-tablosu td:nth-child(2) {
    text-align: left;
    min-width: 130px;
}


/* ============================================================
   SPOR TOTO - GÜVENLİ MODERNLEŞTİRME KATMANI
   ============================================================ */

:root {
    --st-primary: #2563eb;
    --st-primary-dark: #1d4ed8;
    --st-surface: #ffffff;
    --st-surface-soft: #f8fafc;
    --st-border: #e2e8f0;
    --st-border-strong: #cbd5e1;
    --st-text: #0f172a;
    --st-text-soft: #475569;
    --st-muted: #64748b;
    --st-success: #16a34a;
    --st-danger: #dc2626;
    --st-warning: #d97706;
    --st-radius: 10px;
    --st-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --st-shadow-md: 0 8px 24px rgba(15,23,42,.08);
    --st-focus: 0 0 0 3px rgba(37,99,235,.15);
}

html { scroll-behavior: smooth; }

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }

a, button, select, input[type="checkbox"], input[type="radio"] {
    -webkit-tap-highlight-color: transparent;
}

a {
    transition: color .18s ease, background-color .18s ease,
                border-color .18s ease, box-shadow .18s ease,
                transform .18s ease;
}

button {
    transition: background-color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .12s ease, opacity .18s ease;
}

button:not(:disabled):active,
.btn:active { transform: translateY(1px); }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--st-focus);
}

.card { box-shadow: var(--st-shadow-sm); }
table { border-spacing: 0; }
table tbody tr { transition: background-color .15s ease; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 768px) {
    .nav-menu { -webkit-overflow-scrolling: touch; }
    .main-container { width: 100%; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .main-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

@media print {
    .navbar,
    .mobile-toggle,
    button,
    .no-print { display: none !important; }

    body { background: #fff !important; }
    .card { box-shadow: none !important; }
}

/* MOBİL TABLO DÜZENİ */
@media (max-width: 768px) {
    .puan-tablosu-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .puan-tablosu {
        width: max-content;
        min-width: 900px;
        table-layout: auto;
        white-space: nowrap;
        font-size: 0.68rem;
    }

    .puan-tablosu th,
    .puan-tablosu td {
        min-width: 0;
        padding: 4px 5px;
        overflow: visible;
    }

    .puan-tablosu th:nth-child(1),
    .puan-tablosu td:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }

    .puan-tablosu th:nth-child(2),
    .puan-tablosu td:nth-child(2) {
        min-width: 130px;
        width: 150px;
    }

    .puan-tablosu td:nth-child(2) {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        line-height: 1.15;
    }

    .puan-tablosu .mobil-dikey-baslik {
        display: inline;
        writing-mode: horizontal-tb;
        transform: none;
        height: auto;
        min-width: 0;
        line-height: 1.1;
        white-space: nowrap;
    }

    .puan-tablosu th:nth-child(n+3) {
        width: auto;
        min-width: 42px;
        height: auto;
        padding: 5px 6px;
        vertical-align: middle;
    }

    .puan-tablosu td:nth-child(n+3) {
        min-width: 42px;
        font-size: 0.62rem;
        line-height: 1.05;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .puan-tablosu td:nth-child(11) {
        min-width: 62px;
        letter-spacing: 1px !important;
        font-size: 0.58rem !important;
    }

    .mobil-istikbar-container {
        width: 100%;
        max-width: 100%;
        padding-left: 2px;
        padding-right: 2px;
    }

    .stat-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 2px;
    }

    .stat-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .stat-table th,
    .stat-table td {
        min-width: 0;
        overflow: hidden;
        padding-left: 1px;
        padding-right: 1px;
    }

    .stat-table th:first-child,
    .stat-table td:first-child {
        width: 6%;
    }

    .stat-table th:not(:first-child),
    .stat-table td:not(:first-child) {
        width: 6.266%;
    }

    .stat-table .dikey-yazi,
    .stat-table .dikey-veri,
    .stat-table .dikey-etiket {
        max-width: 100%;
        overflow: hidden;
        text-overflow: clip;
    }

    .stat-table .dikey-yazi {
        max-height: 76px;
    }
}

@media (max-width: 390px) {
    .puan-tablosu {
        min-width: 880px;
        font-size: 0.64rem;
    }

    .puan-tablosu .mobil-dikey-baslik {
        font-size: 0.64rem;
    }

    .puan-tablosu td:nth-child(n+3) {
        font-size: 0.58rem;
    }

    .puan-tablosu td:nth-child(11) {
        font-size: 0.46rem !important;
    }
}


/* ===== bulten.php ===== */
.garanti-secenek-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    min-height: 44px;
}
.garanti-secenek-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}
.garanti-secenek-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}
.garanti-secenek-btn.active .garanti-baslik {
    color: #ffffff !important;
}
.garanti-secenek-btn.active .garanti-tutar {
    color: #bfdbfe !important;
}
.garanti-baslik {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}
.garanti-tutar {
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    margin-top: 3px;
    line-height: 1.1;
}


/* ===== esnek_secim.php ===== */
.slider-container {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}
.slider-label {
    font-size: 0.65rem;
    font-weight: 800;
    width: 14px;
    text-align: center;
    border-radius: 3px;
    padding: 1px 0;
}
.label-1 { background: #dcfce7; color: #15803d; }
.label-x { background: #fef3c7; color: #b45309; }
.label-2 { background: #dbeafe; color: #1d4ed8; }

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.custom-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.slider-val-input {
    width: 48px; /
    padding: 1px 2px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
}
.stat-kutu {
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.62rem;
    font-weight: 800;
    text-align: center;
}
.iddaa-kutu { border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; }
.sistem-kutu { border: 1px solid #e9d5ff; background: #faf5ff; color: #6b21a8; }
.hedef-val-input {
    border: 1.2px solid #0284c7;
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 900;
}
.gercek-val-input {
    border: 1.2px solid #16a34a;
    background: #f0fdf4;
    color: #15803d;
    font-weight: 900;
}
.accordion-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    user-select: none;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}
.accordion-header:hover { opacity: 0.95; }
.accordion-content {
    display: none;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    margin-bottom: 8px;
}


/* ===== kuponlarim.php ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2563eb !important;
}
input:checked + .slider:before {
  transform: translateX(16px);
}
input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ===== karsilastirma.php ===== */
.gizli-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.gizli-scroll::-webkit-scrollbar { display: none; }
.temiz-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    text-align-last: center;
}
.btn-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* ============================================================
   ORTAK BİLEŞENLER (header / footer)
   ============================================================ */

/* Menü ikon renkleri */
.nav-icon-primary { color: #2563eb; }
.nav-icon-sky     { color: #38bdf8; }
.nav-icon-amber   { color: #fbbf24; }
.nav-icon-green   { color: #34d399; }
.nav-icon-violet  { color: #a78bfa; }
.nav-icon-pink    { color: #f472b6; }
.nav-icon-orange  { color: #fb923c; }
.nav-icon-danger  { color: #ef4444; }

/* Aktif menü bağlantısı */
.nav-links a {
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav-links a.active {
    color: #ffffff;
    border-bottom-color: var(--st-primary, #2563eb);
}

/* Kredi rozeti */
.nav-credit {
    background: #0f172a;
    color: #38bdf8;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #334155;
}
.nav-credit:hover { border-color: #475569; }

/* Alt bilgi */
.site-footer {
    text-align: center;
    padding: 15px;
    color: #64748b;
    font-size: 0.78rem;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    position: relative;
}
.site-footer p { margin: 0; }
.site-footer-title { margin-bottom: 4px !important; }
.site-footer-note {
    font-size: 0.68rem;
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto !important;
    line-height: 1.4;
}

/* Bülten kapalıyken (karsilastirma.php) arka plan kaydırmasını kilitler */
body:has(.js-scroll-kilit) { overflow: hidden; }