/* =====================================================
   UUSD - Classic Currency Theme
   Inspired by US Dollar bill aesthetics
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors - Classic Currency Palette */
    --bg-primary: #f8f6f0;
    --bg-secondary: #f0ede4;
    --bg-card: #ffffff;
    --bg-card-hover: #fafaf8;
    --bg-dark: #1a2e1a;
    --bg-dark-secondary: #243524;

    /* Green Palette (Currency Style) */
    --green-dark: #1a3d1a;
    --green-primary: #2d5016;
    --green-medium: #4a7c23;
    --green-light: #8b9a6d;
    --green-pale: #c5d4a8;
    --olive: #6b7c4d;

    /* Accent Colors */
    --gold: #c9a227;
    --gold-light: #e8d48b;
    --cream: #f5f1e3;
    --cream-dark: #e8e4d4;

    /* Text */
    --text-primary: #1a2e1a;
    --text-secondary: #4a5d4a;
    --text-muted: #7a8d7a;
    --text-light: #f8f6f0;

    /* Borders */
    --border-color: rgba(45, 80, 22, 0.15);
    --border-dark: rgba(45, 80, 22, 0.3);

    /* Fonts */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Sizing */
    --header-height: 80px;
    --container-max: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Currency line texture pattern */
.currency-pattern {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(45, 80, 22, 0.03) 2px,
        rgba(45, 80, 22, 0.03) 4px
    );
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 5px;
}

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

/* Typography */
h1 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--green-dark);
    letter-spacing: -0.02em;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 600;
    line-height: 1.2;
    color: var(--green-dark);
    letter-spacing: -0.01em;
}

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--green-medium);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   HEADER
   ===================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo img {
    height: 52px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.02em;
}


.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width var(--transition-normal);
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    transition: var(--transition-fast);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--text-light);
    border-color: var(--green-primary);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.btn-secondary:hover {
    background: var(--green-primary);
    color: var(--text-light);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--green-dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background: var(--bg-primary);
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* Decorative border frame */
.hero::after {
    content: '';
    position: absolute;
    top: 120px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border: 2px solid rgba(45, 80, 22, 0.1);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 24px;
    max-width: 800px;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 4px 20px rgba(45, 80, 22, 0.3));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 100px;
    font-size: 14px;
    color: var(--green-primary);
    margin-bottom: 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--green-dark);
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--green-medium);
    position: relative;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.hero-definition {
    font-family: var(--font-display);
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 500;
    color: var(--green-dark);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Decorative corner elements */
.corner-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--green-light);
    opacity: 0.3;
}

.corner-tl { top: 140px; left: 60px; border-right: none; border-bottom: none; }
.corner-tr { top: 140px; right: 60px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 60px; left: 60px; border-right: none; border-top: none; }
.corner-br { bottom: 60px; right: 60px; border-left: none; border-top: none; }

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
    padding: 60px 0;
    background: var(--bg-dark);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--green-pale);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 13px;
    color: var(--gold);
}

.stat-badge::before {
    content: '✓';
    font-weight: bold;
}

/* =====================================================
   WHY SECTION
   ===================================================== */
.why-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 3px solid var(--green-medium);
}

.why-item p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* =====================================================
   WHAT SECTION
   ===================================================== */
.what-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.what-content {
    max-width: 800px;
    margin: 0 auto;
}

.what-item {
    margin-bottom: 24px;
}

.what-item p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* =====================================================
   FEATURES / USE CASES SECTION
   ===================================================== */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--green-dark);
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-normal);
    overflow: hidden;
}

/* Currency line texture on cards */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(45, 80, 22, 0.015) 4px,
        rgba(45, 80, 22, 0.015) 8px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--green-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--cream) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--green-primary);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--green-dark);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* =====================================================
   CONTRACT INFO SECTION
   ===================================================== */
.contract-section {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
}

.contract-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(45, 80, 22, 0.02) 3px,
        rgba(45, 80, 22, 0.02) 6px
    );
    pointer-events: none;
}

.contract-box {
    background: var(--bg-card);
    border: 3px solid var(--green-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 80, 22, 0.1);
}

/* Decorative top border */
.contract-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-medium), var(--green-primary));
}

.contract-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.contract-address-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contract-address {
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.8vw, 18px);
    color: var(--green-primary);
    word-break: break-all;
    padding: 16px 24px;
    background: var(--cream);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
}

