:root {
    --bg-black: #010101;
    --card-bg: #121212;
    --tiktok-cyan: #00ff88;
    --tiktok-red: #25d366;
    --neon-green: #00ff88;
    --accent-primary: #25d366;
    --text-primary: #ffffff;
    --text-secondary: #a6a6a6;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

.device-frame {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Update pattern to be relative to frame */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 242, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.background-text-overlay {
    display: none;
}


.main-container {
    width: 100%;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stalkea-card {
    background: var(--card-bg);
    border: 1px solid #1f1f1f;
    border-radius: 25px;
    padding: 25px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.logo-box {
    width: 32px;
    height: 32px;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box i {
    font-size: 20px;
}

.logo-text {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--neon-green);
}

h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.highlight {
    color: var(--tiktok-cyan);
    text-shadow: 2px 0 var(--tiktok-red);
}

.subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.subtitle .highlight-alt {
    color: var(--tiktok-red);
    font-weight: 500;
}

/* Espionar Button */
.btn-espionar {
    background: linear-gradient(45deg, var(--tiktok-red), var(--tiktok-cyan), var(--neon-green));
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    color: white;
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(0, 255, 136, 0.2);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-espionar:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 11px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-item i {
    color: var(--neon-green);
    font-size: 12px;
}

.check-icon {
    color: var(--neon-green) !important;
}

.counter-text {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.counter-number {
    color: var(--neon-green);
    font-weight: 700;
}


.target-input-container {
    background: #000000;
    border: 2px solid #1f1f1f;
    border-radius: 100px;
    padding: 6px 8px 6px 25px;
    /* Reduced padding for inline button */
    display: flex;
    align-items: center;
    gap: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    /* Added spacing here */
}

.target-input-container:focus-within {
    border-color: var(--tiktok-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
}

.target-input-container i {
    color: var(--tiktok-cyan);
    font-size: 16px;
}

.target-input-container input {
    background: transparent !important;
    border: none;
    color: white !important;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.target-input-container input:-webkit-autofill,
.target-input-container input:-webkit-autofill:hover,
.target-input-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.target-input-container input::placeholder {
    color: #666;
}

.btn-inline {
    background: linear-gradient(45deg, var(--tiktok-red), var(--tiktok-cyan), var(--neon-green));
    background-size: 300% 300%;
    animation: gradientShift 6s ease infinite;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.btn-inline i {
    color: white !important;
    font-size: 14px;
    margin: 0;
}

.btn-inline:hover {
    transform: scale(1.1);
}

.search-wrapper {
    max-width: 500px;
    margin: 0 auto 60px;
    position: relative;
}

.search-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
}

.search-container:focus-within {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-input-group i {
    color: var(--text-secondary);
    margin-right: 12px;
}

input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
}

input::placeholder {
    color: #555;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s;
}

#loading-overlay.active {
    visibility: visible;
    opacity: 1;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--tiktok-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.loading-progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--tiktok-cyan), var(--tiktok-red), var(--neon-green));
    transition: width 0.3s;
}

.loading-steps {
    margin-top: 20px;
    text-align: center;
    max-width: 400px;
}

.step-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 5px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step-item.active {
    color: var(--tiktok-cyan);
    opacity: 1;
    font-weight: 600;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Verify View Styles */
#verify-view {
    text-align: center;
    padding-top: 10px;
}

.verify-title {
    color: white;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
}

.verify-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.phone {
    width: 32px;
    height: 55px;
    border-radius: 6px;
    position: relative;
    border: 1.5px solid #333;
}

.phone.green {
    background-color: var(--neon-green);
    border-color: #00d674;
}

.phone.white {
    background-color: #e0f8cc;
    border-color: #c5e0a6;
}

.phone::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
}

.dots {
    color: #444;
    font-size: 20px;
    letter-spacing: 2px;
}

.verify-text-bold {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 10px;
}

.verify-text-small {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 30px;
    padding: 0 20px;
}

.code-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.code-field {
    position: relative;
    font-size: 24px;
    color: var(--text-secondary);
    letter-spacing: 5px;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.separator {
    width: 10px;
}

.cursor {
    position: absolute;
    left: 20px;
    color: var(--neon-green);
    animation: blink 1s infinite;
    font-weight: 300;
}

.resend-link {
    color: var(--neon-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.dashes span.is-error {
    color: #ff0050 !important;
    text-shadow: 0 0 12px rgba(255, 0, 80, 0.7);
    animation: shakeDigit 0.3s ease;
}

@keyframes shakeDigit {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.dashes span.is-success {
    color: var(--neon-green) !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Success View Styles */
#success-view {
    text-align: center;
    padding: 20px 10px;
    animation: fadeIn 0.5s ease;
}

.success-box {
    background: #25d366;
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.success-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-icon i {
    color: white;
    font-size: 16px;
}

.success-message {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

.loading-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.loading-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #25d366, #00ff88);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.redirect-text {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
    }
}