* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;

/* Smooth page load animation */
body {
    animation: pageLoad 0.3s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
    --warning-color: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.last-update {
    font-size: 0.875rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    background: white;
}

.category-btn:hover {
    background: var(--light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-admin {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin:hover {
    background: var(--dark);
}

/* Search Bar */
.search-bar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.search-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.fa-search {
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-search {
    position: absolute;
    right: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.2s;
}

.clear-search:hover {
    color: var(--danger-color);
}

.btn-search {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: var(--primary-dark);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
}

.no-articles i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.no-articles p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;

/* Staggered article appearance */
.articles-grid .article-card {
    animation: articleFadeIn 0.5s ease-out backwards;
}

.articles-grid .article-card:nth-child(1) { animation-delay: 0.05s; }
.articles-grid .article-card:nth-child(2) { animation-delay: 0.1s; }
.articles-grid .article-card:nth-child(3) { animation-delay: 0.15s; }
.articles-grid .article-card:nth-child(4) { animation-delay: 0.2s; }
.articles-grid .article-card:nth-child(5) { animation-delay: 0.25s; }
.articles-grid .article-card:nth-child(6) { animation-delay: 0.3s; }
.articles-grid .article-card:nth-child(7) { animation-delay: 0.35s; }
.articles-grid .article-card:nth-child(8) { animation-delay: 0.4s; }
.articles-grid .article-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes articleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth all buttons */
button, .btn, a.btn-admin, a.btn-primary, .page-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, .btn:active, a.btn-admin:active, a.btn-primary:active, .page-btn:active {
    transform: scale(0.98);
}

/* Smooth all links */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}
    will-change: transform;
}

.article-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.article-card:active {
    transform: translateY(-2px) scale(1.005);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--light);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-image img.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.source {
    font-size: 0.75rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.category-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 500;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

.article-info {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.article-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-info {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    opacity: 0.8;
}

/* Admin Styles */
.admin-header {
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
}

.admin-content {
    padding: 2rem 0;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Live Update Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.live-indicator i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

.live-indicator.live {
    color: #10b981;
}

.live-indicator.live i {
    color: #10b981;
}

.live-indicator.checking {
    color: #f59e0b;
}

.live-indicator.checking i {
    color: #f59e0b;
    animation: spin 1s linear infinite;
}

    
    .update-notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .notification-content {
        flex-wrap: wrap;
        min-width: auto;
    }
    
    .btn-refresh {
        flex: 1;
    }
    
    .live-indicator {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    
    .new-articles-banner {
        top: 70px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .banner-content {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
    }
.live-indicator.updates {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.live-indicator.updates i {
    color: #3b82f6;
    animation: pulse 0.5s infinite;
}

.live-indicator.error {
    color: #ef4444;
}

.live-indicator.error i {
    color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* New Articles Banner */
.new-articles-banner {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.banner-content {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
}

.banner-content i {
    font-size: 1.125rem;
    animation: bounce 1s ease-in-out infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* New Article Highlight */
.new-article {
    animation: highlightNew 3s ease-out;
    position: relative;
}

.new-article::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes highlightNew {
    0% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
    }
    100% {
        box-shadow: var(--shadow);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categories {
        width: 100%;
    }

    .category-btn {
        flex: 1;
        justify-content: center;
    }

    .search-form {
        flex-direction: column;
    }

    .nav-content {
        flex-direction: column;
    }

    .admin-link {
        width: 100%;
    }

    .btn-admin {
        width: 100%;
        justify-content: center;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}

/* ===========================
   Market Prices Section Styles
   =========================== */
.market-prices-section {
    margin: 30px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
}

.market-prices-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-prices-section h2 i {
    font-size: 24px;
}

.market-subsection {
    margin-bottom: 30px;
}

.market-subsection h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #34495e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crypto-section h3 {
    color: #667eea;
}

.stocks-section h3 {
    color: #f5576c;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.price-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.price-symbol {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.price-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3px;
}

.price-code {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-change {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
}

.price-change.positive {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.price-change.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.price-value {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.price-chart {
    width: 100%;
    height: 80px !important;
    margin-top: 10px;
}

/* Loading animation for prices */
@keyframes pulsePrices {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.price-card.loading {
    animation: pulsePrices 1.5s ease-in-out infinite;
}

/* Live badge animation */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    margin-left: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Responsive for prices */
@media (max-width: 768px) {
    .prices-grid {
        grid-template-columns: 1fr;
    }
    
    .price-card {
        padding: 15px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .market-prices-section h2 {
        font-size: 24px;
    }
}

/* ===========================
   Live Prices Ticker Styles
   =========================== */
.prices-ticker {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ticker-label {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-content {
    flex: 1;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ticker-content::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.ticker-symbol {
    font-weight: 700;
    font-size: 13px;
}

.ticker-price {
    font-size: 15px;
    font-weight: 600;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.ticker-item.price-up .ticker-change {
    background: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.ticker-item.price-down .ticker-change {
    background: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.ticker-loading,
.ticker-error {
    padding: 8px 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-error {
    color: #ffeb3b;
}

/* Make price cards clickable */
.price-card {
    cursor: pointer;
    user-select: none;
}

.price-card:active {
    transform: translateY(-3px) scale(0.98);
}

/* Asset Detail Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.modal-asset-icon .price-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.modal-asset-info h2 {
    font-size: 28px;
    margin: 0 0 5px 0;
    color: #1f2937;
}

.modal-symbol {
    font-size: 16px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 1px;
}

.modal-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.modal-current-price {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -1px;
}

.modal-change {
    font-size: 20px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
}

.modal-change.positive {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.modal-change.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.modal-chart-container {
    margin-bottom: 30px;
    position: relative;
    height: 250px;
}

.modal-chart-container h3 {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-chart-container canvas {
    width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 700;
}

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

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive for modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .modal-price-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-current-price {
        font-size: 28px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
    }
}
