/* Asset Detail Page - Modernized and Fixed Styles */

/* Import brand master for consistency */
@import url('../brand-master.css');
@import url('../variables.css');

/* ===== PRICE HERO SECTION ===== */
.price-hero {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%);
    border: 2px solid rgba(255, 183, 0, 0.15);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 183, 0, 0.12);
}

.price-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 183, 0, 0.05) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

/* Price Hero Layout */
.price-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-main-section {
    flex: 1;
    min-width: 280px;
}

/* Price Section Header */
.price-section-header {
    margin-bottom: 0.75rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #A0AEC0;
}

/* Price Display Inline */
.price-display-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.price-update-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.price-hero-value {
    font-size: 5.625rem;
    font-weight: 800;
    color: #2D3748;
    line-height: 1;
    letter-spacing: -0.03em;
    flex: 0 0 auto;
}

/* Change Indicator */
.change-indicator {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    border-radius: 18px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex: 0 0 auto;
    white-space: nowrap;
}

.change-indicator.positive {
    border: 1.5px solid rgba(40, 167, 69, 0.2);
}

.change-indicator.negative {
    border: 1.5px solid rgba(220, 53, 69, 0.2);
}

.change-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
}

.change-indicator.positive .change-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.change-indicator.negative .change-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.change-values {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.change-percent {
    font-size: 1.5rem;
    font-weight: 700;
}

.change-indicator.positive .change-percent {
    color: #28a745;
}

.change-indicator.negative .change-percent {
    color: #dc3545;
}

.change-amount {
    font-size: 1.125rem;
    color: #718096;
    font-weight: 500;
}

/* Price Details */
.price-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.price-detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #A0AEC0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2D3748;
}

.detail-value.bid {
    color: #28a745;
}

.detail-value.ask {
    color: #dc3545;
}

.detail-value.spread {
    color: #FF9500;
}

.price-detail-separator {
    width: 1px;
    height: 40px;
    background: #E2E8F0;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #28a745;
}

/* Update Time */
.update-time {
    text-align: right;
}

.time-primary {
    font-size: 1rem;
    font-weight: 700;
    color: #2D3748;
}

.time-secondary {
    font-size: 0.75rem;
    color: #A0AEC0;
}

/* Change badges with brand colors */
.change-badge {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.change-positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.change-negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.change-badge-hero {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 16px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 183, 0, 0.2);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.stat-icon-wrapper.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-icon-wrapper.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.stat-icon-wrapper.warning {
    background: var(--gradient-gold-subtle);
    color: var(--gold-dark);
}

.stat-icon-wrapper.primary {
    background: var(--gradient-gold-subtle);
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== CHART SECTION ===== */
.chart-wrapper {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.chart-period-selector {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    background: var(--bg-gold-lighter);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.chart-period-selector button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chart-period-selector button.active,
.chart-period-selector button:hover {
    background: var(--bg-primary);
    color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.15);
}

/* ===== ACTION BUTTONS ===== */
.icon-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 0, 0.2);
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.icon-action-btn:hover {
    background: var(--gradient-gold-subtle);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.icon-action-btn.active {
    background: var(--gradient-gold);
    color: var(--text-white);
    border-color: transparent;
}

.icon-action-btn-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

/* Badge on icon button */
.icon-action-btn .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    min-width: 18px;
}

/* ===== ASSET HEADER ===== */
.asset-header-wrapper {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 183, 0, 0.1);
}

.asset-icon {
    background: var(--gradient-gold-subtle) ;
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.asset-icon-sm {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.asset-icon-lg {
    width: 72px;
    height: 72px;
    font-size: 2.5rem;
}

/* ===== MODERN CARDS ===== */
.modern-card {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 183, 0, 0.2);
}

/* ===== PROVIDER COMPARISON TABLE ===== */
.provider-comparison {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.provider-comparison h5 {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-gold-light);
    padding-bottom: 0.75rem;
}

.provider-comparison .table thead th {
    background-color: var(--bg-gold-lighter);
    border-bottom: 2px solid rgba(255, 183, 0, 0.1);
    color: var(--text-primary);
}

.provider-comparison .table tbody tr:hover {
    background-color: var(--bg-gold-lighter);
}

/* ===== COMMENT SECTION ===== */
.comment-item {
    background: var(--bg-primary);
    border: 1px solid rgba(255, 183, 0, 0.08);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: var(--transition-base);
}

.comment-item:hover {
    border-color: rgba(255, 183, 0, 0.2);
    box-shadow: var(--shadow-sm);
}

/* Reply Form */
.reply-form-container {
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-form-container .card {
    border-color: var(--primary-color) ;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.reply-form-container textarea {
    resize: vertical;
    min-height: 80px;
}

/* Reply Styles */
.replies-container {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid rgba(255, 183, 0, 0.3);
}

.replies-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.reply-item {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    animation: fadeIn 0.3s ease-out;
    border-left: 3px solid var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reply-item:hover {
    background: white;
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

/* User Avatars */
.user-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold) ;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white) ;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.3);
    border: 2px solid var(--bg-primary);
    position: relative;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--gradient-gold) ;
    color: var(--text-white) ;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Fix user avatars with old gradient */
.user-avatar[data-letter] {
    background: var(--gradient-gold) ;
    color: var(--text-white) ;
}

/* Admin/Moderator badges */
.user-avatar.is-admin::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #28a745;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

/* ===== ALERTS DROPDOWN ===== */
.alert-dropdown {
    width: 320px;
    max-height: 400px;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 0, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    background-color: #ffffff ; /* Override dark mode */
    color: #212529 ; /* Ensure text is dark */
}

.alert-dropdown .dropdown-header {
    background: var(--gradient-gold-subtle);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 183, 0, 0.1);
}

.alert-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    padding: var(--spacing-sm);
}

