:root {
    /* Silicon Valley Definitive Palette */
    --primary: #0056FF;
    /* Neon Electric Blue */
    --primary-glow: rgba(0, 86, 255, 0.6);
    --primary-deep: #008888;
    --secondary: #000000;
    --text-main: #000000;
    --text-muted: #4b5563;
    --bg-light: #ffffff;
    --border-color: #e5e7eb;

    /* Typography Global */
    --font-main: 'Montserrat', sans-serif;
    --font-brand: 'Orbitron', sans-serif;

    /* Session Buttons */
    --guest-blue: #2E5BFF;
    --guest-blue-hover: #1a3fd4;

    /* Layout Variables */
    --header-height: 58px;
    --max-width: 1200px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    margin: 0 !important;
    padding: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: scroll;
    /* Prevents layout jump */
    line-height: 1.5;
}

/* ══════════════════════════════════════════
   HEADER UNIVERSAL — REGLAS DEFINITIVAS
   Aplica a TODAS las páginas sin excepción
══════════════════════════════════════════ */

header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    background: #ffffff !important;
    border-bottom: 2px solid #0056FF !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 20px rgba(0, 86, 255, 0.12) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-container {
    width: 100% !important;
    max-width: 1400px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 2rem !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
    height: 55px !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.logo-container img {
    height: 40px !important;
    width: auto !important;
}

.brand-logo-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0056FF !important;
    letter-spacing: -0.5px !important;
}

nav.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 55px !important;
}

nav.main-nav a {
    text-decoration: none !important;
    color: #111827 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    resize: none !important;
}

/* REGLA CEO: Sin flechas y Brillo Azul Eléctrico */
nav.main-nav a::after,
nav.main-nav a::before {
    display: none !important;
    content: none !important;
}

nav.main-nav a:hover {
    color: #0056FF !important;
    background: rgba(0, 86, 255, 0.08) !important;
    text-shadow: 0 0 10px rgba(0, 86, 255, 0.8) !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    /* GLOW PROFESIONAL */
}

nav.main-nav a.active {
    color: #0056FF !important;
    background: rgba(0, 86, 255, 0.1) !important;
    font-weight: 700 !important;
}

/* Espaciado para compensar el Header Fijo */
body {
    padding-top: 130px !important;
}


.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    height: 55px !important;
}

.btn-register {
    background: #000000;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 86, 255, 0.6), 0 8px 25px var(--primary-glow);
    background: #0039cc;
}

/* Guest Session Buttons */
.btn-nav-guest-login {
    background: transparent;
    color: #1f2937;
    border: 1.5px solid #e5e7eb;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    height: auto;
    line-height: normal;
}

.btn-nav-guest-login:hover {
    background: #f8fafc;
    border-color: var(--guest-blue);
    color: var(--guest-blue);
}

.btn-nav-guest-register {
    background: var(--guest-blue);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 91, 255, 0.25);
    border: none;
    display: inline-block;
}

.btn-nav-guest-register:hover {
    background: var(--guest-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 91, 255, 0.4);
}

.hidden {
    display: none !important;
}








.logo-container:hover nav.main-nav a:hover,






.user-profile {
    position: relative;
    cursor: pointer;
}

.user-profile img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 250px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 15px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown.show {
    display: flex;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown- .avatar-large-wrapper {
    position: relative;
    margin-bottom: 6px;
}

.avatar-large {
    width: 48px;
    height: 48px;
    background: #065f46;
    /* Replaced with a nice dark green consistent with "A" in images */
    color: white;
    font-size: 24px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 86, 255, 0.3);
    border: 1px solid #e2e8f0;
}

.camera-icon i {
    font-size: 8px;
    color: #475569;
}

.profile-dropdown-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.user-email {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-manage-account {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0056FF;
    cursor: pointer;
    transition: var(--transition);
}

.btn-manage-account:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: #0056FF;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px -20px;
    opacity: 0.6;
}

/* Accounts Section */
.accounts-section {
    background: rgba(241, 245, 249, 0.5);
    margin: 6px -15px;
    padding: 6px 15px;
}

.accounts- .accounts-header i {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.accounts-section.collapsed .account-item,
.accounts-section.collapsed .add-account {
    display: none;
}

.accounts-section.collapsed .accounts-header i {
    transform: rotate(-180deg);
}

.accounts-section.collapsed .accounts- .account-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
    margin-bottom: 6px;
}

.account-item:hover {
    background: #f8fafc;
}

.account-avatar-small {
    width: 24px;
    height: 24px;
    background: #7c2d12;
    /* Darker brown for Augusto Game */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 10px;
    margin-right: 8px;
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.check-icon {
    color: #10b981;
    font-size: 16px;
}

.add-account {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 12px;
}

.add-account:hover {
    background: #f1f5f9;
}

.add-icon {
    font-size: 16px;
    color: #475569;
    margin-right: 12px;
    width: 32px;
    text-align: center;
}

.add-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Dropdown Actions */
.dropdown-actions {
    padding: 4px 0;
}

.logout-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
}

