/* ==========================================================================
   LuxeVibe Premium CSS - Hoja de Estilos de Alta Gama
   Diseñado para el Mercado Chileno 🇨🇱
   Estilo: Obsidian Deep, Glassmorphism, Neon Glow & High-Performance Transitions
   ========================================================================== */

/* 1. RESET Y CONFIGURACIONES DE BASE */
:root {
    /* Paleta de Colores de Lujo */
    --bg-obsidian: #09090b;
    --bg-card: rgba(18, 18, 22, 0.75);
    --bg-card-hover: rgba(26, 26, 32, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(255, 46, 147, 0.3);
    
    --primary-neon: #ff2e93;        /* Hot Pink */
    --primary-glow: rgba(255, 46, 147, 0.45);
    --secondary-neon: #8a2be2;      /* Electric Violet */
    --secondary-glow: rgba(138, 43, 226, 0.45);
    
    --text-white: #f4f4f5;
    --text-muted: #a1a1aa;
    --text-dark: #18181b;
    --gold-premium: #fbbf24;        /* Gold Accent */
    --gold-glow: rgba(251, 191, 36, 0.4);
    --success-green: #10b981;
    
    /* Tipografía y Efectos */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-blur: blur(16px);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    background-color: var(--bg-obsidian);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbars Personalizados Premium */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}

/* ==========================================================================
   2. PUERTA DE VERIFICACIÓN DE EDAD (AGE GATE)
   ========================================================================== */
.age-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 6, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.age-gate-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    text-align: center;
}

.age-gate-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 46, 147, 0.08) 0%, rgba(138, 43, 226, 0.05) 50%, transparent 100%);
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

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

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-white);
}

.logo-accent {
    color: var(--primary-neon);
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    margin-left: 4px;
    box-shadow: 0 0 12px var(--primary-glow);
}

.age-gate-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.age-gate-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Caja de Cumplimiento Legal Chileno */
.chile-legal-box {
    position: relative;
    background: rgba(9, 9, 11, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: left;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chile-flag-strip {
    height: 4px;
    width: 100%;
    background: linear-gradient(to right, #002b7f 33.3%, #ffffff 33.3%, #ffffff 66.6%, #d52b1e 66.6%);
}

.legal-box-content {
    padding: 20px;
}

.legal-box-content h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.legal-icon {
    color: var(--primary-neon);
    margin-right: 8px;
}

.legal-box-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.legal-box-content ul {
    list-style-type: none;
}

.legal-box-content li {
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.legal-box-content li::before {
    content: "•";
    color: var(--primary-neon);
    position: absolute;
    left: 4px;
    font-size: 1.2rem;
    top: -2px;
}

.age-gate-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 30px;
}

/* Botones Premium */
.btn-primary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.btn-glow {
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: #000;
    background: linear-gradient(135deg, #fcd34d 0%, var(--gold-premium) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--gold-glow);
    transition: var(--transition-smooth);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--gold-glow);
}

.age-gate-footer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   3. MAQUETACIÓN ESTRUCTURAL DE LA APP (GRID SYSTEM DE TRES COLUMNAS)
   ========================================================================== */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr 340px;
    min-height: 100vh;
    width: 100%;
}

/* --- SIDEBAR IZQUIERDO --- */
.sidebar-left {
    background: rgba(10, 10, 12, 0.85);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-left: 10px;
}

.sidebar-brand .logo-text {
    font-size: 1.8rem;
}

.country-badge {
    background: var(--primary-neon);
    color: var(--text-white);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
    text-transform: uppercase;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
}

.menu-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    color: var(--text-white);
    background: linear-gradient(90deg, rgba(255, 46, 147, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--primary-neon);
}

.badge-counter {
    background-color: var(--primary-neon);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    box-shadow: 0 0 8px var(--primary-glow);
}

.sidebar-user-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-top: auto;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-display-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    margin-left: auto;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    color: var(--primary-neon);
}

/* --- COLUMNA CENTRAL (MAIN CONTENT) --- */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
    background: linear-gradient(180deg, #0d0d11 0%, var(--bg-obsidian) 100%);
}

.app-header {
    height: 80px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(13, 13, 17, 0.8);
    backdrop-filter: var(--glass-blur);
    z-index: 100;
}

.header-search-bar {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px 10px 44px;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.header-search-bar input:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(255, 46, 147, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-header-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.btn-header-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-neon);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-neon);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
    box-shadow: 0 0 8px var(--primary-glow);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(0.9); opacity: 1; }
}

