/**
 * Enhanced Design System for TAP Mini App
 * Premium UI/UX with intuitive interactions and modern animations
 */

/* ============ ENHANCED TAP RESULTS STYLES ============ */
.tap-results-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    text-align: center;
}

.results-celebration {
    position: relative;
    margin-bottom: 30px;
}

.celebration-icon {
    font-size: 4rem;
    animation: bounceIn 0.8s ease-out;
}

.celebration-confetti {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.celebration-confetti.animate span {
    animation: confettiDrop 2s ease-out forwards;
}

.celebration-confetti span:nth-child(1) { animation-delay: 0.1s; }
.celebration-confetti span:nth-child(2) { animation-delay: 0.3s; }
.celebration-confetti span:nth-child(3) { animation-delay: 0.5s; }
.celebration-confetti span:nth-child(4) { animation-delay: 0.7s; }

.results-summary h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.points-earned-display {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.earned-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.earned-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #FFD700;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.earned-unit {
    font-size: 1.2rem;
    font-weight: 600;
}

.balance-update {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 25px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-row:last-child {
    border-bottom: none;
}

.balance-value {
    font-weight: 700;
    color: #FFD700;
}

.exchange-progress-section {
    width: 100%;
    max-width: 350px;
    margin-bottom: 25px;
}

.exchange-progress-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.exchange-rate {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.exchange-progress-bar {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    height: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.exchange-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 25px;
    transition: width 1s ease-out;
}

.progress-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

.exchange-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.benefit-icon {
    font-size: 1rem;
}

.next-actions-enhanced {
    width: 100%;
    max-width: 350px;
}

.next-actions-enhanced h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.action-buttons-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.action-buttons-grid button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.action-buttons-grid button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.action-buttons-grid button.primary {
    background: linear-gradient(135deg, #E94560, #F39C12);
}

.daily-reminder {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
}

.reminder-icon {
    font-size: 1.5rem;
}

.reminder-text {
    text-align: left;
    font-size: 0.9rem;
}

/* Quick Start Hint Styles */
.quick-start-hint {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: hintFadeIn 0.5s ease-out;
}

.hint-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-width: 200px;
}

.hint-content::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #667eea;
}

.hint-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hint-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.2;
}

.hint-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.hint-close:hover {
    opacity: 1;
}

@keyframes hintFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Tap Results Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes confettiDrop {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(300px) rotate(720deg);
        opacity: 0;
    }
}

/* ============ ENHANCED COLOR PALETTE ============ */
:root {
    /* Primary Brand Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-dark: #4c63d2;
    --primary-light: #8fa4f3;
    
    /* Accent Colors */
    --accent-gold: #f6d365;
    --accent-gold-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --accent-green: #42e695;
    --accent-red: #ff6b6b;
    
    /* Background System */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #1e2347;
    --bg-card-hover: #252a50;
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8892b0;
    --text-accent: #f6d365;
    
    /* Interactive Elements */
    --interactive-hover: rgba(102, 126, 234, 0.1);
    --interactive-active: rgba(102, 126, 234, 0.2);
    
    /* Status Colors */
    --success: #42e695;
    --warning: #ffd93d;
    --error: #ff6b6b;
    --info: #667eea;
    
    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.35);
    --glow-primary: 0 0 30px rgba(102, 126, 234, 0.3);
    --glow-accent: 0 0 25px rgba(246, 211, 101, 0.4);
    
    /* Animation Timings */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
}

/* ============ ENHANCED STAGE INFO & BUY SCREEN ============ */

.stage-info-enhanced {
    margin: var(--space-lg) 0;
}

.stage-card-premium {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(246, 211, 101, 0.2);
    position: relative;
    overflow: hidden;
}

.stage-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold-gradient);
}

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

.stage-badge {
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

.stage-timer-big {
    text-align: right;
}

.stage-timer-big span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: var(--glow-accent);
    font-family: 'JetBrains Mono', monospace;
}

