.coins-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.coins-header {
    text-align: center;
    margin-bottom: 40px;
}
.coins-header h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.coins-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.coins-search {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}
.coins-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}
.coins-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.coins-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}
.coins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.coin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}
.coin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #667eea;
}
.coin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.coin-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.coin-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.coin-basic-info {
    flex: 1;
}
.coin-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.coin-symbol {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
}
.coin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.coin-stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}
.coin-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.coin-stat-label {
    font-size: 12px;
    color: #999;
}
.loading, .error, .no-data {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #999;
}
.error {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .coins-content-with-sidebar {
        display: block;
    }
    
    .coins-sidebar {
        display: none;
    }
    
    .coin-card {
        position: relative;
        overflow: visible;
    }
    
    .coin-website-icon {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 8px;
        font-size: 14px;
        text-decoration: none;
        z-index: 10;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .coins-header h1 {
        font-size: 32px;
    }
    .coins-header p {
        font-size: 16px;
    }
    .coins-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .coin-card {
        padding: 14px;
        border-radius: 12px;
    }
    .coin-card-header {
        flex-direction: row;
        text-align: left;
        gap: 10px;
        margin-bottom: 10px;
    }
    .coin-card-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .coin-name {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .coin-symbol {
        font-size: 11px;
    }
    .coin-stats {
        gap: 6px;
        margin-bottom: 10px;
    }
    .coin-stat-item {
        padding: 8px 6px;
        border-radius: 8px;
    }
    .coin-stat-value {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .coin-stat-label {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .coins-wrapper {
        max-width: 100%;
    }
    
    .coins-content-with-sidebar {
        display: flex;
        gap: 40px;
    }
    
    .coins-main-content {
        flex: 1;
        min-width: 0;
    }
    
    .coins-sidebar {
        width: 320px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .coins-header h1 {
        font-size: 52px;
    }
    
    .coins-search {
        max-width: 700px;
    }
    
    .coins-search-input {
        padding: 18px 24px 18px 56px;
        font-size: 17px;
    }
    
    .coins-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .coin-card {
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        transition: all 0.3s ease;
        position: relative;
        overflow: visible;
    }
    
    .coin-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .coin-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
        border-color: #667eea;
    }
    
    .coin-card:hover::before {
        opacity: 1;
    }
    
    .coin-website-icon {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 8px;
        font-size: 14px;
        text-decoration: none;
        z-index: 10;
        transition: all 0.3s;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .coin-website-icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .coin-card-header {
        gap: 14px;
        margin-bottom: 16px;
    }
    
    .coin-card-logo {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
        padding: 6px;
    }
    
    .coin-name {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .coin-symbol {
        font-size: 13px;
        color: #667eea;
        font-weight: 600;
    }
    
    .coin-stats {
        gap: 10px;
        margin-bottom: 0;
    }
    
    .coin-stat-item {
        padding: 10px 8px;
        border-radius: 10px;
        background: #f8f9fa;
    }
    
    .coin-stat-value {
        font-size: 15px;
        color: #1a1a2e;
        font-weight: 700;
    }
    
    .coin-stat-label {
        font-size: 11px;
        color: #888;
    }
    
    .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-tips {
        font-size: 14px;
        color: #666;
        line-height: 1.7;
    }
    
    .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;
    }
}
