:root {
    --bg-dark: #0f0202;
    /* Deep dark red/black */
    --bg-card: #1a0505;
    /* Slightly lighter dark red/black */
    --primary: #ff1a1a;
    /* Vibrant Red */
    --secondary: #800000;
    /* Dark Red */
    --text-main: #ffffff;
    --text-muted: #b48b8b;
    /* Reddish grey */
    --gradient-btn: linear-gradient(90deg, #800000 0%, #ff1a1a 100%);
    --gradient-header: linear-gradient(90deg, #ff1a1a 0%, #800000 100%);
    --error: #ff4d4d;
    --success: #ff1a1a;
    /* Red for Itachi Theme */

    /* Blue for specific buttons */
    --gradient-blue: linear-gradient(90deg, #0056b3 0%, #007bff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Effect */
.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Container */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    /* Mobile full height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top center, rgba(0, 123, 255, 0.1), transparent 60%);
}

@media (min-width: 600px) {
    .app-container {
        height: auto;
        min-height: 80vh;
        border-radius: 20px;
        background-color: var(--bg-card);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.05);
        padding: 40px;
        max-width: 960px;
        /* Wider container for Desktop view */
    }
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-home-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.back-home-btn:hover {
    color: var(--text-main);
}

/* Main Content */
.card-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 50px;
}

.card-header h1,
.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight {
    background: var(--gradient-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Step Content Management */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

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

/* Input Styles */
.input-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 26, 26, 0.2);
}

.input-wrapper .icon {
    padding: 0 15px;
    color: var(--text-muted);
}

.uid-input {
    width: 100%;
    padding: 15px 15px 15px 0;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

/* Chrome, Safari, Edge, Opera - Remove arrows from number input */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 8px;
    display: none;
    text-align: left;
    padding-left: 5px;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: var(--gradient-btn);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    /* Ensure links look like buttons */
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 26, 26, 0.4);
    text-decoration: none;
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #333;
    box-shadow: none;
    transform: none;
}

.primary-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.primary-btn.outline:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.primary-btn.outline:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Social Share */
.social-share-section {
    margin-top: 30px;
    text-align: center;
}

.social-share-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25D366;
}

.facebook {
    background-color: #1877F2;
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.telegram {
    background-color: #0088cc;
}

/* Process Steps Visualization */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.step-indicator {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.step-indicator.active {
    background: transparent;
    border-color: var(--primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.3);
}

.step-indicator.completed {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 5px;
}

/* Process Content */
.process-status {
    text-align: center;
    margin-bottom: 40px;
}

.process-status h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pulse-text {
    color: var(--primary);
    font-size: 0.95rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.loading-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-btn);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Footer */
.app-footer {
    padding: 40px 20px;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 26, 26, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        text-align: left;
    }
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.footer-socials .social-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 15px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.3);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    width: 100%;
}

/* Page Content Generic Styles */
.page-content-wrapper {
    text-align: left;
    padding: 20px 0;
}

.page-content-wrapper h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content-wrapper h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content-wrapper p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-content-wrapper ul {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-muted);
}

.page-content-wrapper li {
    margin-bottom: 10px;
}


/* Step Final */
#step-final {
    text-align: center;
    padding: 20px 0;
}

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.success-icon-bg {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 26, 26, 0.4);
}

.success-icon-bg i {
    font-size: 2.5rem;
    color: #0c0202;
}

.highlight-success {
    color: var(--success);
}

#step-final h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#step-final p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.primary-btn.success-btn {
    background: var(--success);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 26, 26, 0.3);
}

.primary-btn.success-btn:hover {
    box-shadow: 0 8px 20px rgba(255, 26, 26, 0.4);
    background: #e60000;
}

.primary-btn.blue-btn {
    background: var(--gradient-blue);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.primary-btn.blue-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(90deg, #004494 0%, #0069d9 100%);
}

/* Info Article Enhanced Styles */
.info-article {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.info-article h3 {
    font-size: 1.6rem;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-article h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 35px 0 20px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-article p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background: radial-gradient(circle at top left, rgba(128, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.about-section h3 {
    margin-top: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

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

.feature-item {
    background: radial-gradient(circle at top left, rgba(128, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-btn);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 26, 26, 0.3);
    background: linear-gradient(145deg, rgba(255, 26, 26, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #aaa;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-section h4 {
    text-align: center;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.faq-item {
    position: relative;
    margin-left: 30px;
    /* Space for the number hanging out */
    background: transparent;
    perspective: 1000px;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 20px 20px 60px;
    /* Left padding for number */
    background: radial-gradient(circle at top left, rgba(128, 0, 0, 0.4) 0%, rgba(20, 2, 2, 0.9) 100%);
    border: 1px solid rgba(255, 26, 26, 0.2);
    border-radius: 12px;
    border-top-left-radius: 50px;
    /* Unique shape */
    border-bottom-left-radius: 50px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    min-height: 80px;
}

.faq-number {
    position: absolute;
    left: -25px;
    /* Hanging out */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff1a1a 0%, #800000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
}

.faq-text {
    flex: 1;
    padding-left: 15px;
}

.faq-question:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(255, 26, 26, 0.2);
    border-color: rgba(255, 26, 26, 0.5);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 15px;
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
    margin-top: -10px;
    margin-left: 20px;
    /* Align mostly with box */
    padding-top: 10px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    opacity: 1;
    margin-top: 5px;
}

.faq-answer p {
    padding: 20px 30px 20px 30px;
    margin: 0;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    border-left: 2px solid var(--primary);
}

/* Enhanced CTA Box */
.cta-box {
    background: radial-gradient(circle at center, rgba(128, 0, 0, 0.3) 0%, rgba(15, 2, 2, 0.8) 100%);
    padding: 30px 20px;
    border-radius: 16px;
    margin-top: 40px;
    border: 1px solid rgba(255, 26, 26, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.1);
    animation: glowBorder 3s infinite alternate;
}

@keyframes glowBorder {
    0% {
        border-color: rgba(255, 26, 26, 0.3);
        box-shadow: 0 0 20px rgba(255, 26, 26, 0.1);
    }

    100% {
        border-color: rgba(255, 26, 26, 0.6);
        box-shadow: 0 0 30px rgba(255, 26, 26, 0.2);
    }
}

.cta-box h4 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(255, 26, 26, 0.3);
}

.cta-box p {
    margin-bottom: 0;
    color: #ddd;
    font-size: 1rem;
}