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

:root {
    /* Bybit Color Scheme */
    --bg-dark: #0c0d0e;
    --bg-card: #17181a;
    --bg-input: #1f2023;
    --bg-hover: #2a2b2f;
    --border-color: #2a2b2f;
    --border-light: #35363a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b7bdc6;
    --text-muted: #7e848e;
    
    /* Bybit Brand Colors */
    --accent-orange: #f7a600;
    --accent-yellow: #ffc043;
    --accent-green: #0ecb81;
    --accent-red: #f6465d;
    --accent-blue: #3861fb;
    
    /* Status Colors */
    --success: #0ecb81;
    --error: #f6465d;
    --warning: #f7a600;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #f7a600 0%, #ffc043 100%);
    --gradient-bg: linear-gradient(135deg, rgba(247, 166, 0, 0.05) 0%, rgba(255, 192, 67, 0.05) 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(247, 166, 0, 0.15);
}

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

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 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;
    background: radial-gradient(circle at 20% 50%, rgba(247, 166, 0, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(56, 97, 251, 0.03) 0%, transparent 50%);
}

.crypto-icon {
    position: absolute;
    font-size: 60px;
    opacity: 0.04;
    animation: floatSmooth infinite ease-in-out;
    filter: blur(1px);
    color: var(--accent-orange);
}

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

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

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

/* Header */
.header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(23, 24, 26, 0.5) 100%);
}

.logo {
    font-size: 28px;
    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;
    letter-spacing: -0.5px;
}

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

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

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

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

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

/* WALLET ADDRESS INPUTS */
#walletAddress,
#senderAddress,
#recipientAddress {
    font-family: 'SF Mono', 'Courier New', monospace !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--accent-orange) !important;
    letter-spacing: 0.3px !important;
    padding: 16px !important;
    line-height: 1.5 !important;
    word-break: break-all !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-light) !important;
}

input:hover, select:hover {
    border-color: var(--border-light);
    background: var(--bg-hover);
}

input:focus, select:focus {
    border-color: var(--accent-orange);
    background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(247, 166, 0, 0.1);
}

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

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b7bdc6' 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 14px center;
    background-size: 16px;
    padding-right: 45px;
}

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

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

.btn-primary {
    background: var(--accent-orange);
    color: #000000;
    box-shadow: 0 4px 12px rgba(247, 166, 0, 0.25);
}

.btn-primary:hover {
    background: var(--accent-yellow);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(247, 166, 0, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-orange);
}

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

/* Amount Display */
.amount-display {
    text-align: center;
    padding: 40px 32px;
    background: var(--gradient-bg);
    border-radius: 12px;
    border: 1px solid rgba(247, 166, 0, 0.15);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.amount-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
}

.amount-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.amount-value {
    font-size: 52px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -2px;
}

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

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

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

/* Status Badge */
.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(247, 166, 0, 0.1);
    border: 1px solid rgba(247, 166, 0, 0.3);
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 700;
}

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

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(247, 166, 0, 0.7);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(247, 166, 0, 0);
    }
}

/* Details Section */
.details {
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px 0;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

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

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

.detail-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

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

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

/* QR Code */
.qr-container {
    display: flex;
    justify-content: center;
    margin: 32px 0;
    padding: 24px;
    background: var(--gradient-bg);
    border-radius: 12px;
    border: 1px solid rgba(247, 166, 0, 0.15);
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container img,
.qr-container canvas {
    width: 200px !important;
    height: 200px !important;
    border-radius: 10px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.link-section h2 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 700;
}

.link-box {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.link-box input {
    flex: 1;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 13px;
    color: var(--accent-orange);
    background: var(--bg-input);
    min-height: 50px;
    font-weight: 600;
}

.btn-copy {
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.btn-copy:hover {
    background: var(--bg-hover);
    border-color: var(--accent-orange);
    transform: scale(1.02);
}

.btn-copy:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    padding: 24px 32px;
    background: rgba(12, 13, 14, 0.5);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

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

/* Access Panel */
.access-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 2px solid rgba(247, 166, 0, 0.2);
}

/* Admin Badge */
.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(247, 166, 0, 0.1);
    border: 1px solid rgba(247, 166, 0, 0.3);
    border-radius: 4px;
    font-size: 10px;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
    font-weight: 700;
}

/* Timer */
.timer-display {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-orange);
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 1px;
}

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

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

.crypto-option:hover {
    background: var(--bg-hover);
}

.crypto-option.active {
    background: rgba(247, 166, 0, 0.1);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

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

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

.info-item strong {
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.info-item span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 12px;
    }
    
    .container {
        border-radius: 12px;
        max-width: 100%;
    }
    
    .header, .content {
        padding: 24px 20px;
    }
    
    .amount-value {
        font-size: 44px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    #walletAddress,
    #senderAddress,
    #recipientAddress {
        font-size: 13px !important;
        padding: 14px !important;
    }
    
    .qr-container img,
    .qr-container canvas {
        width: 180px !important;
        height: 180px !important;
    }
}

@media (max-width: 400px) {
    .amount-value {
        font-size: 38px;
    }
    
    #walletAddress,
    #senderAddress,
    #recipientAddress {
        font-size: 12px !important;
        padding: 12px !important;
    }
    
    .logo {
        font-size: 24px;
    }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}
