/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* ===== Layout ===== */
.container {
    max-width: 560px;
    width: 100%;
}

.brand {
    text-align: center;
    margin-bottom: 3rem;
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
}

.brand .subtitle {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ===== Steps ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
}

.step {
    padding: 1.5rem 1.8rem;
    background: #111111;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: background 0.2s;
}

.step:hover {
    background: #161616;
}

.step-no-border-bottom {
    padding-bottom: 0.8rem;
}

.step-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
    margin-bottom: 0.4rem;
}

.step-content p {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.7;
}

.btn-name {
    display: inline-block;
    background: #222222;
    border: 1px solid #3a3a3a;
    color: #ffffff;
    font-size: 0.55rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    direction: ltr;
    unicode-bidi: isolate;
    font-weight: 500;
    letter-spacing: 0.2px;
    vertical-align: middle;
    margin: 0 0.1rem;
    line-height: 1.4;
}

.step-content a.step-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #4a9eff;
    text-decoration: none;
    background: rgba(74, 158, 255, 0.06);
    border: 1px solid rgba(74, 158, 255, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: background 0.2s, border-color 0.2s;
}

.step-content a.step-link:hover {
    background: rgba(74, 158, 255, 0.12);
    border-color: rgba(74, 158, 255, 0.3);
}

/* ===== Notice ===== */
.notice-inside {
    background: #111111;
    padding: 0 1.8rem 1.5rem 1.8rem;
    display: flex;
    justify-content: center;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 180, 50, 0.04);
    border: 1px solid rgba(255, 180, 50, 0.12);
    border-radius: 8px;
}

.notice-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1;
}

.notice-text {
    font-size: 0.78rem;
    color: rgba(255, 190, 70, 0.7);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.65rem;
    color: #2a2a2a;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================================================
   ANIMATIONS — Shared
   ============================================================= */

.anim-host {
    background: #111111;
    padding: 0.5rem 1.8rem 1.5rem 1.8rem;
    display: flex;
    justify-content: center;
}

.anim-wrapper {
    position: relative;
    width: 340px;
    height: 440px;
    border-radius: 14px;
    overflow: hidden;
    background: #0f0f0f;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .5);
    border: 1px solid #1e1e1e;
}

.mock-page {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    user-select: none;
    background: #0f0f0f;
}

.cursor {
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5));
}

.cursor svg {
    width: 100%;
    height: 100%;
}

.click-ripple {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #5bcefa;
    opacity: 0;
    pointer-events: none;
    z-index: 19;
    transform: translate(-50%, -50%);
}

/* Shared navbar style (matches the dark top nav in screenshots) */
.s2-navbar,
.s3-navbar,
.s4-navbar {
    width: 100%;
    height: 34px;
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 9px;
    color: #888;
    letter-spacing: .3px;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}

/* =============================================================
   STEP 2 — Chat Server page
   ============================================================= */

.s2-mock { background: #0f0f0f; }

.s2-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
}

.s2-title {
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.s2-subtitle {
    color: #999;
    font-size: 9px;
    text-align: center;
    line-height: 1.4;
}

.s2-subtitle strong {
    color: #ccc;
}

.s2-create-btn {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #ddd;
    font-size: 9px;
    font-weight: 500;
    margin: 2px 0;
}

.s2-qr {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 4px;
    margin: 4px 0;
}

.s2-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.s2-btn {
    padding: 7px 18px;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #ddd;
    font-weight: 600;
    font-size: 10px;
    cursor: pointer;
    position: relative;
}

.s2-copy-btn {
    padding: 7px 18px;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #ddd;
    font-weight: 600;
    font-size: 10px;
}

@keyframes s2-cursor {
    0%   { left: 60px;  top: 70px;  opacity: 1; }
    30%  { left: 60px;  top: 70px;  opacity: 1; }
    60%  { left: 130px; top: 345px; opacity: 1; }
    68%  { left: 130px; top: 345px; opacity: 1; }
    75%  { left: 130px; top: 345px; opacity: 1; }
    100% { left: 130px; top: 345px; opacity: 0; }
}


@keyframes s2-btn-glow {
    0%, 67%  { box-shadow: none; }
    70%      { box-shadow: 0 0 14px 3px rgba(91, 206, 250, .5); }
    90%      { box-shadow: 0 0 6px 2px rgba(91, 206, 250, .2); }
    100%     { box-shadow: none; }
}

.s2-mock .cursor       { animation: s2-cursor   3.5s ease-in-out infinite; }
.s2-mock .click-ripple { left: 140px; top: 370px; animation: s2-ripple 3.5s ease-in-out infinite; }
.s2-mock .s2-btn       { animation: s2-btn-glow 3.5s ease-in-out infinite; }

/* =============================================================
   STEP 3 — Prof. profile page
   ============================================================= */

.s3-mock { background: #0f0f0f; }

.s3-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 22px 20px;
    margin: 16px 18px;
    background: #181818;
    border-radius: 12px;
    border: 1px solid #252525;
    gap: 8px;
}

.s3-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
}

