/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-elevated);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: var(--border-subtle);
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
}

/* ==================== FORMS ==================== */
.modal form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: var(--bg-elevated);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}

.modal-switch a {
    color: var(--gold-primary);
    font-weight: 600;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* ==================== LOTTERY MODAL ==================== */
.lottery-modal-content {
    padding: 24px;
}

.lottery-modal-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.modal-info-card {
    text-align: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 16px;
}

.modal-info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.modal-info-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.urgente-warning {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.numbers-selection {
    margin-bottom: 30px;
}

.numbers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.numbers-header h3 {
    font-size: 1.1rem;
}

.quick-pick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold-primary);
    border-radius: 20px;
    color: var(--gold-primary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.quick-pick-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 16px;
}

.number-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: 50%;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.number-btn:hover:not(.sold):not(.selected) {
    border-color: var(--gold-primary);
    transform: scale(1.1);
}

.number-btn.selected {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--gold-primary);
    transform: scale(1.1);
    box-shadow: var(--glow-gold);
}

.number-btn.sold {
    background: var(--bg-primary);
    color: var(--text-muted);
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.selected-numbers {
    margin-bottom: 24px;
}

.selected-numbers h4 {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.selected-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--gold-gradient);
    color: #000;
    border-radius: 20px;
    font-weight: 600;
}

.selected-chip button {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.purchase-summary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: var(--border-subtle);
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-row.total .summary-value {
    color: var(--gold-primary);
}

.purchase-btn {
    margin-top: 20px;
}

/* ==================== TICKETS MODAL ==================== */
.tickets-content {
    padding: 24px;
}

.tickets-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #000;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    border: var(--border-subtle);
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-lottery {
    font-weight: 700;
    font-size: 1.1rem;
}

.ticket-numbers {
    display: flex;
    gap: 8px;
}

.ticket-number {
    width: 30px;
    height: 30px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticket-number.winner {
    background: var(--gold-gradient);
    color: #000;
}

.ticket-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ticket-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.activo {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.status-badge.ganador {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.status-badge.perdedor {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.ticket-prize {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

/* ==================== PROFILE MODAL ==================== */
.profile-content {
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: var(--border-subtle);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-info h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.profile-stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-elevated);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-color: var(--accent-green);
}

.toast.error {
    border-color: var(--accent-red);
}

.toast.warning {
    border-color: var(--gold-primary);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Staggered animations */
.lottery-card:nth-child(1) { animation-delay: 0.1s; }
.lottery-card:nth-child(2) { animation-delay: 0.2s; }
.lottery-card:nth-child(3) { animation-delay: 0.3s; }
.lottery-card:nth-child(4) { animation-delay: 0.4s; }
.lottery-card:nth-child(5) { animation-delay: 0.5s; }
.lottery-card:nth-child(6) { animation-delay: 0.6s; }

/* ==================== VERIFY TICKET ==================== */
.verify-ticket-content {
    padding: 24px;
}

/* ==================== DEPOSIT MODAL ==================== */
.deposit-content {
    padding: 24px;
}

.deposit-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.deposit-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.deposit-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.method-icon {
    font-size: 1.5rem;
}

.method-name {
    font-weight: 600;
}

.deposit-contact {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.deposit-contact p {
    margin: 8px 0;
    color: var(--text-primary);
}

/* ==================== TRANSACTIONS ==================== */
.transactions-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.transactions-header-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.transactions-header-info p {
    color: var(--gold-primary);
    font-weight: 500;
    margin: 0;
}

.tickets-limit-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.tickets-limit-info p {
    color: var(--gold-primary);
    font-weight: 500;
    margin: 0;
}

/* ==================== DEPOSIT MODAL ==================== */
.deposit-content {
    padding: 24px;
}

.deposit-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.deposit-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border-left: 3px solid var(--gold-primary);
}

.deposit-step.success {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    font-size: 1rem;
}

.deposit-step.success .step-number {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 4px 0;
}

.step-content em {
    color: var(--gold-primary);
    font-style: normal;
}

.deposit-code {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--gold-primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: center;
}

.code-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.code-value {
    display: block;
    color: var(--gold-primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.step-list li {
    color: var(--text-secondary);
    padding: 4px 0;
    font-size: 0.9rem;
}

.deposit-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
}

.note-icon {
    font-size: 1.5rem;
}

.deposit-note span:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== LEGAL/SUPPORT PAGES ==================== */
.legal-content {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.legal-content h3 {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content .highlight-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.legal-content .highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

.legal-content .warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.legal-content .warning-box p {
    margin: 0;
    color: #ff6b6b;
}

.legal-content .info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.legal-content .info-box p {
    margin: 0;
    color: #60a5fa;
}

/* FAQ Accordion */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.05);
}

.faq-question .icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 16px 20px;
}

.faq-answer p {
    margin: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-4px);
    background: rgba(255, 215, 0, 0.05);
}

.contact-method .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-method h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-method p {
    color: var(--gold-primary);
    font-weight: 500;
    margin: 0;
}

/* Help Categories */
.help-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.help-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.help-category:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-4px);
}

.help-category .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.help-category h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

/* ==================== LOGIN REQUIRED MODAL ==================== */
.login-required-content {
    padding: 32px;
    text-align: center;
}

.login-required-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-required-content h3 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-required-content > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.login-required-benefits {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.login-required-benefits .benefit {
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.login-required-benefits .benefit:last-child {
    border-bottom: none;
}

.login-required-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.login-required-buttons .btn {
    flex: 1;
    max-width: 200px;
}

.login-required-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ==================== TICKET GANADOR ==================== */
.ticket-item.ticket-winner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: winner-glow 2s ease-in-out infinite;
}

@keyframes winner-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.2); }
}

.btn-share {
    background: var(--gold-gradient);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-top: 8px;
}

.btn-share:hover {
    transform: scale(1.1);
}

.ticket-prize {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.transaction-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-weight: 700;
}

.transaction-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.transaction-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: var(--accent-green);
}

