/* ============================================================
   🚀 FIX DE VISIBILIDAD DE CONTENIDO (PC Y MÓVIL)
   ============================================================ */

main.main-content {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
    min-height: 500px;
}

.tab-content {
    display: none;
}

/* Forzar que la pestaña activa SIEMPRE se vea */
.tab-content.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

:root {
    --bg: #ffffff;
    --bg-secondary: #f5f6f8;
    --bg-card: #ffffff;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --primary: #1a73e8;
    --primary-light: #e8f0fe;
    --secondary: #34a853;
    --accent: #fbbc05;
    --success: #34a853;
    --warning: #fbbc05;
    --danger: #ea4335;
    --pink: #e91e63;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #4fc3f7 100%);
    --gradient-secondary: linear-gradient(135deg, #34a853 0%, #1a73e8 100%);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.25s ease;
    --nav-height: 64px;
}

body.dark {
    --bg: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f2947;
    --text: #e4e6f0;
    --text-secondary: #8b8fa8;
    --border: #2d3555;
    --primary-light: #1e3a5f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.title-bar { display: none !important; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.logo-text { 
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connection-dot { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.online { background: var(--success); box-shadow: 0 0 12px rgba(52,168,83,0.6); }
.dot.offline { background: var(--danger); box-shadow: 0 0 12px rgba(234,67,53,0.6); animation: blink 1.5s infinite; }

@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.nav-center { display: flex; align-items: center; gap: 6px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { 
    background: var(--gradient-primary); 
    color: white; 
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover { background: var(--primary-light); color: var(--primary); }

.user-area { position: relative; }

.google-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    min-height: 42px;
}

.google-login-btn img { width: 20px; height: 20px; }
.google-login-btn:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15); }

.user-profile { position: relative; cursor: pointer; padding: 4px; }

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    display: block;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}

.user-dropdown.show { display: block; }

.dropdown-header { display: flex; align-items: center; gap: 14px; padding: 20px; }
.dropdown-header img { width: 44px; height: 44px; border-radius: 12px; }
.dropdown-name { font-weight: 600; font-size: 0.95rem; }
.dropdown-email { font-size: 0.78rem; color: var(--text-secondary); }
.dropdown-divider { height: 1px; background: var(--border); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Inter';
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.logout { color: var(--danger); }
.dropdown-item.logout:hover { background: rgba(234,67,53,0.08); }

.main-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.lang-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-select-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; }

.lang-detect-btn {
    padding: 12px 18px;
    background: var(--primary-light);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--primary);
    font-family: 'Inter';
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-detect-btn:hover { border-color: var(--primary); }

.lang-select {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Inter';
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    min-height: 48px;
}

.lang-select:focus { outline: none; border-color: var(--primary); }

.swap-lang-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.swap-lang-btn:hover { transform: rotate(180deg); }

.translator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.translator-split { display: flex; min-height: 340px; }
.panel { flex: 1; display: flex; flex-direction: column; position: relative; }
.panel-source { border-right: 1px solid var(--border); }

.panel textarea {
    flex: 1;
    padding: 28px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter';
    font-size: 1.15rem;
    line-height: 1.75;
    resize: none;
    outline: none;
    min-height: 180px;
}

.panel textarea::placeholder { color: var(--text-secondary); opacity: 0.5; }

.target-content {
    flex: 1;
    padding: 28px;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--text);
    word-wrap: break-word;
    background: var(--bg-secondary);
    min-height: 180px;
}

.target-placeholder { color: var(--text-secondary); opacity: 0.5; font-style: italic; }

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

.panel-actions { display: flex; gap: 6px; }

.panel-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-btn:hover { background: var(--primary-light); color: var(--primary); }

.mic-btn.active {
    background: var(--danger); color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234,67,53,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(234,67,53,0); }
}

.bookmark-btn.active i { font-weight: 900; color: var(--warning); }
.char-counter { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.clear-float-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-float-btn:hover { background: var(--danger); color: white; }

.translation-status {
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.translation-status.success { background: rgba(52,168,83,0.1); color: var(--success); }
.translation-status.error { background: rgba(234,67,53,0.1); color: var(--danger); }

.repeat-bar {
    display: flex;
    gap: 24px;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-wrap: wrap;
}

.repeat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

.repeat-item label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.stepper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.stepper-btn {
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-btn:hover { background: var(--primary-light); }

.stepper input {
    width: 46px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter';
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.repeat-progress {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    background: rgba(52,168,83,0.05);
}

.rp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 10px;
}

.rp-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rp-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s;
}

.rp-stop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(234,67,53,0.08);
    border: 1px solid rgba(234,67,53,0.2);
    border-radius: 12px;
    color: var(--danger);
    font-family: 'Inter';
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* ⭐ CÁMARA ESTILO WHATSAPP */
.camera-container {
    max-width: 900px;
    margin: 0 auto;
}

.camera-welcome {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
}

.camera-welcome-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 30px rgba(26, 115, 232, 0.3);
}

.camera-welcome h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.camera-welcome p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.camera-lang-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.camera-lang-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: left;
}

.camera-lang-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.camera-main-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.camera-main-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 24px;
    border-radius: var(--radius);
    font-family: 'Inter';
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    min-height: 130px;
}

.camera-main-btn.primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
}

.camera-main-btn.secondary {
    background: var(--bg-card);
    color: var(--primary);
    border-color: var(--primary);
}

.camera-main-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.35);
}

.camera-main-btn i { font-size: 2.5rem; }

/* Cámara fullscreen tipo WhatsApp */
.camera-live {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.camera-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    z-index: 10;
    padding-top: max(20px, env(safe-area-inset-top));
}

.camera-close-btn,
.camera-flash-btn,
.camera-switch-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.camera-close-btn:hover,
.camera-flash-btn:hover,
.camera-switch-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.camera-close-btn:active,
.camera-flash-btn:active,
.camera-switch-btn:active {
    transform: scale(0.9);
}

.camera-flash-btn.active {
    background: #fbbc05;
    color: #000;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.camera-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 10;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.camera-gallery-quick {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.camera-gallery-quick:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.camera-gallery-quick:active { transform: scale(0.9); }

.camera-capture-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.capture-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    transition: var(--transition);
}

.camera-capture-btn:hover .capture-inner { transform: scale(0.95); }
.camera-capture-btn:active { transform: scale(0.9); }
.camera-capture-btn:active .capture-inner {
    transform: scale(0.85);
    background: #e0e0e0;
}

.camera-spacer {
    width: 56px;
    height: 56px;
}

.camera-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.preview-back-btn,
.preview-retake-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.preview-back-btn:hover,
.preview-retake-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.preview-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

#previewImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: var(--bg-secondary);
}

.camera-process-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-family: 'Inter';
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.camera-process-btn:hover { 
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.ocr-progress {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ocr-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 600;
}

.ocr-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.ocr-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.ocr-results { display: flex; flex-direction: column; gap: 16px; }

.ocr-result-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.ocr-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.ocr-result-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ocr-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
}

.ocr-copy-btn:hover { background: var(--primary-light); color: var(--primary); }

.ocr-result-content {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 60px;
    word-wrap: break-word;
}

.ocr-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.camera-new-photo-btn,
.camera-use-translation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border: none;
    border-radius: var(--radius);
    font-family: 'Inter';
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.camera-new-photo-btn {
    background: var(--bg-card);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.camera-new-photo-btn:hover { background: var(--primary-light); }

.camera-use-translation-btn {
    background: var(--gradient-secondary);
    color: white;
}

.camera-use-translation-btn:hover { 
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* PÁGINAS */
.tab-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.tab-page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-page-header h2 i { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tab-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.search-history {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Inter';
    font-size: 0.9rem;
    outline: none;
    min-height: 44px;
}

.search-history:focus { border-color: var(--primary); }

.clear-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(234,67,53,0.08);
    border: 2px solid rgba(234,67,53,0.2);
    border-radius: 12px;
    color: var(--danger);
    font-family: 'Inter';
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    flex-shrink: 0;
}

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-secondary); }
.empty-state i { font-size: 3.5rem; margin-bottom: 20px; opacity: 0.3; }
.empty-state p { font-size: 1rem; }

.history-list { display: flex; flex-direction: column; gap: 12px; }

.h-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.h-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }

.h-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.h-item-langs { 
    font-size: 0.75rem; 
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary); 
    font-weight: 600;
    border-radius: 20px;
}

.h-item-time { font-size: 0.72rem; color: var(--text-secondary); }
.h-item-source { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 8px; }
.h-item-target { font-size: 0.95rem; color: var(--text); font-weight: 600; }

.h-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.h-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    font-family: 'Inter';
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 38px;
}

.h-action.play-src { background: rgba(26,115,232,0.1); color: var(--primary); }
.h-action.play-tgt { background: rgba(52,168,83,0.1); color: var(--success); }
.h-action.load { background: rgba(251,188,5,0.1); color: #d4a017; }
.h-action.delete { background: rgba(234,67,53,0.08); color: var(--danger); padding: 10px 12px; }
.h-action.bookmark-h { background: rgba(251,188,5,0.1); color: var(--warning); padding: 10px 12px; }

.settings-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
}

.settings-overlay.show { display: flex; }

