/* ═══════════════════════════════════════════════════════════
   BATTERY HEALTH TRACKER — Arayüz
   Koyu tema varsayılan, açık tema data-theme="light" ile.
   Tüm renkler değişkenlerden gelir, tek yerden değiştirilir.
   ═══════════════════════════════════════════════════════════ */

/* ── KOYU TEMA (varsayılan) ── */
:root {
    /* Yüzeyler — arkadan öne doğru */
    --bg:          #08080c;
    --surface-1:   #101017;
    --surface-2:   #16161f;
    --surface-3:   #1d1d28;
    --surface-hi:  #24242f;

    /* Kenarlıklar */
    --border:      rgba(255,255,255,.07);
    --border-hi:   rgba(255,255,255,.13);

    /* Metin */
    --text:        #eceef4;
    --text-2:      #a4a8b8;
    --text-3:      #6b7080;

    /* Marka renkleri */
    --primary:       #7c8cff;
    --primary-dark:  #9d6bff;
    --secondary:     #f472d0;
    --accent:        #4fc4fe;

    /* Durum renkleri */
    --success:  #3ddc84;
    --warning:  #ffb340;
    --danger:   #ff5f6d;
    --gold:     #ffd15c;

    /* Yumuşak arka planlar */
    --success-bg: rgba(61,220,132,.11);
    --warning-bg: rgba(255,179,64,.11);
    --danger-bg:  rgba(255,95,109,.11);
    --primary-bg: rgba(124,140,255,.11);
    --gold-bg:    rgba(255,209,92,.12);

    /* Işıltılar */
    --glow-primary: 0 0 34px rgba(124,140,255,.28);
    --glow-gold:    0 0 30px rgba(255,209,92,.32);

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 4px 20px rgba(0,0,0,.45);
    --shadow-lg: 0 14px 44px rgba(0,0,0,.55);

    /* Ölçüler */
    --r-sm: 9px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 26px;

    /* Geçiş eğrisi — yaylı his */
    --ease: cubic-bezier(.32, .72, 0, 1);

    /* Eski değişken adları (geriye dönük uyum) */
    --dark:  var(--text);
    --light: var(--surface-2);
    --white: var(--surface-1);
}

/* ── AÇIK TEMA ── */
[data-theme="light"] {
    --bg:          #f4f5fa;
    --surface-1:   #ffffff;
    --surface-2:   #ffffff;
    --surface-3:   #f7f8fc;
    --surface-hi:  #eef0f7;

    --border:      rgba(16,18,32,.09);
    --border-hi:   rgba(16,18,32,.16);

    --text:        #14161f;
    --text-2:      #565b6e;
    --text-3:      #8b90a3;

    --primary:       #5a68e8;
    --primary-dark:  #7d4fe0;
    --secondary:     #d94eae;
    --accent:        #1a9fdb;

    --success:  #14a05a;
    --warning:  #c07800;
    --danger:   #d93b4a;
    --gold:     #b8860b;

    --success-bg: rgba(20,160,90,.09);
    --warning-bg: rgba(192,120,0,.09);
    --danger-bg:  rgba(217,59,74,.09);
    --primary-bg: rgba(90,104,232,.08);
    --gold-bg:    rgba(184,134,11,.1);

    --glow-primary: 0 0 26px rgba(90,104,232,.16);
    --glow-gold:    0 0 22px rgba(184,134,11,.18);

    --shadow-sm: 0 1px 2px rgba(16,18,32,.06);
    --shadow:    0 4px 18px rgba(16,18,32,.09);
    --shadow-lg: 0 14px 40px rgba(16,18,32,.13);
}

/* ═══════════ TEMEL ═══════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02','cv03','cv04','cv11';
    transition: background .35s var(--ease), color .35s var(--ease);
}

/* Arka plan ışık huzmeleri — sabit, kaydırmada takip etmez */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(60rem 40rem at 12% -8%,  rgba(124,140,255,.16), transparent 60%),
        radial-gradient(48rem 34rem at 92% 4%,   rgba(244,114,208,.12), transparent 60%),
        radial-gradient(52rem 40rem at 50% 108%, rgba(79,196,254,.09),  transparent 60%);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(60rem 40rem at 12% -8%,  rgba(90,104,232,.09), transparent 60%),
        radial-gradient(48rem 34rem at 92% 4%,   rgba(217,78,174,.07), transparent 60%),
        radial-gradient(52rem 40rem at 50% 108%, rgba(26,159,219,.06), transparent 60%);
}

.dashboard { position: relative; z-index: 1; }

::selection { background: var(--primary); color: #fff; }

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-hi);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════ AÇILIŞ EKRANI ═══════════ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    padding: 24px 18px;
    overflow-y: auto;
    transition: opacity .5s var(--ease);
}

.splash-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46rem 34rem at 50% 0%,   rgba(124,140,255,.2), transparent 62%),
        radial-gradient(40rem 30rem at 50% 100%, rgba(244,114,208,.13), transparent 62%);
}

.splash-content {
    text-align: center;
    max-width: 460px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.splash-logo {
    font-size: 4em;
    margin-bottom: 14px;
    display: inline-block;
    animation: float 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 26px rgba(124,140,255,.55));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}

.splash-title {
    font-size: 2.1em;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 8px;
    background: linear-gradient(120deg, var(--text) 25%, var(--primary) 70%, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.splash-subtitle {
    font-size: .95em;
    color: var(--text-2);
    margin-bottom: 28px;
}

.loading-spinner { display: flex; justify-content: center; gap: 7px; }

.spinner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounceDot 1.3s infinite;
}
.spinner-dot:nth-child(2) { animation-delay: .18s; }
.spinner-dot:nth-child(3) { animation-delay: .36s; }

@keyframes bounceDot {
    0%, 60%, 100% { transform: translateY(0);    opacity: .35; }
    30%           { transform: translateY(-9px); opacity: 1; }
}

/* Kontrol listesi */
.splash-checklist {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 18px;
    margin: 26px 0 18px;
    text-align: left;
    backdrop-filter: blur(20px);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 6px;
    border-radius: var(--r-sm);
    opacity: 0;
    animation: slideInLeft .5s var(--ease) forwards;
}
.checklist-item:nth-child(1) { animation-delay: .15s; }
.checklist-item:nth-child(2) { animation-delay: .3s; }
.checklist-item:nth-child(3) { animation-delay: .45s; }
.checklist-item:nth-child(4) { animation-delay: .6s; }

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}

.checklist-icon { font-size: 1em; min-width: 18px; }
.checklist-text { font-size: .87em; color: var(--text-2); }

/* Gizlilik notu */
.splash-notice {
    background: var(--primary-bg);
    border: 1px solid rgba(124,140,255,.22);
    border-radius: var(--r);
    padding: 14px 16px;
    font-size: .8em;
    line-height: 1.6;
    color: var(--text-2);
    text-align: left;
}
.splash-notice p { margin: 5px 0; }
.splash-notice strong { color: var(--text); }

.splash-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.splash-link:hover { text-decoration: underline; }

/* Açılış butonları */
.splash-actions {
    display: none;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
    animation: fadeUp .5s var(--ease);
}
.splash-actions.show { display: flex; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.splash-btn {
    padding: 14px 20px;
    border-radius: var(--r);
    font-size: .95em;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease),
                background .22s var(--ease), border-color .22s var(--ease);
}
.splash-btn small { font-size: .78em; opacity: .7; font-weight: 400; }

.splash-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--glow-primary);
}
.splash-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 46px rgba(124,140,255,.42); }

.splash-btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-hi);
}
.splash-btn-ghost:hover { background: var(--surface-3); border-color: var(--primary); }

.splash-btn-demo {
    background: transparent;
    color: var(--text-2);
    border: 1px dashed var(--border-hi);
    font-size: .87em;
    flex-direction: column;
    gap: 2px;
}
.splash-btn-demo:hover { color: var(--text); border-color: var(--primary); background: var(--surface-1); }

