/* Crypto Analysis tool — scoped styles matching FreeTools theme */

.crypto-analysis-header {
    overflow: hidden;
    padding-top: 0 !important;
}

.crypto-analysis-header > .container {
    padding-top: 2rem;
}

.crypto-price-ticker {
    background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.crypto-price-ticker::before,
.crypto-price-ticker::after {
    content: '';
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 3rem;
    z-index: 1;
}

.crypto-price-ticker::before {
    background: linear-gradient(90deg, #0f172a, transparent);
    left: 0;
}

.crypto-price-ticker::after {
    background: linear-gradient(270deg, #0f172a, transparent);
    right: 0;
}

.crypto-price-ticker-track {
    animation: crypto-ticker-scroll 40s linear infinite;
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    width: max-content;
}

.crypto-price-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes crypto-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.crypto-price-ticker-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #e2e8f0;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.8125rem;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.crypto-price-ticker-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(129, 140, 248, 0.45);
    color: #fff;
}

.crypto-price-ticker-item.is-active {
    background: rgba(79, 70, 229, 0.35);
    border-color: rgba(129, 140, 248, 0.6);
}

.crypto-price-ticker-icon {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.crypto-price-ticker-name {
    font-weight: 700;
}

.crypto-price-ticker-price {
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.crypto-price-ticker-change.is-up {
    color: #4ade80;
    font-weight: 600;
}

.crypto-price-ticker-change.is-down {
    color: #f87171;
    font-weight: 600;
}

.crypto-header-main {
    align-items: center !important;
}

.crypto-coin-avatar {
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #fff);
    border: 2px solid #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
    display: flex;
    flex-shrink: 0;
    height: 64px;
    justify-content: center;
    overflow: hidden;
    width: 64px;
}

.crypto-coin-avatar img {
    height: 44px;
    object-fit: contain;
    width: 44px;
}

.crypto-coin-avatar--multi {
    gap: 0.15rem;
    padding: 0.35rem;
    width: auto;
}

.crypto-coin-avatar--multi img {
    height: 28px;
    margin-left: -0.35rem;
    width: 28px;
}

.crypto-coin-avatar--multi img:first-child {
    margin-left: 0;
}

.crypto-live-price-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crypto-live-price {
    color: var(--ft-text);
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.crypto-live-change {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    gap: 0.1rem;
    padding: 0.15rem 0.55rem;
}

.crypto-live-change.is-up {
    background: #dcfce7;
    color: #15803d;
}

.crypto-live-change.is-down {
    background: #ffe4e6;
    color: #be123c;
}

.crypto-live-tag {
    color: var(--ft-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.crypto-risk-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.75rem;
    color: #92400e;
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
    text-align: center;
}

.crypto-fear-meter {
    height: 0.75rem;
    border-radius: 999px;
    background: var(--ft-border);
    overflow: hidden;
}

.crypto-fear-meter-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
}

.crypto-signal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
}

.crypto-signal-long {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.crypto-signal-short {
    background: #ffe4e6;
    color: #be123c;
    border: 1px solid #fda4af;
}

.crypto-signal-neutral {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.crypto-recommendation-box {
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1.15rem 1.25rem;
}

.crypto-recommendation-box.is-best-long {
    border-color: #86efac;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.crypto-recommendation-box.is-best-short {
    border-color: #fda4af;
    background: linear-gradient(180deg, #fff1f2 0%, #fff 100%);
}

.crypto-recommendation-box.is-best-hold {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.crypto-recommendation-label {
    color: var(--ft-primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.crypto-recommendation-headline {
    color: var(--ft-text);
}

.crypto-action-options {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .crypto-action-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.crypto-action-card {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem;
}

.crypto-action-card.is-active {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.crypto-action-card.crypto-action-suitable.is-active {
    border-color: #86efac;
}

.crypto-action-card.crypto-action-moderate.is-active {
    border-color: #fcd34d;
}

.crypto-action-card.crypto-action-unsuitable.is-active {
    border-color: #cbd5e1;
}

.crypto-action-card-top {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.crypto-action-card-title {
    align-items: center;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    gap: 0.4rem;
}

.crypto-action-verdict {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}

.crypto-action-suitable .crypto-action-verdict {
    background: #dcfce7;
    color: #15803d;
}

.crypto-action-moderate .crypto-action-verdict {
    background: #fef3c7;
    color: #b45309;
}

.crypto-action-unsuitable .crypto-action-verdict {
    background: #f1f5f9;
    color: #64748b;
}

.crypto-action-score-wrap {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.crypto-action-score-bar {
    background: #eef2ff;
    border-radius: 999px;
    flex: 1;
    height: 0.45rem;
    overflow: hidden;
}

.crypto-action-score-fill {
    background: var(--ft-primary);
    border-radius: 999px;
    height: 100%;
}

.crypto-action-suitable .crypto-action-score-fill {
    background: #16a34a;
}

.crypto-action-moderate .crypto-action-score-fill {
    background: #d97706;
}

.crypto-action-unsuitable .crypto-action-score-fill {
    background: #94a3b8;
}

.crypto-action-score {
    color: var(--ft-muted);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 2.2rem;
    text-align: right;
}

.crypto-action-reason {
    color: var(--ft-muted);
    flex: 1;
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.crypto-stat-box {
    background: var(--ft-bg);
    border: 1px solid var(--ft-border);
    border-radius: 0.75rem;
    padding: 0.875rem;
    text-align: center;
}

.crypto-stat-label {
    color: var(--ft-muted);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.crypto-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.crypto-check-item {
    align-items: flex-start;
    background: var(--ft-bg);
    border: 1px solid var(--ft-border);
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.75rem;
}

.crypto-check-pass {
    color: #10b981;
    font-weight: 700;
}

.crypto-check-fail {
    color: var(--ft-muted);
}

.crypto-chart-wrap {
    border-radius: 1rem;
    min-height: 520px;
    overflow: hidden;
}

.crypto-news-card {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.crypto-news-card:hover {
    border-color: var(--ft-primary) !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
    color: inherit;
}

.crypto-news-source {
    color: var(--ft-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.crypto-table-change-up {
    color: #10b981;
    font-weight: 600;
}

.crypto-table-change-down {
    color: #ef4444;
    font-weight: 600;
}

.crypto-subnav-track {
    align-items: center;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.35rem;
}

.crypto-subnav-link {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ft-muted);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.45rem;
    line-height: 1;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.crypto-subnav-link i {
    font-size: 1rem;
    line-height: 1;
}

.crypto-subnav-link:hover {
    background: var(--ft-primary-light);
    color: var(--ft-primary);
}

.crypto-subnav-link.is-active {
    background: var(--ft-primary);
    border-color: var(--ft-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
    color: #fff;
}

.crypto-subnav-link.is-active:hover {
    background: var(--ft-primary-dark);
    border-color: var(--ft-primary-dark);
    color: #fff;
}

@media (max-width: 575.98px) {
    .crypto-subnav-track {
        display: flex;
        width: 100%;
    }

    .crypto-subnav-link {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        padding-inline: 0.65rem;
    }

    .crypto-subnav-link span {
        font-size: 0.8125rem;
    }
}


.crypto-blog-card {
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.crypto-blog-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

.crypto-blog-card-link {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.crypto-blog-card-link:hover {
    color: inherit;
}

.crypto-blog-card-image-wrap {
    aspect-ratio: 16 / 9;
    background: var(--ft-bg);
    overflow: hidden;
}

.crypto-blog-card-image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.crypto-blog-card-placeholder {
    align-items: center;
    color: var(--ft-primary);
    display: flex;
    font-size: 2rem;
    justify-content: center;
}

.crypto-blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1.1rem 1.15rem;
}

.crypto-blog-meta {
    color: var(--ft-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.75rem;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.crypto-blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.crypto-blog-card-excerpt {
    color: var(--ft-muted);
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.crypto-blog-read-more {
    color: var(--ft-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.crypto-blog-hero {
    border-radius: 1rem;
    overflow: hidden;
}

.crypto-blog-hero-image {
    display: block;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.crypto-blog-content {
    color: var(--ft-text);
    font-size: 1rem;
    line-height: 1.75;
}

.crypto-blog-content p {
    margin-bottom: 1rem;
}

.crypto-blog-content h2,
.crypto-blog-content h3 {
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.crypto-blog-source-box {
    background: var(--ft-bg);
    border: 1px solid var(--ft-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.crypto-blog-related-link {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
}

.crypto-blog-related-link:hover {
    color: var(--ft-primary);
}

.crypto-blog-related-thumb {
    border-radius: 0.5rem;
    flex-shrink: 0;
    height: 56px;
    object-fit: cover;
    width: 56px;
}

