/* ========================================
   TABAN KATMANI — Bootstrap 4 yerine.
   Sadece sayfalarin gercekten kullandigi
   grid/tablo/utility kurallari.
   ======================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
button { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== GRID ===== */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > * { padding: 0 12px; width: 100%; }
.col { flex: 1 0 0%; }
.col-4 { width: 33.3333%; }
.col-6 { width: 50%; }
.col-12 { width: 100%; }
@media (min-width: 768px) {
    .col-md-2 { width: 16.6667%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.3333%; }
    .col-md-5 { width: 41.6667%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.3333%; }
    .col-md-8 { width: 66.6667%; }
}

/* ===== TABLO ===== */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.breadcrumb-item + .breadcrumb-item { padding-left: .5rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-right: .5rem; }
.breadcrumb-item.active { color: var(--text-secondary); font-size: 13px; }

/* ===== NAV ===== */
.nav { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.nav-link { display: block; }

/* ===== FORM ===== */
.form-control {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.form-control:focus { outline: none; }
select.form-control {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' 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 12px center;
    background-size: 16px;
}

/* ===== UTILITY ===== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.w-100 { width: 100% !important; }

.m-0 { margin: 0 !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }

@media (min-width: 768px) {
    .d-md-table-cell { display: table-cell !important; }
    .d-md-block { display: block !important; }
    .d-md-none { display: none !important; }
}
@media (min-width: 992px) {
    .d-lg-table-cell { display: table-cell !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-none { display: none !important; }
}

/* ===== IKONLAR (Font Awesome yerine inline SVG) ===== */
.ico {
    width: 1em; height: 1em;
    display: inline-block;
    vertical-align: -.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ========================================
   ALTLAR.COM — Modern Crypto Platform
   ======================================== */

/* ===== DESIGN TOKENS — DARK (default) ===== */
:root, [data-theme="dark"] {
    --bg-base: #05070a;
    --bg-surface: #0c0f14;
    --bg-card: #111318;
    --bg-card-hover: #161921;
    --bg-elevated: #1a1d26;
    --bg-input: #13161d;
    --bg-navbar: rgba(12,15,20,.85);

    --border: rgba(255,255,255,.06);
    --border-hover: rgba(255,255,255,.12);
    --border-active: rgba(99,102,241,.4);

    --text-primary: #f0f2f5;
    --text-secondary: #8a8f98;
    --text-muted: #555a63;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99,102,241,.25);
    --accent-hover: #c4b5fd;

    --green: #22c55e;
    --green-dim: rgba(34,197,94,.12);
    --red: #ef4444;
    --red-dim: rgba(239,68,68,.12);
    --yellow: #eab308;

    --grad-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --grad-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-surface: linear-gradient(180deg, rgba(99,102,241,.04) 0%, transparent 100%);
    --grad-shine: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 40%);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --toggler-icon-filter: invert(1);
    --coin-img-ring: var(--bg-card);
    --table-hover: rgba(99,102,241,.04);
    --th-bg: rgba(255,255,255,.02);
}

/* ===== DESIGN TOKENS — LIGHT ===== */
[data-theme="light"] {
    --bg-base: #f4f5f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --bg-elevated: #f1f3f5;
    --bg-input: #f4f5f7;
    --bg-navbar: rgba(255,255,255,.9);

    --border: rgba(0,0,0,.08);
    --border-hover: rgba(0,0,0,.15);
    --border-active: rgba(99,102,241,.4);

    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;

    --accent: #6366f1;
    --accent-light: #4f46e5;
    --accent-glow: rgba(99,102,241,.15);
    --accent-hover: #3730a3;

    --green: #16a34a;
    --green-dim: rgba(22,163,74,.1);
    --red: #dc2626;
    --red-dim: rgba(220,38,38,.1);
    --yellow: #ca8a04;

    --grad-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --grad-green: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --grad-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-surface: linear-gradient(180deg, rgba(99,102,241,.03) 0%, transparent 100%);
    --grad-shine: linear-gradient(135deg, rgba(255,255,255,.7) 0%, transparent 40%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --toggler-icon-filter: none;
    --coin-img-ring: #fff;
    --table-hover: rgba(99,102,241,.04);
    --th-bg: rgba(0,0,0,.02);
}

/* ===== SHARED TOKENS ===== */
:root {
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;
    --ease: cubic-bezier(.4,0,.2,1);
    --duration: .2s;
}

/* Tema gecis animasyonu */
body, .main-navbar, .site-footer, .glass-card, .card-dark, .content-section,
.price-table-wrapper, .coin-header, .chart-wrapper, .stat-card, .mover-card,
.calculator-box, .info-table, .market-table, .guide-card, .guide-sidebar .list-group-item {
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* ===== RESET ===== */

body {
    background: var(--bg-base) !important;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none !important; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-hover); }

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

img { max-width: 100%; height: auto; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== NAVBAR ===== */
.main-navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0;
}

.main-navbar .navbar { padding: 0; }

.main-navbar .navbar-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.8px;
    padding: 14px 0;
    margin-right: 28px;
}
.brand-alt {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-lar { color: var(--text-primary); }

.main-navbar .nav-link {
    color: var(--text-muted) !important;
    font-size: 13px;
    font-weight: 500;
    padding: 16px 12px !important;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.main-navbar .nav-link:hover {
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent);
}
.main-navbar .nav-link img { border-radius: 50%; }

.navbar-toggler { border-color: var(--border) !important; padding: 4px 8px; }
.navbar-toggler-icon { filter: var(--toggler-icon-filter); }

/* ===== SECTION WRAPPER ===== */
/* Yalnizca dikey: .container'in yan boslugunu ezmesin. */
.page-section { padding-top: 24px; padding-bottom: 40px; }

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.glass-card:hover {
    border-color: var(--border-hover);
}

/* ===== TOP MOVERS ===== */
.movers-section { margin-bottom: 24px; }
.movers-section .section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-movers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.mover-card {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.mover-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.mover-card.gainer::before { background: var(--grad-green); }
.mover-card.loser::before { background: var(--grad-red); }
.mover-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mover-card:hover::before { opacity: 1; }

.mover-card .coin-info { display: flex; align-items: center; gap: 10px; }
.mover-card .coin-info img { width: 32px; height: 32px; border-radius: 50%; }
.mover-card .coin-name { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.mover-card .coin-symbol { font-size: 11px; color: var(--text-muted); }
.mover-card .coin-change {
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--r-sm);
}
.mover-card .coin-change.positive { color: var(--green); background: var(--green-dim); }
.mover-card .coin-change.negative { color: var(--red); background: var(--red-dim); }

/* ===== PRICE TABLE ===== */
.price-table-wrapper {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.price-table-wrapper .table-header {
    padding: 20px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-table-wrapper .table-header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.live-dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 8px rgba(34,197,94,.5);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
}

/* Table */
.table-dark-custom {
    background: transparent;
    color: var(--text-primary);
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.table-dark-custom thead th {
    background: var(--th-bg);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
    padding: 12px 16px;
    white-space: nowrap;
}
.table-dark-custom tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}
.table-dark-custom tbody tr:hover {
    background: var(--table-hover) !important;
}
.table-dark-custom tbody tr:last-child { border-bottom: none; }
.table-dark-custom td {
    padding: 14px 16px;
    vertical-align: middle;
    border: none !important;
    font-size: 13px;
}

.coin-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}
.coin-cell img {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--coin-img-ring);
}
.coin-cell .coin-name { font-weight: 600; color: var(--text-primary); font-size: 14px; display: block; }
.coin-cell .coin-symbol { color: var(--text-muted); font-size: 11px; font-weight: 500; }

.price-value { font-weight: 600; color: var(--text-primary); font-size: 14px; font-variant-numeric: tabular-nums; }
.volume-value { color: var(--text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.volume-usd { color: var(--text-muted); font-size: 11px; }

.change-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 12px;
    min-width: 72px;
    font-variant-numeric: tabular-nums;
}
.change-badge.positive { color: var(--green); background: var(--green-dim); }
.change-badge.negative { color: var(--red); background: var(--red-dim); }

/* ===== COIN DETAIL ===== */
.coin-header {
    background: var(--bg-card);
    background-image: var(--grad-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.coin-header::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: .3;
    pointer-events: none;
}

.coin-header .coin-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    position: relative;
}
.coin-header .coin-title img {
    width: 72px; height: 72px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--border), var(--shadow-md);
}
.coin-header .coin-title h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 0;
}
.symbol-badge {
    display: inline-block;
    background: rgba(99,102,241,.12);
    color: var(--accent-light);
    padding: 3px 12px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    position: relative;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    transition: all var(--duration) var(--ease);
    position: relative;
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.3px;
    font-variant-numeric: tabular-nums;
}

/* ===== CHART ===== */
.chart-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    margin-bottom: 16px;
}
.chart-wrapper h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== TABS ===== */
.nav-tabs-custom {
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    gap: 0;
}
.nav-tabs-custom .nav-link {
    color: var(--text-muted) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 13px;
    background: none !important;
    border-radius: 0 !important;
    transition: all var(--duration) var(--ease);
}
.nav-tabs-custom .nav-link:hover {
    color: var(--text-secondary) !important;
    border-bottom-color: var(--border-hover) !important;
}
.nav-tabs-custom .nav-link.active {
    color: var(--accent-light) !important;
    border-bottom-color: var(--accent) !important;
}

/* ===== INFO TABLE ===== */
.info-table {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.info-table .table { margin: 0; color: var(--text-primary); }
.info-table .table td {
    border-color: var(--border);
    padding: 11px 16px;
    font-size: 13px;
}
.info-table .table tr td:first-child {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
    background: var(--th-bg);
}

/* ===== MARKET TABLE ===== */
.market-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.market-table .table { margin: 0; color: var(--text-primary); }
.market-table .table thead th {
    background: var(--th-bg);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 16px;
}
.market-table .table td {
    border-color: var(--border);
    padding: 12px 16px;
    font-size: 13px;
    vertical-align: middle;
}
.market-table .table tbody tr { transition: background var(--duration) var(--ease); }
.market-table .table tbody tr:hover { background: rgba(99,102,241,.04); }
.market-table .sponsored-row {
    border-left: 3px solid var(--green);
    background: rgba(34,197,94,.03) !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-dark { background: none !important; padding: 0; margin-bottom: 20px; }
.breadcrumb-dark .breadcrumb-item a { color: var(--text-muted); font-size: 13px; }
.breadcrumb-dark .breadcrumb-item a:hover { color: var(--accent-light); }
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== CONTENT SECTION ===== */
.content-section {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 28px;
}
.content-section h1, .content-section h2, .content-section h3 { color: var(--text-primary); }
.content-section p, .content-section li { color: var(--text-secondary); line-height: 1.9; }
.content-section a { color: var(--accent-light); }

/* ===== GUIDE/REHBER ===== */
.guide-card {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 8px 16px;
    margin: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all var(--duration) var(--ease);
}
.guide-card:hover {
    border-color: var(--accent);
    background: rgba(99,102,241,.06);
    color: var(--accent-light) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.guide-letter {
    font-size: 22px;
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 24px;
    margin-bottom: 8px;
    display: inline-block;
}

.guide-sidebar .list-group-item {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--duration) var(--ease);
}
.guide-sidebar .list-group-item:hover {
    background: rgba(99,102,241,.04);
    color: var(--accent-light);
}
.guide-sidebar .list-group-header {
    background: var(--grad-accent) !important;
    color: #fff !important;
    font-weight: 600;
    border: none;
    font-size: 13px;
}

/* ===== CALCULATOR ===== */
.calculator-box {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 32px;
}
.calculator-box h4 { color: var(--text-primary); font-weight: 700; margin-bottom: 24px; }
.calculator-box .form-control {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: 14px;
}
.calculator-box .form-control:focus {
    background: var(--bg-input);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.calculator-box .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: var(--bg-input);
}
.calculator-box .dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--r-md);
}
.calculator-box .dropdown-item {
    color: var(--text-secondary);
    padding: 8px 16px;
    font-size: 13px;
    transition: all var(--duration) var(--ease);
}
.calculator-box .dropdown-item:hover {
    background: rgba(99,102,241,.08);
    color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--grad-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--r-full);
    transition: all var(--duration) var(--ease);
    font-size: 14px;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

/* ===== ALERT ===== */
.alert-dark-custom {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--r-md);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 20px;
    margin-top: 48px;
}
.site-footer .footer-h {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.site-footer a {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
    padding: 5px 0;
    transition: all var(--duration) var(--ease);
}
.site-footer a:hover { color: var(--accent-light); }
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 36px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom span { color: var(--text-muted); font-size: 12px; }

/* ===== CARD DARK (generic) ===== */
.card-dark {
    background: var(--bg-card);
    background-image: var(--grad-shine);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .main-navbar .navbar-brand { font-size: 20px; }
}

@media (max-width: 768px) {
    .coin-header { padding: 20px; }
    .coin-header .coin-title h1 { font-size: 22px; }
    .coin-header .coin-title img { width: 48px !important; height: 48px !important; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card .stat-value { font-size: 16px; }
    .top-movers { grid-template-columns: repeat(2, 1fr); }
    .price-table-wrapper .table-header { padding: 16px; }
    .table-dark-custom td { padding: 10px 8px; font-size: 12px; }
    .coin-cell { min-width: 130px; gap: 8px; }
    .coin-cell img { width: 26px !important; height: 26px !important; }
    .site-footer { padding: 32px 0 16px; }
    .content-section { padding: 20px; }
    .nav-tabs-custom { padding: 0 16px; }
    .nav-tabs-custom .nav-link { padding: 12px 14px; font-size: 12px; }
}

@media (max-width: 576px) {
    .top-movers { grid-template-columns: 1fr 1fr; gap: 8px; }
    .mover-card { padding: 10px 12px; }
    .mover-card .coin-info img { width: 26px; height: 26px; }
    .mover-card .coin-name { font-size: 12px; }
    .mover-card .coin-change { font-size: 11px; padding: 3px 8px; }
    .stats-grid { gap: 8px; }
    .stat-card { padding: 12px; }
    .change-badge { min-width: 60px; font-size: 11px; padding: 4px 8px; }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 16px;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(30deg);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* Light mode icin brand renk override */
[data-theme="light"] .brand-lar { color: var(--text-primary); }
[data-theme="light"] .footer-brand span:last-child { color: var(--text-primary) !important; }
[data-theme="light"] .main-navbar .nav-link { color: var(--text-secondary) !important; }
[data-theme="light"] .main-navbar .nav-link:hover { color: var(--text-primary) !important; }
[data-theme="light"] .navbar-toggler-icon { filter: none; }

/* ===== SKIP NAV (erisilebilirlik) ===== */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    z-index: 9999;
    font-size: 14px;
    font-weight: 600;
    transition: top .2s;
}
.skip-nav:focus {
    top: 8px;
    color: #fff;
}

/* ===== FOCUS-VISIBLE (erisilebilirlik) ===== */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px; height: 44px;
    background: var(--grad-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s var(--ease);
    box-shadow: var(--shadow-md);
    z-index: 1020;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: var(--r-sm);
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: .4;
}
.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== TOOLTIP CUSTOM ===== */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(.9);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration) var(--ease);
    z-index: 100;
    box-shadow: var(--shadow-md);
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===== UTILITY ===== */
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }

