/* ─── SGB Konektörü — Kurumsal arayüz ───────────────────────────────────── */

:root {
    --bg-main: #f4f6f9;
    --bg-card: #ffffff;
    --bg-muted: #eef1f6;
    --text-primary: #0c1222;
    --text-secondary: #3d4a5c;
    --text-muted: #64748b;

    --brand-navy: #0f1d32;
    --brand-navy-light: #1a2d4a;
    --accent-blue: rgb(32, 53, 242);
    --accent-blue-soft: rgba(32, 53, 242, 0.1);
    --accent-green: #0d7a55;
    --accent-amber: #b45309;
    --accent-red: #b91c1c;

    --shadow-sm: 0 1px 2px rgba(15, 29, 50, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 29, 50, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 29, 50, 0.1);

    --radius: 8px;
    --radius-lg: 12px;
    --border: #dde3ec;
    --border-glass: var(--border);
    --transition: 0.2s ease;
    --max-width: 1200px;
}

/* ─── Base Styles ─────────────────────────────────────────────────────── */

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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #071a38; /* Match footer background to eliminate visual gaps */
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.main-content {
    max-width: 100%;
    width: 100%;
    background-color: var(--bg-main); /* Keep content area light */
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
}

.main-content > .container,
.main-content > div:not(.modal-overlay),
.main-content > section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.main-content > div:not(.modal-overlay):first-child {
    padding-top: 1.25rem;
}

.main-content > div:not(.modal-overlay):last-child {
    padding-bottom: 2rem;
}

/* ─── Header ──────────────────────────────────────────────────────────── */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.625rem 0.75rem 0.625rem 1.5rem;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}
.header-brand:hover { opacity: 0.97; }

.header-logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.25;
    min-width: 0;
}

