/* 
 * ========================================
 * MyWallet Market - Ordinals Marketplace
 * Design System: Modern, Minimalist, Dark
 * Aligned with MyWallet Extension
 * ========================================
 */

/* ==========================================
   SPARKS EFFECT - Global Background Stars
   ========================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(2px 2px at 45% 15%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 90% 70%, white, transparent),
        radial-gradient(2px 2px at 10% 60%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 75% 45%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 35% 90%, white, transparent),
        radial-gradient(2px 2px at 20% 40%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 80% 20%, white, transparent),
        radial-gradient(2px 2px at 60% 65%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(2px 2px at 30% 10%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(3px 3px at 95% 50%, white, transparent),
        radial-gradient(2px 2px at 5% 80%, rgba(255, 255, 255, 0.9), transparent);
    background-size: 100% 100%;
    animation: starsOrbit 75s linear infinite;
    opacity: 0.7;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(2px 2px at 40% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 70% 55%, white, transparent),
        radial-gradient(2px 2px at 55% 80%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 88% 40%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 12% 35%, white, transparent),
        radial-gradient(2px 2px at 62% 92%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 78% 12%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(3px 3px at 22% 68%, white, transparent);
    background-size: 100% 100%;
    animation: starsOrbit 100s linear infinite reverse;
    opacity: 0.5;
}

@keyframes starsOrbit {
    0% {
        transform: rotate(0deg) translateX(2px);
    }
    100% {
        transform: rotate(360deg) translateX(2px);
    }
}

/* Ensure all content is above the sparks */
header, nav, main, section, footer, .container, .navbar, .hero, .hero-minimal {
    position: relative;
    z-index: 1;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==========================================
   CSS VARIABLES (MyWallet Design Tokens)
   ========================================== */
:root {
    /* Colors - Same as MyWallet */
    --color-bg-primary: #000000;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-bg-card: #0d0d0d;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #888888;
    --color-text-tertiary: #666666;
    
    --color-border: #1a1a1a;
    --color-border-hover: #2a2a2a;
    --color-border-active: #3a3a3a;
    
    --color-accent: #ffffff;
    --color-accent-hover: #f0f0f0;
    --color-danger: #ff3b30;
    --color-success: #34c759;
    --color-warning: #ff9500;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Typography - Apple San Francisco Style */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================
   NAVBAR (Aligned with MyWallet)
   ========================================== */
.navbar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(17, 17, 17, 0.95);
}

.navbar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: brightness(1.1);
}

.nav-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.nav-subtitle {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 15px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.nav-link.active {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.wallet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-hover);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    letter-spacing: -0.2px;
}

.wallet-btn:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-border-active);
    color: var(--color-text-primary);
}

.wallet-btn:active {
    transform: scale(0.98);
}

.wallet-btn.connected {
    background: var(--color-bg-tertiary);
    border-color: var(--color-success);
    color: var(--color-success);
}

.wallet-text {
    white-space: nowrap;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
}

main.container {
    padding: var(--spacing-4xl) var(--spacing-2xl);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    text-align: center;
    padding: var(--spacing-4xl) 0;
    margin-bottom: var(--spacing-4xl);
}

.hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ==========================================
   TABS (Minimalist)
   ========================================== */
.tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: var(--font-family);
}

.tab-btn:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.tab-btn.active {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ==========================================
   FILTERS
   ========================================== */
.filters {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filters input[type="text"],
.filters select {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

.filters input[type="text"]:focus,
.filters select:focus {
    outline: none;
    border-color: var(--color-border-hover);
}

/* ==========================================
   ORDINALS GRID
   ========================================== */
.ordinals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
}

.ordinal-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.ordinal-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.ordinal-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ordinal-image img,
.ordinal-image video,
.ordinal-image iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.ordinal-image iframe {
    border: none;
}

.content-placeholder {
    font-size: 48px;
    color: var(--color-text-tertiary);
}

/* Paginação */
.pagination-btn:hover:not(:disabled) {
    background: var(--color-bg-card);
    border-color: var(--color-text-primary);
    transform: translateY(-1px);
}

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

.ordinal-info {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.ordinal-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.ordinal-id {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.ordinal-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.price-sats {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.price-usd {
    font-size: 14px;
    font-weight: 600;
    color: #34c759;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.price-btc {
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
    margin-top: -6px;
    opacity: 0.6;
}

.buy-btn {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.buy-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.05);
}

.buy-btn:active {
    transform: scale(0.98);
}

/* 🛒 Buy Now Button (Moderno e Compacto) */
.btn-small.btn-primary {
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    text-align: center;
    letter-spacing: -0.2px;
}

.btn-small.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.btn-small.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================================
   FORM STYLES
   ========================================== */
.offer-form,
.wallet-sweep-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
}

.offer-form h3,
.wallet-sweep-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-3xl);
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-border-hover);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

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

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-hover);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-4xl);
    color: var(--color-text-secondary);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ==========================================
   LOADING STATE
   ========================================== */