/* ========================================
   YENI BILESENLER — veri kaynagi degisikligi
   ile gelen ekranlar.
   ======================================== */

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== NAVBAR DUZENI ===== */
.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 60px; }
.nav-main { flex: 1 1 auto; }
.nav-main .nav { gap: 2px; }
.main-navbar .nav-link.is-active {
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent);
}
.nav-burger {
    display: none;
    background: none; border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--r-sm);
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; padding: 0;
}

.nav-search {
    position: relative;
    display: flex; align-items: center;
    flex: 0 1 220px;
}
.nav-search .ico {
    position: absolute; left: 12px;
    color: var(--text-muted); font-size: 15px;
    pointer-events: none;
}
.nav-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-primary);
    font-size: 13px;
    padding: 9px 14px 9px 34px;
    font-family: inherit;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.nav-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.nav-search input::-webkit-search-cancel-button { filter: var(--toggler-icon-filter); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 992px) {
    .nav-burger { display: flex; }
    .nav-main {
        order: 10;
        flex: 0 0 100%;
        display: none;
        border-top: 1px solid var(--border);
        padding: 6px 0 10px;
    }
    .nav-main.is-open { display: block; }
    .nav-main .nav { flex-direction: column; }
    .main-navbar .nav-link { padding: 12px 4px !important; font-size: 15px; border-bottom: 0; }
    .main-navbar .nav-link.is-active { color: var(--accent-light) !important; }
    .main-navbar .nav-link span { display: inline; }
    .nav-search { flex: 1 1 auto; }
    .main-navbar .navbar-brand { margin-right: 4px; }
}
@media (max-width: 576px) {
    .nav-actions { margin-left: auto; }
    .nav-search { order: 11; flex: 0 0 100%; margin-bottom: 10px; }
    .nav-kbd { display: none; }
}