/* ═══════════ ÜST BAŞLIK ═══════════
   position: FIXED (sticky değil).
   Sticky'de başlık akışın içinde kalır; küçülünce sayfa kısalır,
   kaydırma konumu kayar, eşik tekrar aşılır ve titreme oluşurdu.
   Fixed olunca başlık akıştan çıkar: boyu değişse de hiçbir şeyi
   itmez. Yerini `.dashboard` üzerindeki üst boşluk tutar.

   --header-h BAŞLANGIÇ DEĞERİDİR, sabit değil.
   Gerçek yükseklik; üye girişli mi, dil TR mi EN mi, durum
   mesajı açık mı, pencere ne kadar dar — hepsine göre değişir.
   Sabit bir sayı yazmak, içeriğin başlığın ALTINA girmesine yol
   açıyordu. site.js başlığı ölçüp bu değeri gerçek yükseklikle
   günceller; buradaki sayı yalnızca JS çalışana kadar geçerli. */
:root { --header-h: 92px; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 18px 26px 15px;
    border-bottom: 1px solid var(--border);
    /* backdrop-filter'ı desteklemeyen tarayıcıda saydam kalmasın */
    background: var(--bg);
}

/* Bulanıklık yalnızca destekleniyorsa.
   22px yerine 14px: blur yarıçapı büyüdükçe her karede örneklenen
   piksel alanı büyür. Üstteki animasyonlu içeriğin arkasında bu,
   gözle görülür bir titreşime dönüşüyordu. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .header {
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        -webkit-backdrop-filter: blur(14px) saturate(150%);
        backdrop-filter: blur(14px) saturate(150%);
    }
}

/* Başlığın kapladığı yer */
.dashboard { padding-top: var(--header-h); }

/* ── Başlığın iç düzeni ──
   Bu blok olmadan .header-title ile .user-area alt alta düşüyor:
   "Üye Ol / Giriş Yap" sağdan aşağı kayıyor ve başlık iki katı
   yükseklik kaplıyordu. */
.header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-title { min-width: 0; }

.header-title h1 {
    font-size: 1.32em;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.header-title p {
    margin: 3px 0 0;
    font-size: .82em;
    color: var(--text-3);
    line-height: 1.3;
}

/* ── Küçülmüş hâl ──
   Yalnızca boyut/görünürlük değişir; hiçbirine geçiş (transition)
   tanımlı değil. Yerleşim özelliğini animasyonlamak, her karede
   yeniden hesap demektir — titremenin asıl kaynağı buydu. */
.header.shrink { padding: 9px 26px 8px; }
.header.shrink .header-title h1 { font-size: 1.02em; }
.header.shrink .header-title p { display: none; }
.header.shrink .status { display: none; }
.header.shrink .premium-btn .pb-price { display: none; }

/* Okuma ilerlemesi.
   width yerine transform: yerleşim değil, yalnızca derleyici. */
.read-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--p), var(--p2));
    will-change: transform;
    pointer-events: none;
}

@media (max-width: 900px) {
    .header-title h1 { font-size: 1.2em; }
}
@media (max-width: 640px) {
    .header { padding: 12px 16px 10px; }
    .header.shrink { padding: 7px 16px 6px; }
}

/* Durum satırı */
.status {
    margin-top: 14px;
    padding: 11px 16px;
    border-radius: var(--r);
    text-align: center;
    font-weight: 550;
    font-size: .87em;
    display: none;
    border: 1px solid transparent;
    animation: slideDown .3s var(--ease);
}

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

.status.success { display: block; background: var(--success-bg); color: var(--success); border-color: rgba(61,220,132,.24); }
.status.error   { display: block; background: var(--danger-bg);  color: var(--danger);  border-color: rgba(255,95,109,.24); }
.status.info    { display: block; background: var(--primary-bg); color: var(--primary); border-color: rgba(124,140,255,.24); }

/* ═══════════ KULLANICI ALANI ═══════════ */
.user-area { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.user-guest, .user-logged { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 7px 13px;
    border-radius: 100px;
    font-size: .82em;
    font-weight: 600;
    white-space: nowrap;
}

.user-badge-pro {
    background: var(--gold-bg);
    border-color: rgba(255,209,92,.3);
    color: var(--gold);
}

.user-avatar {
    width: 21px; height: 21px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-hi);
}

.header-btn {
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    padding: 8px 15px;
    border-radius: var(--r-sm);
    font-size: .84em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    /* `all` DEĞİL. `all`, başlık küçülürken font-size ve padding
       gibi yerleşim özelliklerini de animasyonluyordu; her kare
       yeniden hesaplanınca titreme oluşuyordu. */
    transition: background .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), box-shadow .2s var(--ease),
                transform .2s var(--ease);
}
.header-btn:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-hi); }

.header-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: transparent;
}
.header-btn-primary:hover { color: #fff; box-shadow: var(--glow-primary); transform: translateY(-1px); }

/* Dil ve tema seçicileri */
.lang-switch, .theme-switch {
    display: flex;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
    padding: 2px;
    gap: 2px;
}

.lang-switch button, .theme-switch button {
    background: none;
    border: none;
    color: var(--text-3);
    padding: 6px 11px;
    font-size: .76em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s var(--ease);
}
.lang-switch button:hover, .theme-switch button:hover { color: var(--text); background: var(--surface-hi); }
.lang-switch button.active, .theme-switch button.active {
    background: var(--primary);
    color: #fff;
}

/* Premium butonu */
.premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(120deg, #ffd15c, #ffa93c 55%, #ff8a3d);
    background-size: 200% 200%;
    color: #2b1d00;
    padding: 8px 15px;
    border-radius: 100px;
    font-size: .82em;
    font-weight: 750;
    text-decoration: none;
    border: none;
    box-shadow: var(--glow-gold);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    animation: goldShift 4.5s ease-in-out infinite;
    transition: transform .22s var(--ease);
}
.premium-btn:hover { transform: translateY(-2px) scale(1.03); }

@keyframes goldShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.premium-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 45%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    transform: skewX(-18deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0%        { left: -110%; }
    45%, 100% { left: 220%; }
}

.pb-icon { font-size: 1.05em; }
.pb-text { white-space: nowrap; }
.pb-price {
    background: rgba(0,0,0,.16);
    padding: 2px 7px;
    border-radius: 100px;
    font-size: .82em;
}

.premium-btn.is-premium {
    background: linear-gradient(120deg, var(--success), #2fd4a8);
    color: #04331e;
    animation: none;
    box-shadow: 0 0 26px rgba(61,220,132,.3);
}
.premium-btn.is-premium::after { display: none; }

/* ═══════════ YERLEŞİM ═══════════ */
.main-container {
    max-width: 1560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 18px;
    padding: 22px 26px 40px;
}

.left-panel, .right-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ═══════════ KARTLAR ═══════════ */
.panel-section {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    position: relative;
    animation: cardIn .45s var(--ease);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.panel-section:hover { border-color: var(--border-hi); }

/* Üst kenarda ince ışık çizgisi */
.panel-section::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
[data-theme="light"] .panel-section::before { display: none; }

.panel-minimal { padding: 18px; }

/* Bölüm varyantları */
.analytics-section, .battery-stats-section { }

.section-header {
    font-size: 1.02em;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header-minimal {
    font-size: .87em;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ═══════════ SKOR KARTI ═══════════ */
.score-card {
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(124,140,255,.22), transparent 68%),
        var(--surface-2);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    padding: 30px 22px;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.score-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 55% at 50% 0%, rgba(124,140,255,.16), transparent 70%);
    pointer-events: none;
}

.star-rating {
    font-size: 2.1em;
    letter-spacing: 5px;
    margin-bottom: 11px;
    position: relative;
    filter: drop-shadow(0 0 14px rgba(255,209,92,.4));
}

.score-label {
    font-size: 1.12em;
    font-weight: 700;
    letter-spacing: -.02em;
    position: relative;
}

/* ═══════════ ANALİZ SATIRLARI ═══════════ */
.analytics-grid { display: grid; gap: 2px; }

.analytics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 2px;
    border-bottom: 1px solid var(--border);
}
.analytics-item:last-child { border-bottom: none; }

.analytics-label { color: var(--text-3); font-size: .88em; }
.analytics-value {
    color: var(--text);
    font-weight: 700;
    font-size: .95em;
    font-variant-numeric: tabular-nums;
}

/* ═══════════ PİL ÖLÇÜM KARTLARI ═══════════ */
.battery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.battery-stat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 17px 12px;
    text-align: center;
    transition: all .25s var(--ease);
    position: relative;
    overflow: hidden;
}

.battery-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 60% at 50% 0%, rgba(124,140,255,.13), transparent 70%);
    opacity: 0;
    transition: opacity .25s var(--ease);
}

