:root {
    --bg: #0b0b0f;
    --primary: #6c42f5;
    --accent: #f38ba8;
    --text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --sidebar-w-collapsed: 70px;
    --sidebar-w-expanded: 260px;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.noise-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.05; background: url('https://grainy-gradients.vercel.app/noise.svg'); }

#sidebar-container { position: relative; z-index: 9999; }

.sidebar {
    position: fixed; top: 0; left: 0; height: 100vh;
    width: var(--sidebar-w-collapsed);
    background: rgba(15,15,20,0.6); backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255,255,255,0.08);
    z-index: 9999; transition: width 0.4s;
    display: flex; flex-direction: column; overflow: hidden;
}
.sidebar.expanded { width: var(--sidebar-w-expanded); background: #13131a; }
.toggle-btn { height: 70px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: white; flex-shrink: 0;}
.nav-list { flex: 1; padding-top: 10px; display: flex; flex-direction: column; }
.nav-item { height: 55px; display: flex; align-items: center; text-decoration: none; color: #a6adc8; position: relative; transition: 0.2s; white-space: nowrap; }
.nav-item:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-item .icon { min-width: 70px; display: flex; justify-content: center; font-size: 24px; }
.nav-item .label { opacity: 0; transform: translateX(10px); transition: 0.3s; font-weight: 600; }
.sidebar.expanded .nav-item .label { opacity: 1; transform: translateX(0); }
.sidebar-footer { margin-top: auto; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box { background: #1e1e28; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 30px; width: 90%; max-width: 320px; text-align: center; transform: translateY(20px); transition: 0.3s; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close-btn { background: rgba(255,255,255,0.1); border:none; padding: 12px 0; width: 100%; color: white; border-radius: 12px; cursor: pointer; margin-top: 20px; font-weight: 600; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.lang-card { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 16px; cursor: pointer; transition: 0.2s; border: 1px solid transparent; display: flex; flex-direction: column; gap: 5px; }
.lang-card:hover { border-color: var(--primary); background: rgba(108,66,245,0.15); }

@media (max-width: 1024px) {
    .sidebar {
        top: auto; bottom: 20px; left: 50%; transform: translateX(-50%);
        width: 90% !important; max-width: 400px; height: 65px;
        flex-direction: row; border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.15);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        background: rgba(20, 20, 25, 0.85);
        overflow: visible;
        justify-content: space-around;
        padding: 0 10px;
    }
    .toggle-btn { display: none; }
    .nav-list { flex-direction: row; padding: 0; justify-content: space-between; width: 100%; align-items: center; }
    .nav-item { height: 100%; flex: 1; justify-content: center; flex-direction: column; gap: 0; }
    .nav-item .label { display: none; }
    .nav-item .icon { min-width: auto; font-size: 26px; margin-bottom: 0; }
    .sidebar > div:last-child { margin: 0 !important; display: flex; align-items: center; }
}


.back-btn {
    position: fixed; top: 30px; left: 100px; z-index: 20;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: #a6adc8;
    font-weight: 600; transition: 0.3s;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}
.back-btn:hover { color: white; background: rgba(255,255,255,0.1); transform: translateX(-5px); }

.content-wrapper {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 60px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header { text-align: center; margin-bottom: 60px; }
.header-logo { width: 100px; margin-bottom: 20px; filter: drop-shadow(0 0 20px var(--primary)); }
.page-title { font-size: 2.5rem; margin: 0 0 10px 0; font-weight: 800; }
.page-desc { color: #a6adc8; font-size: 1.1rem; margin: 0; }
.logo-link { display: inline-block; transition: transform 0.3s; }
.logo-link:hover { transform: scale(1.05); }

.steps-container { width: 100%; display: flex; flex-direction: column; gap: 20px; }

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(108, 66, 245, 0.4);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.8;
    min-width: 40px;
}

.step-content { flex: 1; }
.step-content h3 { margin: 0 0 8px 0; font-size: 1.2rem; }
.step-content p { margin: 0; color: #a6adc8; font-size: 0.95rem; line-height: 1.5; }
.step-icon { font-size: 2rem; }

.warning-border { border-color: rgba(243, 139, 168, 0.5); }

.info-block {
    margin-top: 50px;
    background: rgba(108, 66, 245, 0.1);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 700px;
}
.info-icon { font-size: 2rem; }
.info-text h4 { margin: 0 0 10px 0; color: var(--text); }
.info-text p { margin: 0; color: #ced4da; font-size: 0.9rem; }

.simple-footer { margin-top: 60px; text-align: center; display: none; }

@media (max-width: 1024px) {
    .content-wrapper { padding: 80px 20px 60px 20px; }
    .back-btn { position: absolute; top: 20px; left: 20px; }
}

@media (max-width: 600px) {
    .step-card { flex-direction: column; text-align: center; gap: 15px; }
    .step-number { font-size: 1.2rem; }
    .info-block { flex-direction: column; text-align: center; align-items: center; }
}