/* ===== LOGO ===== */
.coin-logo {
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    background: var(--bg-elevated);
}
.coin-logo-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-accent);
    color: #fff; font-weight: 700;
    letter-spacing: -.5px;
}
.coin-cell-text { display: flex; flex-direction: column; line-height: 1.3; }

/* ===== FIYAT DURUMU ===== */
.price-flag {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    padding: 2px 7px; border-radius: var(--r-full);
    background: rgba(234,179,8,.14); color: var(--yellow);
    vertical-align: middle; cursor: help;
    white-space: nowrap;
}
.price-flag.is-missing { background: rgba(255,255,255,.06); color: var(--text-muted); }
.change-badge.neutral { color: var(--text-muted); background: rgba(255,255,255,.05); }
[data-theme="light"] .change-badge.neutral,
[data-theme="light"] .price-flag.is-missing { background: rgba(0,0,0,.05); }

/* ===== YARDIMCI ===== */
.ta-r { text-align: right !important; }
.ta-c { text-align: center !important; }
.muted { color: var(--text-muted); }
.muted-sm { color: var(--text-muted); font-size: 12px; }
.rank { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.col-rank { width: 48px; }
.page-h1 {
    font-size: 24px; font-weight: 800; letter-spacing: -.4px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.page-h1 .ico { color: var(--accent-light); font-size: 22px; }
.basis { color: var(--text-muted); font-weight: 500; font-size: 12px; }

/* ===== SIRALANABILIR BASLIK ===== */
.th-sort {
    all: unset; cursor: pointer; user-select: none;
    display: inline-flex; align-items: center; gap: 2px;
    font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
}
.th-sort:hover { color: var(--text-secondary); }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sort-ind { display: inline-block; width: 10px; margin-left: 4px; opacity: .5; }
th[aria-sort="ascending"] .sort-ind::after { content: '\2191'; }
th[aria-sort="descending"] .sort-ind::after { content: '\2193'; }
th[aria-sort] { color: var(--accent-light); }

/* ===== TABLO ARACLARI ===== */
.table-tools { display: flex; align-items: center; gap: 10px; }
.filter-box { position: relative; display: flex; align-items: center; }
.filter-box .ico { position: absolute; left: 12px; color: var(--text-muted); pointer-events: none; }
.filter-box input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    color: var(--text-primary);
    font-size: 13px; font-family: inherit;
    padding: 9px 14px 9px 34px;
    width: 240px;
}
.filter-box input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
@media (max-width: 576px) {
    .price-table-wrapper .table-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .filter-box input { width: 100%; }
}

/* ===== SAYFALAMA ===== */
.pagination {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 6px; padding: 18px 16px;
    border-top: 1px solid var(--border);
}
.pg-item {
    min-width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-secondary) !important;
    font-size: 13px; font-weight: 500;
    transition: all var(--duration) var(--ease);
}
.pg-item:hover { border-color: var(--accent); color: var(--accent-light) !important; }
.pg-item.is-current {
    background: var(--grad-accent); color: #fff !important;
    border-color: transparent; font-weight: 700;
}
.pg-gap { color: var(--text-muted); padding: 0 4px; }