.settings-panel {
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.settings-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-close {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-body { padding: 12px 0 30px; }
.setting-group { padding: 0 24px 24px; }

.setting-group h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 20px 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.setting-help {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 14px;
}

.setting-row span {
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-row span i { color: var(--primary); width: 20px; text-align: center; }
.setting-info { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

.setting-range { display: flex; align-items: center; gap: 12px; }
.setting-range input[type="range"] { width: 110px; accent-color: var(--primary); }
.setting-range span {
    font-size: 0.85rem; font-weight: 600;
    color: var(--primary); min-width: 40px;
}

.settings-mobile-content { display: flex; flex-direction: column; gap: 16px; }

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.settings-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.voice-gender-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    gap: 14px;
}

.voice-gender-row:last-of-type { border-bottom: none; }

.voice-gender-row label {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.voice-gender-row label i { color: var(--primary); }

.gender-selector {
    display: flex;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.gender-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Inter';
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 40px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gender-btn:hover { background: var(--primary-light); }

.gender-btn.active[data-gender="male"] {
    background: linear-gradient(135deg, var(--primary), #4fc3f7);
    color: white;
}

.gender-btn.active[data-gender="female"] {
    background: linear-gradient(135deg, var(--pink), #ff6b9d);
    color: white;
}

.test-voice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    padding: 16px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: 'Inter';
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.feedback-textarea:focus { border-color: var(--primary); }

.feedback-counter {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.feedback-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: 'Inter';
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}

.feedback-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.feedback-send-btn.sending i { animation: spinFeedback 1s linear infinite; }
@keyframes spinFeedback { 100% { transform: rotate(360deg); } }
.feedback-send-btn.success { background: linear-gradient(135deg, var(--success), #66bb6a); }

.toggle { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border); border-radius: 28px;
    cursor: pointer; transition: var(--transition);
}

.toggle-slider::before {
    content: ''; position: absolute;
    width: 22px; height: 22px;
    left: 3px; bottom: 3px;
    background: white; border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked + .toggle-slider { background: var(--gradient-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

.voice-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    display: none; align-items: center; justify-content: center;
    z-index: 400; padding: 20px;
}

.voice-overlay.show { display: flex; }

.voice-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    min-width: 320px;
}

.voice-waves {
    display: flex; align-items: center; justify-content: center;
    gap: 5px; margin-bottom: 24px; height: 48px;
}

.voice-waves span {
    width: 5px;
    background: var(--gradient-primary);
    border-radius: 5px;
    animation: wave 1s ease-in-out infinite;
}

.voice-waves span:nth-child(1) { height: 24px; animation-delay: 0s; }
.voice-waves span:nth-child(2) { height: 36px; animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { height: 48px; animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { height: 36px; animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { height: 24px; animation-delay: 0.4s; }

@keyframes wave { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1.2); } }

.voice-modal p { font-size: 1.15rem; font-weight: 600; margin-bottom: 24px; }

.voice-stop-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: var(--danger); border: none;
    border-radius: 14px; color: white;
    font-family: 'Inter'; font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
}

.google-popup {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 9999; text-align: center;
    min-width: 340px; max-width: 90vw;
}

.google-popup h3 { margin-bottom: 24px; color: var(--text); font-size: 1.15rem; }

.google-popup-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.google-popup-cancel {
    margin-top: 18px; padding: 12px 28px;
    background: transparent; border: 2px solid var(--border);
    border-radius: 12px; color: var(--text);
    cursor: pointer; font-family: 'Inter';
    font-size: 0.9rem; font-weight: 600;
}

.toast-container {
    position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center; width: 90%; max-width: 440px;
    pointer-events: none;
}

.toast-msg {
    padding: 14px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px;
    color: var(--text); text-align: center;
    pointer-events: auto;
}

.toast-msg i { color: var(--primary); font-size: 1rem; }
.toast-msg.success i { color: var(--success); }
.toast-msg.error i { color: var(--danger); }
.toast-msg.warning i { color: var(--warning); }

.mobile-nav { display: none; }

.install-banner {
    position: fixed;
    bottom: 110px;
    left: 20px;
    right: 20px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    box-shadow: 0 15px 50px rgba(26, 115, 232, 0.5);
    z-index: 999;
    color: white;
}

.install-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    position: relative;
}

.install-icon { font-size: 2rem; flex-shrink: 0; }

.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.install-text strong { font-size: 0.95rem; font-weight: 700; }
.install-text span { font-size: 0.78rem; opacity: 0.95; }

.install-btn {
    padding: 12px 22px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.install-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-banner {
    position: fixed;
    top: 80px;
    left: 20px;
    right: 20px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    z-index: 998;
    color: white;
}

.update-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    position: relative;
}

.update-icon { font-size: 1.8rem; flex-shrink: 0; }

.update-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.update-text strong { font-size: 0.95rem; font-weight: 700; }
.update-text span { font-size: 0.78rem; opacity: 0.95; }

.update-btn {
    padding: 10px 20px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.update-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .nav-center { display: none; }
    .nav-container { padding: 0 14px; gap: 10px; }
    .logo-text { font-size: 1.05rem; }
    .logo-icon { width: 36px; height: 36px; }
    .google-login-btn { padding: 10px 16px; font-size: 0.82rem; }
    .google-login-btn img { width: 18px; height: 18px; }
    .translator-split { flex-direction: column; }
    .panel-source { border-right: none; border-bottom: 1px solid var(--border); }
    .lang-bar { gap: 12px; }
    .lang-select-wrap { min-width: 100%; }
    .swap-lang-btn { transform: rotate(90deg); margin: 0 auto; }
    .panel-btn { width: 46px; height: 46px; font-size: 1.1rem; }
    .panel textarea, .target-content { padding: 20px; font-size: 1.05rem; min-height: 140px; }
    .main-content { padding: 18px 14px; padding-bottom: 100px; }
    .tab-page-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .tab-page-actions { max-width: 100%; }
    .tab-page-header h2 { font-size: 1.25rem; }
    .h-item-actions { gap: 8px; }
    .h-item-actions {
        display: flex;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .h-action {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.72rem;
        white-space: nowrap;
    }
    .user-dropdown { position: fixed; top: 70px; right: 14px; left: 14px; width: auto; }
    
    .camera-welcome { padding: 30px 20px; }
    .camera-welcome-icon { width: 80px; height: 80px; font-size: 2.5rem; }
    .camera-welcome h3 { font-size: 1.4rem; }
    .camera-lang-selector { grid-template-columns: 1fr; }
    .camera-main-actions { grid-template-columns: 1fr; }
    .camera-main-btn { min-height: 100px; padding: 20px; }
    .camera-main-btn i { font-size: 2rem; }
    .ocr-action-buttons { grid-template-columns: 1fr; }
    .camera-top-bar { padding: 15px; }
    .camera-bottom-bar { padding: 20px; }
    .camera-capture-btn { width: 74px; height: 74px; }
    .capture-inner { width: 58px; height: 58px; }

    .mobile-nav {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        padding: 12px 0; z-index: 100;
    }

    .mobile-nav-btn {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        background: none; border: none;
        color: var(--text-secondary);
        font-family: 'Inter'; font-size: 0.7rem;
        cursor: pointer; padding: 8px 12px;
        min-width: 64px;
    }

    .mobile-nav-btn i { font-size: 1.25rem; }
    .mobile-nav-btn.active { color: var(--primary); }

    .toast-container { bottom: 90px; }
    .install-banner { bottom: 100px; }
    .install-text span { display: none; }
    .repeat-bar { flex-direction: column; gap: 12px; }
    .repeat-item { justify-content: space-between; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .camera-bottom-bar { padding: 15px; }
    .camera-capture-btn { width: 60px; height: 60px; border-width: 3px; }
    .capture-inner { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
    .logo-text { font-size: 1rem; }
    .google-login-btn { padding: 10px; min-width: 44px; justify-content: center; }
    .google-login-btn span { display: none; }
}

@media (min-width: 769px) {
    #tabSettings { display: none !important; }
}


/* ============================================
   🎨 FASE 1 - Barra de Idiomas Nueva
   ============================================ */

.lang-bar-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lang-pill {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-radius: 40px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lang-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-pill:active {
    transform: scale(0.97);
}

.lang-pill-name {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swap-lang-btn-new {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    transition: var(--transition);
}

.swap-lang-btn-new:hover {
    transform: rotate(180deg) scale(1.05);
}

.swap-lang-btn-new:active {
    transform: rotate(180deg) scale(0.95);
}

/* ============================================
   🎨 Modal Selector de Idiomas
   ============================================ */

.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.lang-modal-overlay.show {
    display: flex;
}

.lang-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.lang-modal-back,
.lang-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.lang-modal-back:hover,
.lang-modal-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.lang-modal-header h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 0;
}

.lang-modal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.lang-modal-search i {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lang-modal-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    padding: 6px 0;
}

.lang-modal-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.lang-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.lang-modal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.lang-modal-item:hover {
    background: var(--primary-light);
}

.lang-modal-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.lang-modal-item.detect-option {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(52, 168, 83, 0.1));
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--primary);
}

.lang-modal-item.detect-option:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.2), rgba(52, 168, 83, 0.2));
}

.lang-flag {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.lang-name {
    flex: 1;
    font-size: 0.95rem;
}

.lang-check {
    color: var(--primary);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.lang-modal-item.active .lang-check {
    opacity: 1;
}

.lang-modal-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.lang-modal-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}

/* ============================================
   📱 Responsive - Móvil
   ============================================ */

@media (max-width: 768px) {
    .lang-bar-new {
        gap: 6px;
        padding: 6px;
        margin-bottom: 16px;
    }
    
    .lang-pill {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .swap-lang-btn-new {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .lang-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .lang-modal-overlay {
        align-items: stretch;
    }
    
    .lang-modal-header {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
    }
    
    .lang-modal-list {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Ocultar barra vieja */
.lang-bar {
    display: none !important;
}


/* ============================================
   🌍 FASE 2 - Selector de idioma de la app
   ============================================ */

.ui-lang-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    margin-top: 12px;
}

.ui-lang-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.ui-lang-btn:active {
    transform: scale(0.98);
}

.ui-lang-flag {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.ui-lang-name {
    flex: 1;
    font-size: 0.95rem;
}

.ui-lang-btn i {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
    margin-left: auto;
}

.ui-lang-btn:hover i {
    color: var(--primary);
    transform: translateX(3px);
}

/* Fix para banderas emoji en Windows */
.lang-flag,
.ui-lang-flag {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}


/* ============================================
   🤖 FASE 3 - Asistente IA con Gemini
   ============================================ */

.assistant-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - 60px);
    max-height: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: -12px;
}

/* Header del asistente */
.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(155, 114, 203, 0.05));
    flex-shrink: 0;
}

.assistant-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(217, 101, 112, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    animation: geminiPulse 3s ease-in-out infinite;
}

.assistant-avatar svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(66, 133, 244, 0.3));
}

@keyframes geminiPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(66, 133, 244, 0);
        transform: scale(1.05);
    }
}

.assistant-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.assistant-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 2px 0 0 0;
}

.assistant-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: assistantBlink 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(52, 168, 83, 0.5);
}

@keyframes assistantBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.assistant-clear-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.assistant-clear-btn:hover {
    background: rgba(234, 67, 53, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

/* Área de mensajes */
.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.assistant-messages::-webkit-scrollbar {
    width: 6px;
}

.assistant-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.assistant-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Pantalla de bienvenida */
.assistant-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-welcome-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(217, 101, 112, 0.1));
    border-radius: 24px;
    animation: geminiRotate 8s linear infinite;
}

@keyframes geminiRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.assistant-welcome h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4285F4, #9B72CB, #D96570, #F4B400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.assistant-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.assistant-suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.assistant-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.assistant-suggestion:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.assistant-suggestion i {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Burbujas de mensajes */
.msg {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: msgIn 0.3s ease;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-ai {
    align-self: flex-start;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(217, 101, 112, 0.15));
}

.msg-avatar svg {
    width: 100%;
    height: 100%;
}

.msg-user .msg-avatar {
    background: var(--gradient-primary);
    color: white;
    padding: 8px;
}

.msg-user .msg-avatar i {
    font-size: 0.85rem;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
    max-width: 100%;
}

.msg-user .msg-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-ai .msg-bubble {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.msg-bubble p {
    margin: 0;
}

.msg-bubble p + p {
    margin-top: 8px;
}

.msg-bubble strong {
    font-weight: 700;
}

.msg-bubble em {
    font-style: italic;
    opacity: 0.9;
}

.msg-bubble code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85em;
}

/* Cajita especial de traducción dentro del chat */
.msg-translation-box {
    margin-top: 12px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.msg-translation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.msg-translation-langs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-translation-flag {
    font-size: 1.1rem;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.msg-translation-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-translation-original,
.msg-translation-translated {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-translation-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.msg-translation-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
}

.msg-translation-translated .msg-translation-text {
    font-weight: 600;
    color: var(--primary);
}

.msg-translation-actions {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.msg-translation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.msg-translation-btn.load {
    background: var(--gradient-primary);
    color: white;
}

.msg-translation-btn.load:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.msg-translation-btn.speak {
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.msg-translation-btn.speak:hover {
    background: var(--primary-light);
}

.msg-translation-btn.copy {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    flex: 0 0 42px;
}

.msg-translation-btn.copy:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Indicador de "escribiendo..." */
.msg-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 18px;
}

.msg-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.msg-typing span:nth-child(1) { animation-delay: 0s; }
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Área de input */
.assistant-input-area {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.assistant-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 8px 8px 8px 16px;
    transition: var(--transition);
}

.assistant-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.assistant-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    max-height: 120px;
    line-height: 1.5;
    padding: 8px 0;
}

.assistant-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.assistant-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.assistant-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.assistant-send-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.assistant-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.assistant-send-btn.sending i {
    animation: sendingSpin 0.8s linear infinite;
}

@keyframes sendingSpin {
    100% { transform: rotate(360deg); }
}

.assistant-input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 0 8px;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.assistant-hint {
    opacity: 0.8;
}

/* Icono Gemini en navbar */
.gemini-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.gemini-icon {
    width: 100%;
    height: 100%;
}

/* Modo oscuro ajustes */
body.dark .msg-bubble code {
    background: rgba(255, 255, 255, 0.1);
}

body.dark .assistant-header {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(155, 114, 203, 0.1));
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .assistant-container {
        height: calc(100vh - var(--nav-height) - 90px);
        border-radius: 0;
        margin: -18px -14px 0 -14px;
        border-left: none;
        border-right: none;
    }
    
    .assistant-header {
        padding: 12px 14px;
    }
    
    .assistant-avatar {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .assistant-header h3 {
        font-size: 0.95rem;
    }
    
    .assistant-status {
        font-size: 0.72rem;
    }
    
    .assistant-clear-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .assistant-messages {
        padding: 14px 10px;
        gap: 12px;
    }
    
    .assistant-suggestions {
        grid-template-columns: 1fr;
    }
    
    .assistant-welcome {
        padding: 24px 15px;
    }
    
    .assistant-welcome-icon {
        width: 64px;
        height: 64px;
        padding: 10px;
    }
    
    .assistant-welcome h2 {
        font-size: 1.25rem;
    }
    
    .msg {
        max-width: 88%;
        gap: 8px;
    }
    
    .msg-avatar {
        width: 30px;
        height: 30px;
        padding: 5px;
        flex-shrink: 0;
    }
    
    .msg-bubble {
        padding: 10px 14px;
        font-size: 0.92rem;
        line-height: 1.45;
    }
    
    .assistant-input-area {
        padding: 10px 12px;
    }
    
    .assistant-input-wrap {
        padding: 6px 6px 6px 14px;
    }
    
    .assistant-input {
        font-size: 0.9rem;
    }
    
    .assistant-send-btn {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }
    
    .assistant-input-info {
        margin-top: 6px;
        font-size: 0.68rem;
    }
    
    .assistant-hint {
        display: none;
    }
    
    .msg-translation-actions {
        flex-wrap: wrap;
    }
    
    .msg-translation-btn.load {
        flex: 1 1 100%;
    }
    
    .msg-translation-header {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .msg-translation-body {
        padding: 12px;
    }
    
    .msg-translation-text {
        font-size: 0.9rem;
    }
}

/* Icono Gemini en mobile-nav */
.gemini-icon-wrap-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

/* Botón ajustes visible en móvil */
@media (max-width: 768px) {
    #settingsBtn {
        display: flex !important;
    }
    
    .settings-overlay {
        display: none;
    }
    
    .settings-overlay.show {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
    }
    
    .settings-panel {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}


/* ============================================
   🤖 FASE 3.5 - Acciones IA (Escuchar/Copiar)
   ============================================ */

.msg-content-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.msg-actions {
    display: flex;
    gap: 6px;
    padding-left: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.msg-ai:hover .msg-actions {
    opacity: 1;
}

.msg-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: var(--transition);
}

.msg-action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.msg-action-btn:active {
    transform: scale(0.95);
}

.msg-speak-btn.playing {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    animation: speakPulse 1.5s ease-in-out infinite;
}

@keyframes speakPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0); }
}

.msg-stop-btn {
    background: rgba(234, 67, 53, 0.1) !important;
    color: var(--danger) !important;
    border-color: rgba(234, 67, 53, 0.3) !important;
    animation: stopPulse 1.5s ease-in-out infinite;
}

.msg-stop-btn:hover {
    background: var(--danger) !important;
    color: white !important;
    border-color: var(--danger) !important;
}

@keyframes stopPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(234, 67, 53, 0); }
}