.wallet-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.wallet-pill:hover {
    border-color: var(--primary-neon);
    background: rgba(255, 46, 147, 0.05);
}

.wallet-icon {
    color: var(--primary-neon);
}

.btn-header-publish {
    padding: 10px 20px !important;
}

/* --- FEED VIEWPORT --- */
.feed-viewport {
    padding: 30px;
    flex-grow: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.feed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    overflow-x: auto;
}

.filter-tab {
    font-family: var(--font-heading);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

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

.filter-tab.active {
    color: var(--primary-neon);
    background: rgba(255, 46, 147, 0.08);
}

/* Aviso Ley 17.336 Chile */
.chile-copyright-alert {
    display: flex;
    gap: 16px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.alert-icon-container {
    color: var(--gold-premium);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-text-container h5 {
    font-family: var(--font-heading);
    color: var(--gold-premium);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.alert-text-container p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   4. TARJETAS DE CONTENIDO (POST CARDS) Y BLOQUEO PREMIUM
   ========================================================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

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

.post-creator-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.creator-meta {
    display: flex;
    flex-direction: column;
}

.creator-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.95rem;
}

.creator-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-region {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}

.btn-post-more {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.btn-post-more:hover {
    color: var(--text-white);
}

.post-price-badge {
    font-family: var(--font-heading);
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--gold-premium);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.post-body {
    margin-bottom: 20px;
}

.post-caption {
    font-size: 0.95rem;
    color: var(--text-white);
    margin-bottom: 16px;
    line-height: 1.5;
}

.post-media-container {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-media-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

/* Efecto de bloqueo de imagen con desenfoque */
.blurred-image {
    filter: blur(25px);
    opacity: 0.35;
    transform: scale(1.05);
}

/* Capa de Bloqueo Premium en Tarjeta */
.media-locked {
    min-height: 380px;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.locked-glow-bg {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.gold-glow {
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
}

.locked-icon {
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.play-icon {
    color: var(--gold-premium) !important;
}

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

.locked-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.locked-overlay p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 320px;
    margin-bottom: 24px;
}

.btn-unlock {
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
}

.tax-hint-text {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Footer y Estadísticas */
.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.btn-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-stat:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-like:hover {
    color: var(--primary-neon);
    border-color: rgba(255, 46, 147, 0.3);
}

.btn-like.liked {
    color: var(--primary-neon);
    background: rgba(255, 46, 147, 0.08);
    border-color: rgba(255, 46, 147, 0.4);
}

.btn-like.liked i {
    font-weight: 900;
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(0.6); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.btn-tip-action {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.2);
    color: var(--gold-premium);
    margin-left: auto;
}

.btn-tip-action:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: var(--gold-premium);
    transform: scale(1.02);
}

.locked-stat {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ==========================================================================
   5. SIDEBAR DERECHO: INTERACCIONES, CREADORES LIVE & RETIRO BANCARIO
   ========================================================================== */
.sidebar-right {
    background: rgba(10, 10, 12, 0.85);
    border-left: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Creadores En Vivo */
.live-creators-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.live-creator-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.live-creator-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.avatar-live-container {
    position: relative;
    display: inline-block;
}

.border-live {
    border: 2px solid var(--primary-neon) !important;
}

.live-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-neon);
    color: var(--text-white);
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    box-shadow: 0 0 6px var(--primary-glow);
}

.live-creator-meta {
    display: flex;
    flex-direction: column;
}

.live-creator-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.live-viewers {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.live-viewers i {
    color: var(--primary-neon);
    margin-right: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-neon);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-glow);
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Widget Promo Premium */
.promo-premium-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(255, 46, 147, 0.1) 100%);
    border-color: rgba(138, 43, 226, 0.3);
}

.promo-glow-bg {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.promo-icon {
    font-size: 1.8rem;
    color: var(--gold-premium);
    margin-bottom: 12px;
}

.promo-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.promo-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 16px;
}

.btn-promo {
    width: 100%;
    padding: 10px 0 !important;
    font-size: 0.85rem !important;
}

/* Widget Retiro TEF Creadores */
.wallet-withdrawal-widget {
    border-color: rgba(16, 185, 129, 0.2);
}

.creator-earnings-preview {
    margin-bottom: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 14px;
}

.earnings-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.creator-earnings-preview h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--success-green);
    margin: 4px 0;
}

.payout-tax-note {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
    display: block;
}

.btn-withdraw {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--success-green) !important;
    padding: 12px 0;
}

.btn-withdraw:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    transform: scale(1.02);
}

.tef-info-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
    text-align: center;
}

