/* ==============================================================================
   EXPORIA — B2B İhracat İstihbaratı ve Alıcı Keşif Motoru
   Arayüz: "Mavi cam" (Tasarım 1, müşteri onayı 2026-10-13). Mavi tonlarında zemin,
   üstünde buzlu cam kartlar. Önizlemesi /tasarimlar → Tasarım 1.

   Bulanıklık (backdrop-filter) yalnızca üst düzey yüzeylerde: kart, üst çubuk, açılır
   kutular. İç içe her öğeye verilirse uzun aday listesinde kaydırma takılıyor; iç
   öğeler yarı saydam beyazla yetinir.
   ============================================================================== */

:root {
    color-scheme: light;

    /* Renkler — gönderilen görseldeki elektrik mavisi ve tonları */
    --blue:         #1F3BFF;
    --blue-deep:    #0B1E9E;
    --ink:          #0B1240;        /* başlık ve ana metin */

    --bg:           #DCE2FF;
    --card-bg:      rgba(255, 255, 255, 0.66);
    --field-bg:     rgba(255, 255, 255, 0.8);
    --surface:      rgba(255, 255, 255, 0.55);   /* kart içi hafif dolgu */
    --surface-2:    rgba(31, 59, 255, 0.06);
    --fg:           var(--ink);
    --fg-body:      #262E5C;
    --muted:        #3D4470;        /* cam üstünde AA kontrast */

    --line:         rgba(31, 59, 255, 0.14);
    --line-strong:  rgba(31, 59, 255, 0.3);
    --line-focus:   var(--blue);

    --accent:       var(--blue);
    --accent-dark:  #1530D6;
    --accent-bg:    rgba(31, 59, 255, 0.1);
    --ok:           #1F9D5A;
    --ok-dark:      #136B3A;
    --ok-bg:        rgba(32, 160, 90, 0.14);
    --warn:         #B86200;
    --warn-bg:      rgba(245, 158, 11, 0.16);
    --fail:         #C42B1C;
    --fail-bg:      rgba(220, 38, 38, 0.11);

    /* Cam */
    --glass:        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5));
    --glass-edge:   rgba(255, 255, 255, 0.78);
    --glass-blur:   blur(26px) saturate(180%);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 12px 32px rgba(11, 30, 158, 0.16);
    --glass-blue:   linear-gradient(160deg, rgba(56, 86, 255, 0.86), rgba(20, 44, 220, 0.78));
    --menu-bg:      rgba(255, 255, 255, 0.94);   /* açılır kutular: altındaki metin okunmasın */

    /* Geometri */
    --radius:       14px;
    --radius-lg:    24px;
    --radius-full:  9999px;
    --shadow-sm:    0 2px 8px rgba(11, 30, 158, 0.08);
    --shadow:       0 8px 22px rgba(11, 30, 158, 0.12);
    --shadow-md:    0 14px 34px rgba(11, 30, 158, 0.18);

    --font:         'DM Sans', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: 'Schibsted Grotesk', var(--font);
    --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

    /* Sayfa genişliği; üst çubuk içerikle aynı hizada durur. Sonuç sayfası: main.wide. */
    --page-width:   96rem;
}

* { box-sizing: border-box; }

/* Zemin sabit: sayfa kayarken renk lekeleri yerinde durur, cam kartlar üstünden geçer. */
html {
    background:
        radial-gradient(48% 42% at 8% 4%, rgba(31, 59, 255, 0.95) 0%, rgba(31, 59, 255, 0) 70%),
        radial-gradient(42% 40% at 96% 10%, rgba(94, 120, 255, 0.9) 0%, rgba(94, 120, 255, 0) 70%),
        radial-gradient(50% 45% at 78% 96%, rgba(11, 30, 158, 0.85) 0%, rgba(11, 30, 158, 0) 70%),
        radial-gradient(40% 38% at 18% 88%, rgba(143, 162, 255, 0.9) 0%, rgba(143, 162, 255, 0) 70%),
        linear-gradient(160deg, #DCE2FF 0%, #B9C5FF 100%);
    background-color: var(--bg);
    background-attachment: fixed;
    min-height: 100%;
    /* Kullanıcı: "yazıları büyüt". Ölçüler rem olduğu için tek yerden büyür; boşluklar da
       oranı korur. Medya sorguları rem'i bundan değil tarayıcının 16 px'inden okur. */
    font-size: 112.5%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: var(--fg-body);
    font: 1rem/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
body > main { flex: 1 0 auto; width: 100%; }

/* Cam yüzey — kartların ortak görünümü */
.card, header nav, .stat, .note, .filter-toolbar, .hero-search-card, .ai-box, .table-wrap {
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

/* ==============================================================================
   ÜST ÇUBUK — sayfanın üstünde yüzen cam şerit
   ============================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 24px 0;
}
header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 9px 10px 9px 22px;
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.045em;
}
.brand-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 9px;
    border-radius: var(--radius-full);
    background: rgba(31, 59, 255, 0.08);
}
header nav .spacer { flex: 1; }

.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-link {
    padding: 9px 14px;
    border-radius: var(--radius-full);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); text-decoration: none; }
.nav-link.on { background: rgba(31, 59, 255, 0.12); color: var(--blue); }

.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 20px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, #3B57FF, var(--blue));
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(31, 59, 255, 0.38);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-nav-primary:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 28px rgba(31, 59, 255, 0.45);
}

/* Ana sayfadaki "Önceki aramalarımda bul" sonuçları (HomeController HTML'i yazar). */
.search-results-dropdown {
    background: var(--menu-bg);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.search-category {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    background: var(--surface-2);
    padding: 0.5rem 0.95rem;
    border-bottom: 1px solid var(--line);
}
.search-item {
    display: block;
    padding: 0.65rem 0.95rem;
    text-decoration: none;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    transition: background 0.15s;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--accent-bg); text-decoration: none; }
.search-item .title { font-size: 0.9rem; font-weight: 700; display: block; }
.search-item .sub { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 2px; }
.search-item.empty { font-size: 0.88rem; color: var(--muted); padding: 0.85rem; text-align: center; }

/* ==============================================================================
   ANA DÜZEN VE YAZI
   ============================================================================== */

main {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 1.75rem 1.5rem 4rem;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.04em;
}
h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.03em;
}
h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-2);
    border-radius: 6px;
    padding: 0.05rem 0.35rem;
}