.loading {
    text-align: center;
    padding: var(--spacing-4xl);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

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

/* ==========================================
   NOTIFICATIONS
   ========================================== */
.notification {
    position: fixed;
    top: var(--spacing-2xl);
    right: var(--spacing-2xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

.notification.warning {
    border-color: var(--color-warning);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .ordinals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-lg);
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters input,
    .filters select {
        width: 100%;
    }
}

/* ==========================================
   WALLET MODAL
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-hover);
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-tertiary);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
    width: 100%;
    text-align: left;
}

.wallet-option:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border-hover);
    transform: translateX(4px);
}

.wallet-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: transparent;
    padding: 4px;
}

/* MyWallet logo específico com fundo branco */
.wallet-option:first-child .wallet-icon {
    background: #ffffff;
    border-radius: var(--radius-sm);
}

.wallet-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

.wallet-tag {
    font-size: 12px;
    color: var(--color-text-secondary);
    padding: 2px 8px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.wallet-tag.recommended {
    background: var(--color-success);
    color: var(--color-bg-primary);
    font-weight: 500;
}

.wallet-arrow {
    font-size: 20px;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-fast);
}

.wallet-option:hover .wallet-arrow {
    transform: translateX(4px);
}

/* ==========================================
   RUNES SWAP PAGE
   ========================================== */
.swap-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-4xl);
}

/* Swap Card Modern */
.swap-card-modern {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
}

.swap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.swap-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.settings-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.settings-btn:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

/* Swap Input */
.swap-input-wrapper {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.swap-input-header label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.balance-text {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.swap-input-box {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.swap-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 28px;
    font-weight: 600;
    outline: none;
    font-family: var(--font-family);
}

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

.token-select-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.token-select-btn:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border-hover);
}

.token-icon {
    font-size: 20px;
}

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

.swap-input-footer {
    margin-top: var(--spacing-sm);
}

.usd-value {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* Swap Arrow */
.swap-arrow-wrapper {
    display: flex;
    justify-content: center;
    margin: calc(var(--spacing-md) * -1) 0;
    position: relative;
    z-index: 10;
}

.swap-arrow-btn {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-secondary);
}

.swap-arrow-btn:hover {
    background: var(--color-bg-tertiary);
    transform: rotate(180deg);
}

/* Swap Details */
.swap-details-modern {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.detail-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.detail-row-modern:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.detail-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

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

.impact-low {
    color: var(--color-success);
}

.impact-medium {
    color: var(--color-warning);
}

.impact-high {
    color: var(--color-danger);
}

/* Swap Button */
.swap-btn-modern {
    width: 100%;
    padding: var(--spacing-lg);
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-lg);
    font-family: var(--font-family);
}

.swap-btn-modern:hover:not(:disabled) {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.swap-btn-modern:disabled {
    background: var(--color-bg-tertiary);
    color: var(--color-text-tertiary);
    cursor: not-allowed;
}

/* Stats Cards */
.swap-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

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

.stat-badge {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--color-text-tertiary);
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

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

.stat-change {
    font-size: 14px;
    font-weight: 600;
}

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

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

.stat-subvalue {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* Pools Section */
.pools-section {
    margin-bottom: var(--spacing-4xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.section-filters {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.filter-btn:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border-color: var(--color-accent);
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-2xl);
}

.pool-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    transition: all var(--transition-base);
}

.pool-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.pool-tokens {
    display: flex;
    gap: var(--spacing-md);
}

.pool-token-icons {
    display: flex;
    margin-left: -8px;
}

.pool-token-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: -8px;
}

.pool-token-icon:first-child {
    margin-left: 0;
}

.pool-token-names {
    display: flex;
    flex-direction: column;
}

.pool-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.pool-pair {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.pool-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.pool-badge.hot {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931A 100%);
    color: white;
}

.pool-badge.new {
    background: var(--color-success);
    color: white;
}

.pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pool-stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

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

.apy-high {
    color: var(--color-success);
}

.apy-medium {
    color: var(--color-warning);
}

.pool-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.pool-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-family);
}

.pool-btn.primary {
    background: var(--color-accent);
    color: var(--color-bg-primary);
}

.pool-btn.primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

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

.pool-btn.secondary:hover {
    background: var(--color-bg-tertiary);
}

/* Features Section */
.features-section {
    margin-bottom: var(--spacing-4xl);
}

