/* Mi Espacio - Dashboard Personal para Usuarios Individuales */

/* ===== HEADER SIMPLE ===== */
.simple-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== DESKTOP NAVIGATION ===== */
.header-nav-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-home {
    background: #1EAA92;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-home:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 170, 146, 0.3);
}

.logout-btn-header {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.logout-btn-header:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background: #f3f4f6;
}

.mobile-menu-item.logout-mobile {
    color: #dc2626;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu-item.logout-mobile:hover {
    background: #fef2f2;
}

/* ===== HERO SECTION MEJORADA ===== */
.hero-section {
    background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content-center {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.welcome-icon {
    position: absolute;
    bottom: -50px;
    right: 2rem;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.main-content {
    min-height: calc(100vh - 80px);
    background: #f8fafc;
}

.personal-header {
    position: relative;
    margin-bottom: 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== DASHBOARD GRID MEJORADO ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border: 2px solid #f59e0b;
    position: relative;
    overflow: hidden;
}

.dashboard-card.featured::before {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.dashboard-card.featured .card-icon {
    color: #92400e;
    background: rgba(146, 64, 14, 0.1);
    border: 2px solid rgba(146, 64, 14, 0.2);
}

.dashboard-card.featured .card-title {
    color: #92400e;
}

.dashboard-card.featured .card-description {
    color: #78350f;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    color: #1EAA92;
    background: rgba(30, 170, 146, 0.1);
    padding: 1rem;
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(30, 170, 146, 0.2);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.card-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: #1EAA92;
    color: white;
    font-weight: 600;
}

.btn-primary:disabled {
    background: #9ca3af;
    color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:hover {
    background: #16a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 170, 146, 0.3);
}

.btn-secondary {
    background: #3b82f6;
    color: white;
    font-weight: 600;
}

.btn-secondary:disabled {
    background: #9ca3af;
    color: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1EAA92;
    border: 2px solid #1EAA92;
    font-weight: 600;
}

.btn-outline:hover {
    background: #1EAA92;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 170, 146, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .brand-text {
        font-size: 1.25rem;
    }
    
    .simple-header {
        position: relative;
    }
}


.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-card.featured {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border: 2px solid #f6ad55;
}

.dashboard-card.featured::before {
    content: '⭐';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card.featured .card-icon {
    color: #d69e2e;
    background: rgba(214, 158, 46, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.card-content {
    flex: 1;
}

.card-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #48bb78;
    color: white;
}

.btn-secondary:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.btn-accent {
    background: #ed8936;
    color: white;
}

.btn-accent:hover {
    background: #dd6b20;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

/* Información de la Cuenta */
.account-info {
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-title::before {
    content: '👤';
    font-size: 1.25rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #4a5568;
}

.info-value {
    color: #2d3748;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem 0;
    }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .welcome-icon {
        margin-top: 1rem;
        font-size: 3rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-card {
        padding: 1.5rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .welcome-card {
        padding: 1.5rem;
    }

    .welcome-title {
        font-size: 1.75rem;
    }

    .dashboard-card {
        padding: 1.25rem;
    }

    .card-icon {
        font-size: 1.5rem;
        width: 3rem;
        height: 3rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* Estados de carga y mensajes */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.message.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.message.info {
    background: #ebf8ff;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================================
   NUEVO: Dashboard por pestañas (Me Gusta + Directorio Personal)
   ========================================================== */

/* Tabs */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #374151;
}

.tab-btn.active {
    color: #1EAA92;
    border-bottom-color: #1EAA92;
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-count {
    background: #1EAA92;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.business-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.business-card__banner {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f3f4f6;
}

.business-card__body {
    padding: 1rem;
}

.business-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-card__phone {
    font-size: 0.85rem;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.business-card__phone a {
    color: #10b981;
    text-decoration: none;
}

.business-card__address {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.business-card__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.business-card__actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Directorio Personal - Listas */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.25rem;
}

.list-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.list-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.list-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
}

.list-card__info {
    flex: 1;
    min-width: 0;
}

.list-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-card__description {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

.list-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.list-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.list-card__badge--public {
    background: #d1fae5;
    color: #065f46;
}

.list-card__badge--private {
    background: #fef3c7;
    color: #92400e;
}

.list-card__toggle {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.list-card__toggle button {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}

.list-card__toggle button:hover {
    background: #f3f4f6;
    color: #374151;
}

.list-card__toggle button.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Entries dentro de lista (expandible) */
.list-entries {
    display: none;
    margin-top: 1rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1rem;
}

.list-entries.open {
    display: block;
}

.entry-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 0.5rem;
    transition: background 0.15s ease;
}

.entry-item:hover {
    background: #f3f4f6;
}

.entry-item__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.entry-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-item__info {
    flex: 1;
    min-width: 0;
}

.entry-item__name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.entry-item__details {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.entry-item__details a {
    color: #1EAA92;
    text-decoration: none;
}

.entry-item__details a:hover {
    text-decoration: underline;
}

.entry-item__remove {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.entry-item__remove:hover {
    color: #dc2626;
    background: #fef2f2;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.profile-avatar {
    font-size: 4rem;
    color: #1EAA92;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.profile-email {
    color: #6b7280;
    font-size: 0.95rem;
}

.profile-joined,
.profile-type {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0.15rem 0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.empty-hint {
    font-size: 0.9rem !important;
    color: #d1d5db;
}

/* Modal reutilizable */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.25s ease;
}

.modal-sm { max-width: 480px; }
.modal-md { max-width: 600px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Form helpers */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1EAA92;
    box-shadow: 0 0 0 3px rgba(30,170,146,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
    color: #4b5563;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1EAA92;
}

/* Buttons */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loader inline */
.loader-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #1EAA92;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Toast integration - reuse existing toast.css styles for the modal buttons */
.toast-integration .btn {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .lists-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* ===== LIKES RECIBIDOS ===== */
.likes-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.likes-summary__card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.likes-summary__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary, #1EAA92);
}

.likes-summary__label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Business con likes */
.business-likes-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.business-likes-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
}

.business-likes-card__header:hover {
    background: #f9fafb;
}

.business-likes-card__header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.business-likes-card__header .no-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.2rem;
}

.business-likes-card__info {
    flex: 1;
    min-width: 0;
}

.business-likes-card__name {
    font-weight: 600;
    font-size: 1rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-likes-card__count {
    font-size: 0.85rem;
    color: #6b7280;
}

.business-likes-card__chevron {
    color: #9ca3af;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.business-likes-card__chevron.open {
    transform: rotate(180deg);
}

.business-likes-card__body {
    display: none;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem;
}

.business-likes-card__body.open {
    display: block;
}

/* Usuario que dio like */
.like-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.like-user:last-child {
    border-bottom: none;
}

.like-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.like-user__avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1EAA92, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.like-user__info {
    flex: 1;
    min-width: 0;
}

.like-user__name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #111827;
}

.like-user__date {
    font-size: 0.8rem;
    color: #9ca3af;
}

.like-user__email {
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== WORLD CUP PREDICTOR HERO ===== */
.wcp-hero {
    margin: 1.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.wcp-hero-link {
    display: block;
    text-decoration: none;
    position: relative;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 40%, #16213e 100%);
    border: 1px solid rgba(200, 155, 60, 0.25);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(200, 155, 60, 0.08);
}

.wcp-hero-link:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 155, 60, 0.5);
    box-shadow: 0 12px 40px rgba(200, 155, 60, 0.15);
}

/* Background orbs */
.wcp-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.wcp-orb--1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -40px;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.15), transparent 70%);
    animation: wcp-pulse 4s ease-in-out infinite;
}

.wcp-orb--2 {
    width: 150px;
    height: 150px;
    bottom: -40px;
    left: -30px;
    background: radial-gradient(circle, rgba(27, 42, 74, 0.4), transparent 70%);
    animation: wcp-pulse 5s ease-in-out infinite reverse;
}

@keyframes wcp-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Grid pattern */
.wcp-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(200, 155, 60, 1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 155, 60, 1) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Content layout */
.wcp-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.wcp-hero-text {
    flex: 1;
    min-width: 0;
}

/* Badge */
.wcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(200, 155, 60, 0.1);
    border: 1px solid rgba(200, 155, 60, 0.25);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #C89B3C;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Title */
.wcp-hero-title {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 640px) {
    .wcp-hero-title { font-size: 2.5rem; }
}

@media (min-width: 768px) {
    .wcp-hero-title { font-size: 3rem; }
}

.wcp-shimmer {
    background: linear-gradient(90deg, #a67d2e, #C89B3C, #E8C96C, #C89B3C, #a67d2e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wcp-shimmer-anim 3s linear infinite;
}

@keyframes wcp-shimmer-anim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.wcp-white {
    color: #ffffff;
}

/* Description */
.wcp-hero-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 400px;
}

@media (min-width: 640px) {
    .wcp-hero-desc { font-size: 0.95rem; }
}

/* CTA */
.wcp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #C89B3C, #e0ac38);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3);
}

.wcp-hero-link:hover .wcp-cta {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(200, 155, 60, 0.4);
}

.wcp-cta i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.wcp-hero-link:hover .wcp-cta i {
    transform: translateX(4px);
}

/* Cup image */
.wcp-hero-copa {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

@media (min-width: 640px) {
    .wcp-hero-copa { width: 110px; height: 110px; }
}

@media (min-width: 768px) {
    .wcp-hero-copa { width: 130px; height: 130px; }
}

.wcp-copa-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: wcp-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 16px rgba(200, 155, 60, 0.5));
    transition: filter 0.4s ease;
}

.wcp-hero-link:hover .wcp-copa-img {
    filter: drop-shadow(0 0 30px rgba(200, 155, 60, 0.7));
}

@keyframes wcp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