.hint {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ==============================================================================
   KARTLAR (.card) — buzlu cam
   ============================================================================== */

.card {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.card-header h2, .card-header h3 {
    margin: 0;
    color: var(--ink);
}
.card-body {
    padding: 1.5rem 1.6rem;
}
.card-footer {
    background: rgba(255, 255, 255, 0.35);
    border-top: 1px solid var(--line);
    padding: 0.95rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ==============================================================================
   BÖLÜM AYIRICILARI
   ============================================================================== */

.step-divider {
    display: flex;
    align-items: center;
    margin: 2.25rem 0 1.1rem;
    gap: 1rem;
}
.step-divider::before, .step-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.step-badge {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--glass-edge);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: inset 0 1px 0 #FFFFFF, var(--shadow-sm);
}
.step-badge .num {
    background: var(--blue);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 0.72rem;
    letter-spacing: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==============================================================================
   ÖZET SAYILAR (.stats)
   ============================================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}
.stat {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    padding: 1.2rem 1.35rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.15s ease;
}
.stat:hover { transform: translateY(-2px); }
.stat .value {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.stat .label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.stat.accent .value { color: var(--blue); }
.stat.good .value { color: var(--ok-dark); }
.stat.warn .value { color: var(--warn); }
/* İlk sayı mavi cam kart: göz ilk ona gider (tasarımdaki "Nasıl çalışır" kutusu gibi). */
.stat.accent {
    background: var(--glass-blue);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 44px rgba(11, 30, 158, 0.32);
}
.stat.accent .value, .stat.accent .label { color: #FFFFFF; }
.stat.accent details.info > summary { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); color: #FFFFFF; }

/* ==============================================================================
   DÜĞMELER — hap biçimli
   ============================================================================== */

button, .btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

button:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Birincil — mavi
   Biçimsiz gönder düğmeleri birincil görünür; ama kendi sınıfı olanları EZMEMELİ:
   önceden bu kural .btn-danger ve .btn-secondary'den daha özgül olduğu için "Sil" ve
   "Durdur" düğmeleri de mavi görünüyordu. */
.btn-primary, button[type="submit"]:not(.secondary):not(.link):not(.btn-secondary):not(.btn-danger):not(.danger):not(.btn-tag):not(.user-menu-logout):not(.btn-clear) {
    background: linear-gradient(180deg, #3B57FF, var(--blue));
    border: 0;
    color: #FFFFFF;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(31, 59, 255, 0.34);
}
.btn-primary:hover, button[type="submit"]:not(.secondary):not(.link):not(.btn-secondary):not(.btn-danger):not(.danger):not(.btn-tag):not(.user-menu-logout):not(.btn-clear):hover {
    background: linear-gradient(180deg, #3550FF, var(--accent-dark));
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 28px rgba(31, 59, 255, 0.42);
}

/* İkincil — cam */
.btn-secondary, button.secondary {
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 #FFFFFF, var(--shadow-sm);
}
.btn-secondary:hover, button.secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line-strong);
    color: var(--blue);
}

/* Tehlikeli / silme */
.btn-danger, button.danger {
    background: rgba(255, 255, 255, 0.62);
    color: var(--fail);
    border: 1px solid rgba(220, 38, 38, 0.3);
}
.btn-danger:hover, button.danger:hover {
    background: var(--fail-bg);
    border-color: var(--fail);
}

/* Bağlantı gibi görünen düğme */
button.link {
    background: none;
    border: none;
    color: var(--accent);
    padding: 0;
    border-radius: 0;
    text-decoration: underline;
    font-size: 0.88rem;
    cursor: pointer;
}

/* ==============================================================================
   ÜLKE HAPLARI — çoklu seçilebilir
   ============================================================================== */

.country-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.pills-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 0.25rem;
    flex-basis: 100%;
}
.country-pill {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    height: 38px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    padding: 0 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.country-pill input { display: none; }
.country-pill:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--line-strong);
}
.country-pill.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(31, 59, 255, 0.3);
}

/* ==============================================================================
   FİLTRE ÇUBUĞU
   ============================================================================== */

.filter-toolbar {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.filter-section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.6rem;
}
.filter-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 0.25rem;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.38rem 0.85rem;
    border-radius: var(--radius-full);
    cursor: pointer;
}
.btn-filter:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line-strong);
}
.btn-filter.active {
    background: var(--blue);
    color: #FFFFFF;
    border-color: var(--blue);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(31, 59, 255, 0.28);
}

/* Firma etiket düğmeleri (Baktım, İlgilenmiyorum, Favori) */
.btn-tag {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    color: var(--ink);
    white-space: nowrap;
}
.btn-tag:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue);
}
.btn-tag.tag-reviewed { background: var(--ok-bg); border-color: transparent; color: var(--ok-dark); font-weight: 700; }
.btn-tag.tag-dismissed { background: var(--surface); border-color: var(--line); color: var(--muted); text-decoration: line-through; }
.btn-tag.tag-favorite { background: var(--warn-bg); border-color: transparent; color: #8A4B00; font-weight: 700; }

/* ==============================================================================
   FORMLAR
   ============================================================================== */

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.field > label, label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

input[type="text"], input[type="search"], input[type="password"], input[type="email"], input[type="tel"],
input[type="number"], input[type="url"], input[type="time"], textarea, select {
    font: inherit;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(31, 59, 255, 0.2);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--ink);
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #6A7099; }
input[type="text"]:focus, input[type="search"]:focus, input[type="password"]:focus, input[type="email"]:focus,
input[type="tel"]:focus, input[type="number"]:focus, input[type="url"]:focus, input[type="time"]:focus,
textarea:focus, select:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(31, 59, 255, 0.18);
}
/* Açılır listeler: tarayıcının kendi oku kartlarda kayık ve soluk duruyordu (kullanıcı). Kendi
   okumuz: mavi, ince. Odakta da kalsın diye `:focus` ayrıca yazılı — yukarıdaki odak kuralı
   `background` kısaltmasıyla resmi siliyor. */
select { cursor: pointer; font-weight: 600; -webkit-appearance: none; appearance: none; padding-right: 2.4rem; }
select, select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B57FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 0.8rem;
}
select::-ms-expand { display: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }

/* ==============================================================================
   TABLOLAR
   ============================================================================== */

.table-wrap {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    overflow-x: auto;
    box-shadow: var(--glass-shadow);
    margin: 1rem 0;
}
/* Kartın içindeki tablo ikinci bir cam katmanı açmasın. */
.card .table-wrap {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    border-color: var(--line);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
thead th {
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}
tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(31, 59, 255, 0.08);
    vertical-align: middle;
    color: var(--fg-body);
}
thead th:first-child, tbody td:first-child { padding-left: 1.6rem; }
thead th:last-child, tbody td:last-child { padding-right: 1.6rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.5); }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.score {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

/* ==============================================================================
   ROZETLER VE ÇİPLER
   ============================================================================== */

.chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.65rem;
    margin: 0.15rem 0.25rem 0.15rem 0;
    font-size: 0.82rem;
    font-weight: 500;
}
.chip.active {
    background: var(--accent-bg);
    border-color: transparent;
    color: var(--accent-dark);
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge.ok, .badge.allowed { color: var(--ok-dark); background: var(--ok-bg); }
.badge.fail, .badge.consent_required { color: var(--fail); background: var(--fail-bg); }
.badge.warn { color: #8A4B00; background: var(--warn-bg); }
.badge.neutral, .badge.unknown { color: var(--fg-body); background: rgba(255, 255, 255, 0.6); border-color: var(--line); }
/* Blok olarak kullanılan uzun rozetler (hata, uyarı) köşeli kalsın; hap biçimi tek satıra uyar. */
p.badge, .badge[style*="display:block"] { border-radius: var(--radius); white-space: normal; }

/* Not kutuları */
.note {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--glass-edge);
    border-left: 4px solid var(--blue);
    color: var(--fg-body);
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    margin: 1.25rem 0;
    box-shadow: var(--shadow-sm);
    font-size: 0.93rem;
}
/* Kart içindeki notlar ikinci bir bulanıklık katmanı açmasın. */
.card .note, small.note {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
small.note { display: inline; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.8rem; }
.warn-box {
    background: var(--warn-bg);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid var(--warn);
    color: #6B3A00;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.92rem;
    font-weight: 500;
}

/* ==============================================================================
   YAPAY ZEKA YARDIMCISI KARTLARI (ürün formu, taslak sayfası)
   ============================================================================== */

.ai-box {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
}
.ai-box > .card-header { background: rgba(31, 59, 255, 0.07); }
.ai-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}
.ai-badge {
    background: var(--blue);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(31, 59, 255, 0.28);
}
.ai-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.ai-status {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
}

/* ==============================================================================
   ANA SAYFA — büyük arama kartı ve yanında mavi "Nasıl çalışır"
   ============================================================================== */

.home-hero { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1.25rem; }
.home-hero > .hero-search-card { flex: 999 1 560px; min-width: 0; margin: 0; }
.how-card {
    flex: 1 1 320px;
    min-width: 0;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--glass-blue);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 44px rgba(11, 30, 158, 0.32);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.how-card::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}