.logout-action:hover {
    background: #fee2e2;
    color: #ef4444;
}

.logout-action i {
    font-size: 16px;
}

.dropdown-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 2px;
}

.dropdown-footer a {
    font-size: 0.7rem;
    color: #64748b;
    text-decoration: none;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

.footer-dot {
    font-size: 8px;
    color: #cbd5e1;
}

/* Notifications Dropdown */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #0056FF;
    border: 2px solid white;
    border-radius: 50%;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: -70px;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    box-shadow: 0 15px 50px rgba(0, 86, 255, 0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-dropdown.show {
    display: flex;
}

.notification- .notification-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.new-badge {
    background: rgba(0, 86, 255, 0.05);
    color: #0056FF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notification-item {
    padding: 18px 20px;
    display: flex;
    gap: 15px;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.notification-item:hover {
    background: rgba(0, 0, 0, 0.01);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.02);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 86, 255, 0.05);
    color: #0056FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-content {
    flex: 1;
}

.notification-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

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

.notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.notification-actions span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

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

.action-btns i {
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
}

.action-btns i:hover {
    color: var(--primary);
}

.notification-time {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: right;
}

.notification-footer {
    padding: 15px;
    text-align: center;
    background: #f8fafc;
}

.notification-footer a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.notification-footer a:hover {
    color: var(--primary);
}

.notification-item {
    position: relative;
    user-select: none;
    touch-action: pan-y;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
}

.notification-item.swiping {
    transition: none;
}

.notification-item.swiped-left {
    transform: translateX(-120%);
    opacity: 0;
}

.notification-item.swiped-right {
    transform: translateX(120%);
    opacity: 0;
}

.btn-delete-notification {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.notification-item:hover .btn-delete-notification {
    opacity: 1;
}

.btn-delete-notification:hover {
    background: #ef4444;
    color: white;
}

.action-btns i.active-up {
    color: #22c55e !important;
}

.action-btns i.active-down {
    color: #ef4444 !important;
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    /* Sin padding-top, el body ya compensa el header fijo */
}

/* History Table Styles */
.history-container {
    padding: 0.5rem 0;
}

.history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 1rem;
}

.history-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-table td {
    background: #ffffff;
    padding: 1.2rem 1rem;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.empty-history {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
    margin-top: 2rem;
}

.empty-history i {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.empty-history p {
    color: #64748b;
    font-weight: 500;
}

.history-table tr td:first-child {
    border-left: 1px solid #f1f5f9;
    border-radius: 12px 0 0 12px;
}

.history-table tr td:last-child {
    border-right: 1px solid #f1f5f9;
    border-radius: 0 12px 12px 0;
}

.empty-history {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    color: var(--text-muted);
    font-weight: 600;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Function Buttons */
.function-buttons-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.function-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-function {
    background: var(--bg-white);
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 86, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.btn-function i {
    transition: all 0.3s ease;
    color: #64748b;
}

.badge-quality {
    background: rgba(0, 86, 255, 0.1);
    /* Soft Electric Blue */
    color: var(--primary);
    /* Official Electric Blue */
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-left: 5px;
    transition: all 0.3s ease;
}

/* ---- Hover: simple scale + border glow ---- */
.btn-function:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow:
        0 0 12px var(--primary-glow),
        0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-function:hover i {
    color: var(--primary);
}

.btn-function:hover .badge-quality {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* ---- Particle spawned by JS ---- */
.btn-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: particle-rise var(--dur, 0.9s) ease-out forwards;
}

@keyframes particle-rise {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx, 0px), var(--ty, -40px)) scale(0.3);
    }
}


/* Search Bar */
.preview-card,
.feedback-card,
.search-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.search-container {
    background: var(--bg-white);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(0, 86, 255, 0.1);
    /* Expansive and soft */
    margin: 0 auto 0.6rem;
    /* Centered */
    max-width: 750px;
    /* Shortened */
    overflow: visible !important;
    /* GLOW LIBRE: No clipping */
}

/* ── Link Preview Bar ── */
.link-preview-bar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeSlideIn 0.25s ease both;
    border-left: 3px solid var(--primary);
}

.link-preview-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.link-preview-spinner i {
    color: var(--primary);
    font-size: 1rem;
}

.link-preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.link-preview-thumb {
    width: 52px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.link-preview-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-preview-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-preview-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-preview-ok {
    color: #10b981;
    font-size: 1.1rem;
    flex-shrink: 0;
}


.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
}

.search-input-wrapper i {
    color: var(--text-muted);
    margin-right: 12px;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
}

.search-container:focus-within {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 35px rgba(0, 86, 255, 0.25);
    /* Ultra expansive glow */
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search hint text below the search bar */
.search-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
    opacity: 0.85;
}

.btn-convert {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 86, 255, 0.25);
    overflow: visible !important;
}

.btn-convert:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 40px rgba(0, 86, 255, 0.5);
    /* Silicon Valley Intense Glow */
    transform: translateY(-2px);
}

/* ---- Quality Selector Row ---- */
.quality-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.quality-selector-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--text-muted);
}