.s3-name {
    color: #e8e8e8;
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
}

.s3-ready {
    color: #777;
    font-size: 9px;
    font-style: italic;
}

.s3-desc {
    color: #999;
    font-size: 8.5px;
    text-align: center;
    line-height: 1.5;
    margin-top: 2px;
    padding: 0 4px;
}

.s3-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #ddd;
    font-weight: 600;
    font-size: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

@keyframes s3-cursor {
    0%   { left: 270px; top: 50px;  opacity: 1; }
    30%  { left: 270px; top: 50px;  opacity: 1; }
    60%  { left: 168px; top: 250px; opacity: 1; }
    68%  { left: 168px; top: 250px; opacity: 1; }
    75%  { left: 168px; top: 250px; opacity: 1; }
    100% { left: 168px; top: 250px; opacity: 0; }
}

@keyframes s3-btn-glow {
    0%, 67%  { box-shadow: none; }
    70%      { box-shadow: 0 0 14px 3px rgba(91, 206, 250, .5); }
    90%      { box-shadow: 0 0 6px 2px rgba(91, 206, 250, .2); }
    100%     { box-shadow: none; }
}

.s3-mock .cursor       { animation: s3-cursor   3.5s ease-in-out infinite; }
.s3-mock .click-ripple { left: 178px; top: 295px; animation: s3-ripple 3.5s ease-in-out infinite; }
.s3-mock .s3-btn       { animation: s3-btn-glow 3.5s ease-in-out infinite; }

/* =============================================================
   STEP 4 — Group page (same layout as step 3)
   ============================================================= */

.s4-mock { background: #0f0f0f; }

.s4-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 22px 20px;
    margin: 16px 18px;
    background: #181818;
    border-radius: 12px;
    border: 1px solid #252525;
    gap: 8px;
}

.s4-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    font-weight: 700;
}

.s4-name {
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    text-align: center;
}

.s4-ready {
    color: #777;
    font-size: 9px;
    font-style: italic;
}

.s4-desc {
    color: #999;
    font-size: 8.5px;
    text-align: center;
    line-height: 1.5;
    margin-top: 2px;
    padding: 0 4px;
}

.s4-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px 0;
    border-radius: 6px;
    border: 1px solid #444;
    background: transparent;
    color: #ddd;
    font-weight: 600;
    font-size: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

@keyframes s4-cursor {
    0%   { left: 50px;  top: 80px;  opacity: 1; }
    30%  { left: 50px;  top: 80px;  opacity: 1; }
    60%  { left: 168px; top: 250px; opacity: 1; }
    68%  { left: 168px; top: 250px; opacity: 1; }
    75%  { left: 168px; top: 250px; opacity: 1; }
    100% { left: 168px; top: 250px; opacity: 0; }
}

@keyframes s4-btn-glow {
    0%, 67%  { box-shadow: none; }
    70%      { box-shadow: 0 0 14px 3px rgba(91, 206, 250, .5); }
    90%      { box-shadow: 0 0 6px 2px rgba(91, 206, 250, .2); }
    100%     { box-shadow: none; }
}

.s4-mock .cursor       { animation: s4-cursor   3.5s ease-in-out infinite; }
.s4-mock .click-ripple { left: 178px; top: 295px; animation: s4-ripple 3.5s ease-in-out infinite; }
.s4-mock .s4-btn       { animation: s4-btn-glow 3.5s ease-in-out infinite; }

/* ===== Responsive ===== */
@media (max-width: 500px) {
    .anim-wrapper {
        width: 98%;
        height: 400px;
    }
}