/* ===== PIYASA OZETI ===== */
.global-strip { margin-bottom: 24px; }
.stat-sub { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.stat-hint { color: var(--text-muted); cursor: help; }
.stat-hint .ico { width: 12px; height: 12px; }
.scope-note {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-muted); font-size: 12px;
    margin: 12px 0 0; line-height: 1.6;
}
.scope-note .ico { flex-shrink: 0; margin-top: 3px; color: var(--accent-light); }
.change-basis-note {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-muted); font-size: 12px;
    margin-top: 16px;
}
.change-basis-note .ico { flex-shrink: 0; margin-top: 3px; }
.data-stamp {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 12px; margin-top: 14px;
}

/* ===== ROZET DIZISI ===== */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
    display: inline-flex; align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 5px 12px;
    font-size: 12px; font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all var(--duration) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-light) !important; }

/* ===== COIN BASLIK: FIYAT ===== */
.coin-header .coin-title { flex-wrap: wrap; }
.coin-price-lead { margin-left: auto; text-align: right; }
.lead-price {
    font-size: 30px; font-weight: 800; letter-spacing: -.8px;
    font-variant-numeric: tabular-nums;
    display: flex; align-items: center; gap: 10px; justify-content: flex-end;
}
.lead-sub {
    display: flex; align-items: center; gap: 8px; justify-content: flex-end;
    color: var(--text-secondary); font-size: 14px; margin-top: 6px;
}
@media (max-width: 768px) {
    .coin-price-lead { margin-left: 0; text-align: left; width: 100%; }
    .lead-price { justify-content: flex-start; font-size: 24px; }
    .lead-sub { justify-content: flex-start; }
}