.quality-select {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.quality-select:focus {
    border-color: var(--primary);
}

/* ---- Download Action Buttons ---- */
.download-action-row {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.btn-dl-main {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-dl-video {
    background: var(--primary);
    color: white;
}

.btn-dl-video:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-dl-audio {
    background: #10b981;
    color: white;
}

.btn-dl-audio:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-dl-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ---- Status message ---- */
.dl-status {
    margin-top: 0.75rem;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dl-status.info {
    background: rgba(0, 86, 255, 0.05);
    color: #0056FF;
}

.dl-status.error {
    background: #fef2f2;
    color: #dc2626;
}

.dl-status.ok {
    background: #f0fdf4;
    color: #15803d;
}

/* ---- Carousel notice ---- */
.carousel-notice {
    margin-top: 0.75rem;
    padding: 10px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #92400e;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.4;
}

.carousel-notice i {
    flex-shrink: 0;
    margin-top: 2px;
}



/* Icon styles consolidated at the end of the file in Marquee section */

/* Animación de traslación */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.terms-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Preview Card */
.preview-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-top: 3rem;
}

.video-main-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-thumb-container {
    width: 240px;
    flex-shrink: 0;
}

.video-thumb-container img {
    width: 100%;
    border-radius: 12px;
}

.video-details {
    flex: 1;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    flex-shrink: 0;
    min-width: 140px;
    box-shadow: 0 4px 6px -1px rgba(0, 86, 255, 0.2);
}

.qr-title {
    font-size: 0.70rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-container img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    padding: 4px;
    border: 1px solid #f1f5f9;
}

/* Clean Light Cards */
.preview-card,
.feedback-card,
.search-card,
.video-editor-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 86, 255, 0.05) !important;
    border-radius: 24px !important;
    color: var(--text-main) !important;
    transition: var(--transition);
}

.feedback-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.1) !important;
}

.preview-card *,
.feedback-card *,
.search-card *,
.video-editor-card * {
    color: inherit;
}

.preview-card h2,
.feedback-card h3,
.search-card h2 {
    color: #000000 !important;
    font-weight: 800;
}

.format-label {
    color: #1e293b !important;
}

.format-size {
    color: #64748b !important;
}

.video-meta span {
    color: #475569 !important;
}


.qr-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: center;
}

.video-details h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.video-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-trim {
    background: linear-gradient(-45deg, #e11d48, #f43f5e, #be123c, #fb7185);
    background-size: 300% 300%;
    animation: gradient-shimmer 5s ease infinite;
    color: white;
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}


.premium-badge {
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ── Options Row (Thumbnail check + Image button) ── */
.options-row-full {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 5px;
    width: 100%;
}

.options-row-full label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
}

.options-row-full input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.options-divider {
    width: 1px;
    height: 30px;
    background: #e2e8f0;
    margin: 0 20px;
}

.btn-option-full {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 100%;
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 86, 255, 0.2);
    cursor: pointer;
}

.btn-option-full:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}


/* Download Sections */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.download-type-column {
    display: flex;
    flex-direction: column;
}

.download-items-container {
    flex: 1;
    /* This will make the container grow and push the show-more button down */
}


.download-type- .download-type-header i {
    color: var(--primary);
}

.download-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.download-item-info span {
    display: block;
}

.quality-name {
    font-weight: 700;
    font-size: 0.9rem;
}

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

.btn-download-item {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}


.extra-options {
    transition: all 0.3s ease;
}

.extra-options.hidden {
    display: none;
}



/* ── Format Panel (two-column download grid) ── */
.format-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
}

.download-type-column {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem 0.75rem;
}

.download-type-column:first-child {
    border-right: 1px solid var(--border-color);
}

.col- .col-header i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Individual format row */
.format-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
    animation: fadeSlideIn 0.2s ease both;
}

.format-row:last-child {
    border-bottom: none;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-row-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.format-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.2;
}

.format-sublabel {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(0, 86, 255, 0.05);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.format-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Per-format Download button */
.btn-fmt-dl {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-fmt-dl:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-fmt-dl:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-unavailable {
    background: #e2e8f0;
    color: #64748b;
    pointer-events: auto;
}

.btn-unavailable:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 86, 255, 0.2);
}

.btn-unavailable i {
    color: #94a3b8;
}

/* Audio column button – green tint */
#col-audio .btn-fmt-dl {
    background: #10b981;
}

#col-audio .btn-fmt-dl:hover {
    background: #059669;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Hidden extra format rows */
.extra-format.hidden {
    display: none;
}

/* Show-more button – matches column width */
.show-more {
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    margin-top: 10px;
    padding: 12px 0 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    width: 100%;
    font-family: inherit;
    border-top: 1px dashed #e2e8f0;
}

.show-more:hover {
    color: var(--primary-hover);
}

.show-more i {
    transition: transform 0.3s ease;
}


.feedback-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    /* Reduced from 2.5rem */
    box-shadow: var(--shadow);
    margin: 2rem auto;
    /* Centered and reduced margin */
    max-width: 600px;
    /* Shortened */
    text-align: center;
}

