:root {
    --background: #fff;
    --primary: #393B3D;
    --muted: #F7F7F8;
    --natural: #00B06F;
    /* Green */
    --royal-blue: #335FFF;
    --modal-bg: #4B4B4B;
    --modal-text: #FFFFFF;
    --tab-border: #212121;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: var(--background);
    color: var(--primary);
    padding-top: 70px;
    /* Space for fixed header */
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-1 {
    flex: 1;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-lg {
    font-size: 1.125rem;
}

.bg-white {
    background-color: #fff;
}

.bg-muted {
    background-color: var(--muted);
}

.bg-primary {
    background-color: var(--primary);
}

.text-white {
    color: #fff;
}

.text-primary {
    color: var(--primary);
}

.text-red {
    color: #ef4444;
}

.rounded-8 {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border: 1px solid #e5e7eb;
}

.border-2 {
    border-width: 2px;
}

.border-muted {
    border-color: var(--muted);
}

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

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.m-auto {
    margin: auto;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.cursor-pointer {
    cursor: pointer;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.z-modal {
    z-index: 9999;
}

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e1e1e1;
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar */
}

header::-webkit-scrollbar {
    display: none;
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

header ul {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
}

header ul li {
    font-weight: 500;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
}

/* LIGHTBOX */
.lightbox-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.lightbox-img.active {
    display: block;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-btn.left {
    left: 10px;
}

.lightbox-btn.right {
    right: 10px;
}

/* Game Info */
.game-section {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

@media (max-width: 991px) {
    .game-section {
        flex-direction: column;
        align-items: center;
    }
}

.game-sidebar {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
}

.play-btn {
    background-color: var(--royal-blue);
    border: none;
    border-radius: 4px;
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: transform 0.1s ease-in-out, background 0.2s;
}

.play-btn:active {
    transform: scale(0.97);
    background-color: #2a52d3;
}

.play-icon {
    width: 36px;
    height: 36px;
    background: url('../images/play-BqhRjdMp.svg') no-repeat center/contain;
}

.stats-bar {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.icon {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.stat-item:hover .icon {
    opacity: 1;
}

.stat-bar-container {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid #e1e1e1;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.nav-tabs li {
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.nav-tabs a {
    display: block;
    padding: 0.75rem 0;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.1s ease-in-out;
    border-bottom: 4px solid transparent;
    text-decoration: none;
}

.nav-tabs a:active {
    transform: scale(0.98);
}

.nav-tabs a:hover {
    color: #333;
}

.nav-tabs a.active {
    color: #333;
    border-bottom: 4px solid #333;
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on desktop as per screenshot */
    gap: 2rem 1.5rem;
    /* More vertical gap for price/button breathing room */
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 380px) {
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        /* Tight gap for small phones to keep 2 cols */
    }

    .store-item {
        padding: 0.5rem;
    }

    .store-item>img {
        max-width: 100%;
        /* Allow shrinking slightly if needed */
    }
}

.store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding-bottom: 0.5rem;
    height: 100%;
    /* Ensure full height for flex distribution */
    justify-content: space-between;
    /* Push content apart */
}

/* Target only the main product image, not the icon inside <p> */
.store-item>img {
    width: 100%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    /* Circular images as per screenshot */
    margin-bottom: 0.75rem;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Optional: adds a nice pop like the screenshot */
}

/* Ensure the Robux icon in the price line remains small */
.store-item p img {
    width: 16px !important;
    max-width: 16px !important;
    height: auto;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.store-item p:first-of-type {
    margin: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 1.5em;
    line-height: 1.5;
    margin-bottom: 8px;
    /* Increased space */
    padding: 0 4px;
}

.store-item p:nth-of-type(2) {
    margin: 0;
    width: 100%;
    /* text-align: center; */
    margin-bottom: 15px;
    /* Added gap */
}

.store-btn {
    width: 100%;
    border: 1px solid #666;
    /* Darker, cleaner border */
    background: #fff;
    /* White background as per Image 2 */
    color: #333;
    border-radius: 8px;
    /* Slightly more rounded for premium feel */
    padding: 10px 6px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: auto;
    /* Push to bottom if space allows */
    cursor: pointer;
    transition: transform 0.1s ease-in-out, background 0.2s, border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.store-btn:hover {
    background: #fdfdfd;
    border-color: #333;
    transform: translateY(-1px);
    /* Subtle lift on hover */
}

.store-btn:active {
    transform: scale(0.96);
    background: #f0f0f0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--modal-bg);
    color: var(--modal-text);
    border-radius: 8px;
    width: 90%;
    max-width: 440px;
    z-index: 101;
    display: none;
    overflow-y: auto;
    /* Changed from hidden to auto for mobile scroll */
    max-height: 90vh;
    /* Prevent modal from exceeding viewport height */
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal.open,
.modal-backdrop.open {
    display: block;
}

.modal-header {
    padding: 1rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 400;
    border-bottom: none;
}

.modal-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.modal-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 0 1.5rem 0;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    margin-bottom: 1.5rem;
    background: #fff;
    color: #333;
}

.modal-content input:focus {
    border-color: var(--natural);
}

.modal-btn-cancel {
    flex: 1;
    background: #333;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1.1rem;
}

.modal-btn-free {
    flex: 1;
    background: #fff;
    color: #333;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loader span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    to {
        transform: translateY(-10px);
    }
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
    border-top: 1px solid var(--muted);
    font-size: 0.75rem;
    color: #6b7280;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

/* TUTORIAL CAROUSEL FIXED */
.tutorial-container {
    height: 250px !important;
    background: #ffffff;
    border: 4px solid #2563eb;
    /* BLUE BORDER (Friendly) */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
    /* BLUE GLOW */
    border-radius: 8px;
    /* Slightly rounded */
}

/* Hand Pointer Animation */
@keyframes handPoint {

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

    50% {
        transform: translateY(5px);
    }
}

.hand-pointer {
    display: inline-block;
    font-size: 24px;
    margin-right: 8px;
    animation: handPoint 1s infinite ease-in-out;
}

.tutorial-slide {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: none;
    padding: 10px;
}

.tutorial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.tutorial-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.tutorial-btn.left {
    left: 10px;
}

.tutorial-btn.right {
    right: 10px;
}

/* --- VERIFICATION STEP STYLES (PURE CSS) --- */

/* Profile Header */
.profile-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    animation: fadeInDown 0.5s ease-out;
}

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

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #00B06F;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #00B06F;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-info {
    text-align: center;
}

.profile-connected-text {
    color: #00B06F;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00B06F;
    border-radius: 50%;
}

.profile-username {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

/* Titles & Instructions */
.step-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #1f2937;
    margin: 0 0 8px 0;
    text-align: center;
}

.step-instruction {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0 0 16px 0;
    text-align: center;
    font-weight: 500;
}

.highlight-item {
    color: #2563eb;
    font-weight: 800;
}

/* Carousel */
/* .tutorial-container removed (duplicate) */

.tuto-progress-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
}

.tuto-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    width: 0%;
    transition: width 0.3s linear;
}

.tuto-status {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* MEGA UNLOCK BUTTON */
.unlock-container {
    margin-bottom: 20px;
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.unlock-btn-mega {
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, #22c55e, #15803d);
    color: white;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid #14532d;
    transition: transform 0.1s, filter 0.2s;
}

.unlock-btn-mega:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

.unlock-btn-mega:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.unlock-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.unlock-icon {
    font-size: 2rem;
    margin-bottom: 4px;
}

.unlock-text {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.unlock-subtext {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Alert Box */
.alert-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-content {
    flex: 1;
    text-align: left;
}

.alert-title {
    color: #b91c1c;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.alert-msg {
    color: #991b1b;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

@keyframes bounceIn {

    0%,
    20%,
    40%,
    60%,
    80%,
    100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }

    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }

    40% {
        transform: scale3d(.9, .9, .9);
    }

    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }

    80% {
        transform: scale3d(.97, .97, .97);
    }

    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}


/* --- NEW ADDITIONS FOR TIMER & VISIBILITY --- */

/* Timer Styles */
.timer-container {
    background: #fef2f2;
    /* Light red background */
    border: 1px solid #fee2e2;
    border-radius: 50px;
    padding: 6px 16px;
    display: table;
    margin: 0 auto 12px auto;
    color: #dc2626;
    /* Darker red for contrast */
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.timer-icon {
    font-size: 1.1rem;
    margin-right: 4px;
}

.timer-text {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #ef4444;
    margin-left: 4px;
    font-weight: 700;
}

/* Tutorial Title */
.tuto-title {
    color: #374151;
    /* Dark gray */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-align: center;
}

/* Modal Background Tweaks */
.modal-content {
    background: #ffffff !important;
    /* Force WHITE background */
    color: #1f2937;
}

/* Adjust Alert Box for Light Mode */
.alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

/* --- RESPONSIVE FIXES (iPhone SE & Small Screens) --- */
@media (max-height: 700px) {
    .modal {
        top: 50%;
        transform: translate(-50%, -50%);
        max-height: 95vh;
        overflow-y: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

    .tutorial-container {
        height: 180px !important;
        /* Smaller carousel on small phones */
        margin-bottom: 10px;
    }

    .unlock-btn-mega {
        padding: 12px;
    }

    .unlock-text {
        font-size: 1.2rem;
    }

    .unlock-icon {
        font-size: 1.5rem;
    }

    .profile-header-container {
        padding: 8px;
        margin-bottom: 10px;
    }

    .profile-avatar {
        width: 45px;
        height: 45px;
    }

    .profile-username {
        font-size: 1rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .tuto-title {
        margin-bottom: 4px;
    }
}

/* Text Border / Outline Utility */
.text-stroke-sm {
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff;
    color: #111827 !important;
}

/* Enhanced Input Styling */
#usernameInput {
    border: 2px solid #e5e7eb;
    background-color: #f9fafb;
    color: #111827;
    font-weight: 500;
    padding: 12px;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

#usernameInput:focus {
    border-color: #2563eb;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#usernameInput::placeholder {
    color: #9ca3af;
}

/* --- ANIMATIONS & VISUAL POLISH --- */

/* Hover Scale */
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Fade In Scale */
.fade-in-scale {
    animation: fadeInScale 0.4s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Up */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

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

/* Bounce In */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Tutorial Step Overlay */
.tuto-step-overlay {
    position: absolute;
    bottom: 40px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Typing Effect Cursor */
.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- ANIMATIONS & VISUAL POLISH (Re-applying) --- */

/* Hover Scale */
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Fade In Scale */
.fade-in-scale {
    animation: fadeInScale 0.4s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade In Up */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

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

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

/* Bounce In */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Tutorial Step Overlay */
.tuto-step-overlay {
    position: absolute;
    bottom: 20px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Typing Effect Cursor */
.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- CIRCULAR LOADER --- */
.loader-circle {
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-bottom-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 400px) {
    .profile-header-container {
        padding: 8px;
    }

    .step-title {
        font-size: 1.4rem !important;
    }

    .step-instruction {
        font-size: 0.85rem !important;
    }

    .unlock-btn-mega {
        padding: 12px !important;
    }

    .unlock-text {
        font-size: 1.5rem !important;
    }
}

/* --- VALIDATION ERROR MSG --- */
.validation-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: bounceIn 0.5s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- CIRCULAR LOADER & PROGRESS BAR --- */
.loader-circle {
    width: 48px;
    height: 48px;
    border: 5px solid #e5e7eb;
    border-bottom-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingBar {
    0% {
        width: 0%;
        transform: translateX(-50%);
    }

    50% {
        width: 100%;
        transform: translateX(0);
    }

    100% {
        width: 0%;
        transform: translateX(50%);
    }
}

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 400px) {
    .profile-header-container {
        padding: 8px;
    }

    .step-title {
        font-size: 1.4rem !important;
    }

    .step-instruction {
        font-size: 0.85rem !important;
    }

    .unlock-btn-mega {
        padding: 12px !important;
    }

    .unlock-text {
        font-size: 1.5rem !important;
    }
}

/* --- VALIDATION ERROR MSG --- */
.validation-error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: bounceIn 0.5s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- UPDATED STEP INDICATOR (BELOW CAROUSEL) --- */
.tuto-step-indicator {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #374151;
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounceIn 0.3s;
}