﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0b;
    --bg2: #111113;
    --bg3: #1a1a1e;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #f0ede8;
    --text2: #9a9691;
    --text3: #5a5753;
    --accent: #e8d5b0;
    --accent2: #c4a96d;
    --green: #4caf78;
    --red: #e05c5c;
    --pulse: rgba(76,175,120,0.4);
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Figtree", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1000;
        opacity: 0.6;
    }

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 0;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.logo {
    font-family: "Figtree", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.02em;
    font-weight: bold;
}

.logo span {
    color: var(--accent2);
}
.logo-icon {
    width: 35px;
    vertical-align: middle;
    padding-right: 5px;
}
/* STEP INDICATOR */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border2);
    transition: all 0.3s ease;
}

    .step-dot.active {
        background: var(--accent2);
        width: 18px;
        border-radius: 3px;
    }

    .step-dot.done {
        background: var(--green);
    }

/* MAIN CONTENT */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0 40px;
}

/* STEP PANELS */
.step-panel {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

    .step-panel.active {
        display: flex;
        flex-direction: column;
    }

    .step-panel.visible {
        opacity: 1;
        transform: none;
    }

/* STEP LABEL */
.step-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .step-label::before {
        content: '';
        display: block;
        width: 16px;
        height: 1px;
        background: var(--text3);
    }

/* HEADINGS */
.step-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

    .step-title em {
        font-style: italic;
        font-weight: 300;
        color: var(--accent2);
    }

.step-sub {
    font-size: 14px;
    color: var(--text2);
    font-weight: 300;
    margin-bottom: 18px;
    max-width: 480px;
}

/* UPLOAD AREA */
.upload-zone {
    border: 1px dashed var(--border2);
    border-radius: 14px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg2);
    margin-bottom: 16px;
    position: relative;
}

    .upload-zone:hover, .upload-zone.dragover {
        border-color: var(--accent2);
        background: rgba(196,169,109,0.04);
    }

    .upload-zone input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

.upload-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: var(--bg3);
    border: 0.5px solid var(--border2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
}

.upload-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text3);
}

.upload-zone.has-file .upload-icon {
    color: var(--green);
    border-color: rgba(76,175,120,0.3);
    background: rgba(76,175,120,0.06);
}

.upload-zone.has-file .upload-title {
    color: var(--green);
}

.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--text3);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

    .divider-row::before, .divider-row::after {
        content: '';
        flex: 1;
        height: 0.5px;
        background: var(--border);
    }

/* TEXTAREA */
.cv-textarea {
    width: 100%;
    background: var(--bg2);
    border: 0.5px solid var(--border2);
    border-radius: 14px;
    padding: 16px;
    color: var(--text);
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    resize: none;
    outline: none;
    height: 160px;
    transition: border-color 0.2s;
}

    .cv-textarea::placeholder {
        color: var(--text3);
    }

    .cv-textarea:focus {
        border-color: rgba(196,169,109,0.35);
    }

/* FORM FIELDS */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text3);
    letter-spacing: 0.04em;
}

.field-wrap {
    position: relative;
}

.field-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text3);
    pointer-events: none;
    font-weight: 400;
}

.field-input {
    width: 100%;
    background: var(--bg2);
    border: 0.5px solid var(--border2);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s;
}

    .field-input.with-prefix {
        padding-left: 96px;
    }

    .field-input::placeholder {
        color: var(--text3);
    }

    .field-input:focus {
        border-color: rgba(196,169,109,0.35);
    }

    .field-input.error {
        border-color: var(--red);
    }

.field-error {
    font-size: 11.5px;
    color: var(--red);
    display: none;
}

    .field-error.visible {
        display: block;
    }

/* PREVIEW CARD */
.preview-card {
    background: var(--bg2);
    border: 0.5px solid var(--border2);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 28px;
}

.preview-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.preview-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2520, #3d3428);
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.preview-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.preview-tagline {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

.preview-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-chip {
    padding: 5px 11px;
    border: 0.5px solid var(--border2);
    border-radius: 100px;
    font-size: 11.5px;
    color: var(--text2);
    background: var(--bg3);
}

.preview-label {
    font-size: 11px;
    color: var(--text3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* PROCESSING STATE */
.processing {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg2);
    border: 0.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text2);
}

.processing-spinner {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border2);
    border-top-color: var(--accent2);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* CTA BUTTON */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--accent2);
    color: #1a1410;
    border: none;
    border-radius: 10px;
    font-family: "Figtree", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-top: 24px;
    letter-spacing: 0.01em;
}

    .btn-primary:hover {
        background: var(--accent);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
    }

    .btn-primary svg {
        transition: transform 0.2s;
    }

    .btn-primary:hover svg {
        transform: translateX(3px);
    }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text3);
    font-family: "Figtree", sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.18s;
    margin-top: 8px;
    text-decoration:none;
}


/* FOOTER */
.footer {
    text-align: center;
    padding: 20px 0 28px;
    font-size: 16px;
    color: var(--text3);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}

    .footer a {
        color: var(--accent2);
        text-decoration: none;
        opacity: 0.7;
        transition: opacity 0.15s;
    }

        .footer a:hover {
            opacity: 1;
        }

/* SUCCESS */
.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(76,175,120,0.1);
    border: 1px solid rgba(76,175,120,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green);
}

.profile-url-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg2);
    border: 0.5px solid rgba(196,169,109,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 24px 0 8px;
}

.profile-url {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
}

    .profile-url span {
        color: var(--text3);
    }

.copy-btn {
    padding: 6px 12px;
    background: var(--bg3);
    border: 0.5px solid var(--border2);
    border-radius: 6px;
    color: var(--text2);
    font-family: "Figtree", sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s;
}

    .copy-btn:hover {
        border-color: var(--accent2);
        color: var(--accent2);
    }
.previewPostDigit {
    font-size: 12px;
    font-style: italic;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#custom-mobile-layer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.layer-content {
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

    .layer-content h2 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #000000;
    }

    .layer-content p {
        font-size: 14px;
        margin-bottom: 16px;
        color: #555;
    }

.layer-btn {
    display: block;
    background: #000;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.layer-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 20px;
    cursor: pointer;
}
.link-signup {

}
@media (max-width: 480px) {
    .step-title {
        font-size: 28px;
    }
}
