:root {
    --bg-color: #050510;
    --card-bg: rgba(20, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #00f2ff;
    /* Neon Cyan */
    --secondary-color: #7000ff;
    /* Neon Purple */
    --accent-color: #00ff88;
    /* Neon Green */
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --danger-color: #ff3366;

    --glow-spread: 0 0 20px;
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-heading);
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, rgba(112, 0, 255, 0.05) 40%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: pulse-bg 10s infinite alternate;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(0, 242, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes pulse-bg {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 20px;
    color: var(--danger-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Glassmorphism Card */
.payment-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2px;
    /* For gradient border effect if needed later */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

/* Tabs */
.tabs {
    display: flex;
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--glass-border);
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.network-icon {
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
}

/* Tab Colors */
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.tab-btn.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.tab-btn.active .network-icon.trc20 {
    background: #ff0015;
    box-shadow: 0 0 10px #ff0015;
}

.tab-btn.active .network-icon.erc20 {
    background: #627eea;
    box-shadow: 0 0 10px #627eea;
}

.tab-btn.active .network-icon.bep20 {
    background: #f0b90b;
    color: black;
    box-shadow: 0 0 10px #f0b90b;
}

.tab-btn.active .network-icon.binance {
    background: #f0b90b;
    color: black;
    box-shadow: 0 0 10px #f0b90b;
}

/* Content Area */
.content-area {
    padding: 25px;
}

/* QR Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.qr-container {
    padding: 15px;
    background: white;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}

.qr-code {
    width: 160px;
    height: 160px;
    display: block;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 2s linear infinite;
    opacity: 0.8;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

.instruction-text {
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Details Section */
.input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-label span {
    color: var(--text-main);
    font-weight: 600;
}

.address-box {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.address-box:hover,
.address-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.address-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 12px;
    outline: none;
    width: 100%;
    text-overflow: ellipsis;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: black;
}



.warning-box {
    background: rgba(255, 166, 0, 0.1);
    border: 1px solid rgba(255, 166, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.85rem;
    color: #ffbd59;
    line-height: 1.4;
}

.warning-box strong {
    color: #ffd080;
}

/* Binance Details */
.binance-details.hidden {
    display: none;
}

.binance-badge {
    color: #f0b90b;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Footer in Card */
.card-footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-top: 1px solid var(--glass-border);
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.step-indicator .step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step-indicator .line {
    width: 40px;
    height: 1px;
    background: var(--glass-border);
    margin: 0 10px;
}

.action-box p {
    text-align: center;
    font-size: 0.8rem;
    color: var(--danger-color);
    margin-bottom: 15px;
}

.telegram-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #27a7e7, #1e87c0);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(39, 167, 231, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 167, 231, 0.5);
}

.security-badge {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .qr-code {
        width: 140px;
        height: 140px;
    }

    .tabs {
        padding: 10px;
    }

    .badge {
        font-size: 0.75rem;
    }

    .container {
        padding: 15px;
    }
}

/* Utility Animations */
.slide-down {
    animation: slideDown 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}