/* ===== ARZ CUBUGU ===== */
.supply-bar {
    display: block; height: 4px; margin-top: 8px;
    background: var(--bg-base); border-radius: var(--r-full); overflow: hidden;
}
.supply-bar > span { display: block; height: 100%; background: var(--grad-accent); }

/* ===== GRAFIK ===== */
.chart-note, .chart-empty {
    display: flex; align-items: flex-start; gap: 8px;
    color: var(--text-muted); font-size: 12px; margin: 12px 0 0;
}
.chart-empty { margin: 0; }
.chart-note .ico { flex-shrink: 0; margin-top: 3px; }

/* ===== SEKME GOVDESI ===== */
.tab-body { padding: 24px; }
.tab-h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.tab-h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
@media (max-width: 768px) { .tab-body { padding: 16px; } }

/* ===== ZENGIN METIN (backend HTML'i) ===== */
.rich-text { color: var(--text-secondary); line-height: 1.85; }
.rich-text h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; }
.rich-text h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 22px 0 10px; }
.rich-text p { margin: 0 0 14px; }
.rich-text ul, .rich-text ol { padding-left: 20px; margin: 0 0 14px; }
.rich-text li { margin-bottom: 6px; }
.rich-text strong { color: var(--text-primary); font-weight: 600; }
.rich-text a { color: var(--accent-light); text-decoration: underline !important; }
.rich-text table {
    width: 100%; border-collapse: collapse; margin: 0 0 16px;
    font-size: 13px; display: block; overflow-x: auto;
}
.rich-text th, .rich-text td {
    border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.rich-text th { background: var(--th-bg); color: var(--text-primary); font-weight: 600; }
.rich-text hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.rich-text .mark, .rich-text mark {
    background: rgba(99,102,241,.14); color: var(--accent-light);
    padding: 1px 6px; border-radius: var(--r-sm);
}
.article { max-width: 78ch; }

/* ===== BAGLANTI ROZETLERI ===== */
.link-row { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all var(--duration) var(--ease);
}
.link-chip:hover { border-color: var(--accent); color: var(--accent-light) !important; }
.ico.ext { width: .8em; height: .8em; opacity: .5; }

/* ===== KUNYE TABLOSU ===== */
.info-table .table th[scope="row"] {
    color: var(--text-muted); font-weight: 500;
    width: 40%; background: var(--th-bg);
    border-color: var(--border); border-style: solid; border-width: 0 0 1px;
    padding: 11px 16px; font-size: 13px;
}
.info-table .table td { border-width: 0 0 1px; border-style: solid; }
.info-table .table tr:last-child th, .info-table .table tr:last-child td { border-bottom: 0; }
.info-table .table thead th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; padding: 10px 16px; background: var(--th-bg); }
.addr code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; word-break: break-all; color: var(--text-secondary);
}