/* Responsive móvil */
@media (max-width: 768px) {
    .msg-action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }
    
    .msg-actions {
        opacity: 1;
    }
}

/* ============================================
   📸 Selector de idiomas en cámara en vivo
   ============================================ */

.camera-lang-bar {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 30px;
    z-index: 10;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: langBarFadeIn 0.4s ease;
}

@keyframes langBarFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.camera-lang-select {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    min-width: 110px;
    max-width: 140px;
    text-align: center;
    outline: none;
    transition: var(--transition);
    text-align-last: center;
}

.camera-lang-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.camera-lang-select:focus {
    border-color: var(--primary);
    background: rgba(26, 115, 232, 0.35);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.camera-lang-select option {
    background: #1a1a2e;
    color: white;
    padding: 8px;
    font-size: 0.85rem;
}

.camera-lang-arrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .camera-lang-bar {
        top: 70px;
        padding: 6px 10px;
        gap: 6px;
        max-width: calc(100% - 20px);
    }
    
    .camera-lang-select {
        font-size: 0.72rem;
        padding: 6px 10px;
        min-width: 90px;
        max-width: 110px;
    }
    
    .camera-lang-arrow {
        font-size: 0.7rem;
    }
}

/* Ajuste para landscape (móvil horizontal) */
@media (orientation: landscape) and (max-height: 500px) {
    .camera-lang-bar {
        top: 60px;
        padding: 5px 8px;
    }
    
    .camera-lang-select {
        font-size: 0.7rem;
        padding: 5px 8px;
        min-width: 85px;
    }
}

/* ===== Cajas de menú / ayuda de la IA ===== */
.msg-menu-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.12);
    cursor: pointer;
    transition: var(--transition);
}

.msg-menu-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.2);
}

.msg-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.msg-menu-body {
    flex: 1;
    min-width: 0;
}

.msg-menu-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.msg-menu-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.msg-menu-go-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.msg-menu-go-btn:hover {
    filter: brightness(1.08);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .msg-menu-box {
        flex-wrap: wrap;
    }
    .msg-menu-go-btn {
        width: 100%;
        justify-content: center;
    }
}

.assistant-send-btn .send-spinner {
    animation: sendSpin 0.8s linear infinite;
}

@keyframes sendSpin {
    100% { transform: rotate(360deg); }
}

/* ===== BOTÓN CORONA PRO EN NAVBAR (SOLO ÍCONO) ===== */
.plan-nav-btn {
    color: #fbbc05 !important;
    background: rgba(251, 188, 5, 0.12) !important;
    border: 1px solid rgba(251, 188, 5, 0.3) !important;
    transition: var(--transition);
}

.plan-nav-btn:hover {
    background: rgba(251, 188, 5, 0.25) !important;
    border-color: #fbbc05 !important;
    box-shadow: 0 0 12px rgba(251, 188, 5, 0.35);
    transform: scale(1.05);
}

