:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --card-border: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #ff3b30;
    --btn-disabled-bg: #1e1e1e;
    --btn-disabled-text: #4a4a4a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Subtle background glow effect */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 59, 48, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.8s ease-out;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.lang-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-red);
    padding: 6px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.title {
    font-size: 20px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-align: center;
}

.tutorial-media {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 0;
}

#tutorial-gif {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.instructions-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-red);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.instructions-card:hover {
    transform: translateY(-5px);
}

.instructions-card ul {
    list-style: none;
}

.instructions-card li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.5s forwards;
}

.instructions-card li:nth-child(1) {
    animation-delay: 0.2s;
}

.instructions-card li:nth-child(2) {
    animation-delay: 0.4s;
}

.instructions-card li:nth-child(3) {
    animation-delay: 0.6s;
}

.instructions-card li:last-child {
    margin-bottom: 0;
}

.bullet {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--accent-red);
}

.instructions-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.instructions-card strong {
    font-weight: 700;
}

.highlight {
    color: var(--accent-red);
}

.btn {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: default;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-disabled {
    background: var(--btn-disabled-bg);
    color: var(--btn-disabled-text);
}

.btn-active {
    background: var(--accent-red);
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
}

.btn-active:active {
    transform: scale(0.98);
}

.footer-msg {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .card {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .title {
        font-size: 18px;
    }
}