/* ==========================================================================
   NakliyeRadar — Telegram Mini App (TWA) & Mobil Lojistik Paneli Tasarımı
   ========================================================================== */

:root {
    /* Ana Tema Renkleri */
    --bg-base: #07090e;
    --bg-surface: #0f141f;
    --bg-card: rgba(17, 24, 39, 0.78);
    --bg-card-hover: rgba(24, 34, 54, 0.9);
    --bg-elevated: #161e2e;
    --bg-input: rgba(15, 23, 42, 0.85);

    /* Metin & Çerçeve */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(59, 130, 246, 0.35);

    /* Vurgular & Marka */
    --accent-blue: #3b82f6;
    --accent-blue-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;

    /* Durum & İtibar Renkleri */
    --status-success: #10b981;
    --status-success-bg: rgba(16, 185, 129, 0.12);
    --status-warning: #f59e0b;
    --status-warning-bg: rgba(245, 158, 11, 0.12);
    --status-danger: #ef4444;
    --status-danger-bg: rgba(239, 68, 68, 0.12);
    --status-neutral: #8b5cf6;
    --status-neutral-bg: rgba(139, 92, 246, 0.12);

    /* Aksiyonlar */
    --btn-call: #2563eb;
    --btn-call-hover: #1d4ed8;
    --btn-wa: #059669;
    --btn-wa-hover: #047857;

    /* Tipografi & Boyutlar */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);
    --shadow-nav: 0 -4px 20px rgba(0, 0, 0, 0.5);
    --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* Telegram Tema Uyumu (Kullanıcı isterse Telegram renklerini devralır) */