.feedback-card h3 {
    margin-bottom: 8px;
}

.feedback-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 1.8rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.stars i.active {
    color: #eab308;
}

.feedback-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.btn-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
}

.btn-pill:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

.btn-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.modal-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-modal-close {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem;
    min-height: 80px;
    /* Reduced from 120px */
    margin-bottom: 1.2rem;
    resize: none;
    font-size: 0.9rem;
}

.btn-feedback {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.search-result-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    background: rgba(0, 86, 255, 0.1);
    /* Soft Electric Blue */
    color: var(--primary);
    /* Official Electric Blue */
}

/* Features Section */
.features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
    text-align: center;
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: rgba(0, 86, 255, 0.05);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.4rem;
    box-shadow: 0 8px 15px rgba(0, 86, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 86, 255, 0.3);
}


.feature-item h4 {
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    margin-top: 5rem;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.faq-section>p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.accordion-item {
    background: var(--bg-white);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion- .accordion-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 15px 1.5rem;
    margin-top: 5rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* ── Download Progress Bar – 3-state system ── */
.dl-progress-wrap {
    margin-top: 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    animation: progress-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes progress-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dl-progress- .dl-progress-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

.dl-progress-pct {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Row: track + icon side-by-side */
.dl-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dl-progress-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

/* ── State 1: Downloading – electric blue gradient + shimmer ── */
.dl-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0056FF, #0056FF);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dl-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -60%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: progress-shimmer 1.4s infinite;
}

@keyframes progress-shimmer {
    0% {
        left: -60%;
    }

    100% {
        left: 120%;
    }
}

/* ── State 2: Processing (FFmpeg) – solid blue + pulsing glow ── */
.dl-progress-bar.bar-processing {
    background: linear-gradient(90deg, #0056FF, #0056FF);
    animation: bar-pulse 1.1s ease-in-out infinite;
}

@keyframes bar-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    50% {
        box-shadow: 0 0 10px 4px rgba(37, 99, 235, 0.55);
    }
}

/* ── State 3: Done – vivid green ── */
.dl-progress-bar.bar-done {
    background: linear-gradient(90deg, #16a34a, #22c55e);
    animation: none;
}

.dl-progress-bar.bar-done::after {
    display: none;
}

/* ── Icon slot ── */
.dl-progress-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.35rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dl-progress-icon.icon-visible {
    opacity: 1;
    transform: scale(1);
}

/* Spinner: continuous rotation */
.dl-progress-icon.icon-spinner i {
    color: #0056FF;
    animation: icon-spin 0.8s linear infinite;
}

@keyframes icon-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Checkmark: bounce pop-in + bright green glow */
.dl-progress-icon.icon-check i {
    color: #22c55e;
    filter: drop-shadow(0 0 7px rgba(34, 197, 94, 0.75));
    animation: icon-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.6) both;
}

@keyframes icon-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── Progress Footer (Warning + Cancel) ── */
.dl-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    gap: 15px;
}

.dl-warning {
    font-size: 0.75rem;
    color: #92400e;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.dl-warning i {
    margin-right: 4px;
}

.btn-cancel-dl {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-cancel-dl:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-cancel-dl i {
    font-size: 0.8rem;
}

/* SEARCH RESULTS - PROFESSIONAL FULL WIDTH SCROLLING */
#search-results-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px 4%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(25px);
    margin-top: 50px;
    border-top: 1px solid rgba(0, 86, 255, 0.1);
    border-bottom: 1px solid rgba(0, 86, 255, 0.1);
}

#search-results-wrapper.hidden {
    display: none;
}

.search-results- .search-results-header h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 86, 255, 0.4);
}

.search-results-header i.fas.fa-rocket {
    color: #0056FF;
    filter: drop-shadow(0 0 10px rgba(0, 86, 255, 0.8));
}

.yt-brand-icon {
    color: #fff;
    font-size: 2.8rem;
    filter: drop-shadow(0 0 20px rgba(0, 86, 255, 0.6));
}

.search-scroll-container {
    padding: 10px 20px 30px;
    width: 100%;
}

/* (Scrollbar styles removed — page scrolls naturally) */


.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 5px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* SEARCH CARDS - Horizontal list layout */
.search-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 86, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    animation: cardFadeIn 0.35s ease both;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card:hover {
    transform: translateX(4px);
    border-color: #0056FF;
    box-shadow: 0 8px 32px rgba(0, 86, 255, 0.2);
    background: rgba(20, 30, 55, 0.98);
}

/* LEFT: fixed-width thumbnail */
.search-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 115px;
    background: #000;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #0f172a;
}

.search-card:hover .search-card-thumb img {
    transform: scale(1.06);
}

.search-card-duration {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid rgba(0, 86, 255, 0.4);
}

/* RIGHT: content + button */
.search-card-content {
    padding: 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    min-width: 0;
}

.search-card-info {
    flex: 1;
    min-width: 0;
}

.search-card-title {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.search-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.search-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.7);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.search-meta-chip i {
    font-size: 0.8rem;
    color: #0056FF;
    opacity: 0.8;
}