.battery-stat:hover {
    border-color: var(--border-hi);
    transform: translateY(-2px);
}
.battery-stat:hover::before { opacity: 1; }

.stat-icon { font-size: 1.45em; margin-bottom: 7px; position: relative; }
.stat-label { font-size: .76em; color: var(--text-3); margin-bottom: 5px; position: relative; }
.stat-value {
    font-size: 1.16em;
    font-weight: 750;
    color: var(--text);
    position: relative;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

/* ═══════════ BUTONLAR ═══════════ */
.btn {
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--r);
    font-size: .9em;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all .22s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: var(--glow-primary);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 42px rgba(124,140,255,.4); }
.btn-primary:active { transform: translateY(0); }

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(255,95,109,.28);
}
.btn-danger:hover:not(:disabled) { background: rgba(255,95,109,.18); border-color: var(--danger); }

.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-lg { padding: 15px 28px; font-size: 1em; }
.btn-icon { font-size: 1.1em; }

.connection-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.connection-buttons .btn { padding: 12px 16px; font-size: .88em; }

/* ═══════════ BAĞLANTI MODU SEÇİCİ ═══════════ */
.mode-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}

.mode-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 15px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: all .22s var(--ease);
}
.mode-opt:hover { border-color: var(--border-hi); background: var(--surface-3); }

.mode-opt.active {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: inset 0 0 22px rgba(124,140,255,.11);
}

.mode-opt.disabled { opacity: .38; cursor: not-allowed; }

.mo-icon { font-size: 1.35em; }
.mo-title { font-size: .84em; font-weight: 650; color: var(--text); }
.mo-desc  { font-size: .7em;  color: var(--text-3); }
.mode-opt.active .mo-title { color: var(--primary); }

.mode-picker-3 { grid-template-columns: repeat(3, 1fr); }

.mode-hint {
    font-size: .76em;
    color: var(--text-3);
    text-align: center;
    margin-top: 9px;
    line-height: 1.5;
}

/* ═══════════ TELEFON MODU PANELİ ═══════════ */
.phone-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeUp .35s var(--ease);
}

/* Sınırlama uyarısı — her zaman görünür, gizlenmez */
.pp-warn {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    background: var(--primary-bg);
    border: 1px solid rgba(124,140,255,.22);
    border-radius: var(--r);
    margin-bottom: 14px;
}
.ppw-icon { font-size: 1.15em; flex-shrink: 0; }
.pp-warn strong { font-size: .84em; display: block; margin-bottom: 3px; }
.pp-warn p { font-size: .78em; color: var(--text-2); line-height: 1.55; }

/* Canlı değerler */
.pp-live {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.ppl-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 13px 9px;
    text-align: center;
}
.ppl-val {
    display: block;
    font-size: 1.15em;
    font-weight: 750;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ppl-lbl { display: block; font-size: .7em; color: var(--text-3); margin-top: 4px; }

/* Ölçüm ilerlemesi */
.pp-measure {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    margin-bottom: 14px;
}

.ppm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82em;
    font-weight: 650;
    margin-bottom: 10px;
}
.ppm-time { font-variant-numeric: tabular-nums; color: var(--primary); }

.ppm-bar {
    height: 5px;
    background: var(--surface-hi);
    border-radius: 100px;
    overflow: hidden;
}
.ppm-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 100px;
    transition: width .6s var(--ease);
}

.ppm-note {
    font-size: .74em;
    color: var(--text-3);
    margin-top: 9px;
    line-height: 1.5;
}

/* Sonuç */
.pp-result {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 18px;
    text-align: center;
}

.ppr-health {
    font-size: 2.4em;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ppr-lbl { font-size: .74em; color: var(--text-3); margin-top: 5px; }

/* Güven rozeti — tahmin olduğunu net gösterir */
.ppr-conf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: .72em;
    font-weight: 750;
    margin-top: 11px;
    letter-spacing: .02em;
}
.ppr-conf.low    { background: var(--warning-bg); color: var(--warning); }
.ppr-conf.medium { background: var(--primary-bg); color: var(--primary); }
.ppr-conf.none   { background: var(--surface-hi); color: var(--text-3); }

.ppr-rows { display: grid; gap: 6px; margin-top: 14px; text-align: left; }
.ppr-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 11px;
    background: var(--surface-1);
    border-radius: var(--r-sm);
    font-size: .78em;
}
.ppr-row .rl { color: var(--text-3); }
.ppr-row .rv { font-weight: 700; font-variant-numeric: tabular-nums; }

.ppr-note {
    font-size: .74em;
    color: var(--text-3);
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .mode-picker-3 { grid-template-columns: 1fr; }
    .pp-live { grid-template-columns: 1fr 1fr; }
    .ppl-item:last-child { grid-column: span 2; }
}

/* ═══════════ TAHMİN KARTLARI ═══════════ */
.predictions-minimal { padding: 16px; }

.predictions-grid, .predictions-grid-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.prediction-card-minimal, .prediction-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 7px;
    text-align: center;
    transition: all .22s var(--ease);
}
.prediction-card-minimal:hover { border-color: var(--border-hi); }

.pred-label-minimal, .pred-label {
    font-size: .68em;
    color: var(--text-3);
    margin-bottom: 5px;
    font-weight: 650;
    letter-spacing: .03em;
}