body.tg-theme {
    --bg-base: var(--tg-theme-bg-color, #07090e);
    --text-primary: var(--tg-theme-text-color, #f8fafc);
    --text-secondary: var(--tg-theme-hint-color, #94a3b8);
    --accent-blue: var(--tg-theme-button-color, #3b82f6);
}

/* Temel Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Arka Plan Ambient Efekti */
body::before {
    content: '';
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(6, 182, 212, 0.06) 50%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Konteyner — Geniş ve Modern Radar Dashboard */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 10px 12px calc(90px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .app-container {
        padding: 16px 24px calc(95px + var(--safe-bottom));
    }
}

/* ==========================================================================
   Header & Radar Bar
   ========================================================================== */
.app-header {
    position: sticky;
    top: 10px;
    z-index: 40;
    padding: 14px 22px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.radar-logo {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid var(--accent-cyan);
    opacity: 0.8;
    animation: pulseRing 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    70% { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--status-success);
    box-shadow: 0 0 8px var(--status-success);
    animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover, .icon-btn:active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.icon-btn.spinning svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Arama & Filtre Çubuğu
   ========================================================================== */
.search-section {
    padding: 0 0 12px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 16px;
    height: 48px;
    transition: all 0.25s ease;
}

.search-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 46px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0 12px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: none;
}

.clear-search-btn.active {
    display: flex;
}

/* Araç Tipi Filtre Barı (Yatay Kaydırmalı, Kesintisiz) */
.filter-pills-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 2px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.4) transparent;
}

.filter-pills-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-pills-bar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.filter-pills-bar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

.pill-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pill-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.pill-btn.active {
    background: var(--accent-blue-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

/* Gelişmiş Filtre Çekmecesi / Alanı */
.advanced-filters-panel {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin: 0 0 16px;
    padding: 16px 20px;
    border: 1px solid var(--border-subtle);
    display: none;
    animation: slideDown 0.25s ease-out;
}

.advanced-filters-panel.open {
    display: block;
}

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

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-select {
    width: 100%;
    height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0 10px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: var(--accent-blue);
}

.filter-scale-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.scale-chip {
    flex: 1;
    padding: 7px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.scale-chip.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.filter-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.reset-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

.apply-filter-btn {
    padding: 7px 18px;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

/* Aktif Filtre Rozetleri */
.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.74rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.filter-tag-remove {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Canlı Yük Akışı (İlan Kartları)
   ========================================================================== */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px 14px;
}

.feed-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.load-cards-container {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
}

@media (min-width: 768px) {
    .load-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 16px;
    }
}

/* İlan Kartı Tasarımı */
.load-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.load-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-blue);
    opacity: 0.8;
}

.load-card.tag-guvenilir::before {
    background: var(--status-success);
}

.load-card.tag-dikkatli::before {
    background: var(--status-warning);
}

.load-card.tag-uyari::before {
    background: var(--status-danger);
}

.load-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.5);
}

/* Rota Bölümü */
.card-route-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.route-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.city-pill {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.district-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 2px;
}

.route-arrow {
    display: flex;
    align-items: center;
    color: var(--accent-cyan);
    padding: 0 2px;
}

.time-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Özellik Etiketleri (Ölçek, Araç Tipi) */
.card-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-scale {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-scale.komple {
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-scale.parsiyel {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-vehicle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Yük Detay Grid'i */
.cargo-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ham WhatsApp Mesaj Kutusu */
.card-raw-text-box {
    margin: 10px 0 12px 0;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    position: relative;
    border-left: 3px solid var(--accent-cyan);
}

.raw-text-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.72rem;
    gap: 8px;
}

.raw-text-group-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #93c5fd;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.raw-copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.raw-copy-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.raw-text-body {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    max-height: 150px;
    overflow-y: auto;
}

.raw-text-body::-webkit-scrollbar {
    width: 4px;
}

.raw-text-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* İtibar Bandı */
.reputation-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

.reputation-banner.tag-guvenilir {
    background: var(--status-success-bg);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.reputation-banner.tag-dikkatli {
    background: var(--status-warning-bg);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.reputation-banner.tag-uyari {
    background: var(--status-danger-bg);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.reputation-banner.tag-notr {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid var(--border-subtle);
}

.rep-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rep-score-stars {
    font-size: 0.85rem;
}

.rep-vote-tag {
    font-size: 0.72rem;
    opacity: 0.85;
}

/* Kart Aksiyon Butonları */
.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action-call {
    flex: 1.2;
    height: 42px;
    background: var(--btn-call);
    color: #ffffff;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transition: all 0.15s ease;
}

.btn-action-call:hover, .btn-action-call:active {
    background: var(--btn-call-hover);
    transform: scale(0.98);
}

.btn-action-wa {
    flex: 1.1;
    height: 42px;
    background: var(--btn-wa);
    color: #ffffff;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    transition: all 0.15s ease;
}

.btn-action-wa:hover, .btn-action-wa:active {
    background: var(--btn-wa-hover);
    transform: scale(0.98);
}

.btn-action-detail {
    width: 42px;
    height: 42px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-action-detail:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

/* ==========================================================================
   Yükleniyor (Skeleton) & Boş Durum
   ========================================================================== */
.skeleton-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 100%);
    background-size: 200% 100%;
}

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

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 280px;
}

/* ==========================================================================
   Detay & İtibar Oylama Dialog Modal (Modern HTML5 <dialog>)
   ========================================================================== */
dialog#detailModal {
    margin: auto;
    border: none;
    border-radius: var(--radius-lg);
    background: #0f172a;
    color: var(--text-primary);
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    padding: 0;
    overflow: hidden;
}

dialog#detailModal::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

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

/* Orijinal Mesaj Kutusu */
.raw-message-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
}

.raw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

/* Oylama Bileşeni */
.voting-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.voting-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.voting-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.star-rating-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.star-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #475569;
    transition: transform 0.15s ease, color 0.15s ease;
    padding: 4px;
}

.star-btn:hover, .star-btn.hovered, .star-btn.active {
    color: #fbbf24;
    transform: scale(1.2);
}

.vote-feedback {
    font-size: 0.8rem;
    font-weight: 600;
    min-height: 20px;
}

/* ==========================================================================
   İtibar Sorgulama Sekmesi (Reputation Tab)
   ========================================================================== */
.reputation-tab-view {
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
}

.reputation-tab-view.active {
    display: flex;
}

.lookup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.lookup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.lookup-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.lookup-input-row {
    display: flex;
    gap: 8px;
}

.lookup-input {
    flex: 1;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0 14px;
    font-size: 0.95rem;
    outline: none;
}

.lookup-input:focus {
    border-color: var(--accent-blue);
}

.lookup-btn {
    padding: 0 18px;
    background: var(--accent-blue-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.reputation-result-card {
    margin-top: 16px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-subtle);
    display: none;
}

/* ==========================================================================
   Alt Navigasyon Barı (Bottom Bar — Sleek Floating Dock)
   ========================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 340px;
    max-width: 500px;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
}

.nav-item.active {
    color: var(--accent-cyan);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Bildirim / Toast Toast
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: calc(90px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ==========================================================================
   Güvenlik Giriş Kapısı (Auth Gate — Saddam34)
   ========================================================================== */
.auth-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #07090e;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-gate-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    padding: 36px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.auth-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #ffffff;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    height: 44px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0 14px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-btn {
    width: 100%;
    height: 46px;
    background: var(--accent-blue-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.15s ease;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-alert-box {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}

.auth-alert-box.warn {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.auth-alert-box.blocked {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Üst Yönetici Bilgi Şeridi */
.admin-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.logout-icon-btn {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
}

