/* Crypto Data Blocks — базовые стили */

.cdb-up   { color: #00875a; font-weight: 600; }
.cdb-down { color: #de350b; font-weight: 600; }

.cdb-wrap { max-width: 900px; margin: 0 auto; padding: 20px 15px 60px; }

/* --- Таблицы --- */
.cdb-table-styled { width: 100%; border-collapse: collapse; font-size: 13px; }
.cdb-table-styled th {
    text-align: left; padding: 10px 8px; border-bottom: 2px solid #eee;
    font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600;
}
.cdb-table-styled td { padding: 10px 8px; border-bottom: 1px solid #f2f2f2; vertical-align: middle; }
.cdb-table-styled a { color: inherit; text-decoration: none; }
.cdb-table-styled a:hover { text-decoration: underline; }

/* --- Live table header --- */
.cdb-live-wrap { margin-bottom: 30px; }
.cdb-live-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cdb-live-title { font-size: 20px; margin: 0; }
.cdb-live-meta { font-size: 12px; color: #888; display: flex; align-items: center; gap: 6px; }
.cdb-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #00875a; display: inline-block; animation: cdb-pulse 1.5s infinite; }
@keyframes cdb-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* --- Pagination --- */
.cdb-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.cdb-page-btn { background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 6px 12px; font-size: 12px; cursor: pointer; }
.cdb-page-btn:hover:not(:disabled) { background: #eee; }
.cdb-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.cdb-page-info { font-size: 12px; color: #888; }

/* --- Converter --- */
.cdb-converter-wrap { border: 1px solid #eee; border-radius: 8px; padding: 18px; margin-bottom: 30px; }
.cdb-converter-title { margin: 0 0 12px; }
.cdb-converter-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cdb-converter-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.cdb-converter-field input, .cdb-converter-field select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.cdb-converter-arrow { font-size: 18px; color: #aaa; padding-bottom: 8px; }
.cdb-converter-result { margin-top: 14px; font-size: 16px; font-weight: 600; }

/* --- Sidebar widget --- */
.cdb-sidebar-widget { border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.cdb-widget-header { background: #111; color: #fff; padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.cdb-widget-row { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 12px; border-bottom: 1px solid #f2f2f2; }

/* --- Top movers --- */
.cdb-movers-wrap { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.cdb-movers-col { flex: 1; min-width: 240px; }
.cdb-movers-title { font-size: 14px; margin: 0 0 8px; }
.cdb-mover-item { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f2f2f2; font-size: 12px; text-decoration: none; color: inherit; }

/* --- Global stats --- */
.cdb-global-stats-wrap { margin-bottom: 30px; }
.cdb-global-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cdb-global-card { border: 1px solid #eee; border-radius: 8px; padding: 12px 14px; }
.cdb-global-card span { display: block; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 4px; }
.cdb-global-card strong { font-size: 18px; }

/* --- Trending --- */
.cdb-trending-wrap { margin-bottom: 30px; }
.cdb-trending-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cdb-trending-item { display: flex; align-items: center; gap: 6px; border: 1px solid #eee; border-radius: 20px; padding: 6px 12px; font-size: 12px; text-decoration: none; color: inherit; }
.cdb-trending-item img { width: 18px; height: 18px; border-radius: 50%; }
.cdb-trending-rank { color: #aaa; }

/* --- Categories --- */
.cdb-categories-wrap { margin-bottom: 30px; }

/* --- Coin detail page --- */
.cdb-breadcrumb a { color: #888; text-decoration: none; font-size: 13px; }
.cdb-coin-header { display: flex; align-items: center; gap: 16px; margin: 10px 0 20px; }
.cdb-coin-logo { width: 56px; height: 56px; border-radius: 50%; }
.cdb-coin-title { margin: 0 0 4px; font-size: 26px; display: flex; align-items: center; gap: 8px; }
.cdb-coin-symbol { font-size: 14px; color: #999; font-weight: 400; }
.cdb-coin-rank { font-size: 11px; background: #f2f2f2; color: #666; padding: 2px 8px; border-radius: 10px; }
.cdb-coin-price { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.cdb-coin-price span { font-size: 14px; }

.cdb-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 25px; }
.cdb-stat { border: 1px solid #eee; border-radius: 8px; padding: 10px 12px; }
.cdb-stat span { display: block; font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 4px; }
.cdb-stat strong { font-size: 15px; }
.cdb-stat small { font-size: 11px; font-weight: 400; }

.cdb-chart-block { margin-bottom: 30px; }
.cdb-chart-range-switch { display: flex; gap: 6px; margin-bottom: 10px; }
.cdb-range-btn { background: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.cdb-range-btn.cdb-active { background: #111; color: #fff; border-color: #111; }
.cdb-chart-placeholder { padding: 20px; text-align: center; color: #999; border: 1px dashed #ddd; border-radius: 8px; }

.cdb-coin-description { margin-bottom: 25px; }
.cdb-desc-fallback-note { font-size: 12px; color: #999; font-style: italic; }
.cdb-desc-text { font-size: 14px; line-height: 1.7; color: #333; }

.cdb-coin-links ul { list-style: none; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.cdb-coin-links a { font-size: 13px; text-decoration: none; color: #0073aa; }

.cdb-coin-categories { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.cdb-category-tag { background: #f2f2f2; color: #555; font-size: 11px; padding: 4px 10px; border-radius: 12px; }

.cdb-coin-price-inline { font-size: 13px; }

/* --- Admin --- */
.cdb-settings-wrapper .form-table th { width: 220px; }
