/* ─── Crypto Page ─── */
.crypto-page {
    padding-bottom: 3rem;
}

.crypto-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
}

.crypto-result-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.crypto-name {
    font-weight: 500;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Ticker Badge ─── */
.crypto-ticker-badge {
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(27, 176, 135, 0.1);
    color: #1BB087;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ─── Stat Cards ─── */
.crypto-stat-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 12px);
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow, 0 2px 14px rgba(14, 30, 50, 0.08));
    transition: all 0.2s ease;
}

.crypto-stat-card:hover {
    box-shadow: var(--card-shadow-hover, 0 8px 28px rgba(14, 30, 50, 0.16));
}

.crypto-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.crypto-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark-color, #183354);
}

.crypto-stat-value small {
    font-size: 0.75rem;
    font-weight: 500;
}

.crypto-stat-small {
    font-size: 1rem;
}

/* ─── Chart Cards ─── */
.crypto-chart-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 12px);
    box-shadow: var(--card-shadow, 0 2px 14px rgba(14, 30, 50, 0.08));
}

.crypto-chart-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark-color, #183354);
}

.crypto-chart-container {
    position: relative;
    height: 350px;
}

/* ─── History Card ─── */
.crypto-history-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 12px);
    box-shadow: var(--card-shadow, 0 2px 14px rgba(14, 30, 50, 0.08));
}

.crypto-history-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark-color, #183354);
}

/* ─── Disclaimer ─── */
.crypto-disclaimer-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 12px);
    background: #fff8e1;
}

/* ─── Glossary ─── */
.crypto-glossary-card {
    border: 1px solid #e9ecef;
    border-radius: var(--card-radius, 12px);
    box-shadow: var(--card-shadow, 0 2px 14px rgba(14, 30, 50, 0.08));
}

.crypto-glossary-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark-color, #183354);
}

.glossary-item {
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 100%;
}

.glossary-term {
    font-size: 0.75rem;
    color: var(--veye-green);
    display: inline-block;
    margin-bottom: 4px;
}

.glossary-def {
    font-size: 0.72rem;
    color: #6c757d;
    line-height: 1.5;
}

.glossary-def code {
    font-size: 0.70rem;
    color: var(--primary-color);
    background-color: #e9ecef;
    padding: 1px 5px;
    border-radius: 4px;
}

/* ─── Search Bar ─── */
.crypto-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.crypto-search-wrapper {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
}

.crypto-search-icon {
    position: absolute;
    left: 14px;
    font-size: 0.92rem;
    color: #8a97a8;
    pointer-events: none;
}

.crypto-search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid #e1e6ed;
    border-radius: 10px;
    background: #fff;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    color: var(--primary-color, #0E1E32);
    outline: none;
    transition: border-color 0.2s ease;
}

.crypto-search-input:focus {
    border-color: var(--veye-green, #1BB087);
}

.crypto-search-input::placeholder {
    color: #b0b9c6;
}

.crypto-search-clear {
    position: absolute;
    right: 10px;
    color: #8a97a8;
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.crypto-search-clear:hover {
    background: #f0f3f7;
    color: #dc3545;
}

.crypto-search-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--veye-green, #1BB087);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.crypto-search-btn:hover {
    background: #15956e;
}

/* ─── Pagination ─── */
.crypto-pagination .page-link {
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color, #0E1E32);
    border: 1.5px solid #e2e6ea;
    margin: 0 4px;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.crypto-pagination .page-link:hover {
    background-color: var(--veye-green, #1BB087);
    border-color: var(--veye-green, #1BB087);
    color: #fff;
}

.crypto-pagination .page-item.disabled .page-link {
    background-color: transparent;
    color: #7a8a9a;
    border-color: #e2e6ea;
}

/* ─── Empty State ─── */
.crypto-empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    display: block;
    margin-bottom: 1rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .crypto-stat-value {
        font-size: 1rem;
    }

    .crypto-stat-small {
        font-size: 0.875rem;
    }

    .crypto-chart-container {
        height: 250px;
    }

    .crypto-name {
        max-width: 120px;
    }

    .crypto-search-bar {
        flex-direction: column;
    }

    .crypto-search-wrapper {
        max-width: 100%;
    }

    .crypto-search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .crypto-stat-card {
        padding: 0.75rem;
    }

    .crypto-stat-label {
        font-size: 0.7rem;
    }

    .crypto-stat-value {
        font-size: 0.9rem;
    }

    .crypto-chart-container {
        height: 200px;
    }
}