.alert-dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    background-color: transparent;
    color: #212529 ; /* Ensure text is dark */
}

.alert-dropdown-item:hover {
    background: var(--bg-gold-lighter) ;
    color: #212529 ;
}

.alert-dropdown .dropdown-footer {
    background: var(--bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    color: #212529 ;
}

/* Override dark mode for all alert dropdown elements */
.alert-dropdown,
.alert-dropdown .dropdown-item,
.alert-dropdown .dropdown-header,
.alert-dropdown .dropdown-footer,
.alert-dropdown * {
    background-color: inherit ;
    color: #212529 ;
}

.alert-dropdown {
    background-color: #ffffff ;
}

/* Specific hover states */
.alert-dropdown .dropdown-item:hover,
.alert-dropdown .dropdown-item:focus {
    background-color: var(--bg-gold-lighter) ;
    color: #212529 ;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.floating-action-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.floating-action-group {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.floating-action-group.active {
    opacity: 1;
    transform: scale(1);
}

.floating-action-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.floating-action-main {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold) ;
    color: var(--text-white) ;
}

.floating-action-main i {
    transition: transform 0.3s ease;
}

.floating-action-main.active i {
    transform: rotate(45deg);
}

.floating-action-secondary {
    width: 48px;
    height: 48px;
    background: var(--bg-primary) ;
    color: var(--gold-primary) ;
    border: 2px solid var(--gold-primary) ;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 183, 0, 0.3);
}

/* ===== BREADCRUMB ===== */
/* Ensure breadcrumb is visible with proper spacing */
nav[aria-label="breadcrumb"] {
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #dee2e6;
    font-weight: 300;
    padding: 0 0.75rem;
}

.breadcrumb-item i {
    font-size: 0.875rem;
}

/* ===== SENTIMENT PILLS ===== */
.sentiment-pill {
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sentiment-pill-up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.sentiment-pill-down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.sentiment-pill-side {
    background: var(--bg-gold-lighter);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 183, 0, 0.2);
}

/* ===== PROGRESS BAR STYLING ===== */
.progress {
    overflow: hidden;
    display: flex;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
    font-weight: 600;
}

/* Ensure colors are properly applied */
.progress-bar.bg-success {
    background-color: #28a745 ;
}

.progress-bar.bg-secondary {
    background-color: #6c757d ;
}

.progress-bar.bg-danger {
    background-color: #dc3545 ;
}

/* ===== AUTO REFRESH INDICATOR ===== */
.auto-refresh-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
}

/* ===== AD ZONES - Softer styling ===== */
.ad-banner-header,
.ad-zone-full-width,
.modern-card[style*="background-color: #f8f9fa"] {
    background: var(--bg-gold-lighter) ;
    border: 1px solid rgba(255, 183, 0, 0.1) ;
}

/* ===== PROVIDER STATUS INDICATORS ===== */
.provider-status-online {
    background-color: #28a745;
}

.provider-status-offline {
    background-color: var(--text-muted);
}

.provider-status-error {
    background-color: var(--gold-primary);
}

/* ===== RELATED ASSETS ===== */
.hover-bg {
    transition: all 0.2s ease;
}