/* ===== KATEGORI KARTLARI ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}
.cat-card {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
    transition: all var(--duration) var(--ease);
}
.cat-card:hover {
    border-color: var(--accent); transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cat-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cat-meta { font-size: 12px; color: var(--text-muted); }
.cat-cap { font-size: 13px; font-weight: 600; color: var(--accent-light); font-variant-numeric: tabular-nums; }

/* ===== BORSA ===== */
.ex-cell { display: inline-flex; align-items: center; gap: 8px; }
.ex-name { font-weight: 600; color: var(--text-primary); }
.tag {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    padding: 2px 7px; border-radius: var(--r-full);
}
.tag-tr { background: rgba(34,197,94,.12); color: var(--green); }
.tag-off { background: rgba(255,255,255,.06); color: var(--text-muted); cursor: help; }
[data-theme="light"] .tag-off { background: rgba(0,0,0,.05); }

/* ===== CEVIRICI ===== */
.conv-form {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.conv-field { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.conv-field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.conv-field.conv-grow { flex: 1 1 220px; }
.conv-form .btn-primary-custom { height: 42px; }
.conv-result {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border);
}
.conv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; font-size: 20px; font-weight: 600; }
.conv-eq { color: var(--text-muted); }
.conv-value { font-size: 28px; font-weight: 800; color: var(--accent-light); letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.conv-rate { color: var(--text-muted); font-size: 13px; }

/* ===== DUGME (a etiketi icin) ===== */
a.btn-primary-custom, .content-section a.btn-primary-custom { display: inline-flex; align-items: center; justify-content: center; color: #fff !important; }

/* ===== BOS DURUM ===== */
.empty-state .empty-ico { width: 48px; height: 48px; margin-bottom: 16px; opacity: .35; }
.empty-state h2 { font-size: 18px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

/* ========================================
   ARAYUZ YENILEMESI — 2026-09
   ======================================== */

/* ===== Tazelik uyarisi ===== */
.stale-bar {
    background: rgba(234,179,8,.10);
    border-bottom: 1px solid rgba(234,179,8,.25);
    color: var(--yellow);
    font-size: 13px; font-weight: 500;
    padding: 9px 0;
}
.stale-bar .container { display: flex; align-items: flex-start; gap: 8px; }
.stale-bar .ico { flex-shrink: 0; margin-top: 3px; }

/* ===== Anasayfa basligi ===== */
.hero { margin: 4px 0 20px; }
.hero-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; line-height: 1.2; margin-bottom: 6px; }
.hero-page { color: var(--text-muted); font-weight: 600; font-size: .7em; }
.hero-sub { color: var(--text-secondary); font-size: 15px; max-width: 70ch; margin: 0; }
@media (max-width: 576px) {
    .hero-h1 { font-size: 24px; }
    .hero-sub { font-size: 14px; }
}

.table-title { font-size: 18px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-title .ico { color: var(--accent-light); }
.table-sub { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }
.price-table-wrapper .table-header { gap: 12px; flex-wrap: wrap; }

/* Yukselen/dusen: genis ekranda yan yana iki blok */
.movers-grid { display: grid; gap: 0 20px; }
@media (min-width: 992px) {
    .movers-grid { grid-template-columns: 1fr 1fr; }
    .movers-grid .top-movers { grid-template-columns: 1fr 1fr; }
}
.mover-card .coin-info { min-width: 0; }
.mover-card .coin-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 16ch; }
.mover-card .coin-cell-text { min-width: 0; }

/* Istatistik: etiket ve deger arasinda net hiyerarsi */
.stat-card .stat-label { display: flex; align-items: center; gap: 4px; }
.stat-card .stat-value a { color: inherit; }
.stat-card .stat-value a:hover { color: var(--accent-light); }

/* Tablo: mobilde sira sutunu yer kaplamasin, varlik sutunu sabit kalsin */
@media (max-width: 576px) {
    .col-rank { display: none; }
    .table-dark-custom td:first-child, .table-dark-custom th:first-child { padding-left: 12px; }
}
.table-dark-custom tbody tr:hover .coin-name { color: var(--accent-light); }
.filter-empty td { text-align: center; color: var(--text-muted); padding: 28px 16px !important; }

/* ===== Arama onerileri ===== */
.nav-search { position: relative; }
.nav-kbd {
    position: absolute; right: 10px;
    font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-muted);
    border: 1px solid var(--border-hover); border-radius: 5px;
    padding: 3px 6px; pointer-events: none;
}
.nav-search input:focus ~ .nav-kbd, .nav-search input:not(:placeholder-shown) ~ .nav-kbd { display: none; }
.search-pop {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    min-width: 260px;
    list-style: none; margin: 0; padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    max-height: 360px; overflow-y: auto;
    z-index: 1040;
}
.search-pop li a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--r-sm);
    color: var(--text-primary);
}
.search-pop li.is-active a, .search-pop li a:hover { background: var(--table-hover); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.search-pop img, .sp-ph { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.sp-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--grad-accent); color: #fff; font-size: 11px; font-weight: 700; }
.sp-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-sym { margin-left: auto; color: var(--text-muted); font-size: 12px; font-weight: 500; }
.sp-empty { padding: 10px; color: var(--text-muted); font-size: 13px; }

/* ===== Coin basligi ===== */
.h1-sub { color: var(--text-muted); font-weight: 600; font-size: .6em; letter-spacing: 0; }
.lead-try { font-variant-numeric: tabular-nums; font-weight: 600; }
.coin-header .coin-title > div:nth-child(2) { min-width: 0; }

/* ===== Grafik ===== */
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.chart-head h2 { margin: 0 !important; }
.chart-stats { display: flex; gap: 20px; margin: 0; flex-wrap: wrap; }
.chart-stats div { display: flex; flex-direction: column; }
.chart-stats dt { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; }
.chart-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-stats dd.positive { color: var(--green); }
.chart-stats dd.negative { color: var(--red); }

.chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.chart.is-up { --ch: var(--green); }
.chart.is-down { --ch: var(--red); }
.ch-plot { position: relative; height: 280px; color: var(--ch); cursor: crosshair; touch-action: pan-y; }
.ch-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.ch-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot, .ch-pin {
    position: absolute; width: 9px; height: 9px; border-radius: 50%;
    background: currentColor; transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}
.ch-pin { border: 2px solid var(--bg-card); width: 12px; height: 12px; }
.ch-hover { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.ch-hover.is-on { opacity: 1; }
.ch-hover.is-on ~ .ch-dot, .ch-plot:has(.ch-hover.is-on) .ch-dot { opacity: 0; }
.ch-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-hover); }
.ch-tip {
    position: absolute; top: 6px; transform: translateX(-50%);
    display: flex; flex-direction: column; gap: 1px;
    background: var(--bg-elevated); border: 1px solid var(--border-hover);
    border-radius: var(--r-sm); box-shadow: var(--shadow-md);
    padding: 6px 10px; white-space: nowrap;
    font-size: 12px; color: var(--text-secondary);
}
.ch-tip strong { color: var(--text-primary); font-size: 14px; font-variant-numeric: tabular-nums; }
.ch-tip.is-right { transform: translateX(calc(-100% - 10px)); }
.ch-tip.is-left { transform: translateX(10px); }
.ch-y { position: relative; grid-column: 2; grid-row: 1; min-width: 64px; }
.ch-y span, .ch-x span {
    position: absolute; font-size: 11px; color: var(--text-muted);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ch-y span { left: 0; transform: translateY(-50%); }
.ch-x { position: relative; grid-column: 1; grid-row: 2; height: 18px; margin-top: 8px; }
.ch-x span { transform: translateX(-50%); }
.ch-x span.is-first { transform: none; }
.ch-x span.is-last { transform: translateX(-100%); }
@media (max-width: 576px) {
    .ch-plot { height: 200px; }
    .chart-wrapper { padding: 16px; }
    .chart-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; width: 100%; justify-content: space-between; }
    .chart-stats dt { font-size: 10px; letter-spacing: .3px; }
    .chart-stats dd { font-size: 13px; }
}