.how-card .eyebrow { position: relative; color: #FFFFFF; }
.how-steps { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.how-steps li {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.how-steps .n { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; padding-top: 3px; }
.how-steps b { display: block; font-size: 1rem; }
.how-steps span { font-size: 0.88rem; line-height: 1.5; }

/* Küçük, boşluklu, tek aralıklı üst etiket ("01  YENİ ARAMA") */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow b { color: var(--blue); font-weight: 500; }

.hero-search-card {
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
}
.hero-search-card h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin: 0.9rem 0 0.75rem;
}
.hero-search-card h1 .accent-line { color: var(--blue); display: block; }
.hero-subtitle {
    font-size: 1.02rem;
    color: var(--fg-body);
    margin: 0 0 1.5rem 0;
    max-width: 48rem;
}
/* "Ne satıyorsunuz?" kutusu: büyük cam kapsül; uzun tanıtım yazılınca kutu büyür, 14rem'den
   sonra kaydırma çubuğu çıkar (kullanıcı, 2026-10-18). Yükseklik js/product-form.js'te. */
.hero-input-wrap {
    display: block;
    padding: 8px;
    margin-bottom: 0.6rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 #FFFFFF, 0 6px 18px rgba(11, 30, 158, 0.08);
}
.hero-input {
    display: block;
    width: 100%;
    min-height: 7.5rem;
    max-height: 14rem;
    overflow-y: auto;
    resize: vertical;
    font-size: 1.08rem !important;
    line-height: 1.45;
    padding: 0.75rem 1rem !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.extracted-name { margin: 0 0 0.9rem 0.4rem; font-size: 0.92rem; color: var(--fg-body); }
.hero-form > .field { margin-bottom: 1.1rem; }
.hero-submit-row { display: flex; justify-content: flex-end; margin: 0.4rem 0 0.25rem; }

/* GTIP öneri listesi (product/hs-results.html). Uzun tarife tanımı kartı taşırmasın: iki satıra
   kadar sarılır, sonrası kesilir; tam metin seçince çipte. */
.picklist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.picklist button {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start !important;
    white-space: normal !important;
    min-width: 0;
    gap: 0.6rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.75) !important;
    color: var(--ink) !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    box-shadow: none !important;
    cursor: pointer;
}
.picklist button:hover { border-color: var(--accent) !important; background: var(--accent-bg) !important; }
.picklist button span {
    min-width: 0;
    white-space: normal;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.picklist code { flex: none; font-weight: 700; }

/* Anahtar kelime çipleri + yazarak ekleme kutusu (product/advanced-fields.html → keywords). */
.kw-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.5rem;
    min-height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
}
.kw-chips { display: contents; }
.kw-chip { margin: 0; gap: 0.3rem; }
.kw-remove {
    background: none !important;
    border: 0 !important;
    padding: 0 0.1rem !important;
    color: var(--accent-dark) !important;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
}
.kw-add {
    flex: 1 1 12rem;
    min-width: 8rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.3rem 0.4rem !important;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.hero-btn {
    height: 54px;
    font-size: 1rem !important;
    padding: 0 1.75rem !important;
    white-space: nowrap !important;
}

/* Toplu işlem çubuğu (aday seçilince altta belirir) */
.bulk-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    background: rgba(11, 18, 64, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #FFFFFF;
    padding: 0.7rem 0.8rem 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    box-shadow: 0 14px 34px rgba(11, 18, 64, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1000;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.bulk-action-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.bulk-count {
    font-weight: 700;
    font-size: 0.95rem;
    color: #B9C5FF;
    white-space: nowrap;
}
.btn-bulk {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.btn-bulk:hover { background: rgba(255, 255, 255, 0.22); }
.btn-bulk.btn-bulk-primary { background: var(--blue); border-color: var(--blue); }
.btn-bulk.btn-bulk-primary:hover { background: #3B57FF; }

/* Alt bilgi */
footer {
    padding: 1.25rem 1.5rem 1.75rem;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-top: 2rem;
}

@media (max-width: 52rem) {
    main { padding: 1.25rem 0.85rem 3rem; }
    header { padding: 10px 10px 0; }
    header nav { padding: 8px 8px 8px 16px; }
    .brand-tag { display: none; }
    .hero-search-card { padding: 1.5rem 1.25rem; }
    .hero-btn { width: 100%; }
    .how-card { padding: 1.5rem; }
    /* minmax(0, …): "1fr" içerikten dar olamıyor, "$0,26" kutusu kartın dışına taşıyordu. */
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 1rem 1.1rem; }
    .stat .value { font-size: 1.8rem; overflow-wrap: anywhere; }
    /* Tarama başlığındaki uzun tutar rozeti ("≈ $0,060 · Claude Opus 5.5 · …") alt satıra geçsin. */
    .run-head .badge { white-space: normal; }
    table { font-size: 0.88rem; }
    .bulk-action-bar { left: 10px; right: 10px; transform: translateY(140%); width: auto; border-radius: 20px; flex-wrap: wrap; }
    .bulk-action-bar.visible { transform: translateY(0); }
}

/* ==============================================================================
   "?" AÇIKLAMA KUTUSU (details.info)
   Müşteri "bu rakam neye göre" diye sordu: her sayının yanında kaynağı ve hesabı
   yazar. <details> olduğu için JS olmadan da açılır; konumlandırma js/info.js'te —
   tablo kapsayıcıları kaydırmalı (overflow) olduğu için kutu `fixed` konumlanır,
   yoksa tablonun kenarında kesilirdi.
   ============================================================================== */

details.info {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.3rem;
}

details.info > summary {
    list-style: none;
    cursor: pointer;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

details.info > summary::-webkit-details-marker { display: none; }

details.info > summary:hover,
details.info[open] > summary {
    border-color: var(--blue);
    color: var(--blue);
}

/* Açıkken <body>'ye taşınır (.info-floating); seçici bu yüzden details'e bağlı değil. */
.info-body {
    position: fixed;
    z-index: 1000;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--menu-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.85rem 1rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--fg-body);
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
}

.info-body p { margin: 0 0 0.5rem 0; }
.info-body p:last-child { margin-bottom: 0; }
.info-body b { color: var(--ink); }
.info-body ul { margin: 0.25rem 0 0.5rem 1.1rem; padding: 0; }

.found-by {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.run-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--accent-dark);
}

/* ==============================================================================
   KULLANICI MENÜSÜ — üst çubuktaki baş harfli yuvarlak. Profil ve yönetim paneli
   sunum ekranlarından ayrı dursun diye burada.
   ============================================================================== */

/* Dil seçici (TR | EN) — üst çubukta, giriş ekranında da (orada üst çubuk gizli; panelin köşesinde). */
.signin-panel > .lang-switch { position: absolute; top: 16px; right: 16px; margin: 0; }
/* Dil menüsü: dünya simgesi, tıklayınca aşağı açılır (kullanıcı menüsüyle aynı cam kutu). */
details.lang-switch { position: relative; margin-right: 8px; }
details.lang-switch > summary {
    list-style: none; cursor: pointer; user-select: none;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.5); color: var(--ink);
}
details.lang-switch > summary::-webkit-details-marker { display: none; }
details.lang-switch > summary:hover { color: var(--blue); }
details.lang-switch[open] > summary { color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 59, 255, 0.25); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; min-width: 150px;
    display: flex; flex-direction: column; padding: 0.4rem;
    background: var(--menu-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge); border-radius: 14px; box-shadow: var(--shadow-md);
}
.lang-menu a { padding: 0.5rem 0.75rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.lang-menu a:hover { background: var(--accent-bg); color: var(--blue); text-decoration: none; }
.lang-menu a.on { font-weight: 700; color: var(--blue); }
.lang-menu a.on::after { content: " ✓"; }
details.user-menu { position: relative; }

details.user-menu > summary {
    list-style: none;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--blue-deep), var(--blue));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    user-select: none;
}

details.user-menu > summary::-webkit-details-marker { display: none; }

details.user-menu[open] > summary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(31, 59, 255, 0.25); }

.user-menu-body {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1000;
    min-width: 230px;
    background: var(--menu-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
}

.user-menu-who {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.8rem 0.7rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.user-menu-who small { color: var(--muted); }

.user-menu-body a {
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
}

.user-menu-body a:hover { background: var(--accent-bg); color: var(--blue); text-decoration: none; }
/* Çıkış bir form düğmesi (POST + CSRF) ama menüdeki bağlantılar gibi görünür. */
.user-menu-logout {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; padding: 0.55rem 0.8rem; border-radius: 10px;
}
.user-menu-logout:hover { background: var(--fail-bg); color: var(--fail); }

/* Yapay zeka deneme düğmeleri (yalnızca yönetici) ve son denemenin durumu */
.gemini-try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.gemini-try .badge { white-space: normal; text-align: left; }

/* Giriş ve üye olma: ortada tek cam kart */
/* ==============================================================================
   GİRİŞ / ÜYE OL / KARŞILAMA — iki panel: mavi cam tanıtım + beyaz cam form
   (Tasarım 1 · giris.html, uye-ol.html). Üst çubuk ve alt bilgi bu sayfalarda yok;
   marka mavi panelin içinde.
   ============================================================================== */

body:has(main.signin) > header,
body:has(main.signin) > footer { display: none; }

/* Kartlar içerik kadar uzar ve ekranın ortasında durur; ekran boyu kadar uzatılınca
   yüksek ekranda mavi panel "upuzun" oluyordu (kullanıcı). */
main.signin {
    max-width: 74rem;
    min-height: 100vh;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.signin-split { width: 100%; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 1.1rem; }

.login-packages {
    width: 100%;
    margin-bottom: 3.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.login-packages-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-packages-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
}
.login-packages-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.signin-hero {
    flex: 1 1 29rem;
    min-width: 0;
    min-height: 30rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.4rem 2.4rem 1.8rem;
    color: #FFFFFF;
    background: var(--glass-blue);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 44px rgba(11, 30, 158, 0.32);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
/* Panelin köşelerindeki ışık ve gölge lekeleri — taslaktaki "fotoğraf" etkisi. */
.signin-hero::before, .signin-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.signin-hero::before { right: -6.5rem; top: -5.5rem; width: 21rem; height: 21rem;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 62%); }
.signin-hero::after { left: -4.5rem; bottom: -8rem; width: 23rem; height: 23rem;
    background: radial-gradient(circle, rgba(11, 30, 158, 0.7), rgba(11, 30, 158, 0) 65%); }
/* ::after içerikten sonra çizilir; z-index yoksa koyu leke yazının üstüne biner. */
.signin-hero > * { position: relative; z-index: 1; }

.signin-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.signin-brand { display: flex; flex-direction: column; gap: 2px; }
.signin-brand b { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1; letter-spacing: -0.045em; }
.signin-mono { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.signin-step { padding: 6px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); }

.signin-hero-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; }
.signin-hero h2 {
    margin: 0;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 5vw, 4.3rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}
.signin-hero p { margin: 0; max-width: 25rem; color: #FFFFFF; line-height: 1.6; }
.signin-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.signin-chips span { padding: 0.55rem 0.9rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35); font-size: 0.75rem; font-weight: 600; }
.signin-chips .signin-mono { padding: 0; border: 0; background: none; margin-right: 6px; }

/* Üye ol: kazanımlar listesi formun yanında. */
.signin-hero.perks { flex-basis: 20rem; min-height: 0; justify-content: center; gap: 0.8rem; }
.signin-perk { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; padding: 0.85rem 1rem; border-radius: 16px;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); line-height: 1.5; }
.signin-perk .signin-mono { padding-top: 3px; }

.signin-panel {
    position: relative;
    flex: 1 1 25rem;
    min-width: 0;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-edge);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}
.signin-form { width: 100%; max-width: 21rem; display: flex; flex-direction: column; gap: 1.1rem; }
.signin-panel.wide-form .signin-form { max-width: 26rem; }
.signin-kicker { color: var(--muted); }
.signin-kicker b { color: var(--blue); font-weight: 500; }
.signin-form h1 { margin: 0; font-size: 2.35rem; line-height: 1; }
.signin-sub { margin: 0; color: var(--muted); }
.signin-field { display: flex; flex-direction: column; gap: 0.45rem; }
.signin-field-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.signin-field-row .signin-field { flex: 1 1 10rem; }
.signin-label { display: block; font-weight: 600; font-size: 0.75rem; }
.signin-form input[type="text"], .signin-form input[type="password"] { height: 2.8rem; }
.signin-form .badge { display: block; white-space: normal; }
.signin-btn { width: 100%; justify-content: center; height: 2.9rem; font-size: 0.85rem; gap: 0.5rem; }
.signin-alt { margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.signin-alt a { font-weight: 600; }

/* ==============================================================================
   SONUÇ SAYFASI — sonuçlar solda geniş, pazar ve tekrarlama sağda dar.
   Kullanıcı isteği: asıl önemli olan sonuç listesi; yana kaydırma anlaşılmıyor,
   liste büyük ve aşağı doğru kaydırılabilir olmalı.
   ============================================================================== */

main.wide { max-width: 118rem; }
/* Tek sütunlu form sayfaları (profil, hata). px değil rem: yazılar büyüyünce kart da oranla büyür. */
.card-narrow { max-width: 46rem; margin: 1.5rem auto; }
.profile-session { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap; }

.run-head { margin-bottom: 1rem; }
.run-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin-top: 0.35rem; }
.run-meta code { font-weight: 500; }
/* Yönetim paneli · arama kayıtları: firma listesi açılır, özet uzun olabilir. */
.audit-table td { vertical-align: top; }
.audit-details { margin-top: 0.35rem; }
.audit-details summary { cursor: pointer; color: var(--blue); font-size: 0.8rem; font-weight: 600; }
.audit-details ol { margin: 0.4rem 0 0 1.1rem; padding: 0; font-size: 0.8rem; max-height: 18rem; overflow-y: auto; }
/* Görüşme notları (lead/notes.html): satırda son not okunur, panel açılır. */
.note-summary { margin-top: 0.45rem; }
.note-last { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; font-size: 0.8rem; margin-bottom: 0.3rem; }
.note-last small { color: var(--muted); }
.note-last-body { flex-basis: 100%; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg); }
.note-toggle { cursor: pointer; }
.note-toggle.open { background: var(--accent-bg); color: var(--blue); }
.note-toggle-open, .note-toggle.open .note-toggle-closed { display: none; }
.note-toggle.open .note-toggle-open { display: inline; }
.note-last[hidden] { display: none; }
.note-add > summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.note-add[open] > summary { margin-bottom: 0.4rem; }
.noted-firm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem 1rem; flex-wrap: wrap; }
.noted-firm-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.85rem; }
.notes-panel { margin-top: 0.5rem; padding: 0.75rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); }
.note-form textarea { width: 100%; font-size: 0.85rem; }
.note-form-row { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.4rem; flex-wrap: wrap; }
.note-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.note-list li { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.note-meta { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--muted); }
/* Durum seçimi: açılır liste yerine yan yana düğmeler. Seçili olan rengini alır. */
.status-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.status-picker-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-right: 0.1rem; }
/* relative: gizli radyo düğmenin içinde kalsın. Yoksa kayan aday listesiyle birlikte kaymaz,
   tıklanınca tarayıcı ona odaklanıp ekranı başka yere kaydırıyordu. */