.hover-bg:hover {
    background-color: var(--bg-gold-lighter) ;
    transform: translateX(4px);
}

/* ===== STICKY SIDEBAR FIX ===== */
.sticky-top {
    position: sticky ;
    top: 80px;
}

/* ===== MOBILE AD ZONE ===== */
#mobileBottomAd {
    background: var(--bg-primary) ;
    border-top: 1px solid rgba(255, 183, 0, 0.1) ;
}

/* ===== REMOVE OLD INCONSISTENT COLORS ===== */
/* Override any hardcoded #f8f9fa backgrounds */
[style*="background-color: #f8f9fa"] {
    background-color: var(--bg-gold-lighter) ;
}

/* Price flash animation with brand color */
@keyframes priceFlash {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 183, 0, 0.2); }
    100% { background-color: transparent; }
}

/* Add smooth scroll behavior with offset for anchor links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Offset for sticky header */
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 767px) {
    .asset-header-wrapper {
        padding: var(--spacing-md);
    }

    .price-hero {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .price-hero-value {
        font-size: 4.375rem;
        line-height: 1.1;
    }
    
    .change-badge-hero {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .chart-wrapper {
        padding: 1.5rem;
    }
    
    .chart-period-selector {
        position: static;
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .chart-period-selector button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .auto-refresh-indicator {
        bottom: 70px;
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 575px) {
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.5rem;
    }

    .icon-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .alert-dropdown {
        width: 280px;
    }

    /* Price Hero Mobile Optimizations */
    .price-hero {
        padding: 1rem;
    }
    
    .price-hero-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .price-main-section {
        min-width: 100%;
    }
    
    .price-display-inline {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .price-hero-value {
        font-size: 3.4375rem;
    }
    
    .change-indicator {
        flex: 0 0 auto;
        padding: 0.625rem 1rem;
    }
    
    .change-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .change-percent {
        font-size: 1.25rem;
    }
    
    .change-amount {
        font-size: 1rem;
    }
    
    .change-percent {
        font-size: 1.25rem;
    }
    
    .change-amount {
        font-size: 1rem;
    }
    
    .price-details {
        width: 100%;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .detail-label {
        font-size: 0.65rem;
    }
    
    .detail-value {
        font-size: 0.9rem;
    }
    
    .price-detail-separator {
        height: 25px;
    }
    
    .price-update-section {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .live-indicator {
        padding: 0.375rem 0.625rem;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .status-text {
        font-size: 0.7rem;
    }
    
    .update-time {
        text-align: right;
    }
    
    .time-primary {
        font-size: 0.8rem;
    }
    
    .time-secondary {
        font-size: 0.65rem;
    }
    
    .change-badge-hero {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    /* Bid/Ask/Spread mobile layout */
    .price-bid-ask {
        flex: 1;
        min-width: 0;
    }
    
    .price-bid-ask .text-muted {
        font-size: 0.7rem;
        text-transform: uppercase;
    }
    
    .price-bid-ask .fw-semibold {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Update info mobile */
    .update-info {
        margin-top: 1rem;
    }
    
    .update-info .fw-semibold {
        font-size: 0.875rem;
    }
    
    .update-info .small {
        font-size: 0.7rem;
    }
    
    /* Stat cards on mobile */
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    /* Adjust for mobile sticky ad */
    body {
        padding-bottom: 120px;
    }
}

/* ========== Merged from asset-detail-fixed.css ========== */

/* Asset Detail Page - Fixed Styles for Production */

/* ===== ASSET HEADER FIXES ===== */
.asset-header-wrapper {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(255, 183, 0, 0.08);
}

/* Ensure asset icon displays properly */
.asset-icon {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%) ;
    border: 2px solid rgba(255, 183, 0, 0.15) ;
    border-radius: 20px ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    color: #FFB700 ;
    font-weight: 600 ;
    flex-shrink: 0 ;
}

.asset-icon i {
    display: inline-block ;
    line-height: 1 ;
    font-style: normal ;
}

/* Prevent text content from showing raw */
.asset-icon i::before {
    content: attr(data-icon) ;
}

/* Fix icon sizing in header */
.asset-header-wrapper .asset-icon-lg {
    width: 72px;
    height: 72px;
    font-size: 2.5rem;
}

/* ===== PRICE HERO FIXES ===== */
.price-hero {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF4E6 100%);
    border: 2px solid rgba(255, 183, 0, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 183, 0, 0.12);
}

/* Large price display */
.price-hero-value {
    font-size: 5.625rem;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

/* Currency suffix */
.price-hero-value .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #718096;
    margin-left: 0.5rem;
}

/* Change badges in hero */
.change-badge-hero {
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.change-badge-hero i {
    font-size: 1rem;
}

/* ===== STAT CARDS FIXES ===== */
.stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(255, 183, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 183, 0, 0.15);
    border-color: rgba(255, 183, 0, 0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ACTION BUTTONS FIXES ===== */
.btn-favorite-lg {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #A0AEC0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.btn-favorite-lg:hover {
    border-color: #FFB700;
    color: #FFB700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.2);
}

.btn-favorite-lg.active {
    background: #FFFFFF;
    border-color: #FFB700;
    color: #FFB700;
}

.btn-favorite-lg.active i {
    color: #FFB700;
}

.icon-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    color: #4A5568;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.icon-action-btn:hover {
    border-color: #CBD5E0;
    color: #2D3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== BREADCRUMB OVERRIDES ===== */
.modern-breadcrumb {
    background: #FFFFFF ;
    border: 1px solid rgba(255, 183, 0, 0.08) ;
    border-radius: 12px ;
    padding: 1rem 1.5rem ;
    margin-bottom: 1.5rem ;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) ;
}

.breadcrumb {
    margin-bottom: 0 ;
    background: transparent ;
}

.breadcrumb-item {
    display: flex ;
    align-items: center ;
}

.breadcrumb-item i {
    margin-right: 0.5rem ;
    color: inherit ;
}

.breadcrumb-item a {
    color: #718096 ;
    text-decoration: none ;
    font-weight: 500 ;
    transition: color 0.2s ease ;
    display: flex ;
    align-items: center ;
}

.breadcrumb-item a:hover {
    color: #FFB700 ;
}

.breadcrumb-item.active {
    color: #2D3748 ;
    font-weight: 600 ;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #CBD5E0 ;
    content: "›" ;
    padding: 0 0.75rem ;
}

/* ===== MOBILE RESPONSIVE FIXES ===== */
@media (max-width: 767px) {
    .asset-header-wrapper {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .asset-header-wrapper .asset-icon-lg {
        width: 48px;
        height: 48px;
        font-size: 1.75rem;
    }
    
    /* Price Hero optimizations */
    .price-hero {
        padding: 1.25rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .price-hero-value {
        font-size: 3.4375rem;
        margin-bottom: 0.5rem;
    }
    
    .price-hero-value .currency {
        font-size: 1.25rem;
    }
    
    .change-badge-hero {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-favorite-lg,
    .icon-action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    h1.h2 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* ===== PROVIDER COMPARISON TABLE FIXES ===== */
.provider-comparison {
    background: #FFFFFF;
    border: 1px solid rgba(255, 183, 0, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.provider-comparison .table {
    margin-bottom: 0;
}

.provider-comparison .table th {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
    border-bottom: 2px solid rgba(255, 183, 0, 0.15);
    font-weight: 600;
    color: #2D3748;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.provider-comparison .table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #F7FAFC;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: #F7FAFC;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.provider-badge.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* ===== COMMENT SECTION FIXES ===== */
.comments-section {
    background: #FFFFFF;
    border: 1px solid rgba(255, 183, 0, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
}

.comment-form-wrapper {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF8F0 100%);
    border: 1px solid rgba(255, 183, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== ENSURE FONTAWESOME ICONS DISPLAY ===== */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free" ;
    font-style: normal ;
    font-variant: normal ;
    text-rendering: auto ;
    -webkit-font-smoothing: antialiased ;
    display: inline-block ;
}

.fas {
    font-weight: 900 ;
}

.far {
    font-weight: 400 ;
}

/* Fix specific icon issues */
.fa-coins::before,
.fa-dollar-sign::before,
.fa-bitcoin::before,
.fa-chart-line::before,
.fa-home::before,
.fa-star::before,
.fa-share-nodes::before,
.fa-bell::before {
    display: inline-block;
}

/* Fix Font Awesome 6 icons */
.fas.fa-star::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.far.fa-star::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.fa-share-nodes::before {
    content: "\f1e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-bell::before {
    content: "\f0f3";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-chart-line::before {
    content: "\f201";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.fa-home::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.asset-icon,
.breadcrumb-item {
    visibility: visible ;
}

/* Hero section icon fix */
.asset-header-wrapper .asset-icon i[class*="fa-"] {
    font-family: "Font Awesome 6 Free" ;
    font-weight: 900 ;
    font-style: normal ;
}