/* ===== Hizli hesaplayici ===== */
.mini-conv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mini-field {
    display: flex; align-items: center;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 0 14px 0 0;
    transition: border-color var(--duration), box-shadow var(--duration);
}
.mini-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.mini-field input {
    background: none; border: 0; outline: none; color: var(--text-primary);
    font: 700 20px/1 inherit; font-family: inherit;
    width: 140px; padding: 12px 14px; font-variant-numeric: tabular-nums;
}
.mini-field input[aria-invalid="true"] { color: var(--red); }
.mini-unit { color: var(--text-muted); font-weight: 600; }
.mini-eq { color: var(--text-muted); font-size: 20px; }
.mini-out { display: flex; flex-direction: column; }
.mini-out strong { font-size: 24px; font-weight: 800; color: var(--accent-light); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.mini-out span { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip .ico { margin-left: 4px; }

/* ===== Benzer varliklar ===== */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.link-more { font-size: 13px; font-weight: 600; white-space: nowrap; }
.rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rel-item {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 10px 12px;
}
.rel-item .coin-cell { min-width: 0; flex: 1 1 auto; }
.rel-item .coin-name { font-size: 13px; }
.rel-price { margin-left: auto; white-space: nowrap; }
.rel-item .change-badge { min-width: 66px; }
@media (max-width: 400px) { .rel-list { grid-template-columns: 1fr; } }

/* ===== SSS ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-of-type { border-bottom: 0; }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 14px 28px 14px 0; position: relative;
    font-weight: 600; color: var(--text-primary); font-size: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px; font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0 0 16px; }

/* ===== Dugmeler ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px; border-radius: var(--r-full);
    border: 1px solid var(--border-hover);
    color: var(--text-primary) !important; font-weight: 600; font-size: 14px;
    transition: border-color var(--duration), background var(--duration);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--table-hover); }
button.btn-primary-custom { cursor: pointer; }
.answer-line { font-size: 16px; color: var(--text-secondary); margin: -8px 0 20px; position: relative; }
.answer-line strong { color: var(--text-primary); }

/* ===== 404 aramasi ===== */
.nf-search { display: flex; gap: 8px; max-width: 420px; margin: -28px auto 0; padding: 0 0 40px; }
.nf-search .form-control {
    background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
    border-radius: var(--r-full); padding: 10px 16px;
}
.nf-search .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ===== Cevirici ===== */
.calculator-box .form-control[aria-invalid="true"] { border-color: var(--red); }
@media (max-width: 576px) {
    .calculator-box { padding: 20px; }
    .conv-field, .conv-form .btn-primary-custom { flex: 1 1 100%; }
    .conv-value { font-size: 24px; }
}

/* ===== Footer ===== */
@media (max-width: 767px) {
    .site-footer a { padding: 7px 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ===== Hareket azaltma ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Istatistik satiri olmayan baslikta (borsa) alt bosluk kalmasin. */
.coin-header .coin-title:last-child { margin-bottom: 0; }

/* ===== Para birimi secimi ===== */
html:not([data-cur="USD"]) .v-usd,
html[data-cur="USD"] .v-try { display: none; }
.cur-switch {
    display: inline-flex; padding: 3px; gap: 2px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--r-full);
}
.cur-switch button {
    all: unset; cursor: pointer;
    padding: 6px 12px; border-radius: var(--r-full);
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    transition: background var(--duration), color var(--duration);
}
.cur-switch button:hover { color: var(--text-primary); }
.cur-switch button[aria-pressed="true"] { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.cur-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 576px) {
    .table-tools { flex-wrap: wrap; }
    .table-tools .filter-box { flex: 1 1 200px; }
}

/* ===== Izleme listesi ===== */
.col-fav { width: 36px; padding-left: 12px !important; padding-right: 0 !important; }
.fav-btn {
    all: unset; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    color: var(--text-muted);
    transition: color var(--duration), background var(--duration);
}
.fav-btn:hover { color: var(--yellow); background: rgba(234,179,8,.1); }
.fav-btn:focus-visible { outline: 2px solid var(--accent); }
.fav-btn[aria-pressed="true"] { color: var(--yellow); }
.fav-btn[aria-pressed="true"] .ico { fill: currentColor; }
.fav-btn .ico { width: 16px; height: 16px; }
.title-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.title-row .symbol-badge { margin-top: 0; }
.fav-pill {
    width: auto; height: auto; gap: 5px;
    padding: 3px 10px; border-radius: var(--r-full);
    border: 1px solid var(--border-hover); font-size: 12px; font-weight: 600;
}
.fav-pill::after { content: attr(data-label); }
.fav-pill .ico { width: 13px; height: 13px; }
.favs-section { margin-bottom: 24px; }
.favs-section .section-head { margin-bottom: 10px; }
.favs-section .section-label { margin: 0; }
.favs-section .section-label .ico { color: var(--yellow); }
.rel-item .fav-btn { flex-shrink: 0; }

/* ===== Borsa fiyat karsilastirmasi ===== */
.cmp-box {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px;
}
.cmp-box .muted-sm strong { color: var(--text-primary); }
.cmp-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.cmp-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; font-size: 13px; }
.cmp-row a { color: var(--text-primary); font-weight: 600; }
.cmp-row.is-best a::after { content: 'en uygun'; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--green); }
.cmp-bar { height: 6px; background: var(--bg-base); border-radius: var(--r-full); overflow: hidden; }
.cmp-bar > span { display: block; height: 100%; min-width: 3px; background: var(--grad-accent); border-radius: inherit; }
.cmp-row.is-best .cmp-bar > span { background: var(--green); }
.favs-section .section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-muted); display: flex; align-items: center; gap: 6px;
}

