/* ==================== ADMIN STYLES ==================== */

/* Variables (fallback if style.css doesn't load first) */
:root {
    --gold-primary: #FFD700;
    --gold-light: #FFE55C;
    --gold-dark: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-elevated: #222230;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-purple: #A855F7;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-gold: 1px solid rgba(255, 215, 0, 0.3);
    --shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Screen */
.admin-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-header {
    margin-bottom: 32px;
}

.login-header .logo-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.login-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-secondary);
}

.login-card form {
    padding: 0;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--gold-primary);
}

/* Dashboard Layout */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: var(--border-subtle);
}

.sidebar-header .logo-icon {
    font-size: 2rem;
}

.sidebar-header .logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.nav-icon {
    font-size: 1.2rem;
}

.sidebar-footer {
    padding: 16px;
    border-top: var(--border-subtle);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    color: var(--accent-red);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: var(--accent-red);
    color: white;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.admin-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: var(--border-subtle);
    z-index: 50;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user .user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-content {
    padding: 32px;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.users { background: rgba(59, 130, 246, 0.2); }
.stat-icon.lotteries { background: rgba(255, 215, 0, 0.2); }
.stat-icon.sales { background: rgba(16, 185, 129, 0.2); }
.stat-icon.revenue { background: rgba(168, 85, 247, 0.2); }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive { color: var(--accent-green); }
.stat-change.negative { color: var(--accent-red); }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
}

.dashboard-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.recent-item-info {
    display: flex;
    flex-direction: column;
}

.recent-item-name {
    font-weight: 600;
}

.recent-item-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.recent-item-value {
    font-weight: 700;
    color: var(--gold-primary);
}

/* Section Actions */
.section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px 20px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    width: 300px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.section-actions select {
    padding: 12px 20px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Data Tables */
.data-table-container {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr {
    border-bottom: var(--border-subtle);
}

.data-table tr:last-child {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--bg-elevated);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-cell-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.activo,
.status-badge.activa { 
    background: rgba(16, 185, 129, 0.2); 
    color: var(--accent-green); 
}

.status-badge.inactivo,
.status-badge.cerrada { 
    background: rgba(239, 68, 68, 0.2); 
    color: var(--accent-red); 
}

.status-badge.sorteada { 
    background: rgba(59, 130, 246, 0.2); 
    color: var(--accent-blue); 
}

.status-badge.ganador { 
    background: rgba(255, 215, 0, 0.2); 
    color: var(--gold-primary); 
}

.status-badge.perdedor { 
    background: rgba(107, 114, 128, 0.2); 
    color: var(--text-muted); 
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.action-btn.danger:hover {
    background: var(--accent-red);
    color: white;
}

/* Admin Lotteries Grid */
.lotteries-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.lottery-admin-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.lottery-admin-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: var(--border-subtle);
}

.lottery-admin-title h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.lottery-admin-title p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lottery-admin-body {
    padding: 20px;
}

.lottery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.lottery-stat {
    text-align: center;
}

.lottery-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.lottery-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.lottery-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lottery-admin-actions .btn {
    flex: 1;
    min-width: 80px;
}

.lottery-admin-card.destacada {
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.lottery-admin-card .lottery-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.lottery-admin-title .auto-badge {
    display: inline-block;
    background: var(--accent-purple);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: var(--bg-elevated);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
}

.checkbox-label span {
    font-weight: 500;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input[type="color"] {
    padding: 8px;
    height: 50px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: var(--border-subtle);
}

/* Form Inputs */
.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 0.2s ease;
}

.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);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* User Balance Display */
.user-balance-display {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Draw Modal */
.draw-content {
    padding: 24px;
    text-align: center;
}

.draw-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.draw-info {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.draw-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.draw-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--bg-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    transition: all var(--transition-normal);
}

.draw-option-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.option-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.option-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.draw-divider {
    color: var(--text-muted);
    position: relative;
}

.draw-divider::before,
.draw-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-subtle);
}

.draw-divider::before { left: 0; }
.draw-divider::after { right: 0; }

#manualDrawForm {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

#manualDrawForm button {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
    }
    
    .sidebar-header .logo-text,
    .nav-item span:last-child,
    .logout-btn span {
        display: none;
    }
    
    .admin-main {
        margin-left: 80px;
    }
    
    .nav-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .lotteries-admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Base Styles */
.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 0.3s ease;
}

.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 0.3s ease;
    box-shadow: var(--shadow-elevated);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal.modal-large {
    max-width: 700px;
}

.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;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--accent-red);
    color: white;
}

/* Modal Overrides */
.modal form {
    padding: 0;
}

.modal 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);
}

.modal textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* Toast */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
}

.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);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

.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-close {
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== MAINTENANCE SECTION ==================== */
.maintenance-header {
    margin-bottom: 30px;
}

.maintenance-warning {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    border-radius: 16px;
}

.maintenance-warning .warning-icon {
    font-size: 3rem;
}

.maintenance-warning h3 {
    color: var(--accent-red);
    margin-bottom: 4px;
}

.maintenance-warning p {
    color: var(--text-secondary);
}

.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.db-stat-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.db-stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.db-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-display);
}

.db-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cleanup-section h3 {
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.cleanup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cleanup-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cleanup-card.highlight {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.cleanup-icon {
    font-size: 2.5rem;
}

.cleanup-card h4 {
    font-size: 1.1rem;
}

.cleanup-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
}

.cleanup-count {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-outline.btn-danger {
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.btn-outline.btn-danger:hover {
    background: var(--accent-red);
    color: white;
}

/* ==================== SORTEO GRATIS ==================== */
.sorteo-gratis-section {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.sorteo-gratis-section h4 {
    color: #10B981;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.sorteo-gratis-section .section-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.sorteo-gratis-section .input-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.sorteo-gratis-tips {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.sorteo-gratis-tips h5 {
    color: var(--gold-primary);
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.sorteo-gratis-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sorteo-gratis-tips li {
    color: var(--text-secondary);
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sorteo-gratis-tips li:last-child {
    border-bottom: none;
}

.sorteo-gratis-tips li strong {
    color: var(--text-primary);
}

.gratis-badge {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

/* ==================== TIPO DE PREMIO ==================== */
.tipo-premio-selector {
    display: flex;
    gap: 16px;
}

.tipo-premio-option {
    flex: 1;
    cursor: pointer;
}

.tipo-premio-option input {
    display: none;
}

.tipo-premio-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tipo-premio-option input:checked + .tipo-premio-card {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

.tipo-premio-card:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.tipo-premio-card .tipo-icon {
    font-size: 2rem;
}

/* Premio Bien Section */
.premio-bien-section {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

/* Galería de Imágenes */
.galeria-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
}

.galeria-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    min-height: 50px;
}

.galeria-preview:empty::after {
    content: 'No hay imágenes agregadas';
    color: var(--text-muted);
    font-size: 0.85rem;
    grid-column: 1/-1;
    text-align: center;
    padding: 20px;
}

.galeria-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-elevated);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .remove-btn {
    opacity: 1;
}

.galeria-add {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.galeria-add input {
    flex: 1;
    min-width: 200px;
}

.galeria-add .btn {
    white-space: nowrap;
}

/* Badge para tipo de premio */
.bien-badge {
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}