.stage-timer-big small {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.stage-pricing {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.current-price, .next-price {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 15px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}

.current-price {
    border: 2px solid var(--accent-green);
    box-shadow: 0 0 20px rgba(66, 230, 149, 0.2);
}

.next-price {
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.price-value.increase {
    color: var(--accent-red);
}

.savings {
    display: block;
    font-size: 0.75rem;
    color: var(--accent-red);
    margin-top: var(--space-xs);
    font-weight: 500;
}

.stage-progress-enhanced {
    position: relative;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar-enhanced {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill-enhanced {
    height: 100%;
    background: var(--accent-gold-gradient);
    border-radius: 10px;
    position: relative;
    transition: width var(--transition-medium);
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(100px); }
}

.urgency-text {
    text-align: center;
    margin-top: var(--space-md);
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============ WALLET STATUS ============ */

.wallet-status {
    margin: var(--space-lg) 0;
}

.wallet-disconnected, .wallet-connected {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--space-lg);
    border: 2px solid transparent;
    transition: all var(--transition-medium);
}

.wallet-disconnected {
    border-color: var(--accent-red);
    text-align: center;
}

.wallet-disconnected i {
    font-size: 2rem;
    color: var(--accent-red);
    margin-bottom: var(--space-md);
}

.wallet-connected {
    border-color: var(--accent-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.wallet-info i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.wallet-balance {
    color: var(--accent-green);
    font-weight: 600;
}

.connect-wallet-btn-inline {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 25px;
    font-weight: 600;
    margin-top: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-soft);
}

.connect-wallet-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ============ ENHANCED BUY OPTIONS ============ */

.buy-options-enhanced {
    margin-top: var(--space-xl);
}

.popular-amounts {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.buy-btn-enhanced {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.buy-btn-enhanced:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.buy-btn-enhanced.featured {
    border-color: var(--accent-gold);
    box-shadow: var(--glow-accent);
}

.amount-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tap-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ton-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.usd-equiv {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.popular-badge, .bonus-badge {
    position: absolute;
    top: -2px;
    right: var(--space-md);
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 0 0 10px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ CUSTOM CALCULATOR ============ */

.custom-calculator {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.custom-calculator h4 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    text-align: center;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
}

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

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.input-group input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.input-group input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.conversion-arrow {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.ton-display {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: var(--space-md);
    border: 2px solid var(--accent-gold);
}

.ton-display span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.usd-display {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin-top: var(--space-xs);
}

/* ============ PURCHASE BUTTON ============ */

.purchase-btn-main {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: var(--space-lg) var(--space-xl);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.purchase-btn-main:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.purchase-btn-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.btn-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-subtext {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: auto;
}

/* ============ BENEFITS SECTION ============ */

.benefits-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.benefits-section h4 {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.benefits-list {
    display: grid;
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-glass);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    width: 40px;
    text-align: center;
}

.benefit-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.benefit-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============ STAKING SCREEN STYLES ============ */

.staking-overview {
    margin-bottom: var(--space-xxl);
}

.staking-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-medium);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

.apy-display {
    text-align: center;
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    border-radius: 20px;
    padding: var(--space-xl);
    box-shadow: var(--glow-accent);
}

.apy-main {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.apy-bonus {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============ STAKE FORM ============ */

.stake-new-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

.stake-form {
    margin-top: var(--space-lg);
}

.amount-input-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.amount-input-wrapper input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: var(--space-lg);
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.amount-input-wrapper input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-suffix {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-weight: 600;
    pointer-events: none;
}

.stake-options {
    margin-bottom: var(--space-xl);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-md);
    border-radius: 12px;
    transition: background-color var(--transition-fast);
}

.checkbox-option:hover {
    background: var(--interactive-hover);
}

.checkbox-option input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox-option input:checked + .checkmark {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkbox-option input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.stake-preview {
    background: var(--bg-glass);
    border-radius: 15px;
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(10px);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.preview-item:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.stake-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    border-radius: 20px;
    padding: var(--space-lg);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.stake-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.stake-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============ ACTIVE STAKES ============ */

.active-stakes-section h3 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.stakes-list {
    display: grid;
    gap: var(--space-lg);
}

.stake-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--space-xl);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all var(--transition-medium);
}

.stake-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.stake-amount .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stake-type {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: var(--space-xs);
}

.stake-apy {
    background: var(--accent-gold-gradient);
    color: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stake-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.stake-stats .stat {
    text-align: center;
}

.stake-stats .stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.stake-stats .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.claim-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.claim-btn:hover:not(:disabled) {
    background: #2dd887;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 230, 149, 0.4);
}

.claim-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-stakes {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--text-secondary);
}

.no-stakes-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
    .stage-pricing {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
    }
    
    .staking-stats {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .stake-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stake-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============ LOADING ANIMATIONS ============ */

.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============ TOAST ENHANCEMENTS ============ */

.toast-overlay.success .toast-content {
    background: linear-gradient(135deg, var(--accent-green), #2dd887);
}

.toast-overlay.error .toast-content {
    background: linear-gradient(135deg, var(--accent-red), #ff5252);
}

.toast-overlay.warning .toast-content {
    background: linear-gradient(135deg, var(--warning), #ffc107);
}

/* ============ ENHANCED EXCHANGE SCREEN STYLES ============ */

.exchange-process-guide {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    color: white;
}

.process-steps {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Quick Exchange Buttons */
.quick-exchange-options {
    margin: 24px 0;
}

.exchange-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.quick-exchange-btn {
    background: #2a2a3e;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.quick-exchange-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #667eea;
}

.quick-exchange-btn.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.quick-exchange-btn.premium {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-color: #ff6b6b;
}

.points-amount, .tap-amount {
    font-size: 18px;
    font-weight: bold;
}

.arrow-icon {
    font-size: 20px;
    opacity: 0.7;
}

.usd-value {
    font-size: 14px;
    opacity: 0.8;
}

.popular-badge, .premium-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Enhanced Calculator */
.exchange-calculator-enhanced {
    background: #2a2a3e;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section, .output-section {
    text-align: center;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.input-wrapper input {
    background: #1a1a2e;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-size: 18px;
    text-align: center;
    width: 200px;
    outline: none;
}

.input-wrapper input:focus {
    border-color: #667eea;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

.conversion-display .conversion-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #667eea;
    font-size: 24px;
}

.conversion-display .conversion-arrow span {
    font-size: 14px;
    opacity: 0.8;
}

.output-display {
    font-size: 32px;
    font-weight: bold;
    color: #00d4ff;
    margin: 10px 0;
}

.tap-symbol {
    color: #fff;
    font-size: 24px;
}

.usd-equivalent {
    font-size: 16px;
    opacity: 0.7;
}

.balance-info {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 8px;
}

/* Exchange Button */
.exchange-btn-main {
    background: linear-gradient(45deg, #00d4ff, #667eea);
    border: none;
    border-radius: 16px;
    padding: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-top: 20px;
}

.exchange-btn-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

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

.exchange-btn-main small {
    font-size: 14px;
    opacity: 0.9;
}

/* Post Exchange Actions */
.post-exchange-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.action-card {
    background: #2a2a3e;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.staking-promotion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shop-promotion {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.action-icon {
    font-size: 32px;
    text-align: center;
}

.action-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.action-content p {
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.earning-preview {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Exchange History */
.exchange-history {
    margin: 24px 0;
}

.history-list {
    background: #2a2a3e;
    border-radius: 16px;
    padding: 20px;
    min-height: 100px;
}

.empty-history {
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.empty-history i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============ ENHANCED BUY SCREEN STYLES ============ */

.buy-btn-enhanced.enterprise {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    border: 2px solid #9b59b6;
}

.buy-btn-enhanced.legendary {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: 2px solid #f39c12;
    position: relative;
    overflow: hidden;
}

.buy-btn-enhanced.legendary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bonus-badge.enterprise {
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
}

.bonus-badge.legendary {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    animation: pulse 2s infinite;
}