:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-elevated: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
    --accent: #111827;
    --accent-glow: rgba(0, 0, 0, 0.1);
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --radius: 16px;
    --radius-sm: 12px;
    --font: 'Red Hat Display', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --bg-card: #ffffff;
    --border: rgba(0, 0, 0, 0.05);
    --border-hover: rgba(0, 0, 0, 0.1);
    
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --success: #10b981;
    
    --gradient-purple: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Ambient Glow */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,136,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
}

.back-btn, .menu-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-btn:hover, .menu-btn:hover {
    background: rgba(0, 0, 0,0.05);
    transform: scale(1.05);
}

.logo {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-dim);
}

/* Main */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
    gap: 3rem;
}

/* Hero Text */
.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* Actions */
.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.action-card {
    position: relative;
    aspect-ratio: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0,0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    transition: transform 0.4s ease;
}

.icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.4s ease;
}

.buy .icon {
    background: rgba(0, 255, 136, 0.1);
    color: var(--buy);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.sell .icon {
    background: rgba(255, 45, 110, 0.1);
    color: var(--sell);
    border: 1px solid rgba(255, 45, 110, 0.2);
}

.label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.sub {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
}

/* Hover Glow */
.hover-glow {
    position: absolute;
    inset: -1px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.buy .hover-glow {
    background: radial-gradient(circle at center, rgba(0,255,136,0.15) 0%, transparent 70%);
}

.sell .hover-glow {
    background: radial-gradient(circle at center, rgba(255,45,110,0.15) 0%, transparent 70%);
}

/* Hover States */
.action-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 0, 0,0.15);
}

.action-card:hover::before {
    opacity: 1;
}

.action-card:hover .hover-glow {
    opacity: 1;
}

.action-card:hover .card-content {
    transform: translateY(-2px);
}

.action-card:hover .icon {
    transform: scale(1.1);
}

.buy:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 255, 136, 0.2);
}

.sell:hover {
    border-color: rgba(255, 45, 110, 0.3);
    box-shadow: 0 20px 40px -10px rgba(255, 45, 110, 0.2);
}

/* Active/Press State */
.action-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Animation on Load */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeUp 0.8s ease forwards;
}

.action-card.buy {
    animation: fadeUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.action-card.sell {
    animation: fadeUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* Responsive */
@media (max-width: 380px) {
    .actions {
        gap: 0.75rem;
    }
    
    .action-card {
        border-radius: 20px;
    }
    
    .icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .label {
        font-size: 1.25rem;
    }
}

/* Tablet/Desktop */
@media (min-width: 768px) {
    .main {
        padding: 3rem;
    }
    
    .actions {
        max-width: 500px;
        gap: 1.5rem;
    }
    
    .action-card {
        border-radius: 32px;
    }
    
    .icon {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 1.5rem;
    }
    
    .label {
        font-size: 1.75rem;
    }
    
    .sub {
        font-size: 0.9rem;
    }
}