.features-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-2xl);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-2xl);
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .swap-layout {
        grid-template-columns: 1fr;
    }
    
    .swap-stats {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .swap-stats {
        flex-direction: column;
    }
    
    .pools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   LANDING PAGE
   ========================================== */
.landing-hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-primary) 100%);
}

.hero-content-landing {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-landing {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-2xl);
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-landing {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-4xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-4xl);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-family: var(--font-family);
}

.btn-hero.primary {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border: 2px solid var(--color-accent);
}

.btn-hero.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-hero.secondary:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-border-active);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-4xl);
    justify-content: center;
    padding-top: var(--spacing-4xl);
    border-top: 1px solid var(--color-border);
}

.stat-item-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

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

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

/* Features Landing */
.features-landing {
    padding: 60px 0 40px 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.section-header-center h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-header-center p {
    font-size: 18px;
    color: var(--color-text-secondary);
}

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

.feature-card-landing {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl);
    transition: all var(--transition-base);
}

.feature-card-landing:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-landing {
    width: 64px;
    height: 64px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-accent);
}

.feature-card-landing h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

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

/* MyWallet Section - Apple Style Clean Design */
.mywallet-section {
    padding: 40px 0;
    background: var(--color-bg-secondary);
}

.kraywallet-header {
    text-align: center;
    margin-bottom: 24px;
}

.kraywallet-header h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kraywallet-header .kraywallet-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.mywallet-content {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    gap: 20px;
    align-items: start;
}

.mywallet-text {
    display: flex;
    flex-direction: column;
}

.kraywallet-preview {
    display: flex;
    justify-content: center;
}

.kraywallet-download {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mywallet-features {
    list-style: none;
    margin-bottom: var(--spacing-3xl);
}

.mywallet-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    font-size: 16px;
    color: var(--color-text-primary);
}

/* Features Compact Grid - Apple Style */
.features-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.feature-row svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.feature-row span {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Download Section - Apple Style */
.download-buttons {
    margin: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
    background: #f5f5f7;
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.download-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.download-browser {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    font-weight: 500;
    margin-top: 2px;
}

.download-note {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 7px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.download-note strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Responsive - Features Compact & Wallet Mockup */
@media (max-width: 768px) {
    .features-compact {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .feature-row {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .feature-row span {
        font-size: 12px;
    }
    
    .mywallet-content {
        grid-template-columns: 1fr;
    }
    
    .wallet-mockup {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Wallet Mockup - Apple Style Ultra Compact */
.wallet-mockup {
    background: linear-gradient(145deg, rgba(18, 18, 18, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    width: 220px;
    backdrop-filter: blur(20px);
}

.mockup-header {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 3px;
}

.mockup-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-title {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: -0.01em;
}

.mockup-body {
    padding: 10px;
}

.mockup-balance {
    text-align: center;
    padding: 8px 0 6px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-label {
    display: block;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.balance-amount {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-usd {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
}

.mockup-tabs {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
    padding: 0;
}

.mockup-tab {
    flex: 1;
    padding: 4px 5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 5px;
    font-size: 7px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
    border: 1px solid transparent;
}

.mockup-tab.active {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mockup-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.mockup-inscription {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-inscription video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-inscription.mockup-3d {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(13, 13, 13, 0.8) 100%);
}

.mockup-inscription model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/* How It Works */
.how-it-works {
    padding: 120px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    grid-column: span 1.5;
}

.step-arrow {
    font-size: 32px;
    color: var(--color-text-tertiary);
    text-align: center;
    grid-column: span 0.5;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto var(--spacing-lg);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.cta-content p {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-3xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-4xl);
    margin-bottom: var(--spacing-4xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-text-primary);
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* Responsive Landing */
@media (max-width: 1200px) {
    .features-grid-landing {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-card {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hero-title-landing {
        font-size: 42px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-2xl);
    }
    
    .features-grid-landing {
        grid-template-columns: 1fr;
    }
    
    .mywallet-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-secondary { color: var(--color-text-secondary); }

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease-out;
}

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

.modal-content {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2xl);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.token-modal {
    width: 420px;
}

.token-search {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
}

.token-search:focus {
    outline: none;
    border-color: var(--color-border-hover);
    background: var(--color-bg-secondary);
}

.token-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 400px;
    overflow-y: auto;
}

.token-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-item:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border-hover);
    transform: translateX(4px);
}

.token-item-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.token-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

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

.token-balance {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

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

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

/* Scrollbar para modal */
.token-list::-webkit-scrollbar {
    width: 8px;
}

.token-list::-webkit-scrollbar-track {
    background: var(--color-bg-tertiary);
    border-radius: 4px;
}

.token-list::-webkit-scrollbar-thumb {
    background: var(--color-border-hover);
    border-radius: 4px;
}

.token-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-active);
}

