/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables - Crypto Theme */
    --primary-color: #1a237e;          /* Deep Blue */
    --secondary-color: #f48d3e;        /* Bitcoin Orange */
    --accent-color: #00c853;           /* Success Green */
    --dark-bg: #0d1421;               /* Dark Blue Background */
    --light-bg: #f8f9fa;             /* Light Background */
    --text-primary: #ffffff;          /* White Text */
    --text-secondary: #b0bec5;        /* Light Gray Text */
    --text-dark: #263238;             /* Dark Text */
    --border-color: #37474f;          /* Border Color */
    --gradient-bg: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #5c6bc0 100%);
    --shadow: 0 4px 20px rgba(26, 35, 126, 0.15);
    
    /* Typography */
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-tech: 'Orbitron', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 20px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Crypto Ticker Bar */
.crypto-ticker-bar {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2d3748 100%);
    border-bottom: 2px solid var(--secondary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticker-container {
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0; /* No space needed for arrows */
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 15px;
    width: max-content;
    animation: continuous-scroll 10s linear infinite;
}

/* Continuous scrolling animation */
@keyframes continuous-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    gap: 10px;
}

.ticker-loading .fa-spinner {
    color: var(--secondary-color);
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 35px;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    min-width: 200px;
    flex-shrink: 0;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Ticker Arrows - Removed for continuous scroll */

/* Removed Play/Pause Control and Page Indicator styles */

/* Slide Animation */
@keyframes slideInFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove old ticker scroll animation */
@keyframes ticker-scroll {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

.coin-logo {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--light-bg);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
}

.coin-symbol {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 40px;
}

.coin-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 8px;
}

.coin-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 45px;
    text-align: center;
}

.coin-change.positive {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.coin-change.negative {
    color: #ff3d71;
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
}

.coin-change.neutral {
    color: var(--text-secondary);
    background: rgba(176, 190, 197, 0.1);
    border: 1px solid rgba(176, 190, 197, 0.3);
}

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

.ticker-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35px;
    color: #ff3d71;
    font-size: 0.9rem;
    gap: 10px;
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
    border-radius: 25px;
    padding: 0 20px;
    backdrop-filter: blur(5px);
}

.ticker-reconnect {
    color: var(--secondary-color);
    cursor: pointer;
    text-decoration: underline;
    margin-left: 10px;
}

.ticker-reconnect:hover {
    color: var(--accent-color);
}

/* Responsive ticker */
@media (max-width: 768px) {
    .crypto-ticker-bar {
        height: 45px;
    }
    
    .ticker-container {
        height: 45px;
        padding: 0 40px;
    }
    
    .ticker-content {
        gap: 10px;
    }
    
    .ticker-item {
        padding: 0 15px;
        height: 30px;
        min-width: 180px;
    }
    
    .coin-logo {
        width: 16px;
        height: 16px;
    }
    
    .coin-symbol {
        font-size: 0.7rem;
        min-width: 30px;
    }
    
    .coin-price {
        font-size: 0.75rem;
    }
    
    .coin-change {
        font-size: 0.7rem;
        padding: 1px 4px;
        min-width: 35px;
    }
    
    .ticker-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .ticker-arrow-left {
        left: 5px;
    }
    
    .ticker-arrow-right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .crypto-ticker-bar {
        height: 40px;
    }
    
    .ticker-container {
        height: 40px;
        padding: 0 35px;
    }
    
    .ticker-content {
        gap: 8px;
    }
    
    .ticker-item {
        padding: 0 12px;
        height: 25px;
        min-width: 160px;
    }
    
    .coin-logo {
        width: 14px;
        height: 14px;
    }
    
    .coin-symbol {
        font-size: 0.65rem;
        min-width: 25px;
    }
    
    .coin-price {
        font-size: 0.7rem;
    }
    
    .coin-change {
        font-size: 0.65rem;
        padding: 1px 3px;
        min-width: 30px;
    }
    
    .ticker-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .ticker-arrow-left {
        left: 3px;
    }
    
    .ticker-arrow-right {
        right: 3px;
    }
}

/* Header and Navigation */
.header {
    background: var(--dark-bg);
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-text {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
}

.btc-text {
    color: var(--secondary-color);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Space for ticker bar (50px) + header (80px) */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/tech-background.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--secondary-color);
    font-family: var(--font-tech);
}

