/* ===========================
   APP STYLES - LATINBOOK
   Social Media App CSS
   =========================== */

:root {
    --primary: #FF3CAC;
    --secondary: #FF6B35;
    --tertiary: #784BA0;
    --gradient: linear-gradient(135deg, #FF6B35, #FF3CAC, #784BA0);
    --bg-dark: #0A0E27;
    --bg-card: #1A1F3A;
    --text-light: #E8E8E8;
    --text-dim: #A0A0A0;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-btn i {
    font-size: 20px;
}

.nav-btn span {
    font-size: 11px;
}

.nav-btn.active {
    color: var(--primary);
}

.create-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ===========================
   TOP NAVIGATION BAR (Desktop)
   =========================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: none;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
    .top-nav {
        display: flex;
    }
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 500px;
}

.top-nav-left .logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.ai-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 16px;
    flex: 1;
    transition: all 0.3s;
}

.ai-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.1);
}

.ai-icon-search {
    color: var(--primary);
    font-size: 18px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.top-ai-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
}

.top-ai-input::placeholder {
    color: var(--text-dim);
}

.ai-search-submit {
    background: var(--gradient);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-search-submit:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.4);
}

.top-nav-center {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-nav-btn {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.top-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.top-nav-btn.active {
    color: var(--primary);
    background: rgba(255, 60, 172, 0.1);
    border-bottom: 3px solid var(--primary);
}

.top-nav-btn i {
    font-size: 22px;
}

.top-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-create-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.top-create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 60, 172, 0.4);
}

.top-messages-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 60, 172, 0.15));
    border: 2px solid transparent;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.15);
    backdrop-filter: blur(10px);
}

.top-messages-btn i {
    font-size: 20px;
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: messageIconPulse 2s ease-in-out infinite;
}

@keyframes messageIconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}

.top-messages-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25), rgba(255, 60, 172, 0.25));
    border-color: rgba(255, 60, 172, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 60, 172, 0.35);
}

.top-messages-btn:hover i {
    animation: messageIconBounce 0.6s ease;
}

@keyframes messageIconBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(0.9) rotate(-10deg); }
    50% { transform: scale(1.15) rotate(10deg); }
    75% { transform: scale(0.95) rotate(-5deg); }
}

.top-messages-btn .top-nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #FF3CAC, #FF6B35);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
    border: 2px solid var(--bg-dark);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 60, 172, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(255, 60, 172, 0.7);
    }
}

/* ===========================
   AI ASSISTANT MOBILE COMPACT
   =========================== */
.ai-assistant-mobile {
    display: none;
    margin-bottom: 20px;
}

@media (max-width: 1023px) {
    .ai-assistant-mobile {
        display: block;
    }
}

.ai-mobile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-mobile-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.ai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-mobile-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 15px;
    outline: none;
}

.ai-mobile-input::placeholder {
    color: var(--text-dim);
}

.ai-mobile-submit {
    background: var(--gradient);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-mobile-submit:hover {
    transform: scale(1.1);
}

/* ===========================
   APP CONTAINER
   =========================== */
.app-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: 70px;
}

@media (min-width: 1024px) {
    .app-container {
        padding-top: 60px;
    }
}

/* ===========================
   DESKTOP SIDEBAR
   =========================== */
.desktop-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: none;
}