.plan-nav-btn i {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Modal de Planes */
.plan-modal { max-width: 460px !important; }
.plan-modal-body { padding: 20px; }
.plan-hero-card {
    background: linear-gradient(135deg, rgba(251,188,5,0.15), rgba(26,115,232,0.12));
    border: 1px solid rgba(251,188,5,0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}
.plan-price-badge {
    display: inline-block;
    background: #fbbc05;
    color: #000;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.plan-price { font-size: 1.3rem; }
.plan-hero-card h2 { font-size: 1.15rem; margin-bottom: 4px; color: var(--text); }
.plan-hero-card p { font-size: 0.82rem; color: var(--text-secondary); }
.plan-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plan-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text);
}
.plan-benefits-list li i { color: #34a853; }
.plan-pay-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fbbc05, #f57c00);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}
.plan-pay-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: #fff !important;
}
.pago-movil-bank-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 14px;
}
.pago-movil-bank-card h4 {
    font-size: 0.88rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.bank-data-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.82rem;
}
.highlight-price { color: #fbbc05; font-weight: 700; }
.payment-form { display: flex; flex-direction: column; gap: 10px; }
.payment-form-group { display: flex; flex-direction: column; gap: 4px; }
.payment-form-group label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.payment-form-group input {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
}
.payment-form-group input:focus { border-color: var(--primary); }
.payment-actions { display: flex; gap: 8px; margin-top: 4px; }
.plan-back-btn {
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.admin-dropdown-btn { color: #fbbc05 !important; font-weight: 700 !important; }

/* ============================================
   👑 PANEL ADMIN VIP - FIREBASE STYLE
   ============================================ */

/* Badge contador en navbar */
.admin-badge-count,
.admin-badge-count-mobile,
.admin-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 99px;
    background: #ea4335;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    margin-left: 6px;
    line-height: 1;
}

.admin-nav-link {
    position: relative;
}

.admin-nav-link.active {
    background: linear-gradient(135deg, rgba(251,188,5,0.2), rgba(26,115,232,0.15)) !important;
    color: #fbbc05 !important;
    box-shadow: none !important;
}

/* Contenedor principal */
.admin-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: calc(100vh - var(--nav-height) - 48px);
}

/* Header admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.admin-header-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbc05, #f57c00);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(251,188,5,0.35);
    flex-shrink: 0;
}

.admin-header-title h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.admin-pill-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #111;
    background: #fbbc05;
    border-radius: 8px;
    padding: 3px 7px;
    letter-spacing: 0.4px;
}

.admin-subtitle {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.admin-action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.admin-live-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(52,168,83,0.1);
    border: 1px solid rgba(52,168,83,0.25);
    padding: 8px 12px;
    border-radius: 99px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(52,168,83,0.6);
    animation: adminPulse 1.8s infinite;
}

@keyframes adminPulse {
    0% { box-shadow: 0 0 0 0 rgba(52,168,83,0.55); }
    70% { box-shadow: 0 0 0 10px rgba(52,168,83,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,168,83,0); }
}

/* Layout sidebar + content */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: start;
    min-height: 70vh;
}

/* Sidebar */
.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    box-shadow: var(--shadow-sm);
}

.admin-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
}

.admin-menu-item i {
    width: 18px;
    text-align: center;
    color: inherit;
}

.admin-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-menu-item.active {
    background: linear-gradient(135deg, rgba(251,188,5,0.18), rgba(26,115,232,0.12));
    color: #f0b429;
    border: 1px solid rgba(251,188,5,0.25);
}

.admin-menu-count {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 99px;
    padding: 2px 8px;
    font-weight: 700;
}

.admin-menu-badge {
    margin-left: auto;
}

/* Content area */
.admin-view-content {
    min-width: 0;
}

.admin-subview {
    display: none;
}

.admin-subview.active {
    display: block;
    animation: adminFade 0.25s ease;
}

