@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #4876ff;
    /* Tu azul */
    --success: #10b981;
    --error: #ef4444;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    /* NEW FONT */
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== DOTTED BACKGROUND ===== */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#333 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
    top: 0;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-size: 0.8rem;
    /* font-weight normal */
}

/* ===== MODAL STYLES (Dynamic Injection) ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-content {
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
}

.format-btn {
    background: #0a0a0f;
    border: 1px solid #333;
    color: #ccc;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.format-btn:hover {
    border-color: var(--accent);
    color: white;
    background: #111;
    transform: translateY(-2px);
}

.format-btn .fmt-tag {
    font-size: 0.7rem;
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    color: #aaa;
    font-weight: 800;
}

.format-btn:hover .fmt-tag {
    background: var(--accent);
    color: white;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

.logo-icon {
    font-size: 2rem;
    color: white;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent);
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info-block {
    text-align: right;
    line-height: 1.2;
}

.username {
    display: block;
    font-weight: 700;
    color: white;
}

.expiry-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
}

.downloads-counter {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* ===== HEADER BUTTONS ===== */

/* WhatsApp Button */
/* WhatsApp Button */
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #00aa2e;
    color: white;
    padding: 0px 1.2rem;
    /* Adjusted Padding */
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #007720;
    border: none;
    height: 42px;
    /* FIXED HEIGHT */
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #007720;
}

.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 0 0 transparent;
}

/* Logout Button */
.btn-logout {
    background: var(--accent);
    color: white;
    padding: 0px 1.2rem;
    /* Adjusted Padding */
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 3px 0 rgba(40, 70, 180, 1);
    height: 42px;
    /* FIXED HEIGHT */
    display: flex;
    align-items: center;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(40, 70, 180, 1);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(40, 70, 180, 1);
}

/* Lang Pill Toggle */
.lang-pill {
    display: flex;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    user-select: none;
}

.lang-option {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #555;
    transition: all 0.3s ease;
}

