/* COMAX Swap - Modern Dark Theme CSS */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --accent: #f472b6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-dark: #0f0f1a;
    --bg-card: rgba(30, 30, 50, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --gradient-3: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, transparent 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.1) 0%, transparent 40%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-5%, 5%) rotate(5deg); }
    50% { transform: translate(5%, -5%) rotate(-5deg); }
    75% { transform: translate(-3%, -3%) rotate(3deg); }
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 10px) scale(1.05); }
}

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

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

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

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Connect Wallet Button */
.btn-connect {
    background: var(--gradient-1);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-connect.connected {
    background: var(--bg-glass);
    border: 1px solid var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.wallet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

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

/* Header Right - Language Switcher + Connect Button */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.price {
    color: var(--success);
}

.stat-change {
    font-size: 14px;
    margin-top: 4px;
}

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

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

/* Token Info Card */
.token-info-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
}

.token-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.token-logo {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.token-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.token-name h3 {
    font-size: 20px;
    font-weight: 700;
}

.token-name span {
    font-size: 14px;
    color: var(--text-muted);
}

.token-badge {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.contract-address {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.contract-address .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contract-address .address {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

.btn-copy {
    background: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

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

.btn-copy.copied {
    background: var(--success);
}

/* Swap Card */
.swap-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.swap-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.swap-settings {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

/* Swap Input */
.swap-input-wrapper {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.swap-input-wrapper:focus-within {
    border-color: var(--primary);
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.swap-input-label {
    font-size: 13px;
    color: var(--text-muted);
}

.swap-balance {
    font-size: 13px;
    color: var(--text-secondary);
}

.swap-balance span {
    color: var(--primary-light);
    cursor: pointer;
}

.swap-input-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.swap-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
    width: 100%;
}

.swap-input::placeholder {
    color: var(--text-muted);
}

/* Remove number input arrows */
.swap-input::-webkit-outer-spin-button,
.swap-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.swap-input[type=number] {
    -moz-appearance: textfield;
}

.token-select {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.token-select:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
}

.token-select-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.token-select-icon.trx {
    background: linear-gradient(135deg, #ff0013 0%, #ff4d5a 100%);
}

.token-select-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

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

.token-select svg {
    opacity: 0.6;
}

/* Swap Arrow */
.swap-arrow {
    display: flex;
    justify-content: center;
    margin: -4px 0;
    position: relative;
    z-index: 1;
}

.btn-swap-direction {
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 4px solid var(--bg-dark);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-swap-direction:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* Swap Button */
.btn-swap {
    width: 100%;
    background: var(--gradient-1);
    border: none;
    padding: 18px;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-swap:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-swap:disabled {
    background: var(--bg-glass);
    cursor: not-allowed;
    box-shadow: none;
}

/* Swap Details */
.swap-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.swap-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.swap-detail-row .label {
    color: var(--text-muted);
}

.swap-detail-row .value {
    color: var(--text-secondary);
}

/* SunSwap Widget Container */
.sunswap-widget {
    background: var(--bg-glass);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.sunswap-widget iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Quick Links */
.quick-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.quick-link {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* How to Buy Section */
.how-to-buy {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    margin-top: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-8px);
    background: rgba(99, 102, 241, 0.1);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Use Cases Section */
.use-cases-section {
    margin-top: 60px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.use-case-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.use-case-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.use-case-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Partner Section */
.partner-section {
    margin-top: 60px;
}

.partner-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
}

.partner-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    flex-wrap: wrap;
}

.partner-logo {
    width: 72px;
    height: 72px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-info {
    flex: 1;
    min-width: 200px;
}

.partner-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.partner-info p {
    font-size: 14px;
    color: var(--text-muted);
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-2);
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.partner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.partner-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.partner-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.partner-feature span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Token Details Grid */
.token-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Whitepaper Link */
.whitepaper-link {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.btn-whitepaper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 14px 28px;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-whitepaper:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

/* CMC Token Info Section */
.cmc-info-section {
    margin-top: 40px;
}

.cmc-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
}

.cmc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.cmc-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.cmc-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cmc-symbol {
    font-size: 16px;
    color: var(--primary-light);
    font-weight: 600;
}

.cmc-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 32px;
}

.cmc-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-glass);
    border-radius: 16px;
    border: 1px solid var(--border-glass);
}

.cmc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmc-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.cmc-address {
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
}

.cmc-links h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.cmc-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cmc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.cmc-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cmc-link.telegram {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
}

.cmc-link.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.cmc-link.telegram svg {
    fill: #0088cc;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

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

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

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

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

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 0;
    }

    .logo {
        gap: 8px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 18px;
    }

    .nav-links {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .lang-switcher {
        padding: 3px;
    }

    .lang-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    .lang-code {
        display: none;
    }

    .btn-connect {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 28px;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 15px;
    }

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

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    .token-info-card {
        padding: 20px;
    }

    .token-info-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .token-logo-img {
        width: 48px;
        height: 48px;
    }

    .token-badge {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .contract-address {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .contract-address .address {
        font-size: 11px;
    }

    .quick-links {
        flex-direction: column;
    }

    /* CMC Section Mobile */
    .cmc-info-card {
        padding: 24px;
    }

    .cmc-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .cmc-logo {
        width: 64px;
        height: 64px;
    }

    .cmc-title h2 {
        font-size: 22px;
    }

    .cmc-description {
        font-size: 14px;
        text-align: center;
    }

    .cmc-details {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .cmc-detail-item {
        text-align: center;
    }

    .cmc-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cmc-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .swap-card {
        padding: 16px;
        border-radius: 20px;
    }

    .swap-header h2 {
        font-size: 18px;
    }

    .swap-input-wrapper {
        padding: 14px 16px;
    }

    .swap-input {
        font-size: 24px;
    }

    .token-select {
        padding: 6px 10px;
    }

    .token-select-img {
        width: 20px;
        height: 20px;
    }

    .token-select-name {
        font-size: 13px;
    }

    .btn-swap {
        padding: 16px;
        font-size: 16px;
    }

    .swap-details {
        padding-top: 16px;
    }

    .swap-detail-row {
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step-card {
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .how-to-buy {
        padding: 24px 20px;
        margin-top: 40px;
    }

    /* Use Cases Mobile */
    .use-cases-section {
        margin-top: 40px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .use-case-card {
        padding: 20px;
    }

    .use-case-icon {
        width: 56px;
        height: 56px;
    }

    .use-case-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Partner Mobile */
    .partner-section {
        margin-top: 40px;
    }

    .partner-card {
        padding: 20px;
    }

    .partner-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .partner-logo {
        width: 64px;
        height: 64px;
    }

    .partner-info {
        min-width: auto;
    }

    .partner-info h3 {
        font-size: 18px;
    }

    .partner-link {
        width: 100%;
        justify-content: center;
    }

    .partner-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .partner-feature {
        padding: 10px 14px;
    }

    .partner-feature span {
        font-size: 13px;
    }

    /* Token Details Mobile */
    .token-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-whitepaper {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer {
        margin-top: 40px;
        padding: 24px 0;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-text {
        font-size: 12px;
    }

    /* Toast Mobile */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 12px 16px;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .hero-title {
        font-size: 24px;
    }

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

    .swap-input {
        font-size: 20px;
    }

    .btn-connect {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-connect svg {
        display: none;
    }

    .lang-flag {
        font-size: 14px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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