.transaction-amount.negative {
    color: var(--accent-red);
}

/* ==================== PROFILE ACTIONS ==================== */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.profile-details {
    margin-top: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: var(--border-subtle);
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 3000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: var(--border-subtle);
}

.mobile-menu-header .logo-icon {
    font-size: 2.5rem;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: var(--border-subtle);
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--gold-primary);
}

.mobile-nav hr {
    border: none;
    border-top: var(--border-subtle);
    margin: 16px 0;
}

.mobile-nav .logout-link {
    color: var(--accent-red);
}

/* ==================== MOBILE FIXES ==================== */
@media (max-width: 768px) {
    .lottery-modal-info {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .ticket-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .ticket-status {
        align-items: flex-start;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================== PERFIL MEJORADO ==================== */
.profile-avatar-container {
    position: relative;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-elevated);
    border: 3px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gold-primary);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Avatar Selector */
.avatar-selector {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.avatar-selector p {
    color: var(--text-muted);
    margin: 0 0 12px 0;
    font-size: 0.9rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-elevated);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-option:hover {
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.avatar-option.active {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

/* User Level Badge */
.user-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

.user-level.level-new { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.user-level.level-player { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.user-level.level-bronze { background: rgba(205, 127, 50, 0.2); color: #cd7f32; }
.user-level.level-silver { background: rgba(192, 192, 192, 0.2); color: #c0c0c0; }
.user-level.level-gold { background: rgba(255, 215, 0, 0.2); color: var(--gold-primary); }
.user-level.level-diamond { background: linear-gradient(135deg, rgba(185, 242, 255, 0.2), rgba(168, 85, 247, 0.2)); color: #b9f2ff; }

/* Level Progress */
.level-progress {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
}

.level-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.level-progress-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}