.pred-value-minimal, .pred-value {
    font-size: 1.05em;
    color: var(--accent);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

/* Cihaz bilgisi */
.device-info-minimal {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}
.device-name-minimal { font-weight: 700; font-size: .86em; margin-bottom: 3px; }
.device-id-minimal {
    font-size: .74em;
    color: var(--text-3);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

.device-header {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: var(--r);
    padding: 17px;
    margin: 17px 0;
}
.device-name { font-size: 1.15em; font-weight: 750; margin-bottom: 5px; }
.device-id {
    font-size: .84em;
    color: var(--text-3);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* ═══════════ SIRALAMA (TOP 10) ═══════════ */
.ranking-list-minimal { display: flex; flex-direction: column; gap: 7px; }

.ranking-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all .22s var(--ease);
}
.ranking-item:hover { border-color: var(--border-hi); transform: translateX(2px); }

.rank-badge {
    width: 27px; height: 27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .78em;
    flex-shrink: 0;
    background: var(--surface-hi);
    color: var(--text-2);
}
.rank-badge.gold   { background: linear-gradient(135deg, #ffd15c, #f5a623); color: #2b1d00; box-shadow: 0 0 16px rgba(255,209,92,.35); }
.rank-badge.silver { background: linear-gradient(135deg, #d7dce8, #a8b0c4); color: #1a1d26; }
.rank-badge.bronze { background: linear-gradient(135deg, #d99a6c, #b87333); color: #2b1500; }

.rank-info { flex: 1; min-width: 0; }
.rank-device-name {
    font-weight: 650;
    font-size: .84em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-device-model {
    font-size: .7em;
    color: var(--text-3);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    margin-top: 1px;
}
.rank-device-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
}
.detail-item { font-size: .66em; color: var(--text-3); }

.rank-score { text-align: right; flex-shrink: 0; }
.rank-score-value {
    font-size: 1.12em;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.rank-score-label { font-size: .62em; color: var(--text-3); }

/* ═══════════ TREND KARTI ═══════════ */
.trend-rows { display: grid; gap: 6px; }

.trend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .8em;
}
.trend-row .tl { color: var(--text-3); }
.trend-row .tv { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.trend-row .tv.good { color: var(--success); }
.trend-row .tv.warn { color: var(--warning); }
.trend-row .tv.bad  { color: var(--danger); }

.trend-empty, .pool-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-3);
    font-size: .78em;
    line-height: 1.6;
}
.te-icon, .pe-icon { font-size: 1.7em; display: block; margin-bottom: 7px; opacity: .55; }

.trend-link {
    display: block;
    text-align: center;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-size: .78em;
    font-weight: 650;
    text-decoration: none;
}
.trend-link:hover { text-decoration: underline; }

/* ═══════════ MODEL HAVUZU ═══════════ */
.pool-verdict {
    text-align: center;
    padding: 17px 12px;
    background:
        radial-gradient(110% 100% at 50% 0%, rgba(124,140,255,.16), transparent 70%),
        var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 13px;
}

.pool-pct {
    font-size: 2.2em;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pool-pct-lbl { font-size: .7em; color: var(--text-3); margin-top: 5px; }
.pool-verdict-text { font-size: .82em; font-weight: 700; color: var(--text); margin-top: 8px; }

.pool-bar {
    position: relative;
    height: 6px;
    background: linear-gradient(90deg, var(--danger), var(--warning) 45%, var(--success));
    border-radius: 100px;
    margin: 15px 0 6px;
    opacity: .85;
}

.pool-marker {
    position: absolute;
    top: -5px;
    width: 3px; height: 16px;
    background: var(--text);
    border: 2px solid var(--bg);
    border-radius: 100px;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,.55);
}

.pool-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: .64em;
    color: var(--text-3);
}

.pool-rows { display: grid; gap: 6px; margin-top: 13px; }

.pool-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 11px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .79em;
}
.pool-row .pl { color: var(--text-3); }
.pool-row .pv { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.pool-row .pv.better { color: var(--success); }
.pool-row .pv.worse  { color: var(--danger); }

.pool-count {
    text-align: center;
    font-size: .7em;
    color: var(--text-3);
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Veri kaynağı rozeti */
.data-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 100px;
    font-size: .6em;
    font-weight: 750;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .03em;
}
.data-badge.real { background: var(--success-bg); color: var(--success); }
.data-badge.est  { background: var(--warning-bg); color: var(--warning); }

/* ═══════════ CİHAZ TEŞHİSİ ═══════════ */
.diag-intro { text-align: center; padding: 8px 0; }
.diag-intro p { font-size: .87em; color: var(--text-2); margin-bottom: 16px; line-height: 1.6; }
.diag-intro .btn { max-width: 260px; margin: 0 auto; }

.diag-note {
    font-size: .74em;
    color: var(--text-3);
    margin-top: 11px;
}

.diag-loading { text-align: center; padding: 30px 0; }
.diag-loading p { font-size: .84em; color: var(--text-2); margin-top: 16px; }

/* Özet bandı */
.diag-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ds-verdict { font-weight: 700; font-size: .94em; }
.ds-counts { display: flex; gap: 8px; }

.ds-pill {
    padding: 4px 11px;
    border-radius: 100px;
    font-size: .72em;
    font-weight: 700;
}
.ds-pill.high   { background: var(--danger-bg);  color: var(--danger); }
.ds-pill.medium { background: var(--warning-bg); color: var(--warning); }
.ds-pill.low    { background: var(--primary-bg); color: var(--primary); }

/* Öneri kartları */
.rec-list { display: grid; gap: 11px; }

.rec {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-hi);
    border-radius: var(--r);
    padding: 15px 17px;
    transition: border-color .22s var(--ease);
}
.rec:hover { border-color: var(--border-hi); }
.rec.high   { border-left-color: var(--danger); }
.rec.medium { border-left-color: var(--warning); }
.rec.low    { border-left-color: var(--primary); }

.rec-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 8px;
}
.rec-icon { font-size: 1.25em; flex-shrink: 0; }
.rec-title { font-weight: 700; font-size: .91em; flex: 1; line-height: 1.4; }

.rec-impact {
    font-size: .64em;
    font-weight: 750;
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: .03em;
}
.rec-impact.high   { background: var(--danger-bg);  color: var(--danger); }
.rec-impact.medium { background: var(--warning-bg); color: var(--warning); }
.rec-impact.low    { background: var(--primary-bg); color: var(--primary); }

.rec-why {
    font-size: .81em;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 11px;
}

.rec-gain {
    display: inline-block;
    font-size: .74em;
    color: var(--success);
    background: var(--success-bg);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 11px;
}

.rec-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.rec-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-size: .8em;
    font-weight: 650;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s var(--ease);
}
.rec-btn:hover { transform: translateY(-1px); box-shadow: var(--glow-primary); }
.rec-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.rec-btn.undo {
    background: var(--surface-3);
    color: var(--text-2);
    border: 1px solid var(--border-hi);
}
.rec-btn.undo:hover { background: var(--surface-hi); color: var(--text); box-shadow: none; }

/* Ne çalıştırılacağını göster — gizli iş yok */
.rec-cmd {
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: .68em;
    color: var(--text-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    margin-top: 9px;
    overflow-x: auto;
    white-space: nowrap;
}

.rec-done {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8em;
    color: var(--success);
    font-weight: 650;
}

.rec-err { font-size: .78em; color: var(--danger); margin-top: 8px; }

/* Uygulama listesi */
.app-list { display: grid; gap: 8px; margin-top: 6px; }

.app-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.app-bar-wrap { flex: 1; min-width: 0; }
.app-name { font-size: .82em; font-weight: 650; margin-bottom: 5px; }
.app-bar { height: 4px; background: var(--surface-hi); border-radius: 100px; overflow: hidden; }
.app-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 100px;
}
.app-pct {
    font-size: .82em;
    font-weight: 750;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    min-width: 42px;
    text-align: right;
}
.app-sys {
    font-size: .62em;
    background: var(--surface-hi);
    color: var(--text-3);
    padding: 2px 7px;
    border-radius: 100px;
}

.diag-section-title {
    font-size: .8em;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 20px 0 10px;
}

.diag-empty {
    text-align: center;
    padding: 26px 16px;
    color: var(--success);
    font-size: .87em;
}
.diag-empty .de-icon { font-size: 2em; display: block; margin-bottom: 9px; }

/* Teşhisin nerede çalıştığı bilgisi (tarayıcı modu) */
.diag-where {
    background: var(--success-bg);
    border: 1px solid rgba(61,220,132,.28);
    color: var(--success);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: .78em;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Başlıktaki premium rozeti */
.diag-lock-badge {
    margin-left: 8px;
    background: linear-gradient(135deg, #f7b733, #fc4a1a);
    color: #fff;
    font-size: .62em;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 3px 9px;
    border-radius: 20px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ═══════════ TEŞHİS — PREMIUM KİLİDİ ═══════════ */
.diag-locked {
    text-align: center;
    padding: 26px 20px;
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    background:
        radial-gradient(30rem 16rem at 50% -20%, rgba(247,183,51,.13), transparent 65%),
        var(--surface-2);
}
.diag-locked .dl-icon { font-size: 2.4em; display: block; margin-bottom: 10px; }
.diag-locked .dl-title {
    font-weight: 800;
    font-size: 1.02em;
    color: var(--text);
    margin-bottom: 8px;
}
.diag-locked .dl-text {
    font-size: .85em;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 14px;
}
.diag-locked .dl-list {
    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 0 0 18px;
    padding: 0;
}
.diag-locked .dl-list li {
    font-size: .82em;
    color: var(--text-2);
    padding: 4px 0 4px 22px;
    position: relative;
}
.diag-locked .dl-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 800;
}
.diag-locked .dl-cta {
    display: inline-block;
    text-decoration: none;
    padding: 12px 26px;
}
.diag-locked .dl-note {
    font-size: .74em;
    color: var(--text-3);
    margin-top: 11px;
}

/* Kilitli tarama butonu — misafirde ne yapması gerektiği belli olsun */
.btn.locked, #connectBtn.locked {
    background: var(--surface-2) !important;
    color: var(--text-3) !important;
    border: 1px dashed var(--border-hi) !important;
    box-shadow: none !important;
}
.btn.locked:hover, #connectBtn.locked:hover {
    border-color: var(--p) !important;
    color: var(--text-2) !important;
    transform: none !important;
}

/* Önizleme bandı — demo modunun görünür işareti */
.demo-banner.preview {
    background: linear-gradient(135deg, rgba(124,140,255,.16), rgba(244,114,208,.12));
    border: 1px solid var(--border-hi);
    color: var(--text-2);
}

/* Misafir bandı */
.demo-banner.guest {
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    color: var(--text-2);
}

/* ═══════════ DİZÜSTÜ TARAMA BUTONU ═══════════ */
/* ═══════════ DİZÜSTÜ TARAMA KARTI ═══════════
   Yan panelde diğer kartlarla (Top 10, Tahmini Döngü) aynı
   hizada duran bağımsız bir kart. Telefon panelinin içindeyken
   "telefon taramanın bir adımı" sanılıyordu. */
.laptop-cta {
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    border-radius: var(--r-lg);
    padding: 17px 18px;
    /* Yan paneldeki kartlar arası boşluk grid gap'ten geliyor;
       kendi margin'ini eklemesi hizayı bozuyordu */
    margin: 0;
    border: 1px solid var(--border-hi);
    background: var(--surface-2);
    color: var(--text);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.laptop-cta:hover { transform: translateY(-2px); border-color: var(--p); }

/* ── "YENİ" rozeti ──
   Nabız gibi atıyor ama yalnızca transform/opacity ile:
   yeniden yerleşim tetiklemiyor. */
.lc-new {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: .62em;
    font-weight: 800;
    letter-spacing: .07em;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 2px 10px rgba(239,68,68,.4);
    animation: lcNew 2.6s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}
@keyframes lcNew {
    0%, 70%, 100% { transform: scale(1); }
    78%           { transform: scale(1.14); }
    86%           { transform: scale(.97); }
}

/* Rozet varken metin üstüne binmesin */
.laptop-cta .lc-text { padding-right: 34px; }

@media (prefers-reduced-motion: reduce) {
    .lc-new { animation: none; }
}

/* Plus üyede canlı görünüm */
.laptop-cta.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--p), var(--p2));
    color: #fff;
    box-shadow: 0 6px 22px rgba(102,126,234,.28);
}
.laptop-cta.active:hover { box-shadow: 0 10px 30px rgba(102,126,234,.42); }

/* Işık süpürmesi */
.laptop-cta.active::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    animation: lcShine 3.4s ease-in-out infinite;
}
@keyframes lcShine {
    0%   { left: -60%; }
    55%, 100% { left: 130%; }
}