.status-chip { position: relative; display: inline-flex; align-items: center; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 600;
    padding: 0.22rem 0.65rem; border-radius: var(--radius-full); border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.7); color: var(--muted); }
.status-chip:hover { border-color: var(--blue); color: var(--ink); }
.status-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.status-chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }
.status-chip.on, .status-chip:has(input:checked) { border-color: transparent; color: var(--ink); background: rgba(31, 59, 255, 0.12); }
.status-chip.ok.on, .status-chip.ok:has(input:checked) { color: var(--ok-dark); background: var(--ok-bg); }
.status-chip.warn.on, .status-chip.warn:has(input:checked) { color: #8A4B00; background: var(--warn-bg); }
.status-chip.fail.on, .status-chip.fail:has(input:checked) { color: var(--fail); background: var(--fail-bg); }
.note-list .status-picker { margin-top: 0.35rem; }
.note-edit { margin-top: 0.3rem; }
.note-edit > summary { cursor: pointer; font-size: 0.75rem; color: var(--blue); }
.note-edit form { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.35rem; }
.note-edit textarea { width: 100%; font-size: 0.85rem; }
.note-edit .btn { align-self: flex-start; }
.note-list .note-delete { margin-left: auto; font-size: 0.75rem; color: var(--fail); background: none; border: 0; cursor: pointer; padding: 0; }
.note-body { font-size: 0.85rem; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0.2rem; }
.audit-labels { font-size: 0.8rem; margin-top: 0.25rem; }
.mode-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.8rem; margin-bottom: 0.2rem; }
.fav-admin-group { margin-bottom: 0.75rem; }
.fav-admin-group ul { margin: 0.3rem 0 0 1.1rem; padding: 0; font-size: 0.85rem; }
.admin-note-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.85rem; max-width: 34rem; }
.company-form { display: flex; gap: 0.4rem; align-items: center; }
.company-form input { padding: 0.4rem 0.7rem; font-size: 0.85rem; min-width: 12rem; }
.company-banner { max-width: var(--page-width); margin: 0.85rem auto 0; padding: 0.6rem 1.1rem; border-radius: var(--radius);
    background: var(--warn-bg); color: #8A4B00; font-size: 0.85rem; font-weight: 600; width: calc(100% - 3rem); }
.company-banner a { color: inherit; text-decoration: underline; }
.audit-note { margin: 0.4rem 0 0; font-size: 0.75rem; color: var(--muted); max-width: 40rem; overflow-wrap: anywhere; }
/* Yönetim panelindeki dosya yolları tek parça; dar ekranda kırılmazsa sayfayı taşırıyordu. */
dd { min-width: 0; overflow-wrap: anywhere; }
.run-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.run-actions form { display: inline; }
.run-actions .btn, .run-actions .select-inline { font-size: 0.88rem; padding: 0.45rem 0.85rem; }
.run-actions .select-inline { padding-right: 2rem; background-position: right 0.65rem center; }
.select-inline { width: auto; display: inline-block; }

.run-status { background: rgba(255, 255, 255, 0.35); padding: 0.85rem 1.6rem; }
.run-status-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.run-note summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.run-note p { margin: 0.5rem 0 0; font-size: 0.88rem; max-width: 70rem; }

/* Tarama sürüyor kutusu */
.run-live { display: flex; gap: 0.9rem; align-items: center; padding: 0.75rem 1rem;
    background: var(--accent-bg); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.run-live-title { font-weight: 800; color: var(--accent-dark); font-size: 1.05rem; }
.run-live-step { font-weight: 600; color: var(--fg); }
.run-live-hint { font-size: 0.82rem; color: var(--muted); }
.spinner { width: 26px; height: 26px; flex: none; border-radius: 50%;
    border: 3px solid rgba(31, 59, 255, 0.2); border-top-color: var(--accent);
    animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { margin-bottom: 1rem; }

.run-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
@media (max-width: 75rem) { .run-layout { grid-template-columns: 1fr; } }
.run-results { min-width: 0; }

/* Filtreler */
.filter-top { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.filter-top input[type="search"] { flex: 1; min-width: 260px; max-width: 520px; padding: 0.6rem 0.95rem; }
.filter-top-right { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.filter-top-right .btn { font-size: 0.88rem; padding: 0.45rem 0.85rem; }
.lead-counter { font-weight: 700; color: var(--fg); }
.btn-clear { background: var(--warn-bg); border: 1px solid rgba(245, 158, 11, 0.4); color: #8A4B00; font-weight: 600;
    border-radius: var(--radius-full); padding: 0.3rem 0.8rem; cursor: pointer; font-size: 0.84rem; }
.filter-groups { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1.5px dashed var(--line); }
.filter-label { min-width: 4.5rem; color: var(--muted); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.btn-filter .cnt { display: inline-block; min-width: 1.4em; padding: 0 0.4em; margin-left: 0.15rem;
    border-radius: var(--radius-full); background: var(--surface); color: var(--fg); font-size: 0.75rem; text-align: center; }
.btn-filter.active .cnt { background: rgba(255, 255, 255, 0.25); color: #FFFFFF; }

/* Aday listesi: dikey kaydırma, sabit başlık, yana kaydırma yok */
.leads-card { padding: 0; overflow: hidden; }
/* Sayfanın sonuna inildiğinde liste ekranı doldursun: yükseklik = ekran − altındaki footer
   ve kısa bir pay. Önceden altında ~250px boş kalıyordu (kart, main ve footer boşlukları);
   o boşluklar aşağıda daraltıldı. Telefonda liste kaydırma kutusu değil (aşağıda). */
.leads-scroll { max-height: calc(100dvh - 7rem); min-height: 480px; overflow-y: scroll; overflow-x: hidden; }
@media (min-width: 52.01rem) {
    main.wide { padding-bottom: 1rem; }
    main.wide .leads-card { margin-bottom: 0; }
    main.wide + footer { margin-top: 0; }
}
/* Sabit düzen: genişlikler burada verilir, tablo konteynerden taşamaz (otomatik düzende
   son sütun kesiliyor, ülke sütunu "Alma-nya" diye bölünüyordu). */
#leadsTable { table-layout: fixed; width: 100%; }
/* Başlık satırı kaydırılan satırların üstünde durur; cam saydamlığında altındaki yazı okunurdu. */
#leadsTable thead th { position: sticky; top: 0; z-index: 2; white-space: normal; background: rgba(238, 241, 255, 0.97); }
#leadsTable td { vertical-align: top; overflow-wrap: break-word; padding: 0.8rem 0.7rem; }
#leadsTable thead th { padding: 0.75rem 0.7rem; }
#leadsTable .col-check { width: 34px; text-align: center; }
#leadsTable .col-check input { width: 16px; height: 16px; cursor: pointer; }
#leadsTable .col-country { width: 140px; }
#leadsTable .col-score { width: 72px; text-align: center; }
#leadsTable .col-contact { width: 28%; }
#leadsTable .col-actions { width: 185px; }
.lead-name { font-weight: 700; font-size: 1.05rem; }
.lead-name a { color: var(--accent); }
.lead-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; margin-top: 0.3rem; }
.lead-badges .badge { font-size: 0.72rem; }
.lead-summary { margin: 0.35rem 0 0; font-size: 0.86rem; color: var(--fg-body); line-height: 1.4; }
.muted-line { display: block; color: var(--muted); font-size: 0.75rem; }
.badge.legal { display: inline-block; margin-top: 0.35rem; font-size: 0.72rem; white-space: normal; }
.score-value { font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.contact-line { margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.contact-value { font-size: 0.86rem; font-weight: 600; }
/* Künyeden okunan ad kimi sitede bir paragrafla birleşip çok uzun geliyor; `nowrap` rozet
   yandaki etiket düğmelerinin altına taşıyordu. En çok 2 satır, tamamı üzerine gelince. */
.badge.contact-owner { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
    overflow: hidden; white-space: normal; overflow-wrap: anywhere; max-width: 100%; font-size: 0.72rem; font-weight: 600; }
.tag-wa { background: var(--ok-bg); color: var(--ok-dark); }
.tag-mail { background: var(--accent-bg); color: var(--accent-dark); }
.review-buttons { display: flex; gap: 0.25rem; flex-wrap: wrap; margin: 0.4rem 0; }
.btn-draft { font-size: 0.82rem; padding: 0.3rem 0.65rem; }
.no-match { text-align: center; padding: 2rem 1rem; color: var(--muted); font-weight: 600; }

/* Etiketlenen satır bir bakışta ayırt edilsin */
tr.status-FAVORITE td { background: rgba(255, 196, 0, 0.12); }
tr.status-REVIEWED td { background: rgba(32, 160, 90, 0.09); }
tr.status-DISMISSED td { background: rgba(255, 255, 255, 0.3); opacity: 0.55; }
tr.status-FAVORITE .btn-tag[data-set="FAVORITE"],
tr.status-REVIEWED .btn-tag[data-set="REVIEWED"],
tr.status-DISMISSED .btn-tag[data-set="DISMISSED"] { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

/* Sağ sütun */
.run-side { display: flex; flex-direction: column; gap: 1rem; }
.side-card { padding: 1rem 1.1rem; margin: 0; }
.side-title { font-weight: 800; color: var(--fg); margin-bottom: 0.6rem; }
.side-hint { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.75rem; line-height: 1.45; }
.market-list { list-style: decimal; margin: 0; padding-left: 1.4rem; }
.market-list li { margin-bottom: 0.55rem; font-size: 0.88rem; }
.market-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.market-name { font-weight: 700; color: var(--fg); }
.market-value { font-weight: 700; color: var(--ok-dark); white-space: nowrap; }
.market-bar { height: 5px; background: var(--surface); border-radius: 3px; margin-top: 0.2rem; }
.market-bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.market-year { color: var(--muted); font-size: 0.7rem; }
.market-more summary { cursor: pointer; font-weight: 600; color: var(--accent); margin: 0.4rem 0; }
.schedule-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-end; }
.schedule-form label { display: flex; flex-direction: column; font-size: 0.78rem; font-weight: 700; color: var(--muted); gap: 0.2rem; }
/* Sıklık ve saat kutuları aynı yükseklikte, ":" ortada (kullanıcı: "alanlar kayık duruyor"). */
.schedule-form .select-inline { height: 2.35rem; padding: 0 1.9rem 0 0.7rem; font-size: 0.88rem; background-position: right 0.55rem center; background-size: 0.7rem; }
.schedule-time { display: inline-flex; align-items: center; gap: 0.3rem; }
.schedule-time b { line-height: 1; color: var(--muted); }
.schedule-form .btn { width: 100%; font-size: 0.88rem; padding: 0.45rem 0.85rem; justify-content: center; }
.schedule-form label.schedule-notify { flex-direction: row; align-items: center; gap: 0.45rem; width: 100%; font-weight: 400; color: var(--fg-body); font-size: 0.86rem; }
.schedule-notify small { color: var(--muted); word-break: break-all; }
.schedule-notify-missing { width: 100%; display: grid; gap: 0.4rem; }
.warn-box.compact { margin: 0; padding: 0.45rem 0.7rem; font-size: 0.8rem; }
.schedule-notify-missing input { padding: 0.4rem 0.6rem; font-size: 0.86rem; }
.btn-compact { font-size: 0.82rem; padding: 0.35rem 0.7rem; }
.notify-toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.notify-list { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.notify-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; word-break: break-all; }
.notify-list form { margin: 0; }
.notify-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.95rem; padding: 0.15rem 0.4rem; border-radius: 4px; }
.notify-remove:hover { color: var(--fail); background: var(--fail-bg); }
.notify-add { display: flex; gap: 0.4rem; }
.notify-add input { flex: 1; min-width: 0; padding: 0.4rem 0.6rem; font-size: 0.88rem; }

/* Düğme stilleri display verdiği için hidden niteliği eziliyordu. */
[hidden] { display: none !important; }

/* Arama formunda yazarak ülke ekleme */
.country-picker { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.75rem; }
.country-picker-input { max-width: 340px; font-size: 0.92rem; }
.country-picker .btn { font-size: 0.85rem; padding: 0.45rem 0.85rem; }
.country-picker-msg { color: var(--ok-dark); font-weight: 600; }
.geo-input { max-width: 300px; padding: 0.4rem 0.75rem; font-size: 0.88rem; }
.filter-help { color: var(--muted); font-size: 0.78rem; flex-basis: 100%; padding-left: 4.9rem; }
.side-subtitle { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); margin: 0.2rem 0 0.4rem; }
.market-chosen { list-style: none; padding-left: 0; }
.market-chosen li { background: var(--accent-bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.5rem 0.7rem; }
.error-reason { font-size: 1.05rem; font-weight: 600; color: var(--fg); background: var(--warn-bg); border: 1px solid rgba(245, 158, 11, 0.4); border-radius: var(--radius); padding: 0.85rem 1.1rem; }
.error-facts { width: auto; margin: 0.75rem 0; font-size: 0.9rem; }
.error-facts th { text-align: left; padding: 0.25rem 1rem 0.25rem 0; color: var(--muted); font-weight: 700; background: none; border: none; text-transform: none; letter-spacing: 0; }
.error-facts td { padding: 0.25rem 0; border: none; }

/* Ana sayfa: yeni arama (internet) ile kayıtlı veride arama ayrı görünsün */
.mode-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border-radius: var(--radius-full); padding: 0.35rem 0.85rem; margin-bottom: 0.4rem; }
.mode-new { background: var(--accent-bg); color: var(--accent-dark); }
.mode-local { background: var(--ok-bg); color: var(--ok-dark); }
.local-search-card { margin-top: 0; padding: 1.5rem 2rem; }
.local-search-card h2 { margin: 0 0 0.25rem; }
.local-search-input { font-size: 1.05rem; padding: 0.8rem 1rem; }
.local-search-results .search-results-dropdown { position: static; box-shadow: none; margin-top: 0.6rem; max-height: none; }
.run-live { justify-content: flex-start; }
.run-stop { margin-left: auto; white-space: nowrap; font-size: 0.88rem; padding: 0.45rem 0.85rem; }

/* ==============================================================================
   MOBİL (telefon, ≤ 52rem ≈ 830px)
   Kullanıcı (2026-10-06): "sonuç ekranı felaket, site linkleri taşıyor". Sabit
   genişlikli sütunlar (onay kutusu + ülke + skor + işlemler ≈ 430px) telefonda firma
   sütununa yer bırakmıyor, firma adı harf harf alt alta diziliyordu. Telefonda tablolar
   satır başına bir KART olur; masaüstü düzenine dokunulmaz.
   ============================================================================== */

/* Uzun site adresi, e-posta ve arama ifadesi her genişlikte kutusunu taşırmasın. */
.lead-name a, .contact-value, .found-by, .lead-summary, .run-note p { overflow-wrap: anywhere; }

@media (max-width: 52rem) {
    /* Üst çubuk iki sıra: üstte marka, "+ Yeni tarama" ve baş harfler; altta bölüm bağlantıları.
       Telefonda yapışkan değil — üç sıraya dağılınca ekranın dörtte birini kapatıyordu. */
    header { position: relative; padding: 0.6rem 0.85rem 0; }  /* relative: z-index menüyü kartların önünde tutar */
    .tagline { display: none; }
    header nav { gap: 0.4rem 0.6rem; padding: 8px 8px 8px 16px; }
    header nav a, .user-menu summary { font-size: 0.92rem; }
    /* Dört bağlantı (Favorilerim eklendi) dar telefonda tek satıra sığmayabilir: taşmak yerine
       alt satıra geçer. */
    .nav-links { order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; }
    .nav-link { flex: 1 1 auto; text-align: center; padding: 7px 6px; font-size: 0.82rem; }
    .btn-nav-primary { height: 38px; padding: 0 14px; }

    /* Giriş sayfaları: mavi panel kısalır, form ilk ekranda görünsün. */
    main.signin { padding: 0.85rem; min-height: 0; }
    .signin-hero { min-height: 0; padding: 1.5rem; gap: 1.2rem; }
    .signin-hero h2 { font-size: 2.6rem; }
    .signin-hero p, .signin-hero .signin-chips { display: none; }
    .signin-panel { padding: 1.75rem 1.25rem; }
    .signin-form h1 { font-size: 1.9rem; }

    /* Uzun düğme ve rozet metinleri satıra sığmazsa alt satıra geçsin, ekranı taşırmasın. */
    .btn, .step-badge { white-space: normal; text-align: center; max-width: 100%; }
    h1 { font-size: 1.5rem; }

    /* --- Aday listesi (sonuç ekranı) --- */
    .leads-scroll { max-height: none; min-height: 0; overflow: visible; }
    #leadsTable, #leadsTable tbody { display: block; width: 100%; }
    #leadsTable thead { display: none; }
    #leadsTable tr.lead-row {
        display: grid;
        grid-template-columns: 26px minmax(0, 1fr) auto;
        gap: 0.35rem 0.6rem;
        padding: 0.9rem 0.85rem;
        border-bottom: 1px solid var(--line);
    }
    /* `display: grid` tarayıcının [hidden] kuralını ezer; filtrelenen kart yine gizlensin. */
    #leadsTable tr[hidden] { display: none !important; }
    #leadsTable td { display: block; width: auto !important; padding: 0; border: 0; background: transparent; }
    #leadsTable td.col-check { grid-column: 1; grid-row: 1; padding-top: 0.2rem; }
    #leadsTable td.col-company { grid-column: 2; grid-row: 1; }
    #leadsTable td.col-score { grid-column: 3; grid-row: 1; text-align: right; }
    #leadsTable td.col-country,
    #leadsTable td.col-contact,
    #leadsTable td.col-actions { grid-column: 2 / span 2; }
    #leadsTable td.col-country { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; }
    #leadsTable td.col-country .muted-line { display: inline; }
    #leadsTable td.col-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
    #leadsTable td.col-actions .review-buttons { margin: 0; }
    #leadsTable tr#noMatchRow { display: block; }
    /* Etiket rengi kartın tamamında (hücreler artık şeffaf). */
    tr.lead-row.status-FAVORITE { background: rgba(255, 196, 0, 0.12); }
    tr.lead-row.status-REVIEWED { background: rgba(32, 160, 90, 0.09); }
    tr.lead-row.status-DISMISSED { background: rgba(255, 255, 255, 0.3); opacity: 0.55; }
    tr.lead-row.status-DISMISSED td { opacity: 1; }

    /* --- Diğer listeler (taramalar, son taramalar, ürünler): satır = kart --- */
    .table-wrap:has(table.table-cards) { overflow-x: visible; }
    table.table-cards thead { display: none; }
    table.table-cards, table.table-cards tbody, table.table-cards tr, table.table-cards td { display: block; width: 100%; }
    table.table-cards tr { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
    table.table-cards td { border: 0; padding: 0.2rem 0; text-align: left !important; white-space: normal !important; }
    /* Hücrenin sütun başlığı üstünde küçük harflerle (js/table-cards.js yazar). İlk hücre
       kartın başlığıdır, etiketsiz; işlem düğmelerinin de etikete ihtiyacı yok. */
    table.table-cards td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 0.1rem;
    }
    table.table-cards td:last-child::before { display: none !important; }
    table.table-cards td:last-child > div, table.table-cards td:last-child form { margin-top: 0.3rem; }
    /* Taramanın künyesi (kaynak notları) telefonda uzun bir paragrafa dönüşüyor; ilk satırlar
       yeter, tamamı taramanın kendi sayfasında "Tarama özeti"nde. */
    table.table-cards td small {
        display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }

    /* Taslak sayfası: hukuki durum rozeti metnin yanına sığmıyor, üstüne alınır. */
    .legal-head { flex-direction: column; align-items: flex-start !important; }
}

/* Telefondaki açılır zamanlama bölümü (run/detail.html); masaüstünde sağ sütundaki kutu yeter. */
.schedule-mobile { display: none; padding: 0; margin: 0 0 1rem; }
.schedule-mobile > summary {
    list-style: none; cursor: pointer; padding: 0.85rem 1rem; font-weight: 700; color: var(--fg);
    display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
}
.schedule-mobile > summary::-webkit-details-marker { display: none; }
.schedule-mobile > summary::after { content: "▾"; color: var(--muted); transition: transform 0.15s ease; }
.schedule-mobile[open] > summary::after { transform: rotate(180deg); }
.schedule-mobile-body { padding: 0 1rem 1rem; }
.schedule-mobile-body .side-card { border: 0; box-shadow: none; padding: 0; margin: 0; }
.schedule-mobile-body .side-title { display: none; }
@media (max-width: 52rem) {
    /* Telefonda zamanlama başlığın altında açılır bölüm; sağ sütundaki kopyası gizli.
       Bu blok yukarıdaki temel kuralın ARDINDA olmalı: aynı özgüllükte sonraki kural kazanır. */
    .schedule-mobile { display: block; }
    .schedule-side { display: none; }
}

/* Profil → Öneri ve görüşleriniz: gönderilenler */
.request-list { list-style: none; margin: 0; padding: 0; }
.request-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.request-list .note { font-size: 0.78rem; margin: 0 0 0.2rem; }
.request-body { white-space: pre-wrap; font-size: 0.9rem; overflow-wrap: anywhere; }

/* Yapay zeka kullanılamadı, normal aramaya geçildi (ADR-0014). */
.fallback-note { margin: 0.35rem 0 0.5rem; font-weight: 600; }

/* Tarama sayfasında yöneticiye yapay zeka hataları (ADR-0014). */
.ai-errors { margin: 0.35rem 0 0.5rem; }
.ai-errors summary { cursor: pointer; font-weight: 600; }
.ai-errors ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.ai-errors small { word-break: break-word; }

/* Üyelik paketleri: küçük kare kartlar, her biri farklı mavi cam tonunda */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); gap: 1rem; justify-content: center; }
.plan-card {
    aspect-ratio: 1 / 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    gap: 0.4rem; padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--radius-lg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(31, 59, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    background: linear-gradient(145deg, rgba(235, 245, 255, 0.55), rgba(255, 255, 255, 0.7));
}
.plan-card:nth-child(2) { background: linear-gradient(145deg, rgba(120, 160, 255, 0.28), rgba(255, 255, 255, 0.5)); }
.plan-card:nth-child(3) { background: linear-gradient(145deg, rgba(31, 59, 255, 0.42), rgba(120, 160, 255, 0.3)); }
.plan-card:nth-child(4) { background: linear-gradient(145deg, rgba(11, 30, 158, 0.78), rgba(31, 59, 255, 0.5)); }
.plan-card:nth-child(4) h3, .plan-card:nth-child(4) .plan-price, .plan-card:nth-child(4) .plan-sub { color: #fff; }
.plan-card:nth-child(n+5) { background: linear-gradient(145deg, rgba(60, 200, 255, 0.35), rgba(31, 59, 255, 0.25)); }
.plan-card.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--accent-bg), 0 8px 24px rgba(31, 59, 255, 0.2); }
.plan-card h3 { margin: 0; color: var(--ink); font-size: 1.4rem; }
.plan-price { font-size: 1.25rem; color: var(--ink); }
.plan-price b { font-size: 2.8rem; font-weight: 700; }
.plan-sub { color: var(--muted); font-size: 0.85rem; line-height: 1.2; }
.plan-tokens { margin-top: 0.75rem; padding: 0.4rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--accent-dark); font-size: 0.95rem; }
.plan-tokens b { font-size: 1.25rem; }

.plan-buy { margin-top: 0.9rem; padding: 0.5rem 1.5rem; font-size: 0.95rem; }
.plan-card:nth-child(4) .plan-buy { background: #fff; color: var(--blue-deep); }
.plan-soon { border: 1px solid var(--glass-edge); border-radius: var(--radius-lg); padding: 1.75rem 2rem; max-width: 380px; text-align: center;
    background: var(--card-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--ink); box-shadow: var(--glass-shadow); }
.plan-soon::backdrop { background: rgba(11, 18, 64, 0.45); }
.plan-soon h3 { margin: 0 0 0.5rem; }

/* Onaysız e-posta uyarısı: her sayfanın üstünde */
.verify-banner {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem 1rem;
    padding: 0.7rem 1.25rem; background: rgba(245, 158, 11, 0.16); border-bottom: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--ink); font-size: 0.9rem; text-align: center;
}
.verify-banner .btn { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.verify-banner.ok-banner { background: rgba(31, 157, 90, 0.16); border-bottom-color: rgba(31, 157, 90, 0.45); }
.plan-soon input { box-sizing: border-box; }
@media (max-width: 560px) {
    .plan-grid { grid-template-columns: 1fr; }
    .plan-card { aspect-ratio: auto; min-height: 230px; }
    .plan-soon { padding: 1.4rem 1.25rem; }
    .verify-banner { flex-direction: column; padding: 0.7rem 1rem; }
}
.plan-soon { width: min(92vw, 400px); box-sizing: border-box; }