.hero-title .subtitle {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #e65100;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.services .section-title {
    color: var(--text-primary);
}

.services .section-subtitle {
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
}

.service-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.features-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--gradient-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--text-primary);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-tech);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Crypto List Section */
.crypto-list {
    padding: var(--section-padding);
    background: var(--light-bg);
    min-height: 100vh;
}

.crypto-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.sort-controls {
    display: flex;
    gap: 1rem;
}

.sort-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.sort-select:focus {
    border-color: var(--secondary-color);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.crypto-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26, 35, 126, 0.15);
    border-color: var(--secondary-color);
}

.crypto-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.crypto-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    background: var(--light-bg);
}

.crypto-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.crypto-info .crypto-symbol {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.crypto-rank {
    margin-left: auto;
    background: var(--gradient-bg);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.crypto-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.crypto-stat {
    text-align: center;
}

.crypto-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.crypto-price {
    font-family: var(--font-tech);
    color: var(--secondary-color) !important;
    font-size: 1.3rem !important;
}

.crypto-change {
    font-weight: 700;
}

.crypto-change.positive {
    color: var(--accent-color);
}

.crypto-change.negative {
    color: #ff3d71;
}

.crypto-change.neutral {
    color: var(--text-secondary);
}

.crypto-market-cap {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.crypto-volume {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.crypto-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.crypto-loading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.crypto-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.crypto-error h3 {
    color: #ff3d71;
    margin-bottom: 1rem;
}

.crypto-error p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.retry-btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #e65100;
    transform: translateY(-2px);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.page-btn:hover:not(:disabled) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-weight: 600;
}

.page-number:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.page-number.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-jump input {
    width: 60px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    outline: none;
}

.page-jump input:focus {
    border-color: var(--secondary-color);
}

.page-jump button {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-jump button:hover {
    background: #3f51b5;
}

/* Table View Alternative */
.crypto-table-view {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.crypto-table th {
    background: var(--gradient-bg);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.crypto-table tbody tr:hover {
    background: #f8f9fa;
}

.crypto-table .crypto-name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.crypto-table .crypto-logo {
    width: 32px;
    height: 32px;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

.view-btn:hover:not(.active) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Responsive Design for Crypto List */
@media (max-width: 768px) {
    .crypto-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-box {
        max-width: none;
    }
    
    .sort-controls {
        justify-content: center;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .crypto-card {
        padding: 1rem;
    }
    
    .crypto-card-body {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .page-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .crypto-table {
        font-size: 0.85rem;
    }
    
    .crypto-table th,
    .crypto-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .crypto-card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .crypto-logo {
        margin: 0 auto;
    }
    
    .crypto-rank {
        margin: 0;
    }
    
    .page-numbers {
        margin: 0 0.5rem;
    }
    
    .page-btn,
    .page-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}


/* 添加汉堡菜单按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 汉堡菜单激活状态样式 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}



/* Responsive Design */
@media (max-width: 768px) {
    .header {
        top: 45px; /* Adjust for smaller ticker bar */
    }

    .hero {
        padding-top: 115px; /* Adjust for smaller ticker + header */
    }

    /* 显示汉堡菜单按钮 */
    .hamburger {
        display: flex;
    }

    /* 隐藏导航菜单 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        border-top: 1px solid var(--border-color);
    }

    /* 当菜单激活时 */
    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .subtitle {
        font-size: 1.5rem;
    }

    .about-content,
    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}


@media (max-width: 480px) {
    .header {
        top: 40px; /* Even smaller ticker bar */
    }

    .hero {
        padding-top: 105px; /* Adjust for smallest ticker + header */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title .subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    /* 移动端汉堡菜单样式调整 */
    .nav-menu {
        top: 65px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.service-card,
.feature-item,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }


/* 7*24 News Flash Section */
.news-flash {
    padding: var(--section-padding);
    background: var(--light-bg);
    min-height: 100vh;
}

.news-flash .section-title {
    color: var(--primary-color);
}

.news-flash .section-subtitle {
    color: var(--text-secondary);
}

.news-flash-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
}

.coming-soon h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.coming-soon p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.coming-soon-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