.sidebar-terms-footer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    margin-top: auto;
}

/* ==========================================================================
   6. MODALES INTERACTIVOS Y TRANSACCIONES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 6, 8, 0.85);
    backdrop-filter: var(--glass-blur);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

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

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.btn-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.3rem;
    transition: var(--transition-smooth);
}

.btn-modal-close:hover {
    color: var(--primary-neon);
}

.coin-icon-large {
    font-size: 2.8rem;
    color: var(--gold-premium);
    margin-bottom: 16px;
}

.icon-large-cyan {
    font-size: 2.8rem;
    color: #3b82f6;
    margin-bottom: 16px;
}

.icon-large-pink {
    font-size: 2.8rem;
    color: var(--primary-neon);
    margin-bottom: 16px;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tip-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tip-opt-btn {
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tip-opt-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tip-opt-btn.active {
    border-color: var(--gold-premium);
    background: rgba(251, 191, 36, 0.08);
    color: var(--gold-premium);
}

.custom-tip-container {
    position: relative;
    margin-bottom: 20px;
}

.custom-tip-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
}

.custom-tip-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.custom-tip-container input, .text-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 48px;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.text-input {
    padding: 12px 16px;
    font-weight: 500;
}

.custom-tip-container input:focus, .text-input:focus, .textarea-input:focus {
    border-color: var(--primary-neon);
}

.textarea-input {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    resize: none;
    transition: var(--transition-smooth);
}

.form-group {
    margin-bottom: 16px;
}

.form-group-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Caja de desglose de impuestos del SII */
.checkout-tax-summary-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.tax-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tax-row span:last-child {
    font-weight: 600;
    color: var(--text-white);
}

.tax-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.total-row {
    font-size: 0.95rem !important;
}

.total-row span:first-child {
    color: var(--text-white);
    font-weight: 700;
}

.total-row span:last-child {
    color: var(--gold-premium) !important;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

/* --- SIMULADOR DE WEBPAY PLUS (TRANSBANK) --- */
.webpay-overlay {
    background-color: rgba(0, 0, 0, 0.92) !important;
}

.webpay-modal-box {
    background: #f4f6f9;
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    color: #333;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: webpayPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

@keyframes webpayPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.webpay-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
}

.webpay-logo {
    display: flex;
    align-items: baseline;
}

.webpay-w {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e21b22;     /* Red Webpay */
}

.webpay-plus {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #002b7f;     /* Blue */
    margin-left: 2px;
}

.transbank-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e21b22;
}

.webpay-content {
    display: grid;
    grid-template-columns: 280px 1fr;
}

/* Lateral Webpay */
.webpay-summary-sidebar {
    background: #eef2f6;
    padding: 30px 20px;
    border-right: 1px solid #cbd5e1;
}

.webpay-summary-sidebar h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #cbd5e1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.sum-label {
    color: #64748b;
}

.sum-val {
    font-weight: 600;
    color: #1e293b;
}

.summary-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}

.total-sum-row {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.total-sum-row .sum-val {
    color: #e21b22;
    font-weight: 700;
}

.webpay-security-note {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 24px;
    text-align: center;
}

/* Contenido Principal Webpay */
.webpay-methods-main {
    padding: 30px;
    background: #fff;
}

.webpay-methods-main h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.webpay-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.webpay-method-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.webpay-method-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.webpay-method-card.active {
    border-color: #002b7f;
    background: #eff6ff;
}

.method-selector {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    position: relative;
}

.webpay-method-card.active .method-selector {
    border-color: #002b7f;
}

.webpay-method-card.active .method-selector::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #002b7f;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.method-icon-container {
    font-size: 1.4rem;
    color: #64748b;
}

.webpay-method-card.active .method-icon-container {
    color: #002b7f;
}

.method-meta {
    display: flex;
    flex-direction: column;
}

.method-meta strong {
    font-size: 0.88rem;
    color: #1e293b;
}

.method-meta span {
    font-size: 0.72rem;
    color: #64748b;
}

