/* style.css - Play Recargas Modern UI */

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at 20% 40%, #0a0a0a, #000000);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Particles */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(0,255,255,0.6), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 15s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* Glass Effect */
.glass {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.15);
}

/* Container */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 16px 100px;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 0;
}

.logo h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #00ffcc, #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo h1 i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #00ffcc;
}

.logo span {
    font-weight: 300;
}

.logo p {
    font-size: 0.65rem;
    color: #666;
}

.user-menu {
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s;
    border: 1px solid rgba(0,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-menu:hover {
    background: rgba(0,255,255,0.15);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, rgba(0,30,40,0.9), rgba(0,0,0,0.8));
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,255,255,0.1);
    transition: all 0.3s;
}

.balance-card:hover {
    border-color: #00ffcc;
    box-shadow: 0 8px 32px rgba(0,255,255,0.2);
}

.balance-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ffcc;
    margin-bottom: 8px;
}

.balance-label i {
    margin-right: 6px;
}

.balance-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.btn-add-saldo {
    margin-top: 16px;
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    padding: 10px 20px;
    border-radius: 40px;
    color: #00ffcc;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: 500;
}

.btn-add-saldo:hover {
    background: #00ffcc;
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,255,0.4);
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 24px 0 16px;
}

.section-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-title h2 i {
    color: #00ffcc;
    margin-right: 8px;
}

.section-title a {
    color: #00ffcc;
    font-size: 0.8rem;
    text-decoration: none;
}

/* Operators Grid */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.operator-card {
    background: rgba(20,20,30,0.8);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}

.operator-card:hover {
    transform: translateY(-5px);
    border-color: #00ffcc;
    background: rgba(0,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,255,255,0.3);
}

.operator-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: inline-block;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); text-shadow: 0 0 0px #00ffcc; }
    50% { transform: scale(1.1); text-shadow: 0 0 15px #00ffcc; }
}

.operator-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.operator-discount {
    font-size: 0.7rem;
    color: #00ffcc;
    margin-top: 4px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    background: rgba(15,15,20,0.7);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0,255,255,0.1);
    transition: all 0.3s;
}

.order-item:hover {
    border-color: rgba(0,255,255,0.3);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.order-phone {
    font-weight: 600;
    color: #00ffcc;
}

.order-status {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
}

.status-pending { color: #ffaa00; border-left: 2px solid #ffaa00; padding-left: 8px; }
.status-paid { color: #00ff00; }
.status-processing { color: #00ffcc; }
.status-completed { color: #00ff88; }

.order-details {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #0f0f17;
    border-radius: 32px;
    padding: 24px;
    max-width: 450px;
    width: 90%;
    border: 1px solid #00ffcc;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.3rem;
}

.modal-header h2 i {
    color: #00ffcc;
    margin-right: 8px;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Input Groups */
.input-group {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.input-group i {
    color: #00ffcc;
    margin-right: 12px;
    font-size: 1.1rem;
}

.input-group input, .input-group select {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.input-group input::placeholder {
    color: #555;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00ffcc, #00aaff);
    border: none;
    padding: 14px;
    border-radius: 40px;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,255,255,0.4);
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.amount-btn {
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover, .amount-btn.active {
    background: #00ffcc;
    color: #000;
    transform: scale(1.02);
}

.original-price {
    text-decoration: line-through;
    font-size: 0.7rem;
    color: #888;
}

.discount-price {
    font-weight: bold;
    font-size: 1.1rem;
}

/* QR Code */
.qr-container {
    text-align: center;
    padding: 20px;
}

.qr-container img {
    max-width: 200px;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
}

.pix-code {
    background: #1a1a2e;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    word-break: break-all;
    margin: 12px 0;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #00ffcc;
    color: #000;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    z-index: 1100;
    display: none;
}

.toast.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #00ffcc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* User Options Menu */
.user-options-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #111;
    border-radius: 16px;
    padding: 12px 0;
    min-width: 180px;
    border: 1px solid #00ffcc;
    z-index: 500;
    display: none;
}

.user-options-menu.show {
    display: block;
}

.user-options-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.user-options-menu a:hover {
    background: rgba(0,255,255,0.1);
    color: #00ffcc;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 12px 12px 80px;
    }
    
    .balance-value {
        font-size: 2rem;
    }
    
    .operators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}