:root {
    --primary-color: #00D4AA;
    --primary-hover: #00B894;
    --secondary-color: #FF6B6B;
    --background: #0A0B0D;
    --card-background: #1A1B23;
    --text-primary: #FFFFFF;
    --text-secondary: #8B8D9B;
    --border-color: #2A2B35;
    --success-color: #00D4AA;
    --warning-color: #FFB800;
    --danger-color: #FF6B6B;
    --border-radius: 12px;
    --shadow: rgba(0, 0, 0, 0.4) 0px 4px 20px -4px, rgba(0, 0, 0, 0.2) 0px 2px 8px;
    --gradient-primary: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.btn.secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Header */
header {
    background: rgba(26, 27, 35, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.header-hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo img {
    /* Logo styling - adjust as needed for your logo */
}

nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    position: relative;
}


.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-content p {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Token Prices Section */
.token-prices {
    padding: 80px 0;
}

.token-prices h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-prices > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
}

.token-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.token-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 28px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.token-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.token-card:hover::before {
    transform: scaleX(1);
}

.token-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}


.token-name {
    font-weight: 600;
    font-size: 18px;
}

.token-symbol {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
    background: rgba(0, 212, 170, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.token-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.token-change {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.token-change.positive {
    color: var(--success-color);
}

.token-change.negative {
    color: var(--danger-color);
}

.token-volume {
    font-size: 14px;
    color: var(--text-secondary);
    background: rgba(139, 141, 155, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 212, 170, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Exchanges Section */
.exchanges {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.exchanges h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exchange-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
}

.exchange-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.exchange-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.exchange-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.exchange-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.exchange-card:hover::before {
    transform: scaleX(1);
}

.exchange-card h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.exchange-card p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.exchange-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.stat {
    text-align: center;
    padding: 8px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.exchange-card ul {
    margin-left: 20px;
    margin-bottom: 24px;
}

.exchange-card ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    list-style-type: disc;
    line-height: 1.6;
}

.exchange-details {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.exchange-details p {
    margin-bottom: 10px;
    font-size: 14px;
}

.exchange-comparison {
    margin-bottom: 60px;
}

.exchange-comparison h3 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.comparison-table th, 
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(0, 212, 170, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.comparison-table tr:hover {
    background: rgba(0, 212, 170, 0.05);
}

.defi-future {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.defi-future h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

.defi-future p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.defi-future ul {
    margin-left: 20px;
}

.defi-future ul li {
    margin-bottom: 16px;
    color: var(--text-secondary);
    list-style-type: disc;
    line-height: 1.7;
}

.defi-future ul li strong {
    color: var(--text-primary);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 18px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-form {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

/* Quiz Section */
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.quiz-section h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quiz-section > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.quiz-intro, .quiz-questions, .quiz-results {
    display: none;
}

.active {
    display: block;
}

.quiz-intro h3, .quiz-results h3 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
}

.quiz-intro p {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.6;
}

.quiz-intro button {
    display: block;
    margin: 0 auto;
}

.quiz-progress {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 18px;
}

.question-container {
    margin-bottom: 32px;
}

.question-container h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

.answers-container {
    margin-bottom: 32px;
}

.answer-option {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.05);
}

.selected {
    border-color: var(--primary-color);
    background: rgba(0, 212, 170, 0.1);
}

.correct {
    border-color: var(--success-color);
    background: rgba(0, 212, 170, 0.1);
}

.incorrect {
    border-color: var(--danger-color);
    background: rgba(255, 107, 107, 0.1);
}

#next-question {
    display: block;
    margin: 0 auto;
}

.quiz-results p {
    text-align: center;
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

#quiz-score {
    color: var(--primary-color);
    font-weight: 700;
}

#quiz-feedback {
    margin-bottom: 32px;
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
}

#retake-quiz {
    display: block;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--card-background);
    padding: 80px 0 24px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 16px;
}

.footer-links h3, .footer-legal h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 12px;
}

.footer-links ul li a, .footer-legal ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-links ul li a:hover, .footer-legal ul li a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

/* Fee Calculator Section */
.fee-calculator {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
}

.fee-calculator h2 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D4AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fee-calculator > .container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 18px;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.calculator-results {
    display: flex;
    align-items: center;
}

.result-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.result-card h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
}

.result-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.result-item.total {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--primary-color);
    font-size: 20px;
}

.result-item.total .result-value {
    color: var(--primary-color);
    font-weight: 700;
}

.result-note {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    background: rgba(139, 141, 155, 0.1);
    padding: 16px;
    border-radius: 8px;
}

.calculator-form .form-group input,
.calculator-form .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.calculator-form .form-group input:focus,
.calculator-form .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.calculator-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .exchange-cards {
        grid-template-columns: 1fr;
    }
    
    .token-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 32px;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .exchange-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        width: 50%;
        margin-bottom: 16px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-form, 
    .result-card {
        padding: 24px;
    }
    
    .quiz-container {
        padding: 32px;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .token-prices,
    .exchanges,
    .fee-calculator,
    .quiz-section,
    .contact-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav ul {
        justify-content: center;
        gap: 12px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .quiz-container {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .stat {
        width: 100%;
    }
    
    .contact-form,
    .contact-info {
        padding: 24px;
    }
    
    .calculator-form,
    .result-card {
        padding: 20px;
    }
    
    .exchange-card {
        padding: 24px;
    }
    
    .token-card {
        padding: 20px;
    }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
    body {
        overscroll-behavior: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
    }
    
    html, body {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    header {
        padding: 12px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .footer-bottom {
        padding-bottom: 24px;
    }
}

/* Touch feedback for mobile */
.active-touch {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Smooth animations */
* {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}