/* ==========================================================
   Asylonia Neo Nomad Profile v1
   ========================================================== */

body.page-my-profile {
    background: #080604;
}

.neo-profile-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #f8edda;
    background:
        radial-gradient(circle at 80% 12%, rgba(214, 174, 92, 0.16), transparent 32%),
        radial-gradient(circle at 10% 22%, rgba(168, 109, 28, 0.12), transparent 34%),
        linear-gradient(135deg, #0a0704 0%, #100b06 48%, #050403 100%);
}

.neo-profile-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 216, 132, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 216, 132, 0.026) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 15%, black, transparent 72%);
}

.neo-profile-container {
    position: relative;
    padding-top: 54px;
    padding-bottom: 72px;
}

.neo-profile-hero {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.neo-profile-eyebrow,
.neo-profile-label {
    margin: 0 0 8px;
    color: #d7b76c;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 950;
    font-size: 0.78rem;
}

.neo-profile-hero h1 {
    margin: 0;
    color: #fff7e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.02;
}

.neo-profile-hero p {
    margin: 14px auto 0;
    max-width: 640px;
    color: rgba(248, 237, 218, 0.72);
    line-height: 1.7;
}

.neo-profile-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.neo-profile-editor-card,
.neo-profile-preview-card {
    border-radius: 28px;
    border: 1px solid rgba(214, 174, 92, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022)),
        rgba(20, 13, 7, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
}

.neo-profile-editor-card {
    padding: 24px;
}

.neo-profile-preview-card {
    padding: 26px;
}

.neo-profile-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.neo-profile-card-head strong,
.neo-profile-preview-card h2 {
    display: block;
    margin: 0;
    color: #fff5e4;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.12;
}

.neo-profile-card-head small,
.neo-profile-preview-plot {
    display: block;
    margin-top: 7px;
    color: rgba(248, 237, 218, 0.6);
    font-weight: 750;
}

.neo-profile-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: #1a1005;
    background: linear-gradient(180deg, #ffd884, #b98225);
    font-size: 0.74rem;
    font-weight: 950;
    white-space: nowrap;
}

.neo-profile-pill.is-disabled {
    color: #ffd0c7;
    background: rgba(160, 42, 24, 0.22);
    border: 1px solid rgba(255, 120, 92, 0.28);
}

.neo-profile-field {
    display: block;
}

.neo-profile-field span {
    display: block;
    margin-bottom: 8px;
    color: rgba(248, 237, 218, 0.78);
    font-weight: 900;
}

.neo-profile-field textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(214, 174, 92, 0.28);
    background: rgba(0, 0, 0, 0.22);
    color: #fff7e8;
    font: inherit;
    line-height: 1.65;
    outline: none;
}

.neo-profile-field textarea:focus {
    border-color: rgba(255, 216, 132, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 216, 132, 0.08);
}

.neo-profile-field textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.neo-profile-editor-foot {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.neo-profile-editor-foot small {
    color: rgba(248, 237, 218, 0.55);
    font-weight: 850;
}

.neo-profile-actions,
.neo-profile-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neo-profile-gold-btn,
.neo-profile-soft-btn,
.neo-profile-preview-actions a {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(214, 174, 92, 0.26);
    color: #e9c878;
    background: rgba(255, 255, 255, 0.035);
    font-weight: 950;
    text-decoration: none;
    cursor: pointer;
}

.neo-profile-gold-btn {
    border: 0;
    color: #1a1005;
    background: linear-gradient(180deg, #ffd884 0%, #d39d3a 56%, #a76d18 100%);
    box-shadow: 0 0 24px rgba(255, 211, 123, 0.18);
}

.neo-profile-gold-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.neo-profile-status {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(214, 174, 92, 0.2);
    color: rgba(248, 237, 218, 0.72);
    background: rgba(255, 255, 255, 0.035);
}

.neo-profile-status.is-error {
    color: #ffd0c7;
    border-color: rgba(255, 120, 92, 0.34);
    background: rgba(160, 42, 24, 0.14);
}

.neo-profile-preview-card pre {
    min-height: 260px;
    margin: 18px 0 18px;
    white-space: pre-wrap;
    word-break: break-word;
    color: rgba(255, 247, 232, 0.82);
    font-family: inherit;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .neo-profile-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .neo-profile-container {
        padding-top: 36px;
    }

    .neo-profile-card-head,
    .neo-profile-editor-foot {
        display: grid;
    }

    .neo-profile-actions,
    .neo-profile-preview-actions {
        display: grid;
    }
}
