.coin-detail-page {
    padding: 30px 0;
}

.coin-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.coin-detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coin-hero-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 50%, #56ccf2 100%);
    border-radius: 20px;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(17, 153, 142, 0.3);
}

.coin-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.coin-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    align-items: center;
}

.coin-hero-logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: white;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.coin-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coin-hero-info {
    flex: 1;
}

.coin-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-hero-symbol {
    font-size: 18px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

.coin-hero-url {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.coin-hero-url a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.coin-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.coin-website-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: white;
    color: #11998e;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.coin-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: #11998e;
}

.coin-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.coin-share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.coin-stats-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.coin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.coin-stat-item {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #f8fff8 0%, #f0fdf4 100%);
    border-radius: 16px;
    border: 1px solid #e8f5e9;
    transition: all 0.3s;
}

.coin-stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.15);
}

.coin-stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.coin-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.coin-stat-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.coin-content-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.coin-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-section-title::before {
    content: '';
    width: 5px;
    height: 24px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 3px;
}

.coin-detail-content {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}

.coin-detail-description-plain {
    white-space: pre-line;
    word-break: break-word;
}

.coin-detail-content p {
    margin-bottom: 16px;
}

.coin-detail-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 24px 0 12px;
}

.coin-detail-content ul {
    padding-left: 20px;
    margin: 16px 0;
}

.coin-detail-content li {
    margin-bottom: 8px;
    color: #555;
}

.coin-tags-section {
    margin-top: 24px;
}

.coin-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coin-tag {
    padding: 8px 18px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    color: #11998e;
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    border: 1px solid #c8e6c9;
    transition: all 0.3s;
}

.coin-tag:hover {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
}

.coin-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coin-sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.coin-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.coin-quick-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coin-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f0f0f0;
}

.coin-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.coin-info-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.coin-info-value {
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
}

.coin-rating-box {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: 16px;
    border: 1px solid #ffeaa7;
}

.coin-rating-score {
    font-size: 48px;
    font-weight: 800;
    color: #f39c12;
    line-height: 1;
    margin-bottom: 8px;
}

.coin-rating-label {
    font-size: 14px;
    color: #e67e22;
    font-weight: 600;
}

.coin-back-section {
    margin-top: 24px;
}

.coin-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(17, 153, 142, 0.3);
}

.coin-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(17, 153, 142, 0.4);
    color: white;
}

.coin-related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.coin-related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fff8;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.coin-related-item:hover {
    background: #e8f5e9;
    border-color: #11998e;
    transform: translateX(4px);
}

.coin-related-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: white;
    padding: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.coin-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.coin-related-info {
    flex: 1;
    min-width: 0;
}

.coin-related-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coin-related-meta {
    font-size: 12px;
    color: #999;
}

@media (max-width: 1024px) {
    .coin-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .coin-detail-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .coin-detail-sidebar {
        display: none !important;
    }
    
    .coin-hero-card {
        padding: 28px 20px;
    }
    
    .coin-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .coin-hero-title {
        font-size: 24px;
        flex-direction: column;
    }
    
    .coin-hero-actions {
        justify-content: center;
    }
    
    .coin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .coin-stat-item {
        padding: 16px 10px;
    }
    
    .coin-stat-value {
        font-size: 20px;
    }
    
    .coin-stat-label {
        font-size: 11px;
    }
    
    .coin-stats-card {
        margin-top: 24px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .coin-content-card,
    .coin-sidebar-widget {
        padding: 24px;
        border-radius: 16px;
    }
    
    .coin-related-section {
        display: none !important;
    }
    
    .coin-detail-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .coin-detail-main {
        order: 1;
    }
    
    .coin-detail-sidebar {
        order: 2;
        display: flex;
        flex-direction: column;
    }
    
    .coin-back-section {
        margin-top: 16px;
    }
}

@media (min-width: 768px) {
    .sidebar-card {
        background: white;
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        border: 1px solid #f0f0f0;
    }
    
    .sidebar-title {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .sidebar-exchange-item {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 12px;
        border-radius: 12px;
        background: #f8f9fa;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .sidebar-exchange-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-exchange-item:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateX(4px);
    }
    
    .sidebar-exchange-item:hover .sidebar-exchange-name,
    .sidebar-exchange-item:hover .sidebar-exchange-desc,
    .sidebar-exchange-item:hover .sidebar-exchange-rating {
        color: white;
    }
    
    .sidebar-exchange-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: white;
        padding: 6px;
        flex-shrink: 0;
    }
    
    .sidebar-exchange-info {
        flex: 1;
        min-width: 0;
    }
    
    .sidebar-exchange-name {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a2e;
        margin-bottom: 2px;
        transition: color 0.3s;
    }
    
    .sidebar-exchange-desc {
        font-size: 11px;
        color: #888;
        line-height: 1.4;
        transition: color 0.3s;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .sidebar-exchange-rating {
        font-size: 14px;
        font-weight: 700;
        color: #10b981;
        flex-shrink: 0;
        transition: color 0.3s;
    }
    
    .sidebar-flash-item {
        padding: 12px;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
        margin-bottom: 8px;
        background: #f8f9fa;
    }
    
    .sidebar-flash-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-flash-item:hover {
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        transform: translateX(4px);
    }
    
    .sidebar-flash-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .sidebar-flash-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 10px;
        font-weight: 600;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .sidebar-flash-title {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a2e;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.4;
        flex: 1;
        min-width: 0;
    }
    
    .sidebar-flash-item:hover .sidebar-flash-title {
        color: #667eea;
    }
    
    .sidebar-flash-content {
        font-size: 11px;
        color: #888;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .sidebar-article-item {
        padding: 14px;
        border-radius: 12px;
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.3s;
        border: 1px solid #f0f0f0;
    }
    
    .sidebar-article-item:last-child {
        margin-bottom: 0;
    }
    
    .sidebar-article-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        border-color: #667eea;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    }
    
    .sidebar-article-title {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.4;
    }
    
    .sidebar-article-item:hover .sidebar-article-title {
        color: #667eea;
    }
    
    .sidebar-article-summary {
        font-size: 12px;
        color: #666;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .sidebar-article-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .sidebar-article-category {
        font-size: 11px;
        color: #667eea;
        font-weight: 600;
        background: rgba(102, 126, 234, 0.1);
        padding: 4px 10px;
        border-radius: 8px;
    }
    
    .sidebar-article-views {
        font-size: 11px;
        color: #888;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .coin-related-section,
    .coin-quick-info-section {
        display: none;
    }
}
