@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-input: #2a2a2a;
    --border-color: #2a2a2a;
    --border-light: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent-green: #00ff88;
    --accent-cyan: #00ccff;
    --accent-orange: #ffb347;
    --success: #00ff88;
    --error: #ff4444;
    --gradient-main: linear-gradient(135deg, #00ff88 0%, #00ccff 100%);
    --gradient-bg: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 204, 255, 0.1) 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Animated Crypto Background */
.crypto-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.crypto-icon {
    position: absolute;
    font-size: 55px;
    opacity: 0.08;
    animation: floatSmooth infinite ease-in-out;
    filter: blur(0.8px);
    color: var(--accent-green);
}

@keyframes floatSmooth {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% { opacity: 0.08; }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg) scale(1);
    }
    90% { opacity: 0.08; }
    100% {
        transform: translateY(-10vh) translateX(-30px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

.crypto-icon:nth-child(1) { left: 8%; animation-duration: 32s; animation-delay: 0s; }
.crypto-icon:nth-child(2) { left: 22%; animation-duration: 38s; animation-delay: 4s; font-size: 45px; }
.crypto-icon:nth-child(3) { left: 35%; animation-duration: 35s; animation-delay: 8s; font-size: 65px; }
.crypto-icon:nth-child(4) { left: 48%; animation-duration: 42s; animation-delay: 2s; }
.crypto-icon:nth-child(5) { left: 62%; animation-duration: 33s; animation-delay: 10s; font-size: 50px; }
.crypto-icon:nth-child(6) { left: 75%; animation-duration: 40s; animation-delay: 6s; }
.crypto-icon:nth-child(7) { left: 15%; animation-duration: 36s; animation-delay: 12s; font-size: 58px; }
.crypto-icon:nth-child(8) { left: 28%; animation-duration: 31s; animation-delay: 3s; }
.crypto-icon:nth-child(9) { left: 55%; animation-duration: 39s; animation-delay: 9s; font-size: 48px; }
.crypto-icon:nth-child(10) { left: 68%; animation-duration: 34s; animation-delay: 14s; }
.crypto-icon:nth-child(11) { left: 85%; animation-duration: 37s; animation-delay: 7s; font-size: 62px; }
.crypto-icon:nth-child(12) { left: 92%; animation-duration: 30s; animation-delay: 11s; }

/* Main Container */
.container {
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow);
}

/* Header */
.header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 8px;
}

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

/* Content */
.content {
    padding: 30px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

input::placeholder {
    color: var(--text-muted);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4);
}

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

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

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

/* Amount Display */
.amount-display {
    text-align: center;
    padding: 30px;
    background: var(--gradient-bg);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    margin-bottom: 25px;
}

.amount-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount-value {
    font-size: 42px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.amount-value.positive {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.amount-value.negative {
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.amount-usd {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Status Badge */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 159, 0, 0.15);
    border: 1px solid rgba(255, 159, 0, 0.4);
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Details Section */
.details {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 5px 0;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

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

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

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

.detail-value.highlight {
    color: var(--accent-green);
    font-family: 'Courier New', monospace;
}

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.qr-container img,
.qr-container canvas {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

/* Link Section */
.link-section {
    margin-top: 25px;
}

.link-section h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.link-box {
    display: flex;
    gap: 10px;
}

.link-box input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--accent-green);
    background: var(--bg-input);
}

.btn-copy {
    padding: 16px 20px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy:hover {
    background: #4a4a4a;
}

/* Footer */
.footer {
    padding: 20px 30px;
    background: #151515;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Access Panel Specific */
.access-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.error-message {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 15px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Admin specific */
.admin-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    font-size: 10px;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

/* Timer */
.timer-display {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-orange);
    font-family: 'Courier New', monospace;
}

/* Crypto Selector */
.crypto-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.crypto-option {
    flex: 1;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.crypto-option.active {
    background: var(--gradient-bg);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-item {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.info-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Header with status */
.header-with-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 20px;
    }
    
    .header, .content {
        padding: 20px;
    }
    
    .amount-value {
        font-size: 36px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