/* ===== Kategori tanitimi ===== */
.cat-intro { padding: 0 24px 16px; max-width: 90ch; color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.cat-intro p { margin: 0 0 8px; }
@media (max-width: 576px) { .cat-intro { padding: 0 16px 12px; font-size: 13px; } }

/* ===== Cerez rizasi ===== */
.consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1050;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--border-hover);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    padding: 16px 20px;
}
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 380px; font-size: 13px; color: var(--text-secondary); }
.consent-text p { margin: 0 0 4px; }
.consent-text strong { color: var(--text-primary); }
.consent-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn-ghost { cursor: pointer; background: none; font-family: inherit; }
.btn-ghost.is-strong { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-ghost.is-strong:hover { background: var(--accent-light); }
.footer-link-btn {
    all: unset; cursor: pointer; display: block; padding: 5px 0;
    color: var(--text-muted); font-size: 13px;
}
.footer-link-btn:hover { color: var(--accent-light); }
.footer-link-btn:focus-visible { outline: 2px solid var(--accent); }
@media (max-width: 576px) {
    .consent { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
    .consent-actions { width: 100%; }
    .consent-actions .btn-ghost { flex: 1; }
}

/* ===== Ortaklik baglantisi ===== */
.aff-link {
    display: inline-flex; align-items: center; gap: 3px; margin-left: 6px;
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full);
    border: 1px solid var(--border-hover); color: var(--text-secondary) !important;
}
.aff-link:hover { border-color: var(--accent); color: var(--accent-light) !important; }
