/* ========================================
   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);

    --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);

    --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 ===== */
*, *::before, *::after { box-sizing: border-box; }

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: #c4b5fd; }

::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: rgba(255,255,255,.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(90deg, var(--bg-surface) 0%, rgba(99,102,241,.08) 50%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.promo-banner a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}
.promo-banner a:hover { color: var(--text-primary); }
.promo-banner img { border-radius: 6px; }

/* ===== 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 ===== */
.page-section { padding: 24px 0 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;
    position: sticky;
    top: 0;
}
.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); }

/* ===== DATATABLES OVERRIDE ===== */
.dataTables_wrapper .dataTables_filter { margin-bottom: 0; padding: 0 20px 16px; }
.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-full) !important;
    color: var(--text-primary) !important;
    padding: 10px 20px !important;
    font-size: 13px;
    width: 260px !important;
    transition: all var(--duration) var(--ease);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: none;
}
.dataTables_wrapper .dataTables_filter label { color: var(--text-muted); font-size: 13px; }
.dataTables_wrapper .dataTables_info { color: var(--text-muted) !important; font-size: 12px; padding: 12px 20px !important; }
.dataTables_wrapper .sorting::after, .dataTables_wrapper .sorting_asc::after, .dataTables_wrapper .sorting_desc::after { opacity: .4; }

/* ===== 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:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.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: rgba(255,255,255,.02);
}

/* ===== 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: rgba(255,255,255,.02);
    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 h5 {
    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);
    transform: translateX(3px);
}
.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; margin-right: 16px; }
    .main-navbar .nav-link { padding: 10px 8px !important; font-size: 12px; }
    .main-navbar .nav-link span { display: none; }
}

@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"] .promo-banner { background: linear-gradient(90deg, var(--bg-surface) 0%, rgba(99,102,241,.05) 50%, var(--bg-surface) 100%); }
[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; }