.lc-icon { font-size: 1.6em; flex-shrink: 0; }
.lc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-text strong { font-size: .9em; font-weight: 750; }
.lc-text small { font-size: .74em; opacity: .8; }
.lc-arrow { font-size: 1.1em; opacity: .75; transition: transform .2s; }
.laptop-cta:hover .lc-arrow { transform: translateX(4px); }

/* ═══════════ TOP 10 SEKMELERİ ═══════════ */
.top10-tabs {
    display: flex;
    gap: 6px;
    margin: 10px 0 12px;
}
.top10-tab {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-3);
    border-radius: var(--r-sm);
    padding: 8px 10px;
    font-family: inherit;
    font-size: .78em;
    font-weight: 650;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.top10-tab:hover { border-color: var(--border-hi); color: var(--text-2); }
.top10-tab.active {
    background: var(--primary-bg, rgba(124,140,255,.14));
    border-color: var(--p);
    color: var(--text);
}
.tt-count {
    display: inline-block;
    background: var(--surface-1);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .88em;
    margin-left: 4px;
    color: var(--text-3);
}
.top10-tab.active .tt-count { color: var(--p); }

.rank-empty {
    text-align: center;
    padding: 22px 12px;
    font-size: .8em;
    color: var(--text-3);
    line-height: 1.6;
}
.rank-empty a { color: var(--p); }

/* ═══════════ BİLGİSAYAR KÖPRÜSÜ ═══════════ */
.bridge-box {
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    background:
        radial-gradient(26rem 12rem at 50% -30%, rgba(124,140,255,.10), transparent 65%),
        var(--surface-2);
    margin: 14px 0;
    padding: 14px 16px 16px;
}

.bg-head {
    display: flex; align-items: center; gap: 9px;
    font-size: .88em; font-weight: 700;
    margin-bottom: 10px;
}
.bg-icon { font-size: 1.1em; }