.lang-option.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-badge {
    /* Legacy keeping just in case */
    padding: 0.5rem 1rem;
    background: var(--accent);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary,
.btn-download {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 0 rgba(40, 70, 180, 1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(40, 70, 180, 1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(40, 70, 180, 1);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
    box-shadow: 0 3px 0 rgba(40, 70, 180, 1);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 rgba(40, 70, 180, 1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 0 0 transparent;
}

.btn-download {
    background: #00fa44;
    color: black;
    font-weight: 800;
    box-shadow: 0 4px 0 #00aa2e;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #00aa2e;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
    color: white;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
}

.outline-text {
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===== INPUT SECTION ===== */
.input-section {
    width: 100%;
    max-width: 700px;
}

.input-container {
    position: relative;
    padding: 3px;
    border-radius: 12px;
    background: #1c1c1c;
    overflow: hidden;
}

.input-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--accent) 90deg,
            transparent 180deg,
            transparent 360deg);
    animation: border-rotate 4s linear infinite;
    z-index: 0;
}

@keyframes border-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.input-wrapper {
    position: relative;
    display: flex;
    gap: 1rem;
    background: #000;
    padding: 0.75rem;
    border-radius: 10px;
    z-index: 1;
    align-items: center;
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    padding: 0 1rem;
}

/* ===== FORMAT MENU ===== */
.format-menu {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.format-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.format-options {
    display: flex;
    gap: 1.5rem;
    background: #111;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #333;
}

/* Custom Radio Button */
.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.2s;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #333;
    border-radius: 50%;
    border: 2px solid #555;
    transition: all 0.2s;
}

/* On mouse-over */
.radio-container:hover .checkmark {
    background-color: #666;
}

/* When the radio button is checked */
.radio-container input:checked~.checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* Create the indicator (the dot/cross) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.checkmark:after {
    display: block;
}

/* Indicator Style (White Dot) */
.radio-container .checkmark:after {
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.fmt-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #888;
    transition: color 0.2s;
}

.radio-container:hover .fmt-text {
    color: #ccc;
}

.radio-container input:checked~.fmt-text {
    color: white;
}


/* ===== STATUS & LOADER ===== */
.status-area {
    min-height: 0;
    text-align: center;
    margin: 0;
    padding: 0;
}

.status-area p {
    margin-bottom: 1rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESULT CARD ===== */
.result-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-icon {
    font-size: 2.5rem;
    color: #00fa44;
}

/* ===== HAPPY HOUR BANNER ===== */
.happy-hour-banner {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4876ff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(72, 118, 255, 0.2);
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(72, 118, 255, 0.2);
    }

    50% {
        box-shadow: 0 8px 32px rgba(72, 118, 255, 0.4), 0 0 20px rgba(72, 118, 255, 0.3);
    }
}

.happy-hour-icon {
    font-size: 2rem;
    /* Sin animación de rebote */
}

.happy-hour-text {
    flex: 1;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

}

.happy-hour-text strong {
    color: #4876ff;
    font-weight: 800;
    text-transform: uppercase;
}

/* ===== HAPPY HOUR TEXT STATIC ===== */
.happy-hour-text-static {
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 2rem auto;
    max-width: 700px;
}

.happy-hour-text-static strong {
    font-weight: 800;
}

/* ===== HOW TO USE SECTION ===== */
.how-to-section {
    width: 100%;
    margin-top: 8rem;
    position: relative;
}

.how-to-title {
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.steps-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-tab {
    background: transparent;
    border: none;
    color: #555;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}

.step-tab.active {
    color: white;
}

.step-tab.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* STEP CONTAINER */
.step-content {
    display: none;
    position: relative;
    width: 100%;
    max-width: 1100px;
    /* Un poco mÃ¡s ancho para dar espacio */
    margin: 0 auto;
    height: 600px;
    /* Altura ajustada */
}

.step-content.active {
    display: block;
}

/* IMAGES & TRANSFORMATIONS */
.step-image-container {
    width: 60%;
    /* Reducido para dejar espacio a las tarjetas */
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 20px;
    border: 1px solid #333;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #111;
}

.step-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Variables de transformaciÃ³n por paso */
[data-step-content="1"] .step-image-container {
    right: 0;
    transform: rotate(2.58deg) translate(0, 10px);
}

[data-step-content="2"] .step-image-container {
    left: 0;
    transform: rotate(-2deg);
}

[data-step-content="3"] .step-image-container {
    right: 0;
    transform: rotate(1deg);
}


/* FLOATING CARDS */
.floating-card {
    position: absolute;
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 2.5rem;
    border-radius: 24px;
    width: 380px;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-step-num {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #666;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.5;
    font-weight: 500;
}

/* Posiciones de Tarjetas - FUERA DE LA IMAGEN */
[data-step-content="1"] .floating-card {
    top: 10%;
    left: 0;
    transform: rotate(-3deg);
}

[data-step-content="2"] .floating-card {
    top: 15%;
    right: 0;
    transform: rotate(3deg);
}

[data-step-content="3"] .floating-card {
    top: 10%;
    left: 0;
    /* Igual que paso 1 */
    transform: rotate(-2deg);
    width: 380px;
}

/* LOKI ARROWS */
.loki-arrow {
    position: absolute;
    width: 200px;
    height: auto;
    z-index: 20;
    pointer-events: none;
    opacity: 0.9;
}

.loki-arrow path {
    fill: var(--accent) !important;
}

/* Flecha Paso 1 */
[data-step-content="1"] .loki-arrow {
    top: 40%;
    left: 32%;
    transform: rotate(10deg);
}

/* Flecha Paso 2 */
[data-step-content="2"] .loki-arrow {
    top: 45%;
    right: 32%;
    transform: scaleX(-1) rotate(10deg);
}

/* Flecha Paso 3 */
[data-step-content="3"] .loki-arrow {
    display: block !important;
    top: 40%;
    left: 32%;
    transform: rotate(5deg);
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.dashboard-footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-weight: 600;
}

/* ===== RESPONSIVE MOBILE FIX ===== */
@media (max-width: 900px) {
    .dashboard-container {
        padding: 1rem;
        overflow-x: hidden;
    }

    /* HEADER */
    .dashboard-header {
        margin-bottom: 2rem;
        flex-direction: row;
        /* Keep row */
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .logo-text {
        font-size: 1.5rem !important;
        /* Slightly smaller to fit actions */
    }

    /* WhatsApp Button - Icon Only */
    .btn-whatsapp span {
        display: none;
    }

    .btn-whatsapp {
        padding: 0;
        width: 42px;
        height: 42px;
        justify-content: center;
    }

    /* Logout - Compact */
    .btn-logout {
        padding: 0 0.8rem;
        font-size: 0.8rem;
    }

    /* Lang Pill - Compact */
    .lang-pill {
        padding: 2px;
    }

    .lang-option {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* HERO */
    .hero-title {
        font-size: 3.5rem;
        /* Larger as requested */
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* INPUT SECTION - Arrow Button */
    .input-section {
        margin-top: 1rem;
    }

    .input-wrapper .btn-primary span {
        display: none;
    }

    .input-wrapper .btn-primary {
        width: 50px;
        padding: 0;
        justify-content: center;
    }

    .input-wrapper .btn-primary::after {
        content: "➜";
        font-size: 1.5rem;
        line-height: 1;
    }

    /* HOW TO USE - Stacked: Image Top, Text Bottom */
    .how-to-section {
        margin-top: 3rem;
    }

    .steps-tabs {
        gap: 1rem;
    }

    .step-tab {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .step-content {
        height: auto;
        display: none;
        flex-direction: column-reverse;
        /* Image (Top) <- Card (Bottom) due to DOM order (Card first) */
        gap: 2rem;
        margin-top: 1rem;
    }

    .step-content.active {
        display: flex;
    }

    /* Reset Styles */
    .step-image-container {
        position: relative;
        width: 100% !important;
        height: 300px !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        border-radius: 16px;
        box-shadow: none;
    }

    .floating-card {
        position: relative;
        width: 100% !important;
        max-width: none;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        box-shadow: none;
        background: transparent;
        border: 1px solid #333;
        padding: 1.5rem;
        text-align: left;
    }

    .loki-arrow {
        display: none !important;
    }

    /* Footer */
    .dashboard-footer {
        padding-bottom: 6rem;
    }
}

/* ===== NOTIFICACIONES TOAST & MODALES ===== */

/* TOAST MANAGER */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: #1c1c1c;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.3s forwards;
    white-space: nowrap;
}

.toast.success {
    border-color: var(--accent);
}

.toast.error {
    border-color: #ff4b4b;
}

.toast.info {
    border-color: #4bf;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* CUSTOM MODAL CONFIRM */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.custom-box {
    background: #161616;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.active .custom-box {
    transform: scale(1);
}

.custom-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.custom-desc {
    color: #888;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.custom-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    flex: 1;
}

.btn-secondary {
    background: #252525;
    color: #aaa;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

.btn-confirm-delete {
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.2);
}

.btn-confirm-delete:hover {
    background: #ff4b4b;
    color: white;
}

.btn-confirm-ok {
    background: var(--accent);
    color: white;
}

.btn-confirm-ok:hover {
    opacity: 0.9;
}


/* REFINAMIENTO BOTONES MODAL */
.btn-modal {
    padding: 1rem 2rem;
    /* MAS GRANDE */
    font-size: 1.1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirm-ok {
    background: #3b82f6 !important;
    /* AZUL */
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-copy {
    background: #3b82f6 !important;
    /* AZUL */
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}



/* FIX ALINEACION LOADER */
.status-area {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    min-height: 120px;
    /* Más espacio vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.status-area p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    /* Texto azul para destacar */
}



/* FIX CENTRADO LOADER Y TEXTO */
.status-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.loader {
    margin: 0 auto 1.5rem auto !important;
    display: block;
}



/* FORZAR CENTRADO DE LOADER */
#loader {
    display: none;
    /* JS lo muestra */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* El spinner tambien debe estar centrado */
.spinner {
    margin: 0 auto 15px auto !important;
}



/* FIX ANIMACION BORDE LIMPIO (SNAKE LIGHT) */
.input-container {
    position: relative;
    background: transparent;
    border-radius: 16px;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
    display: flex;
    align-items: center;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600%;
    height: 600%;
    background: conic-gradient(transparent 270deg, #3b82f6 320deg, transparent 360deg);
    transform: translate(-50%, -50%);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
    opacity: 1;
    filter: blur(0px);
}

.input-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #050505;
    border-radius: 14px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



/* REPARACION BORDE Y LUZ UNICA */
.input-container {
    position: relative;
    background: transparent;
    /* El fondo lo da el ::after */
    border-radius: 16px;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
    /* Grosor del borde */
    display: flex;
    align-items: center;
}

.input-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    /* LUZ UNICA: 90% Gris, 10% Azul - Ajustado para que no se repita */
    background: conic-gradient(#333 0deg,
            /* Empieza gris */
            #333 270deg,
            /* Sigue gris hasta el 75% */
            #3b82f6 315deg,
            /* Se vuelve azul (Pico de luz) */
            #333 360deg
            /* Vuelve a gris rapidamente */
        );
    transform: translate(-50%, -50%);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

.input-container::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Mismo grosor que padding para dejar ver el borde */
    background: #0b0b0b;
    /* FONDO ORIGINAL DE LA CAJA */
    border-radius: 14px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



/* CORRECCION FINAL: ESTRUCTURA INPUT */
.input-container {
    position: relative;
    padding: 2px;
    /* Grosor Borde */
    border-radius: 16px;
    overflow: hidden;
    display: block !important;
    /* Restaurar bloque */
    margin: 0 auto;
    max-width: 700px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* La luz giratoria detras */
.input-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 500%;
    background: conic-gradient(#333 0deg,
            #333 270deg,
            #3b82f6 300deg,
            /* Luz Azul mas estrecha */
            #333 330deg);
    transform: translate(-50%, -50%);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}

/* El contenedor interno tapa el centro y organiza los elementos */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0b0b;
    /* Fondo Negro Tapa-Luz */
    border-radius: 14px;
    /* Radio interno coincidente */
    padding: 6px;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Ocultar pseudo-elemento After redundante si existe */
.input-container::after {
    display: none !important;
}



/* CORRECCION FINAL: BORDE ESTATICO + LUZ MOVIL */
.input-container {
    position: relative;
    padding: 2px;
    /* Grosor del borde */
    background: #333;
    /* BORDE GRIS ESTATICO (NO GIRA) */
    border-radius: 16px;
    overflow: hidden;
    display: block !important;
    margin: 0 auto;
    max-width: 700px;
    /* Asegurar que el z-index permita ver el before rotando encima del background */
    z-index: 1;
}

/* Capa de Luz Azul que Gira ENCIMA del gris */
.input-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 500%;
    /* Luz Azul con Transparencia para dejar ver el gris estatico debajo */
    background: conic-gradient(transparent 0deg,
            transparent 320deg,
            #3b82f6 360deg);
    transform: translate(-50%, -50%);
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
    /* Encima del fondo gris container, debajo del wrapper */
}

/* Contenedor Interior (Tapa el centro) */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0b0b;
    /* Fondo oscuro estatico */
    border-radius: 14px;
    padding: 5px;
    z-index: 2;
    /* Encima de todo */
    width: 100%;
    height: 100%;
}

/* Ajuste de elementos internos para que no se rompan */
.url-input {
    flex: 1;
    /* Ocupar espacio restante */
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    outline: none;
    min-width: 0;
    /* Evitar desbordamiento flex */
}

#process-btn {
    flex-shrink: 0;
    /* No encoger el boton */
    margin-left: 10px;
}

/* Asegurar que ::after no moleste */
.input-container::after {
    display: none !important;
}



/* FIX COBERTURA LUZ + COLA LARGA */
.input-container::before {
    width: 2000px;
    /* GIGANTE - Cubre todo */
    height: 2000px;
    /* GIGANTE - Cubre todo */
    /* Cola mas larga (100 grados) para que se note mas */
    background: conic-gradient(transparent 0deg,
            transparent 260deg,
            #3b82f6 360deg) !important;
}



/* RESCATE FINAL: CAJA GRANDE Y ESPACIOSA */
.input-container {
    max-width: 850px !important;
}

.input-wrapper {
    padding: 10px !important;
    min-height: 70px;
}



.url-input {
    font-size: 1.1rem;
    /* Texto un poco mas grande */
    padding-left: 15px;
}

#process-btn {
    padding: 12px 25px;
    /* Boton mas grande tambien */
    font-size: 1rem;
}



/* FIX ALINEACION Y TAMAÑO DEFINITIVO */
.input-container {
    max-width: 950px !important;
    /* Mas ancho */
    height: 85px !important;
    /* Altura fija para centrado perfecto */
    padding: 2px !important;
}

.input-wrapper {
    padding: 0 20px !important;
    /* Espacio lateral */
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    /* Centrado vertical estricto */
    justify-content: space-between !important;
    border-radius: 14px;
}

.url-input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: white;
    font-size: 1.2rem !important;
    padding: 0 10px;
}

#process-btn {
    margin: 0 !important;
    margin-left: 20px !important;
    height: 52px !important;
    /* Altura especifica del boton */
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* Compensar sombra visual si es necesario (opcional) */
    transform: translateY(0);
}



/* CORRECCION OPTICA ALINEACION BOTON */
#process-btn {
    /* Subir el boton visualmente para compensar la 'sombra 3D' de abajo */
    transform: translateY(-3px) !important;
}


/* Paso 4 Estilos */
[data-step-content="4"] .floating-card {
    top: 15%;
    right: 0;
    left: auto;
    transform: rotate(3deg);
    z-index: 25;
}

[data-step-content="4"] .loki-arrow {
    display: block !important;
    top: 45%;
    right: 32%;
    left: auto;
    transform: scaleX(-1) rotate(12deg);
    width: 220px;
    z-index: 30;
}

/* Paso 4 Estilos - Alineado Derecha */
[data-step-content="4"] .floating-card {
    top: 15%;
    right: 0;
    left: auto;
    transform: rotate(3deg);
    z-index: 25;
}

[data-step-content="4"] .loki-arrow {
    display: block !important;
    top: 45%;
    right: 30%;
    left: auto;
    transform: scaleX(-1) rotate(15deg);
    width: 220px;
    z-index: 30;
}

/* Rotar CONTENEDOR de imagen del Paso 4 */
[data-step-content="4"] .step-image-container {
    transform: rotate(3deg);
    transition: all 0.5s ease;
}





/* 
=====================================================
   AJUSTES FINALES DE DISEÑO (COORDENADAS MAESTRAS)
   Aplicado: 2026-01-08 22:55
=====================================================
*/

/* --- PASO 1: SUBIR --- */
[data-step-content="1"] .floating-card {
    top: 8.5% !important;
    right: 59.3% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
    transform: rotate(-10deg) scale(1) !important;
    display: block !important;
    opacity: 1 !important;
}

[data-step-content="1"] .step-image-container {
    top: 0.0% !important;
    right: 6.7% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    transform: rotate(5deg) scale(1) !important;
}

[data-step-content="1"] .loki-arrow {
    display: block !important;
    opacity: 1 !important;
    top: 27% !important;
    right: 46.8% !important;
    left: auto !important;
    z-index: 50 !important;
    transform: scaleX(-1) rotate(22deg) scale(1) !important;
    width: 250px !important;
    /* Asegurar visibilidad */
}


/* --- PASO 2: COPIAR --- */
[data-step-content="2"] .floating-card {
    top: 5.6% !important;
    right: 4.7% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
    transform: rotate(10deg) scale(1) !important;
}

[data-step-content="2"] .step-image-container {
    top: 0.3% !important;
    right: 32.4% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    transform: rotate(-5deg) scale(1) !important;
}

[data-step-content="2"] .loki-arrow {
    display: block !important;
    opacity: 1 !important;
    top: 23% !important;
    right: 28% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 50 !important;
    transform: rotate(374deg) scale(1) !important;
    width: 250px !important;
}


/* --- PASO 3: PEGAR --- */
[data-step-content="3"] .floating-card {
    top: 25.4% !important;
    right: 61.9% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 10 !important;
    transform: rotate(-10deg) scale(1) !important;
}

[data-step-content="3"] .step-image-container {
    top: 1.0% !important;
    right: 6.4% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    transform: rotate(5deg) scale(1) !important;
}

[data-step-content="3"] .loki-arrow {
    display: block !important;
    opacity: 1 !important;
    top: 57.3% !important;
    right: 58.1% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 50 !important;
    transform: scaleX(-1) rotate(0deg) scale(1) !important;
    width: 250px !important;
}


/* --- PASO 4: DESCARGAR --- */
[data-step-content="4"] .floating-card {
    top: 11% !important;
    right: 4.7% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 20 !important;
    transform: rotate(10deg) scale(1) !important;
}

[data-step-content="4"] .step-image-container {
    top: 3% !important;
    right: 30.6% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 1 !important;
    transform: rotate(-10deg) scale(1) !important;
}

[data-step-content="4"] .loki-arrow {
    display: block !important;
    opacity: 1 !important;
    top: 42% !important;
    right: 22.0% !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 50 !important;
    transform: rotate(-5deg) scale(1) !important;
    width: 250px !important;
}









/* 
=====================================================
   FIX NUCLEAR ESPACIOS (CIERRE DE HUECOS)
   Aplicado: 2026-01-08 23:33
=====================================================
*/

/* 1. ELIMINAR LA FRANJA GIGANTE DEL STATUS AREA FINALMENTE */
.status-area {
    margin: 40px auto !important;
    padding: 0 !important;
    min-height: 0 !important;
    display: block;
    /* Asegurar que no ocupe espacio si esta vacio */
}

/* Solo ocupa espacio si realmente tiene un parrafo dentro (mensaje activo) */
.status-area:empty {
    display: none !important;
}

/* 2. COMPACTAR EL CONTENEDOR PRINCIPAL */
.main-content {
    gap: 0 !important;
    padding-bottom: 2rem !important;
}

.hero-section {
    margin-bottom: 3rem !important;
}

/* 3. PEGAR LA SECCION 'HOW TO USE' AL CONTENIDO */
.how-to-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.how-to-title {
    margin-top: 2rem !important;
    /* Un respiro antes del titulo solamente */
    margin-bottom: 2rem !important;
}



/* FIX FOOTER POSITION */
.dashboard-footer {
    margin-top: 5rem !important;
    /* Separarlo del contenido */
    padding-bottom: 1rem !important;
    /* Pegarlo al borde inferior */
    text-align: center;
    color: #666;
    font-weight: bold;
    font-size: 0.95rem;
    width: 100%;
}



/* --- FIX BOTON PROCESS LINK HOVER --- */
.btn-primary {
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.btn-primary:active {
    transform: translateY(0px) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2) !important;
}

/* --- FIX BOTON PROCESS LINK HOVER (3D SOLID) --- */
.btn-primary {
    transition: all 0.2s !important;
    box-shadow: 0 4px 0 #1e40af !important;
    transform: translateY(0) !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #1e40af !important;
}

.btn-primary:active {
    transform: translateY(2px) !important;
    box-shadow: 0 0 0 #1e40af !important;
}

/* --- FIX BOTON PROCESS LINK HOVER (3D SOLID UPDATED) --- */
.btn-primary {
    transition: all 0.2s !important;
    box-shadow: 0 4px 0 #1e40af !important;
    transform: translateY(0) !important;
    padding-bottom: 0px !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 #1e40af !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 0 #1e40af !important;
    transform: translateY(4px) !important;
}

/* --- FINAL DEFINITIVE BUTTON FIX --- */
.btn-primary {
    box-shadow: 0 4px 0 rgba(40, 70, 180, 1) !important;
    transform: translateY(0) !important;
    transition: all 0.2s !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 0 rgba(40, 70, 180, 1) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 0 rgba(40, 70, 180, 1) !important;
}

/* --- ULTIMATE 3D BTN FIX --- */
.btn-primary {
    box-shadow: 0 3px 0 rgba(40, 70, 180, 1) !important;
    transform: translateY(0) !important;
    transition: all 0.2s !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 rgba(40, 70, 180, 1) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 0 rgba(40, 70, 180, 1) !important;
}

/* --- FIX ALINEACION Y MOVIMIENTO BOTON --- */
.btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 25px !important;
    height: 52px !important;
    line-height: normal !important;
    box-shadow: 0 3px 0 rgba(40, 70, 180, 1) !important;
    transform: translateY(0) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 0 rgba(40, 70, 180, 1) !important;
}

.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 0 0 rgba(40, 70, 180, 1) !important;
}

.btn-primary span {
    position: relative;
    top: -1px;
}

/* --- FIX SIMPLE Y BRUTAL (REINTENTO) --- */
.btn-primary {
    position: relative !important;
    top: 0px !important;
    transition: top 0.2s, box-shadow 0.2s !important;
    box-shadow: 0 4px 0 rgba(40, 70, 180, 1) !important;
    transform: none !important;
}

.btn-primary:hover {
    top: -2px !important;
    box-shadow: 0 6px 0 rgba(40, 70, 180, 1) !important;
    transform: none !important;
}

.btn-primary:active {
    top: 2px !important;
    box-shadow: 0 0 0 rgba(40, 70, 180, 1) !important;
    transform: none !important;
}

/* --- FIX TEXT ALIGNMENT 0PX + FAVICON RESTORE ATTEMPT --- */
.btn-primary span {
    top: 0px !important;
}

/* --- FIX ARROW STEP 2 (USER SPEC) --- */
[data-step-content="2"] .loki-arrow {
    top: 23% !important;
    right: 28% !important;
    transform: rotate(374deg) scale(1) !important;
    width: 250px !important;
    display: block !important;
    opacity: 1 !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 50 !important;
}

/* === MOBILE OVERRIDES (HIGH SPECIFICITITY) MOVED TO END === */
@media (max-width: 900px) {

    /* 1. SQUARE BUTTON */
    .input-wrapper .btn-primary {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
        flex: 0 0 50px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .input-wrapper .btn-primary span {
        display: none !important;
    }

    .input-wrapper .btn-primary::after {
        content: "\279C";
        font-size: 1.8rem;
        line-height: 1;
        display: block;
        margin-top: 0 !important;
        gap: 10px;
    }

    .result-area {
        margin-top: 0 !important;
    }

    .result-icon {
        /* ... */
        margin-bottom: 0px !important;
    }

    /* 2. LOGO */
    .logo-text {
        font-size: 2rem !important;
    }

    /* 3. STEPS LAYOUT - FORCE RESET */
    /* Usamos selectores ultra especificos para ganar a la version desktop */

    /* Contenedor Principal del Paso */
    .step-content,
    [data-step-content].step-content,
    [data-step-content].step-content.active {
        display: none;
        /* Por defecto hidden */
        flex-direction: column-reverse !important;
        /* IMAGEN ARRIBA (DOM last), TEXTO ABAJO (DOM first) */
        gap: 2rem !important;
        margin-top: 2rem !important;
        align-items: center !important;
        height: auto !important;
        min-height: 0 !important;
    }

    [data-step-content].step-content.active {
        display: flex !important;
    }

    /* IMAGEN: Reset Total */
    .step-image-container,
    [data-step-content] .step-image-container,
    [data-step-content="1"] .step-image-container,
    [data-step-content="2"] .step-image-container,
    [data-step-content="3"] .step-image-container,
    [data-step-content="4"] .step-image-container {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
        /* Altura fija para movil */

        /* ANULAR TODAS LAS TRANSFORMACIONES */
        transform: none !important;
        rotate: 0deg !important;
        scale: 1 !important;

        /* ANULAR POSICIONAMIENTO ABSOLUTO */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;

        border-radius: 12px !important;
        box-shadow: none !important;
        z-index: 1 !important;
        opacity: 1 !important;
    }

    /* TARJETA DE TEXTO: Reset Total */
    .floating-card,
    [data-step-content] .floating-card,
    [data-step-content="1"] .floating-card,
    [data-step-content="2"] .floating-card,
    [data-step-content="3"] .floating-card,
    [data-step-content="4"] .floating-card {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;

        /* ANULAR TODAS LAS TRANSFORMACIONES */
        transform: none !important;
        rotate: 0deg !important;
        scale: 1 !important;

        /* ANULAR POSICIONAMIENTO ABSOLUTO */
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin: 0 !important;

        box-shadow: none !important;
        background: #1c1c1c !important;
        border: 1px solid #333 !important;
        padding: 1.5rem !important;
        text-align: center !important;
        /* Centrado en movil */
        z-index: 2 !important;
        opacity: 1 !important;
        display: block !important;
    }

    .card-text {
        font-size: 1.8rem !important;
        text-align: center !important;
    }

    .card-desc {
        text-align: center !important;
        font-size: 1rem !important;
    }

    .card-step-num {
        text-align: center !important;
    }

    /* FLECHAS: Ocultar Siempre */
    .loki-arrow,
    [data-step-content] .loki-arrow,
    [data-step-content="1"] .loki-arrow,
    [data-step-content="2"] .loki-arrow,
    [data-step-content="3"] .loki-arrow,
    [data-step-content="4"] .loki-arrow {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* Admin Action Button Fix */
.btn-action.btn-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}