.popular-tag {
    position: absolute;
    right: 16px;
    background: #22c55e;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Panel Detalle de Banco */
.method-detail-panel {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.webpay-select {
    width: 100%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
    margin-bottom: 12px;
}

.rut-input-group {
    display: flex;
    flex-direction: column;
}

.webpay-input {
    width: 100%;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
}

.webpay-action-buttons {
    display: flex;
    gap: 12px;
}

.btn-webpay-pay {
    flex-grow: 2;
    background: #e21b22;
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(226, 27, 34, 0.3);
    transition: var(--transition-smooth);
}

.btn-webpay-pay:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.btn-webpay-cancel {
    flex-grow: 1;
    background: #e2e8f0;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-webpay-cancel:hover {
    background: #cbd5e1;
    color: #334155;
}

/* ==========================================================================
   7. PANEL DE SUBIDA DE CONTENIDO DEL CREADOR (CREATOR SANDBOX)
   ========================================================================== */
.creator-sandbox-box {
    max-width: 580px !important;
}

.sandbox-creator-profile-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.sandbox-creator-profile-preview strong {
    font-family: var(--font-heading);
    display: block;
    font-size: 0.95rem;
}

/* Vista previa de imagen */
.sandbox-media-preview-container {
    margin-bottom: 24px;
}

.preview-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sandbox-preview-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sandbox-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.locked-preview-indicator {
    position: absolute;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 46, 147, 0.3);
    color: var(--gold-premium);
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

/* ==========================================================================
   8. VENTANA DE CHAT PRIVADO SIMULADO (ESTILO FLOATING MESSENGER)
   ========================================================================== */
.floating-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    height: 480px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 46, 147, 0.2);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 150;
    animation: chatSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

.chat-header {
    background: rgba(255, 46, 147, 0.08);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-creator-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.online-indicator-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success-green);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
    border: 2px solid var(--bg-obsidian);
}

.chat-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.btn-chat-header {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-chat-header:hover {
    color: var(--primary-neon);
    background: rgba(255, 255, 255, 0.08);
}

.chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-system-message {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-system-message i {
    color: var(--primary-neon);
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.bubble-incoming {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble-outgoing {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-neon) 100%);
    color: var(--text-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: 2px;
}

.bubble-outgoing + .msg-time {
    align-self: flex-end;
}

.chat-input-area {
    border-top: 1px solid var(--border-color);
    padding: 12px;
    display: flex;
    gap: 8px;
    background: rgba(10, 10, 12, 0.95);
}

.chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-white);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.chat-input-area input:focus {
    border-color: var(--primary-neon);
}

.btn-send-chat {
    background: var(--primary-neon);
    border: none;
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-send-chat:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ==========================================================================
   9. RESPONSIVIDAD (MOBILE COMPATIBILITY)
   ========================================================================== */
@media (max-width: 1200px) {
    .app-layout {
        grid-template-columns: 80px 1fr 300px;
    }
    .sidebar-left {
        align-items: center;
        padding: 30px 10px;
    }
    .sidebar-brand .logo-text, .menu-item span, .user-info-text {
        display: none;
    }
    .sidebar-brand {
        padding-left: 0;
        margin-bottom: 30px;
    }
    .sidebar-user-footer {
        padding: 10px;
    }
    .btn-logout {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .app-layout {
        grid-template-columns: 80px 1fr;
    }
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 600px) {
    .app-layout {
        grid-template-columns: 1fr;
        padding-bottom: 70px; /* Espacio para menú inferior en móviles */
    }
    .sidebar-left {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 60px;
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        z-index: 1000;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: var(--glass-blur);
    }
    .sidebar-brand, .sidebar-user-footer {
        display: none;
    }
    .sidebar-menu {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
        margin-top: 0;
    }
    .menu-item {
        padding: 10px;
        border-radius: 0;
        background: transparent !important;
        border-left: none !important;
    }
    .menu-item.active {
        color: var(--primary-neon);
    }
    .app-header {
        padding: 0 16px;
    }
    .header-search-bar {
        width: 180px;
    }
    .feed-viewport {
        padding: 16px;
    }
    .post-card {
        padding: 16px;
    }
    .post-stats {
        gap: 8px;
    }
    .btn-stat {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .tip-options-grid {
        grid-template-columns: 1fr;
    }
    .webpay-content {
        grid-template-columns: 1fr;
    }
    .webpay-summary-sidebar {
        border-right: none;
        border-bottom: 1px solid #cbd5e1;
    }
    .floating-chat-container {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 75px;
    }
}