.bg-line {
    font-size: .82em;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.bg-found {
    font-size: .85em;
    font-weight: 650;
    color: var(--success);
    margin-bottom: 10px;
}

.bg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bg-actions .btn { font-size: .83em; padding: 9px 18px; text-decoration: none; }

.bg-pair { display: flex; gap: 8px; flex-wrap: wrap; }
.bg-pair input {
    flex: 1;
    min-width: 170px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    font-family: 'Courier New', monospace;
    font-size: .95em;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    outline: none;
    transition: border-color .18s;
}
.bg-pair input:focus { border-color: var(--p); }
.bg-pair .btn { font-size: .83em; padding: 9px 18px; }

.bg-note {
    font-size: .74em;
    color: var(--text-3);
    line-height: 1.55;
    margin-top: 10px;
}

.bg-err {
    font-size: .79em;
    color: var(--danger);
    margin-top: 9px;
}

/* ═══════════ KABLOSUZ ADB ═══════════ */
.wl-box {
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    margin: 14px 0;
    overflow: hidden;
}

.wl-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: .87em;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.wl-head:hover { background: var(--surface-3, var(--border)); }
.wl-icon { font-size: 1.15em; }
.wl-title { flex: 1; }
.wl-caret { color: var(--text-3); font-size: .9em; }

.wl-body {
    padding: 4px 15px 16px;
    border-top: 1px solid var(--border);
}

.wl-status {
    display: none;
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-size: .79em;
    line-height: 1.5;
    margin: 12px 0;
}
.wl-status.info    { background: var(--surface-1); border: 1px solid var(--border); color: var(--text-2); }
.wl-status.success { background: var(--success-bg); border: 1px solid rgba(61,220,132,.3); color: var(--success); }
.wl-status.error   { background: var(--danger-bg, rgba(255,90,90,.1)); border: 1px solid rgba(255,90,90,.3); color: var(--danger); }

.wl-steps {
    margin: 12px 0 16px;
    padding-left: 20px;
    font-size: .79em;
    color: var(--text-2);
    line-height: 1.65;
}
.wl-steps li { margin-bottom: 5px; }

.wl-section { margin-bottom: 16px; }
.wl-label {
    font-size: .76em;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 7px;
    letter-spacing: .02em;
}
.wl-once { font-weight: 400; color: var(--text-3); }

.wl-row { display: flex; gap: 7px; flex-wrap: wrap; }
.wl-row input {
    flex: 1;
    min-width: 110px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 11px;
    font-size: .84em;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color .18s;
}
.wl-row input:focus { border-color: var(--p); }
.wl-row input::placeholder { color: var(--text-3); }
.wl-row .wl-port { flex: 0 0 92px; min-width: 92px; }
.wl-row .wl-code { flex: 0 0 118px; min-width: 118px; }

.wl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-btn { margin-top: 9px; font-size: .83em; padding: 9px 18px; }

.wl-devices { margin-top: 6px; }
.wl-dev-title {
    font-size: .72em;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 8px;
}

.wl-dev {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 7px;
}
.wl-dev.sel { border-color: var(--p); }
.wl-dev-icon { font-size: 1.1em; }
.wl-dev-info { flex: 1; min-width: 0; }
.wl-dev-name {
    font-size: .84em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wl-dev-meta {
    font-size: .71em;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wl-state.device { color: var(--success); }
.wl-state.unauthorized { color: var(--warning); }
.wl-state.offline { color: var(--danger); }

.wl-dev-actions { display: flex; gap: 6px; flex-shrink: 0; }
.wl-mini {
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    color: var(--text-2);
    border-radius: 14px;
    padding: 4px 11px;
    font-size: .71em;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
}
.wl-mini:hover { border-color: var(--p); color: var(--text); }
.wl-mini.on { background: var(--p); border-color: var(--p); color: #fff; }
.wl-mini.danger:hover { border-color: var(--danger); color: var(--danger); }

.wl-empty {
    font-size: .78em;
    color: var(--text-3);
    padding: 10px 2px;
}
.wl-note {
    font-size: .74em;
    color: var(--text-3);
    line-height: 1.5;
    margin-top: 7px;
}

@media (max-width: 480px) {
    .wl-row .wl-port, .wl-row .wl-code { flex: 1 1 100%; min-width: 0; }
}

/* ═══════════ REKLAM ALANLARI ═══════════ */
.ad-slot {
    background: var(--surface-1);
    border: 1px dashed var(--border-hi);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 8px; right: 13px;
    font-size: .58em;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 650;
}

.ad-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ad-icon { font-size: 1.9em; }
.ad-content { flex: 1; min-width: 150px; }
.ad-title { font-weight: 700; font-size: .92em; margin-bottom: 3px; }
.ad-desc  { font-size: .78em; color: var(--text-3); line-height: 1.5; }

.ad-cta {
    background: linear-gradient(120deg, var(--gold), #ffa93c);
    color: #2b1d00;
    padding: 9px 17px;
    border-radius: 100px;
    font-size: .8em;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: all .22s var(--ease);
}
.ad-cta:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }

.ad-side { padding: 20px 16px; }
.ad-side-body { text-align: center; }
.ad-side .ad-icon { font-size: 2.1em; margin-bottom: 8px; }
.ad-side .ad-title { font-size: .96em; margin-bottom: 6px; }
.ad-side .ad-desc  { margin-bottom: 14px; }
.ad-side .ad-cta   { display: inline-block; }

/* ═══════════ SANSÜR / KİLİT ═══════════ */
.lockable { position: relative; }

.censored {
    filter: blur(9px) saturate(.55);
    user-select: none;
    pointer-events: none;
    opacity: .65;
    transition: filter .4s var(--ease);
}

.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: color-mix(in srgb, var(--surface-1) 62%, transparent);
    backdrop-filter: blur(3px);
    border-radius: inherit;
    z-index: 10;
    cursor: pointer;
    text-align: center;
    padding: 16px;
}

.lock-icon { font-size: 1.7em; opacity: .85; }
.lock-text { font-size: .84em; font-weight: 700; color: var(--text); }

.lock-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 9px 19px;
    border-radius: 100px;
    font-size: .8em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-shadow: var(--glow-primary);
    transition: transform .22s var(--ease);
}
.lock-cta:hover { transform: translateY(-2px); }

/* Demo bandı */
.demo-banner {
    background: linear-gradient(120deg, var(--warning-bg), var(--danger-bg));
    border: 1px solid rgba(255,179,64,.28);
    color: var(--warning);
    padding: 13px 20px;
    border-radius: var(--r);
    margin: 0 26px 4px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .87em;
    font-weight: 600;
    flex-wrap: wrap;
}
.demo-banner.show { display: flex; }

.demo-banner button {
    background: var(--warning);
    color: #241300;
    border: none;
    padding: 8px 17px;
    border-radius: 100px;
    font-weight: 750;
    font-size: .88em;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease);
}
.demo-banner button:hover { transform: scale(1.04); }

/* ═══════════ ÇEKMECELER ═══════════ */
.debug-drawer, .warning-drawer, .chat-drawer { position: fixed; z-index: 4998; }
.debug-drawer   { bottom: 22px; left: 22px; }
.warning-drawer { bottom: 92px; left: 22px; z-index: 4999; }
.chat-drawer    { bottom: 22px; right: 22px; z-index: 4997; }

.drawer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: var(--surface-2);
    border: 1px solid var(--border-hi);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25em;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: all .25s var(--ease);
    position: relative;
}
.drawer-toggle:hover { transform: scale(1.08) translateY(-2px); border-color: var(--primary); }
.drawer-toggle.active { border-color: var(--primary); background: var(--primary-bg); }

.warning-toggle { border-color: rgba(255,179,64,.3); }
.warning-toggle:hover { border-color: var(--warning); }
.warning-toggle.active { background: var(--success-bg); border-color: var(--success); }

.chat-toggle {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: var(--glow-primary);
}
.chat-toggle:hover { box-shadow: 0 0 40px rgba(124,140,255,.45); }
.chat-toggle.active { background: linear-gradient(135deg, var(--secondary), var(--primary-dark)); }

/* Çekmece içerikleri */
.drawer-content {
    position: absolute;
    bottom: 58px;
    left: 0;
    width: 340px;
    max-width: calc(100vw - 44px);
    max-height: 420px;
    background: var(--surface-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: drawerUp .3s var(--ease);
}
.drawer-content.active { display: flex; }

@keyframes drawerUp {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.drawer-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-header h3 { font-size: .92em; font-weight: 700; }

.drawer-close {
    background: var(--surface-3);
    border: none;
    color: var(--text-3);
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: .85em;
    transition: all .2s var(--ease);
}
.drawer-close:hover { background: var(--surface-hi); color: var(--text); }

/* Debug log */
.debug-log-drawer, .debug-log {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: .72em;
    line-height: 1.65;
    background: var(--bg);
}

.debug-log-entry { padding: 2px 0; color: var(--text-2); word-break: break-word; }
.debug-log-entry.success { color: var(--success); }
.debug-log-entry.error   { color: var(--danger); }
.debug-log-entry.warning { color: var(--warning); }
.debug-log-entry.info    { color: var(--text-3); }

/* Kritik kontroller */
.warning-drawer .warning-content {
    position: fixed;
    bottom: 152px;
    left: 22px;
    right: auto; top: auto;
    width: 300px;
    max-width: calc(100vw - 44px);
    max-height: 400px;
    z-index: 5100;
}

.warning-items {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
}

.warning-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--warning-bg);
    border: 1px solid rgba(255,179,64,.2);
    border-radius: var(--r-sm);
    color: var(--text-2);
    font-weight: 600;
    font-size: .8em;
    transition: all .25s var(--ease);
}
.warning-item.completed {
    background: var(--success-bg);
    border-color: rgba(61,220,132,.26);
    color: var(--success);
}
.warn-status { font-size: .95em; min-width: 16px; }
.warn-text { flex: 1; }