.copy-btn {
    padding: 16px;
    background: var(--green-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.copy-btn:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

.copy-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-light);
}

.contract-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contract-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.explorer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-normal);
}

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

.explorer-btn img {
    width: 20px;
    height: 20px;
}

/* =====================================================
   SWAP SECTION
   ===================================================== */
.swap-section {
    padding: 120px 0;
    background: var(--bg-dark);
    position: relative;
}

.swap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
    pointer-events: none;
}

.swap-section .section-header h2 {
    color: var(--cream);
}

.swap-section .section-header p {
    color: var(--green-pale);
}

.swap-container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.swap-card {
    background: var(--bg-card);
    border: 3px solid var(--green-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.swap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--green-primary), var(--gold), var(--green-primary));
}

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

.swap-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--green-dark);
}

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

.settings-btn {
    padding: 8px;
    background: var(--cream);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.settings-btn:hover {
    background: var(--green-pale);
    border-color: var(--green-light);
    color: var(--green-dark);
}

/* Token Input */
.token-input-container {
    background: var(--cream);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 8px;
    transition: border-color var(--transition-fast);
}

.token-input-container:focus-within {
    border-color: var(--green-primary);
}

.token-input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.token-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.token-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--text-primary);
    outline: none;
}

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

.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    max-width: 130px;
}

.token-selector:hover {
    background: var(--green-pale);
    border-color: var(--green-light);
}

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

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

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

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

.swap-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--green-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: var(--green-primary);
}

.swap-arrow:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    transform: rotate(180deg);
    color: var(--text-light);
}

.swap-arrow svg {
    width: 20px;
    height: 20px;
}

/* Swap details */
.swap-details {
    margin-top: 16px;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.swap-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.swap-detail-row:last-child {
    margin-bottom: 0;
}

.swap-detail-value {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Slippage settings */
.slippage-settings {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.slippage-settings.active {
    display: block;
}

.slippage-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.slippage-options {
    display: flex;
    gap: 8px;
}

.slippage-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slippage-btn:hover,
.slippage-btn.active {
    background: var(--green-pale);
    border-color: var(--green-primary);
    color: var(--green-dark);
}

.slippage-custom {
    display: flex;
    align-items: center;
    gap: 4px;
}

.slippage-input {
    width: 60px;
    padding: 10px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    outline: none;
}

.slippage-input:focus {
    border-color: var(--green-primary);
}

/* Swap button */
.swap-btn {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    font-size: 16px;
}

.swap-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Wallet connection */
.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--cream);
    border: 2px solid var(--green-light);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--green-primary);
    margin-bottom: 16px;
}

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

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

/* Transaction status */
.tx-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    display: none;
}

.tx-status.pending {
    display: block;
    background: rgba(201, 162, 39, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
}

.tx-status.success {
    display: block;
    background: rgba(45, 80, 22, 0.1);
    border: 2px solid var(--green-medium);
    color: var(--green-medium);
}

.tx-status.error {
    display: block;
    background: rgba(200, 50, 50, 0.1);
    border: 2px solid #c83232;
    color: #c83232;
}

.tx-status a {
    color: inherit;
    text-decoration: underline;
}

/* Token selector modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 46, 26, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 3px solid var(--green-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    padding: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--green-primary);
}

.token-list {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.token-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    border: 2px solid transparent;
}

.token-list-item:hover {
    background: var(--cream);
    border-color: var(--border-color);
}

.token-list-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.token-list-info {
    flex: 1;
}

.token-list-name {
    font-weight: 600;
    color: var(--text-primary);
}

.token-list-fullname {
    font-size: 12px;
    color: var(--text-secondary);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    padding: 80px 0 40px;
    border-top: 3px solid var(--green-light);
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

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

.footer-logo img {
    height: 48px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--cream);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero::after {
        display: none;
    }

    .corner-decoration {
        display: none;
    }

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

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

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

    .swap-card {
        padding: 24px 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .hero-badge {
        font-size: 12px;
    }

    .btn {
        width: 100%;
    }

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

    .hero-logo {
        width: 100px;
        height: 100px;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-medium) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* UUSD Token Logo Style */
.uusd-logo {
    background: linear-gradient(135deg, var(--green-medium), var(--green-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-weight: bold;
    color: var(--cream);
}
