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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --background: #0f0f1a;
    --surface: #1a1a2e;
    --surface-light: #252540;
    --text: #ffffff;
    --text-secondary: #94a3b8;
    --border: #2d2d4a;
    --success: #10b981;
    --bronze: #cd7f32;
    --silver: #c0c0c0;
    --gold: #ffd700;
    --diamond: #b9f2ff;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.1); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.swap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.step-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--text);
}

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

/* Option Cards */
.option-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-card {
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.option-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.option-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.option-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.option-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.option-select-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
}

.option-card:hover .option-select-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Email Form */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.continue-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.continue-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
}

/* Price Bar */
.price-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.price-label {
    font-weight: 500;
    opacity: 0.9;
}

.price-value {
    font-weight: 700;
    font-size: 18px;
}

/* Bonus Structure */
.bonus-structure {
    background: var(--surface-light);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.bonus-structure h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.bonus-tiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tier {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--surface);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.tier-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tier-icon svg {
    width: 22px;
    height: 22px;
}

/* Mobile compact grid for bonus tiers */
@media (max-width: 640px) {
    .bonus-tiers {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tier {
        flex-direction: column;
        text-align: center;
        padding: 12px 8px;
        gap: 8px;
    }
    
    .tier-info {
        align-items: center;
    }
    
    .tier-amount {
        font-size: 13px;
    }
    
    .tier-name {
        font-size: 11px;
    }
    
    .tier-bonus {
        padding: 4px 8px;
        font-size: 10px;
        width: auto;
        margin-top: 0;
    }
    
    .tier-icon {
        width: 32px;
        height: 32px;
    }
    
    .tier-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Make first item (minimum) span full width or adjust as needed */
    .bonus-tiers .tier:first-child {
        grid-column: span 2;
        flex-direction: row;
        text-align: left;
    }
    
    .bonus-tiers .tier:first-child .tier-info {
        align-items: flex-start;
        flex: 1;
    }
    
    .bonus-tiers .tier:first-child .tier-bonus {
        margin-top: 0;
    }
}

.tier-icon.minimum {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

.tier-icon.bronze {
    background: rgba(205, 127, 50, 0.2);
    color: var(--bronze);
}

.tier-icon.silver {
    background: rgba(192, 192, 192, 0.2);
    color: var(--silver);
}

.tier-icon.gold {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.tier-icon.diamond {
    background: rgba(185, 242, 255, 0.2);
    color: var(--diamond);
}

.tier-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tier-amount {
    font-weight: 600;
    font-size: 15px;
}

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

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

/* Crypto Selection */
.crypto-selection h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.dropdown {
    position: relative;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dropdown:hover {
    border-color: var(--primary);
}

.dropdown.open {
    border-color: var(--primary);
}

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

.dropdown-selected img {
    width: 28px;
    height: 28px;
}

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

.dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: var(--surface);
}

.dropdown-item img {
    width: 28px;
    height: 28px;
}

/* Deposit Info */
.deposit-info {
    text-align: center;
}

.selected-crypto-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.selected-crypto-display img {
    width: 40px;
    height: 40px;
}

.selected-crypto-display span {
    font-size: 20px;
    font-weight: 600;
}

.deposit-instructions {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: left;
    padding: 0 10px;
}

.deposit-instructions strong {
    color: var(--success);
}

.address-section {
    margin-bottom: 25px;
}

.address-section label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: left;
}

.address-container {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    gap: 12px;
}

.address-text {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    text-align: left;
    color: var(--text);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
    flex-shrink: 0;
}

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

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--success);
}

.qr-section {
    margin-bottom: 25px;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 10px;
}

.qr-code canvas {
    display: block;
}

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

.pending-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 20px;
}

.pending-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .swap-card {
        padding: 25px 20px;
    }

    .card-header h1 {
        font-size: 22px;
    }

    .nav-links {
        display: none;
    }

    .address-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar styling */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: var(--surface);
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