/* ═══════════ SOHBET ═══════════ */
.chat-drawer .chat-content {
    position: fixed;
    bottom: 82px;
    right: 22px;
    left: auto; top: auto;
    width: 360px;
    max-width: calc(100vw - 44px);
    height: 470px;
    max-height: calc(100vh - 130px);
    z-index: 5100;
    display: none;
    flex-direction: column;
    background: var(--surface-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: drawerUp .3s var(--ease);
}
.chat-drawer .chat-content.active { display: flex; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.chat-message {
    padding: 10px 13px;
    border-radius: var(--r);
    max-width: 86%;
    font-size: .85em;
    line-height: 1.55;
    word-wrap: break-word;
    animation: msgIn .28s var(--ease);
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-bottom-right-radius: 5px;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--surface-3);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
}

.chat-limit-warn {
    align-self: center;
    background: var(--warning-bg);
    border: 1px solid rgba(255,179,64,.26);
    border-radius: var(--r-sm);
    padding: 7px 12px;
    font-size: .74em;
    color: var(--warning);
    text-align: center;
}
.chat-limit-warn a { color: var(--gold); font-weight: 700; text-decoration: none; }
.chat-limit-warn a:hover { text-decoration: underline; }

.chat-premium-link {
    display: inline-block;
    margin-top: 9px;
    background: linear-gradient(120deg, var(--gold), #ffa93c);
    color: #2b1d00;
    padding: 7px 15px;
    border-radius: 100px;
    font-size: .85em;
    font-weight: 750;
    text-decoration: none;
}

.chat-input-wrapper {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.chat-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 13px;
    color: var(--text);
    font-size: .87em;
    font-family: inherit;
    outline: none;
    transition: border-color .2s var(--ease);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,140,255,.14); }
.chat-input::placeholder { color: var(--text-3); }

.chat-send {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    padding: 10px 17px;
    cursor: pointer;
    font-weight: 650;
    font-size: .85em;
    font-family: inherit;
    transition: all .22s var(--ease);
}
.chat-send:hover { transform: translateY(-1px); box-shadow: var(--glow-primary); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ═══════════ KİMLİK DOĞRULAMA MODALI ═══════════ */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .25s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-box {
    background: var(--surface-1);
    border: 1px solid var(--border-hi);
    border-radius: var(--r-xl);
    padding: 34px;
    width: 100%;
    max-width: 420px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalPop .34s var(--ease);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--surface-3);
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-3);
    font-size: .9em;
    transition: all .2s var(--ease);
}
.auth-close:hover { background: var(--surface-hi); color: var(--text); }

.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo {
    font-size: 2.4em;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 18px rgba(124,140,255,.45));
}
.auth-header h2 { font-size: 1.35em; font-weight: 750; letter-spacing: -.025em; margin-bottom: 5px; }
.auth-header p  { color: var(--text-3); font-size: .87em; }

.auth-error {
    background: var(--danger-bg);
    border: 1px solid rgba(255,95,109,.3);
    color: var(--danger);
    padding: 11px 14px;
    border-radius: var(--r-sm);
    font-size: .84em;
    margin-bottom: 15px;
    display: none;
    line-height: 1.5;
}
.auth-error.show { display: block; }

.auth-field { margin-bottom: 13px; }
.auth-field label {
    display: block;
    font-size: .8em;
    color: var(--text-3);
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    color: var(--text);
    font-size: .92em;
    font-family: inherit;
    outline: none;
    transition: all .2s var(--ease);
}
.auth-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,140,255,.14); }
.auth-field input::placeholder { color: var(--text-3); }

.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--r);
    padding: 13px;
    font-size: .95em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: var(--glow-primary);
    transition: all .22s var(--ease);
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 0 42px rgba(124,140,255,.42); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: .85em;
    color: var(--text-3);
}
.auth-switch a { color: var(--primary); font-weight: 650; text-decoration: none; margin-left: 4px; }
.auth-switch a:hover { text-decoration: underline; }

.auth-perks {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
}
.perk { font-size: .83em; color: var(--text-2); }

/* ═══════════ TEK TIKLA GİRİŞ ═══════════
   Google ve Apple'ın marka kuralları düğmenin görünümünü
   belirler: Google beyaz zemin + kendi renkli logosu,
   Apple siyah zemin + beyaz logo. Bunlara uyuyoruz —
   hem kural gereği hem de tanıdık düğme daha çok tıklanıyor. */
.auth-social { display: grid; gap: 10px; margin-bottom: 18px; }