/* Red tag specifically for NEW */
.search-meta-chip.new-chip i {
    color: #fff;
    opacity: 1;
}

.btn-select-card {
    flex-shrink: 0;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0056FF, #0056FF);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
}

.btn-select-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 22px rgba(0, 86, 255, 0.65);
}

/* Responsive: stack on small screens */
@media (max-width: 600px) {
    .search-card {
        flex-direction: column;
    }

    .search-card-thumb {
        width: 100%;
        height: 180px;
        border-radius: 14px 14px 0 0;
    }

    .search-card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-select-card {
        width: 100%;
        justify-content: center;
    }
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    width: 100%;
}

.btn-load-more {
    background: transparent;
    border: 2px solid #0056FF;
    color: #0056FF;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #0056FF, #0056FF);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0, 86, 255, 0.5);
    transform: translateY(-3px);
}

.load-more-wrapper.hidden {
    display: none;
}

/* PROFESSIONAL SEARCH BAR GLOW (CELESTE/CYAN) */
.search-input-wrapper.is-typing {
    border-color: #0056FF !important;
    background: #fff !important;
    box-shadow: 0 0 0 5px rgba(0, 86, 255, 0.1), 0 0 35px rgba(0, 86, 255, 0.35) !important;
    animation: professionalGlow 2.5s infinite alternate ease-in-out;
}

@keyframes professionalGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 86, 255, 0.2);
    }

    to {
        box-shadow: 0 0 45px rgba(0, 86, 255, 0.5);
    }
}

