.onboarding-overlay,
.onboarding-overlay * {
    text-transform: lowercase;
}

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 20, 35, 0.95);
    
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    animation: fadeIn 0.4s ease;
}

.onboarding-card {
    background: rgba(30, 60, 114, 0.9);
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 28px;
    width: 90%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.onboarding-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-step.active {
    display: flex;
}

.onboarding-hero-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 18px;
}

.onboarding-card h1 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.onboarding-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.onboarding-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 30px;
}

.onboarding-btn {
    background: rgba(30, 60, 114, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    background: rgba(40, 75, 135, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.onboarding-btn-alt {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.onboarding-btn-alt:hover {
    background: rgba(255, 255, 255, 0.1);
}

.onboarding-nav {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-top: 25px;
    justify-content: center;
}

.cloak-grid,
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 20px;
}

.cloak-grid::-webkit-scrollbar,
.theme-grid::-webkit-scrollbar {
    width: 6px;
}

.cloak-grid::-webkit-scrollbar-thumb,
.theme-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cloak-opt,
.theme-opt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.theme-preview.everest {
    background: linear-gradient(135deg, #0f172a, #1e293b, #3b82f6);
}

.theme-preview.cherryblossom {
    background: linear-gradient(135deg, #461e32, #8b4565, #ffb6c1);
}

.theme-preview.useawp {
    background: linear-gradient(135deg, #090909, #151515, #00ffa6);
}

.cloak-opt img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.cloak-opt span,
.theme-opt span {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.cloak-opt.selected,
.theme-opt.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.cloak-opt.selected span,
.theme-opt.selected span {
    color: #3b82f6;
}

.onboarding-settings {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.onboarding-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 14px;
}

.onboarding-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 50px;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.toggle-btn.active {
    background: #3b82f6;
    color: white;
}

.desktop-toggle-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-overlay .switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 28px !important;
    margin: 0 !important;
}

.onboarding-overlay .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.onboarding-overlay .slider {
    position: absolute !important;
    cursor: pointer;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: .4s;
    border-radius: 34px !important;
}

.onboarding-overlay .slider:before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 4px !important;
    bottom: 4px !important;
    background-color: white !important;
    transition: .4s;
    border-radius: 50% !important;
}

.onboarding-overlay input:checked+.slider {
    background-color: #3b82f6 !important;
}

.onboarding-overlay input:checked+.slider:before {
    transform: translateX(22px) !important;
}

.desktop-preview-container.cinematic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    margin: 20px 0;
}

.cinematic-mockup {
    width: 320px;
    height: 200px;
    background-image: url('../assets/wallpapers/everestbg.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cinematic-mockup:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.mock-window {
    position: absolute;
    top: 20px;
    left: 40px;
    width: 220px;
    height: 120px;
    background: rgba(20, 40, 80, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: floatMock 4s ease-in-out infinite;
    overflow: hidden;
}

@keyframes floatMock {

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

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

.mock-titlebar {
    height: 22px;
    background: rgba(20, 40, 80, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mock-titlebar-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    color: white;
}

.mock-titlebar-title img {
    width: 12px;
    height: 12px;
}

.mock-titlebar-controls {
    display: flex;
    gap: 4px;
}

.mock-titlebar-controls span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.mock-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.mock-content img {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.mock-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 26px;
    background: rgba(30, 60, 114, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.mock-tb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-icon {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mock-icon.home {
    background: none;
    width: 16px;
    height: 16px;
}

.desktop-toggle-wrap.cinematic-toggle {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;

    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.cloak-preview-container.cinematic {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.browser-tab-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 240px;
    height: 38px;
    background: #202124;
    border-radius: 8px 8px 0 0;
    padding: 0 12px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid #323639;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.bt-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.bt-left img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.bt-left span {
    color: #e8eaed;
    font-size: 12px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.bt-close {
    color: #9aa0a6;
    font-size: 14px;
}

.theme-preview-container.cinematic {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.theme-mockup {
    width: 260px;
    height: 150px;
    border-radius: 8px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: background 0.4s ease, border 0.4s ease;
}

.theme-mockup.normal-mode .tm-topbar {
    height: 14px;
    border-radius: 14px;
    margin: 8px auto;
    width: 60%;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.theme-mockup.normal-mode .tm-taskbar {
    height: 14px;
    border-radius: 14px;
    width: 50%;
    margin: auto auto 8px auto;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.theme-mockup.desktop-mode .tm-topbar {
    height: 0;
    opacity: 0;
    margin: 0;
    border: none !important;
    overflow: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.theme-mockup.desktop-mode .tm-taskbar {
    height: 18px;
    border-radius: 0;
    width: 100%;
    margin: auto 0 0 0;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.tm-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
}

.tm-title {
    font-size: 20px;
    font-weight: 800;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
    margin-bottom: 6px;
}

.tm-search-bar {
    width: 70%;
    height: 14px;
    border-radius: 12px;
    transition: transform 0.4s ease, opacity 0.4s ease, background-color 0.4s ease;
}

.theme-mockup.everest {
    background: #0f172a;
}

.theme-mockup.everest .tm-topbar {
    background: rgba(30, 60, 114, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-mockup.everest .tm-title {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.theme-mockup.everest .tm-search-bar {
    background: rgb(30, 30, 40);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-mockup.everest .tm-taskbar {
    background: rgba(30, 60, 114, 0.7);
}

.theme-mockup.cherryblossom {
    background: #ffb6c1;
    background-image: linear-gradient(135deg, #ffb6c1, #ffc0cb);
}

.theme-mockup.cherryblossom .tm-topbar {
    background: rgba(255, 182, 193, 0.5);
    border: 1px solid rgba(255, 182, 193, 0.8);
}

.theme-mockup.cherryblossom .tm-title {
    color: white;
    background: rgba(145, 82, 111, 0.8);
    padding: 1px 8px;
    border-radius: 4px;
}

.theme-mockup.cherryblossom .tm-search-bar {
    background: rgb(80, 35, 55);
    border: 1px solid rgba(255, 182, 193, 0.4);
}

.theme-mockup.cherryblossom .tm-taskbar {
    background: rgba(139, 69, 101, 0.7);
}

.theme-mockup.useawp {
    background: rgb(15, 25, 18);
}

.theme-mockup.useawp .tm-topbar {
    background: rgb(25, 40, 32);
    border: 1px solid rgb(70, 120, 85);
}

.theme-mockup.useawp .tm-title {
    color: rgb(225, 240, 230);
}

.theme-mockup.useawp .tm-search-bar {
    background: rgb(35, 60, 45);
    border: 1px solid rgb(70, 120, 85);
}

.theme-mockup.useawp .tm-taskbar {
    background: rgba(25, 40, 32, 0.8);
    border-top: 1px solid rgba(70, 120, 85, 0.6);
}