.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    border-radius: 11px; border: 1px solid var(--border);
    font-size: .93em; font-weight: 650; cursor: pointer;
    font-family: inherit;
    /* Yalnızca transform/opacity animasyonu — yeniden yerleşim yok */
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.social-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.social-btn:hover  { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.social-btn:active { transform: translateY(0) scale(.985); }
.social-btn:disabled { opacity: .55; cursor: progress; transform: none; }

.social-btn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.social-btn.apple  { background: #000; color: #fff;    border-color: #000; }

/* Açık temada saf siyah düğme fazla sert durmuyor, bırakıyoruz;
   koyu temada Google'ın beyazı için ince bir kenarlık yeterli */
[data-theme="dark"] .social-btn.google { border-color: #3c4043; }
[data-theme="dark"] .social-btn.apple  { border-color: #444; }

.auth-or {
    position: relative; text-align: center;
    font-size: .78em; color: var(--text-3);
    margin: 4px 0 2px;
}
.auth-or::before,
.auth-or::after {
    content: ''; position: absolute; top: 50%;
    width: calc(50% - 62px); height: 1px; background: var(--border);
}
.auth-or::before { left: 0; }
.auth-or::after  { right: 0; }

/* E-posta yazım hatası önerisi */
.auth-hint {
    margin-top: 6px; font-size: .8em; line-height: 1.5;
    color: var(--text-2);
}
.auth-hint b { color: var(--text-1); }
.auth-hint button {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--primary); font-weight: 700; font-size: 1em;
    font-family: inherit; text-decoration: underline;
}
.auth-hint.bad { color: var(--danger, #ef4444); }

/* Doğrulanmamış e-posta uyarısı */
.verify-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 0 0 16px; padding: 12px 16px;
    border: 1px solid var(--warning, #f59e0b);
    border-radius: 12px;
    background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent);
    font-size: .87em; color: var(--text-1);
}
.verify-bar button {
    margin-left: auto; padding: 7px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--card); color: var(--text-1);
    font-weight: 650; font-size: .95em; cursor: pointer;
    font-family: inherit;
    transition: transform .16s ease;
}
.verify-bar button:hover { transform: translateY(-1px); }

/* ═══════════ TELEFON ANİMASYONU ═══════════ */
.phone-animation-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 40px 80px 0;
    z-index: 5000;
    overflow: hidden;
}

.phone-animation-container { text-align: center; position: relative; }

.phone-animation {
    width: 240px;
    height: 480px;
    filter: drop-shadow(0 18px 50px rgba(124,140,255,.4));
}

.phone { animation: phoneSlideIn .6s var(--ease); }

@keyframes phoneSlideIn {
    from { transform: translateY(70px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.phone-screen { animation: screenGlow 1.6s ease-in-out infinite; }
@keyframes screenGlow {
    0%, 100% { fill: #12121a; }
    50%      { fill: #1f1f2e; }
}

.phone-screen-glow { animation: screenFlash 1.6s ease-in-out infinite; }
@keyframes screenFlash {
    0%, 100% { opacity: .05; }
    50%      { opacity: .17; }
}

.cable { stroke-dasharray: 200; stroke-dashoffset: 200; }

.connector { animation: connectorPulse 1.3s ease-in-out infinite .5s; }
@keyframes connectorPulse {
    0%, 100% { fill: #444; }
    50%      { fill: var(--primary); }
}

.phone-dot { animation: dotPulse 1.1s ease-in-out infinite; }
@keyframes dotPulse {
    0%, 100% { r: 4; fill: #999; }
    50%      { r: 6; fill: var(--success); }
}

.charging-icon { opacity: 0; }
.charging-icon.charging, .charging-icon.disconnected { opacity: 0; }

.connection-text {
    font-size: .85em;
    color: var(--primary);
    font-weight: 650;
    animation: pulse 1.6s ease-in-out infinite;
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Bağlan / ayrıl animasyonları */
@keyframes phoneConnect {
    0%   { opacity: 0; transform: translateY(100px); }
    20%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes phoneDisconnect {
    0%   { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(100px); }
}
@keyframes cablePlugIn {
    0%   { stroke-dashoffset: 200; opacity: 0; }
    20%  { opacity: 1; }
    100% { stroke-dashoffset: 0;   opacity: 1; }
}
@keyframes cablePlugOut {
    0%   { stroke-dashoffset: 0;   opacity: 1; }
    80%  { opacity: 1; }
    100% { stroke-dashoffset: 200; opacity: 0; }
}
@keyframes chargingPulse {
    0%, 25%   { opacity: 0; transform: scale(.5); }
    30%, 75%  { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 22px var(--success)); }
    80%, 100% { opacity: 0; transform: scale(.5); }
}
@keyframes disconnectedPulse {
    0%, 25%   { opacity: 0; transform: scale(.5); }
    30%, 75%  { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 22px var(--danger)); }
    80%, 100% { opacity: 0; transform: scale(.5); }
}

.phone-animation-container.connecting    { animation: phoneConnect 2s ease-in-out forwards; }
.phone-animation-container.disconnecting { animation: phoneDisconnect 2.5s ease-in-out forwards; }

.phone-animation-container.connecting .cable    { animation: cablePlugIn 2s ease-in-out forwards !important; }
.phone-animation-container.disconnecting .cable { animation: cablePlugOut 2.5s ease-in-out forwards !important; }

.phone-animation-container.connecting .charging-icon.charging       { animation: chargingPulse 2s ease-in-out forwards !important; }
.phone-animation-container.connecting .charging-icon.disconnected   { animation: none !important; opacity: 0 !important; }
.phone-animation-container.disconnecting .charging-icon.charging    { animation: none !important; opacity: 0 !important; }
.phone-animation-container.disconnecting .charging-icon.disconnected{ animation: disconnectedPulse 2.5s ease-in-out forwards !important; }

/* ═══════════ PWA KURULUM ÇUBUĞU ═══════════ */
.install-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface-1);
    border-top: 1px solid var(--border-hi);
    backdrop-filter: blur(22px);
    padding: 13px 18px;
    display: none;
    align-items: center;
    gap: 13px;
    z-index: 6000;
    box-shadow: 0 -8px 34px rgba(0,0,0,.42);
    animation: slideUpBar .35s var(--ease);
}
.install-bar.show { display: flex; }

@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ib-icon  { font-size: 1.6em; }
.ib-text  { flex: 1; }
.ib-title { font-weight: 700; font-size: .88em; }
.ib-desc  { font-size: .75em; color: var(--text-3); }

.install-bar button {
    border: none;
    border-radius: var(--r-sm);
    padding: 9px 17px;
    font-size: .84em;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.ib-yes { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.ib-no  { background: transparent; color: var(--text-3); padding: 9px 8px; }

/* ═══════════ DUYARLI TASARIM ═══════════ */
@media (max-width: 1180px) {
    .main-container { grid-template-columns: minmax(0,1fr) 300px; gap: 15px; padding: 18px; }
    .battery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; }
    .right-panel { order: 2; }
}

@media (max-width: 768px) {
    .header { padding: 15px 16px 13px; }
    .header-title h1 { font-size: 1.15em; }
    .header-title p  { font-size: .76em; }

    .header-top { flex-direction: column; align-items: stretch; gap: 13px; }
    .user-area  { width: 100%; justify-content: center; }
    .user-guest, .user-logged { width: 100%; justify-content: center; }
    .premium-btn { flex: 1; justify-content: center; }

    .main-container { padding: 14px; gap: 14px; }
    .panel-section { padding: 18px; border-radius: var(--r-lg); }
    .panel-minimal { padding: 15px; }

    .battery-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .connection-buttons, .mode-picker { grid-template-columns: 1fr; }
    .mode-opt { flex-direction: row; justify-content: flex-start; gap: 11px; padding: 13px 15px; }

    .score-card { padding: 24px 16px; }
    .star-rating { font-size: 1.75em; letter-spacing: 3px; }

    .demo-banner { margin: 0 14px 4px; }

    .phone-animation { width: 165px; height: 330px; }
    .phone-animation-modal { padding: 0 20px 60px 0; }

    .drawer-content { width: calc(100vw - 44px); }
    .chat-drawer .chat-content { width: calc(100vw - 44px); right: 22px; height: 68vh; }
    .warning-drawer .warning-content { width: calc(100vw - 44px); }

    .ad-body { flex-direction: column; text-align: center; }
    .ad-cta  { width: 100%; text-align: center; }

    .splash-title { font-size: 1.7em; }
    .splash-logo  { font-size: 3.1em; }
    .auth-box     { padding: 26px 20px; }
}

@media (max-width: 420px) {
    .battery-grid { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1em; }
    .stat-icon  { font-size: 1.25em; }
    .drawer-toggle { width: 42px; height: 42px; font-size: 1.1em; }
    .warning-drawer { bottom: 84px; }
    .warning-drawer .warning-content { bottom: 140px; }
}

/* Dokunmatik cihazlarda hover efektlerini kapat */
@media (hover: none) {
    .panel-section:hover,
    .battery-stat:hover,
    .btn-primary:hover,
    .premium-btn:hover,
    .ad-cta:hover,
    .ranking-item:hover,
    .drawer-toggle:hover { transform: none; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* PWA tam ekran — çentik boşluğu */
@media (display-mode: standalone) {
    .header { padding-top: calc(20px + env(safe-area-inset-top)); }
    body { padding-bottom: env(safe-area-inset-bottom); }
}

/* Yazdırma */
@media print {
    body::before, .drawer-toggle, .install-bar, .ad-slot,
    .demo-banner, .chat-drawer, .debug-drawer, .warning-drawer { display: none !important; }
    body { background: #fff; color: #000; }
    .panel-section { border: 1px solid #ddd; box-shadow: none; }
}

/* ═══════════ BATTERY DOCTOR BOT — CANLI SİMGE ═══════════
   Amaç: butonun "orada biri var" hissi vermesi.
   Tüm hareket transform/opacity ile — yerleşimi tetiklemez,
   bu yüzden sayfayı yavaşlatmaz. */

.chat-toggle {
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: botFloat 4.5s ease-in-out infinite;
}

@keyframes botFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

/* Dışa doğru genişleyen halka — "dinliyorum" işareti */
.bot-ring {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--p);
    opacity: 0;
    animation: botRing 3.2s ease-out infinite;
    pointer-events: none;
}
@keyframes botRing {
    0%   { transform: scale(.85); opacity: .55; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.bot-face {
    width: 60%;
    height: 60%;
    overflow: visible;
}
.bot-face .bf-head {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
}
.bot-face .bf-ant {
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.bot-face .bf-bulb {
    fill: var(--p2);
    animation: botBulb 2.4s ease-in-out infinite;
}
@keyframes botBulb {
    0%, 100% { opacity: .45; }
    50%      { opacity: 1; }
}

/* Göz kırpma — seyrek ve kısa, yani inandırıcı */
.bot-face .bf-eye {
    fill: currentColor;
    transform-origin: center;
    transform-box: fill-box;
    animation: botBlink 5.5s infinite;
}
.bot-face .bf-eye.right { animation-delay: .06s; }

@keyframes botBlink {
    0%, 92%, 100% { transform: scaleY(1); }
    95%           { transform: scaleY(.12); }
}

.bot-face .bf-mouth {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

/* Çevrimiçi noktası */
.bot-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg);
    animation: botDot 2.6s ease-in-out infinite;
}
@keyframes botDot {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.22); }
}

/* Fareyle üzerine gelince canlanıyor */
.chat-toggle:hover { animation-play-state: paused; }
.chat-toggle:hover .bot-face { animation: botNod .6s ease-in-out; }
@keyframes botNod {
    0%, 100% { transform: rotate(0); }
    30%      { transform: rotate(-7deg); }
    65%      { transform: rotate(5deg); }
}

/* Yeni mesaj varsa dikkat çeksin */
.chat-toggle.has-news .bot-dot { background: var(--warning); }
.chat-toggle.has-news { animation: botFloat 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .chat-toggle, .bot-ring, .bf-bulb, .bf-eye, .bot-dot,
    .chat-toggle:hover .bot-face { animation: none; }
    .bot-ring { opacity: .25; }
}