@keyframes adminFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* KPI cards */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.admin-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.admin-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.admin-kpi-card.gold::before { background: #fbbc05; }
.admin-kpi-card.blue::before { background: #1a73e8; }
.admin-kpi-card.green::before { background: #34a853; }
.admin-kpi-card.orange::before { background: #f57c00; }

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-kpi-card.gold .kpi-icon { background: rgba(251,188,5,0.15); color: #fbbc05; }
.admin-kpi-card.blue .kpi-icon { background: rgba(26,115,232,0.15); color: #1a73e8; }
.admin-kpi-card.green .kpi-icon { background: rgba(52,168,83,0.15); color: #34a853; }
.admin-kpi-card.orange .kpi-icon { background: rgba(245,124,0,0.15); color: #f57c00; }

.kpi-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.1;
}

.kpi-trend {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.kpi-trend.positive { color: #34a853; }
.kpi-trend.warning { color: #f57c00; }

/* Cards genéricas */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-card-header h3,
.admin-card > h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 16px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tablas */
.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    vertical-align: middle;
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(26,115,232,0.04);
}

.table-loading,
.admin-empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 28px 12px;
}

.admin-empty-state i {
    font-size: 1.8rem;
    opacity: 0.35;
    margin-bottom: 8px;
    display: block;
}

/* Usuario en tabla */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-user-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.admin-user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* Badges de estado */
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-badge.pro {
    background: rgba(251,188,5,0.15);
    color: #f0b429;
    border: 1px solid rgba(251,188,5,0.3);
}

.admin-status-badge.free {
    background: rgba(26,115,232,0.12);
    color: #5b9af5;
    border: 1px solid rgba(26,115,232,0.22);
}

.admin-status-badge.banned {
    background: rgba(234,67,53,0.12);
    color: #ea4335;
    border: 1px solid rgba(234,67,53,0.25);
}

.admin-status-badge.pending {
    background: rgba(245,124,0,0.12);
    color: #f57c00;
    border: 1px solid rgba(245,124,0,0.25);
}

.admin-status-badge.approved {
    background: rgba(52,168,83,0.12);
    color: #34a853;
    border: 1px solid rgba(52,168,83,0.25);
}

.admin-status-badge.rejected {
    background: rgba(234,67,53,0.12);
    color: #ea4335;
    border: 1px solid rgba(234,67,53,0.25);
}

/* Botones admin */
.admin-btn-primary,
.admin-btn-secondary,
.admin-btn-success,
.admin-btn-danger,
.admin-btn-warning,
.admin-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px 14px;
    white-space: nowrap;
}

.admin-btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.admin-btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.admin-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.admin-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.admin-btn-secondary.sm {
    padding: 8px 12px;
    font-size: 0.78rem;
}

.admin-btn-success {
    background: linear-gradient(135deg, #34a853, #1e8e3e);
    color: #fff;
}

.admin-btn-success:hover { filter: brightness(1.08); }

.admin-btn-danger {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    color: #fff;
}

.admin-btn-danger:hover { filter: brightness(1.08); }

.admin-btn-warning {
    background: linear-gradient(135deg, #fbbc05, #f57c00);
    color: #111;
}

.admin-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 10px;
}

.admin-btn-ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.admin-actions-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Inputs / forms */
.admin-header-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-input-search,
.admin-select,
.admin-form input,
.admin-form textarea,
.admin-form-grid input,
.admin-form-grid textarea,
.admin-form-grid select {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.admin-input-search {
    min-width: 240px;
}

.admin-input-search:focus,
.admin-select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form-grid input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.admin-form,
.admin-form-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.admin-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 12px;
}

.admin-toggle-box .small-text {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Pagos pendientes - cards */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.payment-request-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.payment-request-card:hover {
    border-color: rgba(251,188,5,0.45);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.payment-request-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.payment-request-user {
    font-weight: 750;
    color: var(--text);
    font-size: 0.9rem;
}

.payment-request-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.payment-request-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.78rem;
}

.payment-meta-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
}

.payment-meta-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 0.68rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-request-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Stats */
.admin-chart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.admin-chart-row {
    display: grid;
    grid-template-columns: 90px 1fr 40px;
    gap: 10px;
    align-items: center;
}

.admin-chart-label {
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--text);
}

.admin-chart-bar-wrap {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-chart-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 99px;
    width: 0;
    transition: width 0.6s ease;
}

.admin-chart-value {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--text-secondary);
    text-align: right;
}

.admin-stat-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(66,133,244,0.12), rgba(155,114,203,0.12));
    border: 1px solid var(--border);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 850;
    color: var(--text);
}

.stat-desc {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Modal comprobante */
.admin-receipt-modal {
    max-width: 640px !important;
}

.admin-receipt-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.receipt-img {
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.receipt-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.receipt-actions .admin-btn-success,
.receipt-actions .admin-btn-danger {
    flex: 1;
    min-width: 180px;
}

/* Dropdown acciones usuario */
.admin-user-actions details {
    position: relative;
}

.admin-user-actions summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.78rem;
}

.admin-user-actions summary::-webkit-details-marker { display: none; }

.admin-user-actions .actions-menu {
    position: absolute;
    right: 0;
    top: 110%;
    z-index: 20;
    min-width: 190px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.admin-user-actions .actions-menu button {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--text);
    padding: 10px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-user-actions .actions-menu button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.admin-user-actions .actions-menu button.danger {
    color: #ea4335;
}

.admin-user-actions .actions-menu button.danger:hover {
    background: rgba(234,67,53,0.1);
}

/* Responsive Admin */
@media (max-width: 1100px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
        overflow-x: auto;
        padding: 10px;
    }

    .admin-nav-menu {
        flex-direction: row;
        min-width: max-content;
    }

    .admin-menu-item {
        white-space: nowrap;
    }

    .admin-grid-2,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #tabAdmin {
        margin: -8px -14px 0;
    }

    .admin-container {
        gap: 12px;
        min-height: calc(100vh - var(--nav-height) - 90px);
    }

    .admin-header {
        padding: 14px;
    }

    .admin-header-title h2 {
        font-size: 1.02rem;
    }

    .admin-subtitle {
        font-size: 0.72rem;
    }

    .admin-live-dot {
        display: none;
    }

    .admin-kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-card {
        padding: 14px;
    }

    .admin-input-search {
        min-width: 100%;
    }

    .admin-header-filters {
        width: 100%;
    }

    .admin-table {
        min-width: 640px;
    }

    .payments-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TEST GAME V2 ===== */
.test-setup-box,
.test-game-card {
  background: var(--bg-card);
  border: 2px solid #9B72CB;
  border-radius: 18px;
  padding: 16px;
  margin-top: 10px;
  box-shadow: 0 10px 28px rgba(155,114,203,.18);
}

.test-game-card { border-color: #4285F4; }

.test-fade-out {
  animation: testFadeOut .35s ease forwards !important;
  pointer-events: none;
}
@keyframes testFadeOut {
  to { opacity: 0; transform: translateY(12px); max-height: 0; margin: 0; padding: 0; overflow: hidden; }
}

.test-nav-carousel {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: fit-content; margin: 0 auto 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
}
.test-nav-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg-card); color: var(--primary); cursor: pointer;
  display:flex; align-items:center; justify-content:center;
}
.test-nav-btn:disabled { opacity: .3; cursor: not-allowed; color: var(--text-secondary); }
.test-nav-counter { font-size: .8rem; font-weight: 800; color: var(--text); }

.gamer-loader-box { display:flex; flex-direction:column; align-items:center; gap:10px; padding:22px 10px; }
.gamer-spinner { display:flex; gap:8px; }
.gamer-spinner span {
  width: 12px; height: 12px; border-radius: 50%;
  background:#4285F4; animation: gamerPulse .55s infinite alternate;
}
.gamer-spinner span:nth-child(2){ animation-delay:.15s; background:#9B72CB; }
.gamer-spinner span:nth-child(3){ animation-delay:.3s; background:#fbbc05; }
@keyframes gamerPulse { to { transform: translateY(-8px) scale(1.2); } }
.gamer-loader-text { font-size:.82rem; font-weight:700; color: var(--text-secondary); }

.test-play-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.test-tag {
  background: var(--bg-secondary); color:#4285F4; border:1px solid var(--border);
  border-radius:999px; padding:4px 10px; font-size:.72rem; font-weight:800;
}
.test-question-text { font-size:1.05rem; font-weight:800; color:var(--text); margin: 6px 0 14px; line-height:1.4; }

.test-input-area { display:flex; gap:8px; }
.test-answer-input {
  flex:1; padding:12px 14px; border-radius:12px; border:2px solid var(--border);
  background: var(--bg-secondary); color: var(--text); outline:none;
}
.test-send-ans-btn {
  border:none; border-radius:12px; padding:0 16px; cursor:pointer; color:#fff; font-weight:800;
  background: linear-gradient(135deg,#4285F4,#9B72CB);
}

.test-result-expand { margin-top:14px; padding-top:14px; border-top:2px dashed var(--border); }
.test-result-badge {
  display:inline-flex; align-items:center; gap:8px; border-radius:10px;
  padding:8px 12px; font-weight:800; margin-bottom:10px;
}
.test-result-badge.correct { background: rgba(52,168,83,.15); color:#34a853; }
.test-result-badge.incorrect { background: rgba(234,67,53,.15); color:#ea4335; }
.test-ideal-box {
  background: rgba(251,188,5,.12); border-left:4px solid #fbbc05;
  border-radius:0 10px 10px 0; padding:10px 12px; margin-bottom:10px; font-size:.88rem;
}
.test-footer-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.test-footer-actions button {
  flex:1; min-width:140px; border:none; border-radius:12px; padding:12px;
  font-weight:800; cursor:pointer; font-family:Inter,sans-serif;
}
.btn-next-q { background: linear-gradient(135deg,#1a73e8,#4fc3f7); color:#fff; }
.btn-end-test { background: var(--bg-secondary); color: var(--text-secondary); border:1px solid var(--border) !important; }

.test-setup-header { display:flex; align-items:center; gap:8px; color:#9B72CB; font-weight:900; margin-bottom:10px; }
.test-select {
  width:100%; margin-bottom:8px; padding:10px 12px; border-radius:10px;
  border:1px solid var(--border); background:var(--bg-secondary); color:var(--text); font-weight:700;
}
.test-btn-start {
  width:100%; margin-top:6px; border:none; border-radius:12px; padding:12px;
  color:#fff; font-weight:900; cursor:pointer;
  background: linear-gradient(135deg,#9B72CB,#4285F4);
}

.presence-dot{
  width:8px;height:8px;border-radius:50%;
  display:inline-block;margin-right:6px;
}
.presence-dot.online{
  background:#34a853;
  box-shadow:0 0 0 0 rgba(52,168,83,.6);
  animation: onlinePulse 1.6s infinite;
}
.presence-dot.offline{
  background:#8b8fa8;
}
@keyframes onlinePulse{
  0%{box-shadow:0 0 0 0 rgba(52,168,83,.55)}
  70%{box-shadow:0 0 0 8px rgba(52,168,83,0)}
  100%{box-shadow:0 0 0 0 rgba(52,168,83,0)}
}
.presence-badge{
  display:inline-flex;align-items:center;
  font-size:.72rem;font-weight:800;
  padding:4px 8px;border-radius:999px;
  border:1px solid var(--border);
  background:var(--bg-secondary);
  color:var(--text-secondary);
  white-space:nowrap;
}
.presence-badge.on{
  color:#34a853;
  border-color:rgba(52,168,83,.35);
  background:rgba(52,168,83,.12);
}

/* ============================================
   🌌 MODO LLAMADA IA (VOICE-TO-VOICE LLM)
   ============================================ */

.ai-call-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at center, #151b2b 0%, #0a0e17 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: max(20px, env(safe-area-inset-top)) 20px max(30px, env(safe-area-inset-bottom));
    animation: fadeInCall 0.4s ease forwards;
    backdrop-filter: blur(20px);
}

@keyframes fadeInCall { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* HEADER DE LA LLAMADA */
.ai-call-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.ai-call-back, .ai-call-settings {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s;
}
.ai-call-back:hover { background: rgba(255,255,255,0.2); }

.ai-call-status {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #a8b2c1;
}

/* ORBE ANIMADO (LA IA) */
.ai-orb-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.ai-orb {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.orb-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4, #9B72CB, #D96570);
    box-shadow: 0 0 40px rgba(155, 114, 203, 0.6), inset 0 0 20px rgba(255,255,255,0.5);
    z-index: 10;
    animation: orbBreathe 4s ease-in-out infinite;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(155, 114, 203, 0.4);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Estado: HABLANDO (Speaking) */
.ai-orb.speaking .orb-core {
    animation: orbSpeak 0.8s infinite alternate;
}
.ai-orb.speaking .orb-ring {
    animation: ringRipple 1.5s infinite linear;
}
.ai-orb.speaking .ring-2 { animation-delay: 0.5s; border-color: rgba(66, 133, 244, 0.5); }
.ai-orb.speaking .ring-3 { animation-delay: 1s; border-color: rgba(217, 101, 112, 0.3); }

/* Estado: ESCUCHANDO (Listening) */
.ai-orb.listening .orb-core {
    background: linear-gradient(135deg, #34a853, #4fc3f7);
    box-shadow: 0 0 50px rgba(52, 168, 83, 0.6);
    transform: scale(1.1);
}
.ai-orb.listening .orb-ring {
    border-color: rgba(52, 168, 83, 0.4);
    animation: ringListen 2s infinite ease-out;
}

/* Estado: PENSANDO (Thinking) */
.ai-orb.thinking .orb-core {
    background: linear-gradient(135deg, #fbbc05, #ff6d00);
    box-shadow: 0 0 30px rgba(251, 188, 5, 0.6);
    animation: orbThink 1.5s infinite linear;
}

/* Animaciones del Orbe */
@keyframes orbBreathe { 0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(155, 114, 203, 0.4); } 50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(155, 114, 203, 0.7); } }
@keyframes orbSpeak { 0% { transform: scale(1); filter: brightness(1); } 100% { transform: scale(1.15); filter: brightness(1.3); } }
@keyframes orbThink { 0% { transform: scale(0.9) rotate(0deg); border-radius: 40% 60% 50% 50%; } 50% { transform: scale(1.1) rotate(180deg); border-radius: 50% 40% 60% 40%; } 100% { transform: scale(0.9) rotate(360deg); border-radius: 40% 60% 50% 50%; } }
@keyframes ringRipple { 0% { width: 100%; height: 100%; opacity: 1; border-width: 4px; } 100% { width: 300%; height: 300%; opacity: 0; border-width: 1px; } }
@keyframes ringListen { 0% { width: 100%; height: 100%; opacity: 0.8; } 50% { width: 140%; height: 140%; opacity: 0.2; } 100% { width: 100%; height: 100%; opacity: 0.8; } }

/* SUBTÍTULOS */
.ai-call-subtitles {
    width: 100%;
    max-width: 600px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    min-height: 80px;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* CONTROLES INFERIORES */
.ai-call-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.ai-ctrl-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.ai-ctrl-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }

.ai-ctrl-btn.end-call {
    width: 72px;
    height: 72px;
    background: #ea4335;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(234, 67, 53, 0.4);
}
.ai-ctrl-btn.end-call:hover { background: #c5221f; transform: scale(1.1); }

/* ============================================================
   🚀 FIX DEFINITIVO DE NAVEGACIÓN PC Y MÓVIL (5 BOTONES)
   ============================================================ */

/* 1. MÓVIL (< 768px): Ocultar menú largo superior y activar Bottom Nav nativo */
@media (max-width: 768px) {
  
  /* Ocultar el centro del header amontonado */
  .desktop-only-nav {
    display: none !important;
  }

  /* Ajustar espacio del header superior */
  .navbar {
    padding: 8px 12px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-right {
    gap: 8px !important;
  }

  /* Botón Admin estilizado en el Header Móvil */
  .admin-nav-btn {
    position: relative;
    background: rgba(251, 188, 5, 0.15) !important;
    border: 1px solid rgba(251, 188, 5, 0.4) !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
  }

  /* BARRA INFERIOR MÓVIL (Nativa, 5 botones fijos, usando tus variables de color) */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background-color: var(--bg-card); /* Se adapta al modo oscuro/claro automáticamente */
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    gap: 4px;
    transition: var(--transition);
  }

  .mobile-nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
  }

  /* Estado Activo del Botón (Pestaña seleccionada) */
  .mobile-nav-item.active {
    color: var(--primary); 
  }

  .mobile-nav-item.active i {
    transform: translateY(-2px);
  }

  /* FIX CRÍTICO: Evitar que la barra inferior tape el final de las pantallas (Historial/Ajustes) */
  .main-content,
  .tab-content,
  .settings-mobile-content,
  .history-list,
  .assistant-container {
    padding-bottom: 90px !important;
  }

  /* Ajuste para que los botones de instalación no queden tapados */
  .toast-container { bottom: 85px !important; }
  .install-banner { bottom: 85px !important; }
}

/* 2. PC Y LAPTOPS (> 769px): Ocultar la barra inferior móvil y organizar Header */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
  
  .desktop-only-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* Evita que se salgan de pantalla si achicas la ventana */
  }
}

/* ============================================================
   🚀 FIX DEFINITIVO DE NAVEGACIÓN PC Y MÓVIL (5 BOTONES)
   ============================================================ */

/* Asegurar que el título no se parta en 2 líneas */
.logo-text {
    white-space: nowrap !important;
    font-size: 1.1rem !important;
}

/* 1. MÓVIL (< 768px): Ocultar menús y activar Bottom Nav */
@media (max-width: 768px) {
  .desktop-only-nav { display: none !important; }
  .hide-on-mobile { display: none !important; }

  .navbar {
    padding: 8px 12px !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-right { gap: 8px !important; }

  .admin-nav-btn {
    position: relative;
    background: rgba(251, 188, 5, 0.15) !important;
    border: 1px solid rgba(251, 188, 5, 0.4) !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
  }

  /* BARRA INFERIOR MÓVIL */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    gap: 4px;
    transition: var(--transition);
  }

  .mobile-nav-item i { font-size: 20px; transition: transform 0.2s ease; }
  .mobile-nav-item.active { color: var(--primary); }
  .mobile-nav-item.active i { transform: translateY(-2px); }

  /* Evitar que se tapen los menús inferiores */
  .main-content, .tab-content, .settings-mobile-content, .history-list {
    padding-bottom: 90px !important;
  }
  
  .assistant-container {
    height: calc(100vh - 140px) !important;
    margin: 0 !important;
    border-radius: 14px !important;
    border: 1px solid var(--border) !important;
  }

  .toast-container, .install-banner { bottom: 85px !important; }
}

/* 2. PC Y LAPTOPS */
@media (min-width: 769px) {
  .mobile-bottom-nav { display: none !important; }
  .desktop-only-nav {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
}

/* ============================================================
   🎓 ESTILOS PLAN ESTUDIANTIL YZG CAMPUS (1 AÑO GRATIS)
   ============================================================ */

.plan-card-v2.student-card {
    border-color: #3b82f6;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, var(--bg-secondary) 100%);
}

.student-tag {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
}

.student-color {
    color: #3b82f6 !important;
}

.student-offer-note {
    font-size: 0.72rem;
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 8px;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

.student-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
}

.student-verify-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.student-verify-banner i {
    font-size: 2rem;
    color: #3b82f6;
}

.student-verify-banner h4 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 0.95rem;
}

.student-verify-banner p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.student-submit-btn {
    background: #25D366 !important;
    color: #fff !important;
}

/* ============================================================
   👑 FIX V2: GALERÍA DESLIZABLE DE PLANES (CARDS HORIZONTALES)
   ============================================================ */

/* Ancho del Modal */
.plan-modal-v2 {
    max-width: 820px !important;
    width: 92% !important;
    background: var(--bg-card) !important;
    border-radius: 20px !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
}

/* Subtítulo */
.plan-subtitle {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* CONTENEDOR FLEX HORIZONTAL (Obliga a ponerlos uno al lado del otro) */
.plans-grid-v2 {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 16px 8px 24px 8px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Personalizar barra de desplazamiento */
.plans-grid-v2::-webkit-scrollbar {
    height: 8px;
}
.plans-grid-v2::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}
.plans-grid-v2::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* TARJETA INDIVIDUAL (Ancho fijo de 230px) */
.plan-card-v2 {
    flex: 0 0 230px !important;
    width: 230px !important;
    scroll-snap-align: start;
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border) !important;
    border-radius: 18px !important;
    padding: 20px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.plan-card-v2:hover {
    transform: translateY(-50px) scale(1.02);
    border-color: #3b82f6 !important;
}

/* Estilo Tarjeta Estudiantil (1 Año Gratis) */
.plan-card-v2.student-card {
    border-color: #3b82f6 !important;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, var(--bg-secondary) 100%) !important;
}

/* Estilo Tarjeta PRO Popular */
.plan-card-v2.featured {
    border-color: #fbbc05 !important;
    background: linear-gradient(180deg, rgba(251, 188, 5, 0.12) 0%, var(--bg-secondary) 100%) !important;
}

/* Etiqueta superior (1 AÑO GRATIS / MÁS POPULAR) */
.plan-pop-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbc05;
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.plan-pop-tag.student-tag {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #fff !important;
}

/* Títulos de Planes */
.plan-badge-v2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    margin-top: 4px;
}

.plan-badge-v2.student-color { color: #3b82f6; }
.plan-badge-v2.blue { color: #60a5fa; }
.plan-badge-v2.gold { color: #fbbc05; }
.plan-badge-v2.purple { color: #a78bfa; }
.plan-badge-v2.cyan { color: #22d3ee; }
.plan-badge-v2.red { color: #f43f5e; }

.student-offer-note {
    font-size: 0.72rem;
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 10px;
    background: rgba(59, 130, 246, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
}

/* Precios */
.plan-price-v2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
}

.plan-price-v2 span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Lista de Beneficios (Quitar viñetas feas) */
.plan-features-v2 {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.plan-features-v2 li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features-v2 i {
    color: #34a853;
    font-size: 0.8rem;
}

/* Botones de Selección */
.plan-select-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
    transition: filter 0.2s ease;
}

.plan-select-btn:hover {
    filter: brightness(1.15);
}

.plan-select-btn.student-btn { background: #2563eb; }
.plan-select-btn.blue { background: #3b82f6; }
.plan-select-btn.gold { background: #fbbc05; color: #000; }
.plan-select-btn.purple { background: #8b5cf6; }
.plan-select-btn.cyan { background: #06b6d4; color: #000; }
.plan-select-btn.red { background: #f43f5e; }

/* Banner de Verificación Estudiantil */
.student-verify-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.student-verify-banner i { font-size: 2rem; color: #3b82f6; }
.student-verify-banner h4 { margin: 0 0 4px; color: var(--text); font-size: 0.95rem; }
.student-verify-banner p { margin: 0; font-size: 0.78rem; color: var(--text-secondary); }

/* ============================================================
   🏷️ INSIGNIAS DE PLANES EN EL PANEL ADMIN Y PERFIL
   ============================================================ */

.admin-plan-assign-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.admin-plan-assign-box label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

/* Badges de planes individuales */
.plan-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.plan-badge-pill.Campus { background: rgba(59, 130, 246, 0.18); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.plan-badge-pill.Básico { background: rgba(26, 115, 232, 0.15); color: #60a5fa; border: 1px solid rgba(26, 115, 232, 0.3); }
.plan-badge-pill.PRO { background: rgba(251, 188, 5, 0.18); color: #fbbc05; border: 1px solid rgba(251, 188, 5, 0.3); }
.plan-badge-pill.Plus\+ { background: rgba(155, 114, 203, 0.18); color: #a78bfa; border: 1px solid rgba(155, 114, 203, 0.3); }
.plan-badge-pill.Ultra { background: rgba(0, 229, 255, 0.18); color: #22d3ee; border: 1px solid rgba(0, 229, 255, 0.3); }
.plan-badge-pill.Ultra\+ { background: rgba(255, 42, 95, 0.18); color: #f43f5e; border: 1px solid rgba(255, 42, 95, 0.3); }

/* ============================================================
   👑 INSIGNIAS Y LOGOS DE CADA PLAN + DESPLEGABLE ADMIN
   ============================================================ */

/* Badge base */
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

/* 🆓 Gratis */
.admin-status-badge.free,
.admin-status-badge.Gratis {
    background: rgba(26, 115, 232, 0.12);
    color: #60a5fa;
    border-color: rgba(26, 115, 232, 0.3);
}

/* 🔷 Básico */
.admin-status-badge.Básico,
.admin-status-badge.Basico {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.35);
}

/* 👑 PRO */
.admin-status-badge.pro,
.admin-status-badge.PRO {
    background: rgba(251, 188, 5, 0.15);
    color: #fbbc05;
    border-color: rgba(251, 188, 5, 0.4);
    box-shadow: 0 0 10px rgba(251, 188, 5, 0.2);
}

/* 🎓 Campus */
.admin-status-badge.Campus {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-color: rgba(37, 99, 235, 0.4);
}

/* 💎 ULTRA */
.admin-status-badge.ULTRA,
.admin-status-badge.Ultra {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* 🚫 Baneado */
.admin-status-badge.banned,
.admin-status-badge.Baneado {
    background: rgba(234, 67, 53, 0.12);
    color: #ea4335;
    border-color: rgba(234, 67, 53, 0.35);
}

/* Desplegable de planes */
.admin-plan-dropdown-select {
    background: linear-gradient(135deg, rgba(251, 188, 5, 0.12), rgba(245, 124, 0, 0.12)) !important;
    border: 1px solid rgba(251, 188, 5, 0.45) !important;
    color: #fbbc05 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 7px 10px !important;
    cursor: pointer !important;
    outline: none !important;
    min-width: 150px;
    transition: all 0.2s ease !important;
}

.admin-plan-dropdown-select:hover {
    background: rgba(251, 188, 5, 0.22) !important;
    box-shadow: 0 0 12px rgba(251, 188, 5, 0.35) !important;
}

.admin-plan-dropdown-select option {
    background: #1a1a2e !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* ============================================================
   👑 LOGOS / INSIGNIAS DE PLANES YZG
   ============================================================ */

.plan-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.plan-logo.free {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: #fff;
}
.plan-logo.basico {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
}
.plan-logo.pro {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #111;
    box-shadow: 0 0 16px rgba(251, 188, 5, 0.35);
}
.plan-logo.ultra {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #042f2e;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}
.plan-logo.campus {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}

/* Badges en tabla Admin / perfil */
.admin-status-badge.Gratis,
.admin-status-badge.free {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.admin-status-badge.Básico,
.admin-status-badge.Basico {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.35);
}
.admin-status-badge.PRO,
.admin-status-badge.pro {
    background: rgba(251, 188, 5, 0.15);
    color: #fbbc05;
    border: 1px solid rgba(251, 188, 5, 0.4);
    box-shadow: 0 0 10px rgba(251, 188, 5, 0.2);
}
.admin-status-badge.ULTRA,
.admin-status-badge.Ultra {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}
.admin-status-badge.Campus {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.35);
}
.admin-status-badge.banned,
.admin-status-badge.Baneado {
    background: rgba(234, 67, 53, 0.12);
    color: #ea4335;
    border: 1px solid rgba(234, 67, 53, 0.35);
}

/* ============================================================
   💎 MENÚ DE COMPRA DE PLANES (3 PLANES + CAMPUS)
   ============================================================ */

.plan-modal-v3 {
    max-width: 860px !important;
    width: 95% !important;
}

.student-promo-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(59, 130, 246, 0.22));
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.student-promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.promo-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.promo-info { flex: 1; min-width: 0; }
.promo-info h4 {
    margin: 0 0 3px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 800;
}
.promo-info p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.promo-btn {
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.plans-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan-card-v3 {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan-card-v3:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.plan-card-v3.featured {
    border-color: #fbbc05;
    background: linear-gradient(180deg, rgba(251,188,5,0.10) 0%, var(--bg-secondary) 100%);
}
.plan-pop-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbc05;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .3px;
}

.plan-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}
.plan-card-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text);
}
.plan-card-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.plan-price-v3 {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.plan-price-v3 span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.plan-features-v3 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.plan-features-v3 li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.plan-features-v3 i { color: #34a853; }

.plan-btn-v3 {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 11px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    color: #fff;
}
.plan-btn-v3.basico { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.plan-btn-v3.pro { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #111; }
.plan-btn-v3.ultra { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #042f2e; }

.selected-plan-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    border: 1px solid rgba(26,115,232,0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.selected-plan-summary strong { color: var(--primary); }

@media (max-width: 768px) {
    .plans-grid-v3 {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
    }
    .plan-card-v3 { flex: 0 0 230px; }
    .student-promo-banner {
        flex-direction: column;
        text-align: center;
    }
    .promo-btn { width: 100%; }
}

/* ============================================================
   🚀 LOGO PREMIUM TRADUCTOR YZG
   ============================================================ */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), transparent 40%),
        linear-gradient(135deg, #1a73e8 0%, #4f46e5 45%, #9B72CB 100%);
    box-shadow:
        0 8px 20px rgba(26, 115, 232, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    place-items: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: logoShine 4.5s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 60% { transform: translateX(-120%); }
    80% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

.logo-a,
.logo-z {
    font-size: 0.78rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    z-index: 1;
}

.logo-a { grid-column: 1; grid-row: 1; transform: translate(2px, 3px); }
.logo-z { grid-column: 2; grid-row: 2; transform: translate(-2px, -3px); }

.logo-swap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.95);
    font-size: 0.72rem;
    z-index: 2;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.9;
}

/* Móvil: más compacto */
@media (max-width: 768px) {
    .logo-mark { width: 38px; height: 38px; border-radius: 12px; }
    .logo-text { font-size: 0.95rem; }
    .logo-tagline { display: none; }
}

/* ============================================================
   💎 SISTEMA VISUAL DE PLANES YZG
   ============================================================ */

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    border: 1px solid transparent;
    white-space: nowrap;
}

.plan-chip .plan-ico {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
}

/* FREE */
.plan-chip.free {
    background: rgba(148,163,184,0.12);
    color: #94a3b8;
    border-color: rgba(148,163,184,0.28);
}
.plan-chip.free .plan-ico {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: #fff;
}

/* BÁSICO */
.plan-chip.basico {
    background: rgba(37,99,235,0.12);
    color: #60a5fa;
    border-color: rgba(37,99,235,0.3);
}
.plan-chip.basico .plan-ico {
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
}

/* PRO */
.plan-chip.pro {
    background: rgba(251,188,5,0.14);
    color: #fbbf24;
    border-color: rgba(251,188,5,0.38);
    box-shadow: 0 0 12px rgba(251,188,5,0.18);
}
.plan-chip.pro .plan-ico {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #111;
}

/* ULTRA */
.plan-chip.ultra {
    background: rgba(34,211,238,0.12);
    color: #22d3ee;
    border-color: rgba(34,211,238,0.35);
    box-shadow: 0 0 14px rgba(34,211,238,0.2);
}
.plan-chip.ultra .plan-ico {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #042f2e;
}

/* CAMPUS */
.plan-chip.campus {
    background: rgba(59,130,246,0.12);
    color: #3b82f6;
    border-color: rgba(59,130,246,0.35);
}
.plan-chip.campus .plan-ico {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}

/* BAN */
.plan-chip.banned {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

    /* ============================================================
   📜 TELEPROMPTER ANIMADO - SUBTÍTULOS LLAMADA IA
   ============================================================ */

.ai-call-subtitles {
    width: 100%;
    max-width: 360px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    margin: 0 auto 20px auto;
    position: relative;
    padding: 10px;
}

.sub-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.sub-block.active {
    opacity: 1;
    transform: translateY(0);
}

.sub-block.passed {
    opacity: 0.5;
    transform: translateY(-10px) scale(0.95);
    color: #94a3b8;
}

/* ============================================================
   🗺️ YZG CAMP V2 - DISEÑO PREMIUM TIPO DUOLINGO
   ============================================================ */

.camp-wrap { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; font-family: 'Inter', sans-serif; }

/* Top Stats (Racha, XP, Vidas) */
.camp-top { display: flex; justify-content: space-between; gap: 12px; }
.camp-stat-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--bg-card); border: 2px solid var(--border); border-radius: 16px;
    padding: 12px; font-weight: 800; font-size: 1rem; color: var(--text);
}
.camp-stat-btn i.fa-fire { color: #ff9600; }
.camp-stat-btn i.fa-bolt { color: #1cb0f6; }
.camp-stat-btn i.fa-heart { color: #ff4b4b; }

/* Path (Camino de niveles) */
.camp-path-title { text-align: center; margin-top: 10px; }
.camp-path-title h3 { font-size: 1.4rem; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.camp-path-title p { color: var(--text-secondary); font-weight: 600; font-size: 0.9rem; }

.camp-path { display: flex; flex-direction: column; gap: 24px; padding: 20px 0 40px; position: relative; }
.camp-node { display: flex; justify-content: center; position: relative; z-index: 2; }
.camp-node:nth-child(even) { transform: translateX(35px); }
.camp-node:nth-child(odd) { transform: translateX(-35px); }

/* Botones 3D del Camino */
.camp-lesson-btn {
    width: 80px; height: 80px; border-radius: 50%; border: none; cursor: pointer;
    font-size: 28px; color: #fff; display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, filter 0.15s; outline: none; position: relative;
}
.camp-lesson-btn:active { transform: translateY(6px); }

.camp-lesson-btn.locked { background: #e5e5e5; box-shadow: 0 8px 0 #cccccc; color: #afafaf; cursor: not-allowed; }
.camp-lesson-btn.locked:active { transform: none; }
.camp-lesson-btn.done { background: #ffc800; box-shadow: 0 8px 0 #e5b400; }
.camp-lesson-btn.current {
    background: #58cc02; box-shadow: 0 8px 0 #58a700;
    animation: bounceNode 2s infinite ease-in-out;
}
@keyframes bounceNode { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Modal de Lección y Barra de Progreso */
.camp-lesson-modal { max-width: 600px !important; height: 90vh !important; display: flex; flex-direction: column; }
.camp-lesson-header { display: flex; align-items: center; gap: 14px; padding: 20px; }
.camp-close-x { font-size: 1.4rem; color: #afafaf; cursor: pointer; border: none; background: transparent; transition: 0.2s; }
.camp-close-x:hover { color: var(--text); }

.camp-progress-bg { flex: 1; height: 16px; background: var(--bg-secondary); border-radius: 99px; overflow: hidden; position: relative; }
.camp-progress-fill { height: 100%; width: 0%; background: #58cc02; border-radius: 99px; transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }
.camp-progress-fill::after { content: ''; position: absolute; top: 4px; left: 10px; right: 10px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 99px; }

/* Caja de Pregunta */
.camp-lesson-body { flex: 1; padding: 0 24px 20px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.camp-q-title { font-size: 1.6rem; font-weight: 900; color: var(--text); margin-bottom: 24px; line-height: 1.3; }

/* Opciones 3D */
.camp-options { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
.camp-option {
    background: var(--bg-card); border: 2px solid var(--border); border-bottom-width: 4px;
    border-radius: 16px; padding: 16px 20px; font-size: 1.1rem; font-weight: 800; color: var(--text);
    cursor: pointer; text-align: left; transition: all 0.1s ease;
}
.camp-option:active { transform: translateY(2px); border-bottom-width: 2px; margin-top: 2px; }
.camp-option.selected { border-color: #1cb0f6; background: rgba(28,176,246,0.1); color: #1cb0f6; }
.camp-option.disabled { opacity: 0.6; pointer-events: none; }

/* Input de Escribir */
.camp-input {
    width: 100%; background: var(--bg-secondary); border: 2px solid var(--border);
    border-radius: 16px; padding: 18px; font-size: 1.2rem; font-weight: 700; color: var(--text);
    outline: none; transition: border 0.2s;
}
.camp-input:focus { border-color: #1cb0f6; background: var(--bg-card); }

/* Ejercicio de Voz */
.camp-voice-box { text-align: center; padding: 20px 0; }
.camp-voice-btn {
    width: 100px; height: 100px; border-radius: 50%; border: none; background: #1cb0f6; box-shadow: 0 8px 0 #1899d6;
    color: #fff; font-size: 36px; cursor: pointer; transition: 0.15s; margin-bottom: 16px;
}
.camp-voice-btn:active { transform: translateY(6px); box-shadow: 0 2px 0 #1899d6; }
.camp-voice-btn.listening { background: #ff4b4b; box-shadow: 0 8px 0 #d93d3d; animation: pulseVoice 1s infinite alternate; }
@keyframes pulseVoice { 0% { filter: brightness(1); } 100% { filter: brightness(1.2); transform: scale(1.05); } }
.camp-voice-text { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); min-height: 28px; }

/* Panel inferior Feedback */
.camp-footer {
    border-top: 2px solid var(--border); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card); border-radius: 0 0 20px 20px; transition: background 0.3s ease;
}
.camp-footer.correct { background: #d7ffb8; border-color: #58a700; }
.camp-footer.wrong { background: #ffdfe0; border-color: #ea2b2b; }

.camp-feedback-msg { display: none; flex-direction: column; }
.camp-feedback-msg h3 { font-size: 1.4rem; font-weight: 900; margin: 0 0 4px; }
.camp-footer.correct h3 { color: #58a700; }
.camp-footer.wrong h3 { color: #ea2b2b; }
.camp-feedback-msg p { margin: 0; font-size: 1rem; color: #ea2b2b; font-weight: 700; }

.camp-check-btn {
    background: #e5e5e5; color: #afafaf; border: none; border-radius: 16px; font-size: 1.1rem; font-weight: 900;
    padding: 14px 32px; box-shadow: 0 4px 0 #cccccc; cursor: not-allowed; transition: 0.15s; text-transform: uppercase;
}
.camp-check-btn.active { background: #58cc02; color: #fff; box-shadow: 0 4px 0 #58a700; cursor: pointer; }
.camp-check-btn.active:active { transform: translateY(4px); box-shadow: 0 0 0 #58a700; }
.camp-footer.correct .camp-check-btn { background: #58cc02; box-shadow: 0 4px 0 #58a700; color: #fff; }
.camp-footer.wrong .camp-check-btn { background: #ff4b4b; box-shadow: 0 4px 0 #ea2b2b; color: #fff; }

/* Pantalla Nivel Difícil (Hard Mode) */
.camp-hard-overlay {
    position: absolute; inset: 0; background: linear-gradient(135deg, #ff4b4b, #ff9600);
    z-index: 100; display: none; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; text-align: center; animation: slideInHard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideInHard { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.camp-hard-overlay i { font-size: 5rem; margin-bottom: 20px; animation: bounceNode 1s infinite; }
.camp-hard-overlay h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }

/* Pantalla Carga IA */
.camp-loading { display: none; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 20px; color: var(--text-secondary); }
.camp-spinner { width: 50px; height: 50px; border: 6px solid var(--border); border-top-color: #1cb0f6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ============================================
   📱 REDISEÑO SOLO MÓVIL - HEADER LIMPIO
   (No afecta a PC en absoluto)
   ============================================ */

@media (max-width: 768px) {
    
    /* 1. OCULTAR botones extra del header en móvil */
    .navbar .plan-nav-btn,
    .navbar .admin-nav-btn,
    .navbar #settingsBtn {
        display: none !important;
    }
    
    /* 2. Ajustar el logo para que se vea completo */
    .nav-logo {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }
    
    .logo-text-wrap {
        min-width: 0;
        flex: 1;
    }
    
    .logo-text {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }
    
    .logo-tagline {
        font-size: 0.6rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .logo-mark {
        flex-shrink: 0;
    }
    
    /* 3. Header más compacto */
    .nav-container {
        padding: 8px 12px !important;
    }
    
    .nav-right {
        flex-shrink: 0;
        gap: 4px;
    }
    
    /* 4. Avatar del usuario más limpio */
    .user-avatar {
        width: 36px;
        height: 36px;
        border: 2px solid #10b981;
        border-radius: 50%;
    }
    
    /* 5. Botón login Google más pequeño en móvil */
    .google-login-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    .google-login-btn span {
        display: none; /* solo icono de Google */
    }
    
    /* Dot de conexión más pequeño */
    .connection-dot {
        transform: scale(0.75);
    }
}

/* ============================================
   📱 VISTA PERFIL/LOGIN MÓVIL EN AJUSTES
   ============================================ */

@media (max-width: 768px) {
    
    /* Agregar una tarjeta de PERFIL al inicio de Ajustes móvil */
    .settings-mobile-content::before {
        content: '';
        display: block;
    }
    
    /* Nueva card de perfil móvil */
    .mobile-profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(145deg, rgba(26, 115, 232, 0.08), rgba(155, 114, 203, 0.05));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 24px 20px;
        margin-bottom: 16px;
    }
    
    .mobile-profile-avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        overflow: hidden;
    }
    
    .mobile-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-profile-avatar i {
        font-size: 2.5rem;
        color: rgba(255, 255, 255, 0.4);
    }
    
    .mobile-profile-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text, #fff);
        margin: 0 0 20px 0;
    }
    
    .mobile-login-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mobile-login-input {
        width: 100%;
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        color: #fff;
        font-size: 0.9rem;
        text-align: center;
        outline: none;
        transition: all 0.2s;
    }
    
    .mobile-login-input:focus {
        border-color: #1a73e8;
        background: rgba(26, 115, 232, 0.08);
    }
    
    .mobile-login-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }
    
    .mobile-login-buttons {
        display: flex;
        gap: 8px;
        margin-top: 4px;
    }
    
    .mobile-btn-login,
    .mobile-btn-register {
        flex: 1;
        padding: 10px;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-btn-login {
        background: #1a73e8;
        color: #fff;
        box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
    }
    
    .mobile-btn-login:active {
        transform: scale(0.97);
    }
    
    .mobile-btn-register {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .mobile-btn-google {
        margin-top: 10px;
        width: 100%;
        padding: 10px;
        background: #fff;
        color: #333;
        border: none;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }
    
    .mobile-btn-google img {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   💻 DESKTOP: ASEGURAR QUE NADA CAMBIE
   ============================================ */
@media (min-width: 769px) {
    .mobile-profile-card {
        display: none !important;
    }
}

/* ============================================================
   👤 ESTILOS PESTAÑA PERFIL Y LOGIN MÓVIL
   ============================================================ */

.profile-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 14px 40px;
}

.profile-view-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: fadeIn 0.3s ease;
}

/* --- VISTA INVITADO (NO LOGUEADO) --- */
.profile-guest-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(26,115,232,0.1), rgba(155,114,203,0.1));
    color: #60a5fa;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.profile-guest-icon i {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-view-box h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
}

.profile-view-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 90%;
}

.google-login-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.google-login-btn-large:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.google-login-btn-large img {
    width: 24px;
    height: 24px;
}

.profile-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.profile-benefits span {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-benefits span i { color: #60a5fa; }


/* --- VISTA USUARIO LOGUEADO --- */
.profile-header-card {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.profile-avatar-box {
    position: relative;
    margin-bottom: 16px;
}

.profile-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--border);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.profile-badge-overlay {
    position: absolute;
    bottom: 0;
    right: -5px;
}

.profile-header-card h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.profile-header-card p {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-stats-row {
    display: flex;
    gap: 14px;
    width: 100%;
}

.p-stat {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-stat span {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text);
}

.p-stat small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}


/* --- BOTONES DE ACCIÓN --- */
.profile-actions-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    transition: transform 0.15s ease;
}

.profile-action-btn:active {
    transform: translateY(2px);
}

.profile-action-btn span {
    flex: 1;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
}

.p-act-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.p-act-ico.gold { color: #fbbc05; background: rgba(251, 188, 5, 0.1); }
.p-act-ico.red { color: #ea4335; background: rgba(234, 67, 53, 0.1); }

.p-act-arrow {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-action-btn.danger {
    margin-top: 10px;
    border-color: rgba(234, 67, 53, 0.3);
}

.profile-action-btn.danger span {
    color: #ea4335;
}

/* ============================================================
   📚 ÍCONO FUSIONADO (MI ZONA) - SIN FONDO DORADO
   ============================================================ */

.merged-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.merged-icon i:first-child { 
    font-size: 1.25rem; 
    color: inherit; 
}
.merged-icon .badge-icon {
    position: absolute;
    bottom: -2px;
    right: -5px;
    font-size: 0.6rem;
    color: inherit; /* Hereda el color normal o azul activo */
    background: transparent;
    padding: 0;
    border: none;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.5));
}

/* ============================================================
   👤 CORRECCIÓN DEL TEXTO PERFIL Y ORDEN DE BARRA MÓVIL
   ============================================================ */

@media (max-width: 768px) {
    /* 1. Ocultar el botón de cámara de la barra inferior (Ya está en el traductor) */
    .mobile-bottom-nav button[data-tab="camera"] {
        display: none !important;
    }

    /* 2. Centrar perfectamente el texto de Perfil debajo de la foto redonda */
    #bottomNavProfileBtn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding-top: 2px; /* Ajuste milimétrico vertical */
    }
    
    #bottomNavProfileBtn img.nav-profile-mini {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid transparent;
        margin-bottom: 0px; 
    }

    /* 3. Espaciado correcto para la lupa del Historial/Guardado */
    .tab-page-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding: 0 14px; /* Margen para que no choque con los bordes de la pantalla */
    }
    .search-history {
        flex: 1;
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    .clear-all-btn {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
}

/* BURBUJA DE SATURACIÓN (COOLDOWN) */
.cooldown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 31, 32, 0.95);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.cooldown-text {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--warning); /* Color amarillo */
}
.cooldown-bar-container {
  width: 80%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.cooldown-bar {
  height: 100%;
  background: var(--warning);
  width: 100%;
  transition: width 1s linear;
}

/* ============================================================
   📢 FIX DEFINITIVO DE ANUNCIOS EN PESTAÑAS (NO ANCHO 0)
   ============================================================ */

.ad-banner-container {
    width: 100%;
    min-width: 280px;
    max-width: 900px;
    min-height: 100px;
    margin: 20px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.ad-banner-container ins.adsbygoogle {
    display: block !important;
    min-width: 250px !important;
    min-height: 90px !important;
}

/* Ocultar a usuarios PRO */
body.user-is-pro .free-only-ad {
    display: none !important;
}

/* Asegurar visibilidad de pestañas activas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
}

.translator-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Banner de Publicidad Debajo */
.ad-banner-container {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    position: relative;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ============================================================
   🏕️ ESTILOS COMPLETOS DE YZG CAMP (DARK THEME)
   ============================================================ */

.camp-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

/* Header YZG Camp */
.camp-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
}

.camp-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.camp-logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a73e8, #9B72CB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(26,115,232,0.3);
}

.camp-hero-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.camp-hero-sub {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.camp-top.mini {
    display: flex;
    gap: 8px;
}

.camp-top.mini .camp-stat-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
}

/* Palabra del Día */
.camp-wotd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(26,115,232,0.12), rgba(155,114,203,0.12)), var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.camp-wotd-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(26,115,232,0.15);
    border: 1px solid rgba(26,115,232,0.3);
    border-radius: 20px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.camp-wotd-word {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
}

.camp-wotd-meaning {
    margin-top: 4px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.camp-wotd-example {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #a78bfa;
    font-weight: 600;
}

.camp-wotd-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.camp-wotd-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #1a73e8, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.camp-wotd-btn:hover { transform: scale(1.05); }

.camp-wotd-btn.ghost {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Camino de Lecciones (Path Shell) */
.camp-path-shell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.camp-path-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.camp-path-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.camp-path-head span {
    font-size: 0.8rem;
    font-weight: 800;
    color: #60a5fa;
    background: rgba(26,115,232,0.15);
    border: 1px solid rgba(26,115,232,0.3);
    border-radius: 20px;
    padding: 4px 12px;
}

.camp-path-stage {
    position: relative;
    min-height: 450px;
}

.camp-path-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.camp-path-guide {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
    stroke-linecap: round;
}

.camp-path-progress {
    stroke: #60a5fa;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.camp-path {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.camp-node {
    display: flex;
    width: 100%;
}

.camp-node.left { justify-content: flex-start; padding-left: 5%; }
.camp-node.right { justify-content: flex-end; padding-right: 5%; }

.camp-lesson-btn {
    min-width: 200px;
    height: 60px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.camp-node-ico {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.camp-node-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.camp-node-text small {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.camp-lesson-btn.current {
    border-color: #60a5fa;
    background: linear-gradient(135deg, rgba(26,115,232,0.2), rgba(155,114,203,0.2));
    box-shadow: 0 0 15px rgba(96,165,250,0.3);
}

.camp-lesson-btn.done {
    border-color: #34a853;
    background: rgba(52,168,83,0.15);
}

.camp-lesson-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