@media (min-width: 1024px) {
    .desktop-sidebar {
        display: none; /* Ocultar sidebar en favor del top nav */
    }
    .mobile-nav {
        display: none;
    }
    .app-container {
        padding-bottom: 0;
        margin-left: 0; /* Sin margen izquierdo */
    }
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

/* Logo images official */
.logo-image-sidebar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-image-header-mobile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-image-top-nav {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.sidebar-link.active {
    background: rgba(255, 60, 172, 0.15);
    color: var(--primary);
}

.sidebar-link i {
    font-size: 20px;
    width: 24px;
}

.sidebar-link .badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.sidebar-create-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sidebar-create-btn:hover {
    transform: translateY(-2px);
}

.admin-link {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    flex: 1;
    max-width: 800px; /* Aumentado para mejor experiencia en desktop */
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .main-content {
        max-width: 700px;
    }
}

.mobile-header {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

@media (min-width: 1024px) {
    .mobile-header {
        display: none;
    }
}

.header-title {
    font-size: 20px;
    font-weight: 700;
}

.header-menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
}

/* ===========================
   CONTENT WRAPPER
   =========================== */
.content-wrapper {
    padding: 20px 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding: 30px 0;
    }
}

.section {
    display: none;
    min-height: 100vh;
}

.section.active {
    display: block;
}

.section-title {
    padding: 20px;
    font-size: 24px;
    font-weight: 700;
}

/* ===========================
   STORIES
   =========================== */
.stories-container {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    cursor: pointer;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    background-size: cover;
    background-position: center;
    position: relative;
}

.add-story .story-avatar {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.add-story .story-avatar i {
    font-size: 24px;
    color: var(--primary);
}

.story-name {
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

/* ===========================
   FEED POSTS
   =========================== */
.feed-posts {
    display: flex;
    flex-direction: column;
}

.post-card {
    background: var(--bg-card);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.post-info {
    flex: 1;
}

.post-author {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.post-time {
    font-size: 13px;
    color: var(--text-dim);
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
}

.post-content {
    padding: 0 20px 15px;
}

.post-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-image {
    width: 100%;
    border-radius: 0;
    display: block;
}

.post-stats {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    color: var(--text-dim);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-actions {
    display: flex;
    padding: 8px 20px;
}

.action-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-btn.liked {
    color: var(--danger);
}

.action-btn.liked i {
    animation: likeAnimation 0.5s;
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ===========================
   COMMENTS SECTION
   =========================== */
.post-comments {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.comments-list {
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.comment-time {
    font-size: 12px;
    color: var(--text-dim);
}

.comment-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-like-btn,
.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.comment-like-btn.liked {
    color: var(--danger);
}

.comment-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-input-group {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px 12px;
    transition: all 0.3s;
}

.comment-input-group:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 60, 172, 0.5);
}

.comment-input-group textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 14px;
    resize: none;
    outline: none;
    min-height: 20px;
    max-height: 120px;
    font-family: 'Inter', sans-serif;
}

.comment-input-group textarea::placeholder {
    color: var(--text-dim);
}

.comment-latinmoji-trigger {
    width: 28px;
    height: 28px;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-send-btn {
    background: linear-gradient(135deg, #FF6B35, #FF3CAC);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.comment-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 60, 172, 0.4);
}

.comment-send-btn:active {
    transform: scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SETTINGS / CONFIGURACIÓN
   =========================== */

/* Categorías de configuración */
.settings-category {
    margin-bottom: 32px;
}

.settings-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 0 20px;
}

.settings-category-title i {
    color: var(--primary-mid);
}

/* Lista de configuraciones */
.settings-list {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Item de configuración */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-secondary);
    transition: background var(--transition-fast);
}

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

.setting-item.clickable {
    cursor: pointer;
}

.setting-item.clickable:hover {
    background: var(--bg-hover);
}

/* Información del setting */
.setting-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.setting-icon {
    font-size: 20px;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.setting-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.setting-arrow {
    font-size: 14px;
    color: var(--text-dim);
}

/* Select de configuración */
.setting-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.setting-select:hover {
    background: var(--bg-hover);
}

.setting-select:focus {
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(255, 60, 172, 0.1);
}

/* Switch toggle (ya existe pero lo mejoramos) */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    transition: var(--transition-normal);
    border-radius: var(--radius-full);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background: var(--primary-gradient);
    border-color: var(--primary-mid);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Zona de peligro */
.danger-zone .settings-category-title {
    color: var(--danger);
}

.danger-zone .settings-category-title i {
    color: var(--danger);
}

.setting-item.danger .setting-icon,
.setting-item.danger .setting-label {
    color: var(--danger);
}

.setting-item.danger:hover {
    background: rgba(255, 59, 48, 0.1);
}

/* Footer de configuración */
.settings-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-primary);
}

.app-version {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.app-credits {
    font-size: 12px;
    color: var(--text-dim);
}

/* Responsive para configuraciones */
@media (max-width: 768px) {
    .settings-category {
        margin-bottom: 24px;
    }
    
    .settings-category-title {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .setting-item {
        padding: 14px 16px;
    }
    
    .setting-info {
        gap: 12px;
    }
    
    .setting-icon {
        font-size: 18px;
        width: 20px;
    }
    
    .setting-label {
        font-size: 14px;
    }
    
    .setting-description {
        font-size: 12px;
    }
}

/* ===========================
   VIDEOS SECTION
   =========================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 12px;
    }
}

.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 60, 172, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s;
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 12px;
    display: flex;
    gap: 10px;
}

.video-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-author {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 2px;
}

.video-stats {
    font-size: 12px;
    color: var(--text-dim);
}

@media (max-width: 768px) {
    .video-info {
        padding: 8px;
    }
    
    .video-title {
        font-size: 13px;
    }
    
    .video-author,
    .video-stats {
        font-size: 11px;
    }
}

/* ===========================
   PROFILE SECTION
   =========================== */
.profile-header {
    position: relative;
}

.profile-cover {
    width: 100%;
    height: 150px;
}

.profile-info {
    padding: 0 20px 20px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    margin-top: -50px;
    position: relative;
}

.profile-details h2 {
    font-size: 24px;
    margin-top: 15px;
}

.profile-username {
    color: var(--text-dim);
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 18px;
    font-weight: 700;
}

.stat span {
    font-size: 14px;
    color: var(--text-dim);
}

.profile-edit-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    transition: all 0.3s;
}

.profile-edit-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===========================
   PROFILE TABS
   =========================== */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-content {
    display: none;
    padding: 20px;
}

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

.empty-message {
    text-align: center;
    color: var(--text-dim);
    padding: 40px 20px;
}

/* ===========================
   MARKETPLACE - STORE SECTION
   =========================== */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.store-welcome h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.store-welcome p {
    color: var(--text-dim);
    font-size: 14px;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--gradient);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 60, 172, 0.3);
}

/* Store Stats */
.store-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.store-stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.store-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.store-stat-card i {
    font-size: 24px;
    color: var(--primary);
}

.store-stat-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.store-stat-card p {
    font-size: 12px;
    color: var(--text-dim);
}

/* Store Filters */
.store-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.search-filter {
    position: relative;
    min-width: 200px;
}

.search-filter i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-filter input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* Store Products Grid */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .store-products-grid {
        grid-template-columns: 1fr;
    }
}

.store-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.store-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.active {
    background: var(--success);
    color: white;
}

.product-badge.sold {
    background: var(--danger);
    color: white;
}

.product-badge.draft {
    background: var(--warning);
    color: var(--bg-dark);
}

.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.store-product-card:hover .product-actions {
    opacity: 1;
}

.action-icon {
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.action-icon:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.action-icon.danger:hover {
    background: var(--danger);
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.product-stock {
    font-size: 13px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-stock.out-of-stock {
    color: var(--danger);
}

.product-stock.draft-text {
    color: var(--warning);
}

.product-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
}

.product-stats-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.draft-message {
    font-style: italic;
    color: var(--warning);
}

/* Store Empty State */
.store-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.store-empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.store-empty-state p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

/* ===========================
   MODAL STYLES
   =========================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Product Form */
.product-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
}

.form-hint {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.input-with-icon input {
    padding-left: 40px;
}

/* Image Upload */
.image-upload-zone {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-main {
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-main:hover {
    border-color: var(--primary);
    background: rgba(255, 60, 172, 0.05);
}

.upload-main i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-main p {
    font-size: 15px;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-dim);
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-label input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label input:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.save-options {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
}

/* ===========================
   RIGHT SIDEBAR
   =========================== */
.right-sidebar {
    width: 320px;
    padding: 20px;
    display: none;
}

@media (min-width: 1280px) {
    .right-sidebar {
        display: block;
    }
}

.suggestions-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
}

.suggestions-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.suggestion-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.suggestion-item h4 {
    font-size: 14px;
    font-weight: 600;
}

.suggestion-item p {
    font-size: 13px;
    color: var(--text-dim);
}

.follow-btn {
    margin-left: auto;
    padding: 6px 16px;
    background: var(--primary);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.follow-btn:hover {
    transform: scale(1.05);
}

/* ===========================
   INSTALL BANNER
   =========================== */
.install-banner {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    z-index: 1500;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.install-text h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.install-text p {
    font-size: 13px;
    color: var(--text-dim);
}

.install-btn {
    padding: 8px 16px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.install-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .store-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .store-filters {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .modal-content {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

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