.search-input-wrapper.is-typing i {
    color: #0056FF !important;
    filter: drop-shadow(0 0 8px #0056FF);
    transform: scale(1.2);
}

/* PREMIUM CELESTE THEME */
.btn-convert,
.btn-fmt-dl,
.dl-progress-bar {
    background: linear-gradient(135deg, #0056FF, #0056FF) !important;
    border: none !important;
}

.btn-convert:hover {
    box-shadow: 0 0 25px rgba(0, 86, 255, 0.6) !important;
    transform: translateY(-2px);
}

.format-row .btn-fmt-dl {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid #0056FF !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.format-row .btn-fmt-dl:hover {
    background: linear-gradient(135deg, #0056FF, #0056FF) !important;
    box-shadow: 0 0 25px rgba(0, 86, 255, 0.5) !important;
    color: #fff !important;
}

.dl-progress-bar {
    background: linear-gradient(90deg, #0056FF, #0056FF, #0056FF) !important;
    box-shadow: 0 0 20px rgba(0, 86, 255, 0.8) !important;
}

/* VOLUME CONTROL SLIDER THEME */
#volume-slider::-webkit-slider-thumb {
    background: #0056FF !important;
    box-shadow: 0 0 10px #0056FF !important;
}

/* ── Search Results Styles ── */
#search-results-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.search-results- .yt-brand-icon {
    font-size: 2rem;
    color: #ff0000;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-card {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.search-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.search-card-thumb {
    position: relative;
    width: 250px;
    flex-shrink: 0;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.search-card-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.search-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-meta-chip {
    background: #1e293b;
    color: #cbd5e1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #334155;
}

.btn-select-card {
    align-self: flex-start;
    margin-top: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-select-card:hover {
    background: var(--primary-hover);
}

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-load-more {
    background: transparent;
    border: 2px solid #0056FF;
    color: #0056FF;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: #0056FF;
    color: #0f172a;
}

.hidden {
    display: none !important;
}

/* Google Login & History Styles */
.btn-google-login {
    background-color: #4285F4;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-google-login:hover {
    background-color: #3367D6;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

#user-history-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.history- .history-header h2 {
    font-size: 24px;
    color: #1a1a1a;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.history-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
}

/* Info Modern Cards */
.info-columns {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin: 4rem auto;
    max-width: 1200px;
    padding: 20px;
}

@media (min-width: 768px) {
    .info-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .info-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

.info-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -15px rgba(0, 86, 255, 0.15);
}

.info-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.info-box h4 {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.search-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #eef2f6;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.search-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 86, 255, 0.2);
}

.search-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    background: #000;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.search-card-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left; /* Alineación estricta a la izquierda */
}

.search-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Altura fija para simetría absoluta */
    text-align: left;
}

.search-card-metadata {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-name {
    font-size: 12px;
    color: #606060;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-stats {
    font-size: 12px;
    color: #606060;
    display: flex;
    gap: 4px;
    align-items: center;
}

.video-date {
    font-size: 12px;
    color: #606060;
}

/* Marquee Carousel - Strict Professional Design */
.social-marquee-container {
    width: 100%;
    margin: 36px 0;
    overflow: visible;
    position: relative;
    padding: 60px 0;
    /* Espacio masivo para que ningún brillo se corte */
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.social-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
    align-items: center;
    pointer-events: none;
    /* Ignora el mouse en el espacio vacío */
}

/* El carrusel SOLO se para si el mouse toca un icono específico */
.social-marquee-track .icon-link:hover {
    animation-play-state: paused;
}

.social-marquee-track:has(.icon-link:hover) {
    animation-play-state: paused;
}

.icon-link {
    text-decoration: none;
    margin-right: 60px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    /* Reactiva el mouse solo aquí */
}

.icon-img {
    font-size: 38px;
    opacity: 0.9;
    transition: all 0.4s ease;
    display: block;
}

/* Base Shadow Rules (Subtle Glow) */
.fa-youtube {
    color: #FF0000;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

.fa-instagram {
    color: #E4405F;
    filter: drop-shadow(0 0 5px rgba(228, 64, 95, 0.4));
}

.fa-tiktok {
    color: #010101;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.fa-facebook-f {
    color: #1877F2;
    filter: drop-shadow(0 0 5px rgba(24, 119, 242, 0.4));
}

.fa-x-twitter {
    color: #000000;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.fa-whatsapp {
    color: #25D366;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.4));
}

.fa-snapchat {
    color: #FFFC00;
    filter: drop-shadow(0 0 5px rgba(255, 252, 0, 0.6));
}

.fa-twitch {
    color: #9146FF;
    filter: drop-shadow(0 0 5px rgba(145, 70, 255, 0.4));
}

.fa-pinterest-p {
    color: #E60023;
    filter: drop-shadow(0 0 5px rgba(230, 0, 35, 0.4));
}

.fa-soundcloud {
    color: #FF3300;
    filter: drop-shadow(0 0 5px rgba(255, 51, 0, 0.4));
}

.fa-vimeo-v {
    color: #1AB7EA;
    filter: drop-shadow(0 0 5px rgba(26, 183, 234, 0.4));
}

.fa-reddit-alien {
    color: #FF4500;
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.4));
}

.fa-linkedin-in {
    color: #0077B5;
    filter: drop-shadow(0 0 5px rgba(0, 119, 181, 0.4));
}

.fa-threads {
    color: #000000;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

/* Kick — Inline SVG (no mask, pixel-perfect rendering) */
.fa-kick {
    display: block;
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 5px rgba(83, 252, 24, 0.6));
    transition: filter 0.4s ease;
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}



/* Hover Effects (Intensified Glow) */
.icon-link:hover {
    transform: scale(1.4) translateY(-5px);
}

.icon-link:hover .icon-img {
    opacity: 1;
}

/* Intensidad Unificada para todos los iconos */
.icon-link:hover .fa-youtube {
    filter: drop-shadow(0 0 20px #FF0000);
}

.icon-link:hover .fa-instagram {
    filter: drop-shadow(0 0 20px #E4405F);
}

.icon-link:hover .fa-tiktok {
    filter: drop-shadow(0 0 20px #000000);
}

.icon-link:hover .fa-facebook-f {
    filter: drop-shadow(0 0 20px #1877F2);
}

.icon-link:hover .fa-x-twitter {
    filter: drop-shadow(0 0 20px #000000);
}

.icon-link:hover .fa-whatsapp {
    filter: drop-shadow(0 0 20px #25D366);
}

.icon-link:hover .fa-snapchat {
    animation: none !important;
    filter: drop-shadow(0 0 20px #FFFC00) !important;
}

.icon-link:hover .fa-twitch {
    filter: drop-shadow(0 0 20px #9146FF);
}

.icon-link:hover .fa-pinterest-p {
    filter: drop-shadow(0 0 20px #E60023);
}

.icon-link:hover .fa-soundcloud {
    filter: drop-shadow(0 0 20px #FF3300);
}

.icon-link:hover .fa-vimeo-v {
    filter: drop-shadow(0 0 20px #1AB7EA);
}

.icon-link:hover .fa-reddit-alien {
    filter: drop-shadow(0 0 20px #FF4500);
}

.icon-link:hover .fa-linkedin-in {
    filter: drop-shadow(0 0 20px #0077B5);
}

.icon-link:hover .fa-threads {
    filter: drop-shadow(0 0 20px #000000);
}

/*Icono de Kick*/
.icon-link:hover .fa-kick {
    filter: drop-shadow(0 0 20px #53FC18);
}



@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* === FEEDSTUBE DESIGN UPGRADE === */

/* Logo neon glow */
.brand-name {
    text-shadow:
        0 0 8px rgba(0, 86, 255, 0.7),
        0 0 20px rgba(0, 86, 255, 0.4),
        0 0 40px rgba(0, 86, 255, 0.2);
    transition: text-shadow 0.3s ease;
}

.logo-container:hover .brand-name {
    text-shadow:
        0 0 12px rgba(0, 86, 255, 0.9),
        0 0 30px rgba(0, 86, 255, 0.6),
        0 0 60px rgba(0, 86, 255, 0.3);
}

/* Download buttons smooth hover transition */
.btn-dl-video {
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn-dl-video:hover {
    background: #0046d5;
    box-shadow: 0 0 18px rgba(0, 86, 255, 0.5), 0 6px 20px rgba(0, 86, 255, 0.3);
    transform: translateY(-2px);
}

.btn-dl-audio {
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.btn-dl-audio:hover {
    background: #059669;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5), 0 6px 20px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

/* Snapchat: constant subtle glow pulse */
@keyframes snapchat-glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 4px #FFFC00) brightness(1);
    }

    50% {
        filter: drop-shadow(0 0 12px #FFFC00) brightness(1.15);
    }
}

.icon-link .fa-snapchat {
    animation: snapchat-glow-pulse 2.5s ease-in-out infinite;
}

.icon-link:hover .fa-snapchat {
    animation: none;
    filter: drop-shadow(0 0 22px #FFFC00);
}


/* === KICK OFFICIAL BRANDING (CEO ORDER) === */

.kick-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kick-svg {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    transition: all 0.35s ease;
}

/* Hover: EFECTO DE ENCENDIDO NEÓN VERDE SUAVE */
.kick-official:hover {
    transform: scale(1.08);
}

.kick-official:hover .kick-svg {
    filter: drop-shadow(0 0 8px #53FC18) drop-shadow(0 0 15px #53FC18);
    box-shadow: 0 0 12px rgba(83, 252, 24, 0.4);
}

/* Vibración sutil síncrona con el neón logo */
@keyframes kick-subtle-vibrate {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

.kick-official:hover .kick-svg {
    animation: kick-subtle-vibrate 0.1s infinite alternate;
}

/* Etiquetas Tecnológicas */
.tech-tags-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 10px 0 15px 0;
    flex-wrap: wrap;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #0056FF;
    background: white;
    color: #0f172a;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag i {
    color: #0056FF;
}

.tech-tag:hover {
    box-shadow: 0 0 15px rgba(0, 86, 255, 0.4);
    transform: translateY(-2px);
    background: #0056FF;
    color: white;
}

.tech-tag:hover i {
    color: white;
}

/* Ajuste de posición del carrusel */
.social-marquee-container {
    margin-top: -10px !important;
    /* Más cerca de la barra */
}

/* Fix Brillo Kick FontAwesome */
.icon-link:hover .fa-kickstarter-k {
    filter: drop-shadow(0 0 20px #53FC18) !important;
}

.format-size-badge {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    display: inline-block;
}

.format-label {
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}


/* ──────── REGEX REPLACED HEADER ──────── */
* {
    font-family: 'Montserrat', sans-serif;
}















nav.main-nav a:hover,





html,
body {
    overflow-y: scroll !important;
    scrollbar-gutter: stable !important;
}


/* ──────── REGEX REPLACED HEADER V3 ──────── */
* {
    font-family: 'Montserrat', sans-serif;
}

header {
    height: 65px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid #0056FF !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 86, 255, 0.1) !important;
    box-sizing: border-box !important;
}

.header-container {
    width: 100% !important;
    max-width: 100% !important;
    /* EXTREMO A EXTREMO */
    padding: 0 2rem !important;
    /* SIN ESPACIOS AL PEDO */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 3rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.logo-container {
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.logo-container img {
    height: 35px !important;
    width: auto !important;
    display: block !important;
}

.brand-logo-text {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #0056FF !important;
    text-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.5px !important;
}

nav.main-nav {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav.main-nav a {
    text-decoration: none !important;
    color: #000000 !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    display: block !important;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    color: #0056FF !important;
    background: rgba(0, 86, 255, 0.05) !important;
    text-shadow: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --- NUEVA BARRA FEEDSTUBE (MINIMAL LIGHT) --- */
.modern-search-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 40px auto;
    position: relative;
    z-index: 10;
}

.modern-search-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 24px;
    background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(0, 136, 255, 0.15), transparent 70%);
    filter: blur(25px);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.modern-search-wrapper:hover .modern-search-glow,
.modern-search-wrapper:focus-within .modern-search-glow {
    opacity: 0.8;
}

.modern-search-border {
    position: relative;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.3), rgba(0, 200, 255, 0.2));
    box-shadow: 0 4px 20px rgba(0, 100, 200, 0.08);
    transition: all 0.3s ease;
}

.modern-search-wrapper:focus-within .modern-search-border {
    background: linear-gradient(135deg, #0088ff 0%, #00ccff 100%);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.2), 0 4px 20px rgba(0, 100, 200, 0.08);
}

.modern-search-inner {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.modern-search-icon {
    padding: 16px 16px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.modern-search-wrapper:focus-within .modern-search-icon {
    color: #0088ff;
    filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.3));
}

.modern-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.125rem;
    color: #1f2937;
    padding: 18px 0;
    font-family: inherit;
    width: 100%;
}

.modern-input::placeholder {
    color: #9ca3af;
}

.modern-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    margin: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0077ee 0%, #00aaff 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 136, 255, 0.25);
    transition: all 0.3s ease;
    font-family: inherit;
}

.modern-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 136, 255, 0.35);
    background: linear-gradient(135deg, #0088ff 0%, #00bbff 100%);
}

.modern-btn:active {
    transform: scale(0.97);
}

/* --- EFECTO MOUSE GLOW --- */
.modern-mouse-glow-container {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-search-wrapper:hover .modern-mouse-glow-container {
    opacity: 1;
}

.modern-mouse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    transform: translate(-150px, -150px);
    transition: left 0.05s linear, top 0.05s linear;
}

/* Animaciones sacadas de globals.css */
@keyframes minimal-pulse {
  0% { opacity: 0; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes subtle-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes subtle-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes trash-wobble {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

@keyframes ripple-expand {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(25); opacity: 0; }
}

@keyframes flash-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes search-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes button-flash {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.5); }
  100% { filter: brightness(1); }
}

@keyframes shine-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* New Minimal Search Bar Animations */
@keyframes minimal-pulse {
  0% { opacity: 0; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes subtle-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes subtle-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* SECURITY CARD STYLES */
#security-card {
    border-color: rgba(16, 185, 129, 0.2);
}
#security-card:hover {
    border-color: #10B981;
    box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.2);
}
#security-card .security-icon {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
#security-card i {
    margin-bottom: 0;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 3rem;
    color: #10B981;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#security-card .shield-base {
    transform: translate(-50%, -50%);
}
#security-card .lock-overlay {
    font-size: 1.3rem;
    color: #ffffff; /* Contrast against shield */
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.5) rotate(-30deg); 
    z-index: 2;
    filter: none;
}

/* Hover Animation */
#security-card:hover .lock-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg); 
}
#security-card:hover .shield-base {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Sparkle Effects */
#security-card .lock-overlay::before,
#security-card .lock-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    background-image: 
        radial-gradient(circle, #10B981 10%, transparent 10%),
        radial-gradient(circle, #ffffff 10%, transparent 10%),
        radial-gradient(circle, #10B981 10%, transparent 10%),
        radial-gradient(circle, #ffffff 10%, transparent 10%),
        radial-gradient(circle, #10B981 10%, transparent 10%);
    background-position: 50% 50%;
    background-size: 0% 0%;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

#security-card:hover .lock-overlay::before {
    animation: sparkles-slam 0.6s ease-out forwards;
    animation-delay: 0.15s; 
}

@keyframes sparkles-slam {
    0% {
        opacity: 1;
        background-size: 0% 0%;
        background-position: 
            50% 50%,
            50% 50%,
            50% 50%,
            50% 50%,
            50% 50%;
    }
    50% {
        opacity: 1;
        background-size: 12% 12%;
        background-position: 
            0% 0%,
            100% 0%,
            100% 100%,
            0% 100%,
            50% -20%;
    }
    100% {
        opacity: 0;
        background-size: 0% 0%;
        background-position: 
            -20% -20%,
            120% -20%,
            120% 120%,
            -20% 120%,
            50% -50%;
    }
}

/* GENERAL ICON WRAPPER */
.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.info-box .icon-base {
    margin-bottom: 0 !important;
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Base icon hover scale */
.info-box:hover .icon-base {
    transform: translate(-50%, -50%) scale(1.1) translateY(-3px) !important;
}

/* UNLIMITED CARD - RED (#EA4335) */
#unlimited-card {
    border-color: rgba(234, 67, 53, 0.2);
}
#unlimited-card:hover {
    border-color: #EA4335;
    box-shadow: 0 20px 40px -15px rgba(234, 67, 53, 0.2);
}
#unlimited-card .icon-base {
    color: #EA4335 !important;
    filter: drop-shadow(0 0 10px rgba(234, 67, 53, 0.3)) !important;
}

/* SPEED CARD - YELLOW (#FBBC05) */
#speed-card {
    border-color: rgba(251, 188, 5, 0.3);
}
#speed-card:hover {
    border-color: #FBBC05;
    box-shadow: 0 20px 40px -15px rgba(251, 188, 5, 0.2);
}
#speed-card .icon-base {
    color: #FBBC05 !important;
    filter: drop-shadow(0 0 10px rgba(251, 188, 5, 0.5)) !important;
}

/* QUALITY CARD - BLUE (#4285F4) */
#quality-card {
    border-color: rgba(66, 133, 244, 0.2);
}
#quality-card:hover {
    border-color: #4285F4;
    box-shadow: 0 20px 40px -15px rgba(66, 133, 244, 0.2);
}
#quality-card .icon-base {
    color: #4285F4 !important;
    filter: drop-shadow(0 0 10px rgba(66, 133, 244, 0.3)) !important;
}

/* Security card hover was using shield-base */
#security-card:hover .shield-base {
    transform: translate(-50%, -50%) scale(1.1) translateY(-3px) !important;
}

/* ──────────────────────────────────────────────
   SEARCH RESULTS GRID & CARDS
   ────────────────────────────────────────────── */

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    margin: 20px auto;
    justify-content: center;
}

.search-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #0056FF;
}

.search-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0f172a;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-card:hover .search-card-thumb img {
    transform: scale(1.05);
}

.search-card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
    /* Limit to 2 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-meta {
    font-size: 12px;
    color: #94a3b8; /* Soft gray */
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.search-card-meta i {
    font-size: 10px;
    opacity: 0.8;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    .search-card {
        max-width: 400px;
        margin: 0 auto;
    }
}