.header-product {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.3;
    max-width: 14rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-nav-link,
.main-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav-link:hover,
.main-nav a:hover {
    color: var(--text-primary);
    background: var(--bg-muted);
}
.main-nav-link.active,
.main-nav a.active {
    color: #fff;
    background: var(--accent-blue);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.header-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #64748b;
}
.header-status-dot.success { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.55); }
.header-status-dot.warning { background: #fbbf24; animation: pulse 1.5s infinite; }
.header-status-dot.danger { background: #f87171; }
.header-status-dot.muted { background: #94a3b8; }

.header-status-label { white-space: nowrap; }

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

/* ─── Hero Section ────────────────────────────────────────────────────── */

.hero-section { padding: 0 0 0.5rem; }
.hero-flex-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 2rem; 
    flex-wrap: wrap; 
}
.hero-text-content { 
    flex: 1; 
    max-width: 60%; 
}
.hero-status-box { 
    width: 320px; 
    flex-shrink: 0; 
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-description { font-size: 1rem; color: #334155; margin-bottom: 0.75rem; }
.hero-description-secondary { font-size: 1rem; color: #64748b; margin-bottom: 1rem; }

.hero-sources { margin-top: 2rem; }
.sources-label { font-size: 0.8rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.sources-list { display: flex; gap: 12px; }
.source-tag {
    display: flex; align-items: center; gap: 10px;
    background: #ffffff; padding: 10px 20px; border-radius: 10px;
    border: 1px solid var(--border-glass); font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: var(--transition);
}
.source-tag:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-sm); }
.tag-dot { width: 8px; height: 8px; background: var(--accent-green); border-radius: 50%; }

.hero-title-prefix {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.hero-section.centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Hero — sistem durumu kartı */
.hero-status-box { width: 100%; max-width: 360px; flex-shrink: 0; }

.system-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--accent-blue);
}
.system-status-card--success { border-top-color: var(--accent-green); }
.system-status-card--warning { border-top-color: var(--accent-amber); }
.system-status-card--danger { border-top-color: var(--accent-red); }
.system-status-card--muted { border-top-color: var(--text-muted); }

.system-status-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.system-status-card__dot {
    width: 12px;
    height: 12px;
    margin-top: 0.35rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.system-status-card__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.system-status-card__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}
.system-status-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}
.system-status-card--success .system-status-card__badge {
    color: var(--accent-green);
    background: #e6f4ef;
}
.system-status-card--danger .system-status-card__badge {
    color: var(--accent-red);
    background: #fce8e8;
}
.system-status-card--warning .system-status-card__badge {
    color: var(--accent-amber);
    background: #fef6e8;
}

.system-status-card__metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.system-status-card__metrics li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}
.system-status-card__metrics li:last-child { border-bottom: none; }
.metric-label { color: var(--text-muted); font-weight: 500; }
.metric-value { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

.status-dot-large { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-green); }
.status-dot-large.success { background: var(--accent-green); box-shadow: 0 0 0 3px rgba(13, 122, 85, 0.2); }
.status-dot-large.warning, .status-dot-large.updating { background: var(--accent-amber); }
.status-dot-large.danger { background: var(--accent-red); }
.status-dot-large.muted { background: #94a3b8; }
.status-dot-large.active { background: var(--accent-green); animation: pulse 2s infinite; }

/* ─── Stats Grid ──────────────────────────────────────────────────────── */

.stats-grid {
    display: grid; 
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem; 
    margin: 0 0 1.75rem;
}

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
    background: #ffffff; 
    border: 1px solid var(--border-glass);
    border-radius: 14px; 
    padding: 1.25rem; 
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-card:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.stat-value { font-size: 1.6rem; font-weight: 800; color: #0f172a; font-family: 'JetBrains Mono', monospace; line-height: 1.2; }
.stat-label { font-size: 0.7rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin-top: 4px; letter-spacing: 0.5px; }

/* Stat Card Accents */
.accent-domain { border-top: 3px solid #6366f1; }
.accent-ip { border-top: 3px solid #10b981; }
.accent-ipv6 { border-top: 3px solid #f59e0b; }
.accent-url { border-top: 3px solid #3b82f6; }
.accent-clients { border-top: 3px solid #06b6d4; }

.accent-total {
    background: var(--accent-blue) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(32, 53, 242, 0.2) !important;
}
.accent-total .stat-value,
.accent-total .stat-label,
.accent-total .stat-icon {
    color: #ffffff !important;
}
.accent-total .stat-icon { opacity: 0.8; }

/* ─── Feed Sections ───────────────────────────────────────────────────── */

.feeds-section { margin-top: 0; }
.section-title-wrapper { margin: 0 0 1.25rem; text-align: left; }
.feeds-section > .section-title-wrapper {
    margin-top: 0.25rem;
}

.history-section > .section-title-wrapper {
    margin-top: 2rem;
}
.section-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 0 0 0.35rem; line-height: 1.2; }
.section-subtitle { font-size: 0.9375rem; color: #64748b; margin: 0; }
/* type-container base — detaylı kurallar aşağıda Dashboard Upgrade bölümünde */
.type-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.05); }

.feed-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.5rem; }
.feed-card {
    background: #ffffff; border: 1px solid var(--border-glass);
    border-radius: 16px; padding: 2rem; transition: var(--transition);
}
.feed-card:hover { transform: translateY(-5px); border-color: var(--accent-blue); box-shadow: var(--shadow-md); }
.feed-url {
    background: #f8fafc; padding: 12px 16px; border-radius: 10px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
    display: block; margin: 1rem 0; border: 1px solid rgba(0,0,0,0.03);
}

.feed-notice {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border: 1px dashed rgba(37, 99, 235, 0.2);
    border-radius: 12px;
}

.feed-notice-content { display: flex; flex-direction: column; gap: 8px; }
.feed-notice-content strong { color: var(--accent-blue); font-size: 1rem; }
.feed-notice-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ─── Modal ───────────────────────────────────────────────────────────── */

.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 2000; padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal-content { background: #ffffff; width: 100%; max-width: 900px; border-radius: 20px; overflow: hidden; }
.modal-header { padding: 1.5rem 2rem; background: #f8fafc; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 2.5rem; max-height: 70vh; overflow-y: auto; }
.modal-body pre { background: #0f172a; color: #e2e8f0; padding: 2rem; border-radius: 12px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; }

/* ─── Utility ─────────────────────────────────────────────────────────── */

.btn {
    border: none; border-radius: 10px; padding: 0.75rem 1.25rem;
    font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-ghost { background: #f1f5f9; color: #475569; }
.btn-ghost:hover { background: #ffffff; color: var(--accent-blue); border: 1px solid rgba(37,99,235,0.2); }



/* ─── Page Hero (Rehber Başlığı) ────────────────────────────────────────── */
.page-hero {
    padding: 1.5rem 0 1rem;
    text-align: left;
    margin-bottom: 0;
}
.page-hero--compact { padding: 1.5rem 0 0.5rem; }
.page-hero-inner { max-width: 100%; }
.page-eyebrow { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 0.5rem; }
.page-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.1; color: #0f172a; letter-spacing: -1px; }
.page-lead { font-size: 1rem; color: #334155; max-width: 100%; line-height: 1.6; }
.page-meta { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-muted); }

/* ─── Guide Tabs ─────────────────────────────────────────────────────── */
.guide-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 1.5rem;
    padding: 0;
    position: relative;
    z-index: 100;
}
.guide-tab {
    background: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
}
.guide-tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.guide-tab.is-active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(32, 53, 242, 0.2);
}

.guide-main-card {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* ─── Guide (Rehber) Sayfası Stilleri ─────────────────────────────── */
.guide-section { display: flex; flex-direction: column; gap: 3rem; }
.guide-step { display: flex; gap: 2.5rem; position: relative; }
.step-number {
    width: 44px; height: 44px; background: var(--brand-navy); color: #fff;
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 600; flex-shrink: 0;
}
.step-content { flex: 1; padding-top: 10px; }
.step-content h4 { font-size: 1.4rem; color: #0f172a; margin-bottom: 1rem; }
.step-content p { color: #475569; margin-bottom: 1.5rem; font-size: 1.05rem; }

.code-block {
    background: #0f172a; color: #e2e8f0; padding: 1.5rem 2rem; border-radius: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; line-height: 1.7;
    margin: 1.5rem 0; position: relative; white-space: pre-wrap;
}
.code-block .keyword { color: #38bdf8; font-weight: 700; }
.code-block .string { color: #fbbf24; }
.code-block .comment { color: #64748b; font-style: italic; }

.guide-url-group { background: #fff; border: 1px solid var(--border-glass); border-radius: 16px; padding: 1.5rem; margin-top: 1.5rem; }
.url-group-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; color: #0f172a; font-weight: 700; }
.copy-box {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    background: #f8fafc; padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); margin-bottom: 0.5rem;
}
.copy-box code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #1e293b; word-break: break-all; }

.warning-box {
    background: #fff7ed; border-left: 4px solid var(--accent-amber); padding: 1.5rem;
    border-radius: 8px; margin-top: 2rem; color: #9a3412; font-size: 0.95rem;
}

/* ─── How It Works (Nasıl Çalışır) Sayfası Stilleri ────────────────── */
.transparency-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem;
}
.transparency-card {
    background: #fff; border: 1px solid var(--border-glass); border-radius: 20px;
    padding: 3rem 2.5rem; transition: var(--transition); position: relative;
    box-shadow: var(--shadow-sm);
}
.transparency-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent-blue); }
.t-icon { font-size: 3.5rem; margin-bottom: 1.5rem; display: block; }
.transparency-card h3 { font-size: 1.4rem; color: #0f172a; margin-bottom: 1rem; font-weight: 800; }
.transparency-card p { color: #64748b; line-height: 1.7; font-size: 0.95rem; }
.t-badge {
    position: absolute; top: 20px; right: 20px; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; background: #f1f5f9; padding: 6px 12px; border-radius: 20px; color: #64748b;
}

.faq-section { margin-top: 5rem; }
.faq-section h2 { text-align: center; margin-bottom: 3rem; color: #0f172a; font-size: 2rem; font-weight: 800; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 2rem; }
.faq-item {
    background: #fff; padding: 2rem; border-radius: 16px; border: 1px solid var(--border-glass);
}
.faq-question { font-weight: 800; color: #0f172a; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.faq-question::before { content: 'Q.'; color: var(--accent-blue); }
.faq-answer { color: #64748b; font-size: 0.95rem; line-height: 1.6; padding-left: 30px; }

/* Responsive Subpages */
@media (max-width: 768px) {
    .guide-step { flex-direction: column; gap: 1rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}

.ref-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.ref-link:hover {
    background: var(--accent-blue-dim);
    transform: translateY(-2px);
}



@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@media (max-width: 992px) {
    .hero-flex-container { flex-direction: column; }
    .hero-text-content { max-width: 100%; }
    .hero-status-box { width: 100%; max-width: none; }
    .hero-title { font-size: 1.85rem; }
}
/* ─── UI Bileşenleri (Toast, Spinner, Tooltip) ───────────────────────── */

/* Toast Bildirimleri */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast,
#toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    margin: 0;
    pointer-events: none;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

#toast.show,
.toast.show {
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-left: 4px solid var(--accent-green); }
.toast.error { border-left: 4px solid var(--accent-red); }
.toast.info { border-left: 4px solid var(--accent-blue); }

/* Yükleme Animasyonu (Spinner) */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Modal Kapatma Butonu Hover */
.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border-radius: 50%;
}

/* Kopyalandı Durumu */
.btn.copied {
    background: var(--accent-green);
    color: #ffffff;
    border-color: var(--accent-green);
}

/* Küçük Butonlar */
.btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
}

/* İlerleme Çubuğu (Progress Bar) */
#progressContainer {
    width: 100%;
    background: #e2e8f0;
    border-radius: 8px;
    height: 8px;
    margin-top: 15px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.3s ease;
}

/* ─── Dashboard Upgrade (v3.1.0) ───────────────────────────────────────── */

.type-container {
    background: #ffffff;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.type-info { display: flex; align-items: center; gap: 1.5rem; }
.type-icon-circle {
    width: 50px; height: 50px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-blue);
}

.type-text h3 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.type-text p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-muted); }

.type-badge {
    background: #f1f5f9; color: #475569;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.feed-grid--compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feed-item--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
}

.feed-item--row .feed-main {
    flex: 1;
    min-width: 0;
}

.feed-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.feed-item--row .feed-part-badge { margin: 0; }

.feed-item--row .feed-url-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-item--row .feed-meta-info {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.feed-item--row .feed-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .feed-item--row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .feed-item--row .feed-meta-info {
        width: 100%;
        order: 3;
    }
    .feed-item--row .feed-buttons {
        margin-left: auto;
    }
}

.history-section { margin-top: 0; }

.history-table-wrapper {
    overflow-x: auto;
}

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

.history-table thead tr {
    border-bottom: 2px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.history-table th,
.history-table td {
    padding: 1rem;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.history-table .history-empty td {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.history-date {
    font-weight: 600;
    color: var(--text-primary);
}

.history-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    animation: none;
}

.history-status-label {
    margin-left: 0.4rem;
    font-weight: 700;
}

.history-status-label.is-ok { color: var(--accent-green); }
.history-status-label.is-error { color: var(--accent-red); }

.history-duration {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
}

.history-stats {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.feed-item {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.feed-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.feed-filename { font-weight: 700; color: #0f172a; font-size: 0.95rem; white-space: nowrap; }
.feed-part-badge {
    background: var(--accent-blue); color: white;
    font-size: 0.65rem; padding: 3px 8px; border-radius: 6px;
    font-weight: 800; margin-left: 8px;
}

.feed-url-container {
    background: #ffffff; border: 1px solid rgba(0,0,0,0.05);
    padding: 10px 15px; border-radius: 8px; margin: 1rem 0;
}

.feed-url-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: var(--accent-blue);
    word-break: break-all;
}

.feed-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.03);
}

.feed-meta-info { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.feed-buttons { display: flex; gap: 0.5rem; }

.btn-action {
    background: #ffffff; border: 1px solid var(--border-glass);
    padding: 6px 12px; border-radius: 8px; font-size: 0.75rem;
    font-weight: 700; cursor: pointer; transition: var(--transition);
}

.btn-action:hover { background: var(--accent-blue); color: white; border-color: var(--accent-blue); }
.btn-action.btn-download { background: #f1f5f9; color: var(--text-secondary); }
.btn-action.btn-download:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: white; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 2000;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: white; width: 90%; max-width: 800px; max-height: 85vh;
    border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.modal-header {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-glass);
    display: flex; justify-content: space-between; align-items: center; background: #f8fafc;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { color: var(--accent-red); transform: rotate(90deg); }
.modal-body { padding: 1.5rem; overflow-y: auto; background: #0f172a; color: #e2e8f0; }
.modal-body pre { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }

.empty-state {
    padding: 3rem; text-align: center; background: #f8fafc;
    border: 1px dashed var(--border-glass); border-radius: 16px;
    color: var(--text-muted); font-style: italic;
}

/* Stat Cards Accents */
.stat-card.accent-domain { border-top: 3px solid #6366f1; }
.stat-card.accent-domain .stat-icon { color: #6366f1; }

.stat-card.accent-ip { border-top: 3px solid #10b981; }
.stat-card.accent-ip .stat-icon { color: #10b981; }

.stat-card.accent-ipv6 { border-top: 3px solid #f59e0b; }
.stat-card.accent-ipv6 .stat-icon { color: #f59e0b; }

.stat-card.accent-url { border-top: 3px solid #3b82f6; }
.stat-card.accent-url .stat-icon { color: #3b82f6; }

.stat-card.accent-clients { border-top: 3px solid #2abeef; }
.stat-card.accent-clients .stat-icon { color: #2abeef; }

/* accent-total — üstteki .accent-total kuralları geçerli */

/* ─── Sayfa başlıkları & rehber sekmeleri ─────────────────────────────── */

.page-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.page-hero--compact { padding: 1.75rem 2rem; }
.page-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.page-lead { font-size: 1rem; color: var(--text-secondary); max-width: 52rem; margin-bottom: 0.75rem; }
.page-meta { font-size: 0.8125rem; color: var(--text-muted); }
.page-meta code { background: var(--bg-muted); padding: 0.15rem 0.4rem; border-radius: 4px; }

.guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.guide-tab {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
}
.guide-tab:hover { color: var(--text-primary); background: var(--bg-muted); }
.guide-tab.is-active {
    color: var(--accent-blue);
    background: var(--accent-blue-soft);
    border-color: #c5d4e8;
}

.guide-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.guide-panel--muted { background: var(--bg-muted); border-color: #d8dee8; }

.panel-head { margin-bottom: 1.25rem; }
.panel-head--spaced { margin-top: 2rem; }
.panel-head h2, .panel-head h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.panel-desc { font-size: 0.875rem; color: var(--text-muted); }

.code-block--scroll { max-height: 420px; overflow: auto; }

.callout {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-top: 1.25rem;
}
.callout--warning {
    background: #fef9ee;
    border: 1px solid #f0d9a8;
    color: #7c4a03;
}

.tag-muted {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.data-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.mono { font-family: 'JetBrains Mono', monospace; }
.mono.small { font-size: 0.75rem; word-break: break-all; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0a1f42 0%, #071a38 100%);
    color: #c5d4ef;
    font-family: 'Inter', system-ui, sans-serif;
    padding-bottom: 0;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, #38bdf8 50%, var(--accent-blue) 100%);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.75rem 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    opacity: 0.98;
    transition: opacity var(--transition);
}

.footer-logo-link:hover { opacity: 1; }

.footer-logo-img {
    display: block;
    width: 148px;
    height: auto;
    max-width: 100%;
}

.footer-brand h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 1rem;
    max-width: 28rem;
}

.footer-brand p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: #a9bddf;
    max-width: 36rem;
}

.footer-nav h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0 0 1rem;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a9bddf;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tags span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9fc4ff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer-tags span:hover {
    background: rgba(14, 165, 233, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    margin: 1.25rem 0 0;
    padding: 0.875rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #7f98c0;
    line-height: 1.5;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color var(--transition), border-color var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        padding: 2rem 1.25rem 0;
    }

    .footer-bottom {
        padding-bottom: 0.875rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-tags {
        justify-content: center;
        gap: 0.4rem;
    }
}

@media (max-width: 480px) {
    .main-nav { gap: 0.1rem; }
    .main-nav-link, .main-nav a { font-size: 0.65rem; padding: 0.3rem 0.4rem; }
    .feed-buttons { grid-template-columns: 1fr; }
    .modal-content { width: 95%; max-height: 95vh; }
}

/* ─── Custom Animations (v3.1.5) ────────────────────────────────────────── */

.status-dot-large.has-new-data {
    animation: pulse-green 2s infinite;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: var(--accent-green) !important;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.history-table tbody tr:hover {
    background-color: rgba(30, 74, 140, 0.02);
}
