/* Lorexa member navigation + opportunity workflow.
   Additive stylesheet: keep the existing assets/app.css file. */

.member-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
}

.member-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.member-menu-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 720;
    white-space: nowrap;
}

.member-menu-link:hover {
    color: var(--ink);
    background: #f5f2e9;
}

.member-menu-link.active {
    color: #6c4d0d;
    background: var(--gold-soft);
}

.member-account {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.member-account-flag {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7f5ef;
    font-size: 19px;
}

.member-account-name {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 760;
    white-space: nowrap;
}

.member-logout {
    padding-left: 8px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.member-logout:hover {
    color: var(--ink);
}

.opportunity-page {
    padding: 38px 0 80px;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
}

.opportunity-header h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -.04em;
    line-height: 1.08;
}

.opportunity-header p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--muted);
}

.opportunity-type-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.opportunity-type {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
}

.opportunity-type strong {
    display: block;
    margin-bottom: 2px;
    font-size: 16px;
}

.opportunity-type span {
    color: var(--muted);
    font-size: 13px;
}

.opportunity-type.active {
    border-color: #b88a28;
    background: var(--gold-soft);
}

.opportunity-type.disabled {
    opacity: .45;
    pointer-events: none;
}

.trade-form {
    display: grid;
    gap: 15px;
}

.trade-section {
    padding: 23px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(24,23,18,.035);
}

.trade-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.trade-section-heading h2 {
    margin: 0 0 3px;
    font-size: 18px;
}

.trade-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.trade-step {
    flex: 0 0 auto;
    color: #8c6a20;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.trade-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trade-full {
    grid-column: 1 / -1;
}

.field-help {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.field .optional {
    color: var(--muted);
    font-weight: 500;
}

.form-summary {
    padding: 14px 15px;
    border-left: 3px solid var(--gold);
    background: #faf7ef;
    color: #5f594c;
    font-size: 13px;
}

.trade-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
}

.trade-actions-note {
    max-width: 610px;
    color: var(--muted);
    font-size: 12px;
}

.page-action {
    flex: 0 0 auto;
}

.my-opportunities-grid {
    display: grid;
    gap: 12px;
}

.own-opportunity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.own-opportunity h3 {
    margin: 7px 0 4px;
    font-size: 20px;
    letter-spacing: -.02em;
}

.own-opportunity p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.own-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.own-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0eee7;
    color: #595448;
    font-size: 11px;
    font-weight: 760;
    text-transform: capitalize;
}

.own-status.active {
    background: #eef6ef;
    color: #316343;
}

.own-status.paused {
    background: #fff5df;
    color: #7b5a16;
}

.own-status.closed,
.own-status.expired {
    background: #f1f1f1;
    color: #696969;
}

.own-controls {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
}

.btn-small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.btn-muted {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.btn-muted:hover {
    background: #f5f3ed;
}

.compact-form {
    margin: 0;
}

.privacy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1efe7;
    color: #5a5549;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .member-nav-shell {
        grid-template-columns: auto 1fr;
        gap: 10px 18px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .member-menu {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1px;
    }

    .member-account {
        justify-self: end;
    }
}

@media (max-width: 680px) {
    .member-account-name {
        display: none;
    }

    .member-logout {
        border-left: 0;
        padding-left: 0;
    }

    .opportunity-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .opportunity-type-switch,
    .trade-grid,
    .trade-grid.three {
        grid-template-columns: 1fr;
    }

    .trade-full {
        grid-column: auto;
    }

    .trade-section {
        padding: 18px;
    }

    .trade-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .trade-actions .btn {
        width: 100%;
    }

    .own-opportunity {
        grid-template-columns: 1fr;
    }

    .own-controls {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
}\n\n.trade-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 395px;
    gap: 24px;
    align-items: start;
}

.trade-preview-panel {
    position: sticky;
    top: 18px;
    align-self: start;
}

.preview-panel-top {
    margin-bottom: 10px;
}

.preview-eyebrow {
    margin-bottom: 10px;
}

.preview-helper {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.preview-frame {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(24,23,18,.035);
}

.preview-frame-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebe8de;
}

.preview-frame-head strong {
    font-size: 14px;
    letter-spacing: -.01em;
}

.preview-frame-head span {
    color: var(--muted);
    font-size: 12px;
}

.preview-card {
    border: 1px solid #ebe7da;
    border-radius: 11px;
    background: #fff;
}

.preview-card .deal-headline {
    min-height: 0;
}

.preview-facts .deal-fact dd {
    max-width: 62%;
}

.preview-detail-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ebe8de;
}

.preview-detail-row + .preview-detail-row {
    margin-top: 12px;
}

.preview-detail-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.preview-detail-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.preview-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.preview-detail-grid div {
    padding: 10px 11px;
    border-radius: 9px;
    background: #f7f5ef;
}

.preview-detail-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
}

.preview-detail-grid strong {
    display: block;
    font-size: 12px;
    letter-spacing: -.01em;
}

@media (max-width: 1200px) {
    .trade-workspace {
        grid-template-columns: 1fr;
    }

    .trade-preview-panel {
        position: static;
        order: -1;
    }
}\n

.opportunity-page {
    width: min(1360px, calc(100% - 38px));
    padding: 38px 0 80px;
}

.trade-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 28px;
    align-items: start;
}

.trade-main-column {
    min-width: 0;
}

.trade-preview-panel {
    position: sticky;
    top: 16px;
    align-self: start;
    width: 100%;
}

.preview-frame {
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.preview-card {
    margin: 0;
}

@media (max-width: 1320px) {
    .trade-workspace {
        grid-template-columns: minmax(0, 1fr) 370px;
    }
}

@media (max-width: 1180px) {
    .opportunity-page {
        width: min(1180px, calc(100% - 36px));
    }

    .trade-workspace {
        grid-template-columns: 1fr;
    }

    .trade-preview-panel {
        position: static;
    }

    .preview-frame {
        max-height: none;
        overflow: visible;
    }
}

/* v28 create opportunity refinement */
.opportunity-page {
    position: relative;
}

.opportunity-page::before {
    content: "";
    position: absolute;
    inset: 12px 0 auto 0;
    height: 280px;
    background: url('world-map.svg') center top / min(1180px, 100%) auto no-repeat;
    opacity: .06;
    pointer-events: none;
}

.opportunity-hero {
    position: relative;
    margin-bottom: 22px;
    padding: 24px 26px;
    border: 1px solid rgba(203, 191, 164, .72);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(252,249,242,.96)),
        radial-gradient(circle at top right, rgba(210,161,45,.12), transparent 34%);
    box-shadow: 0 18px 40px rgba(28, 24, 15, .06);
}

.opportunity-header {
    align-items: flex-start;
    margin-bottom: 0;
}

.opportunity-header-copy {
    max-width: 760px;
}

.opportunity-header p {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.6;
}

.opportunity-header-side {
    display: grid;
    gap: 12px;
    justify-items: end;
    min-width: 280px;
}

.workflow-hints {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(320px, 100%);
}

.workflow-hint {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e6dfcf;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
}

.workflow-hint strong {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #201c17;
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
}

.workflow-hint span {
    font-size: 13px;
    font-weight: 700;
    color: #4c463a;
}

.type-selection-panel {
    margin-bottom: 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(203, 191, 164, .75);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(250,246,238,.97));
    box-shadow: 0 12px 30px rgba(28, 24, 15, .04);
}

.type-selection-copy {
    margin-bottom: 14px;
}

.type-selection-copy h2,
.preview-panel-top h2 {
    margin: 0 0 5px;
    font-size: 22px;
    letter-spacing: -.03em;
}

.type-selection-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.opportunity-type-switch {
    gap: 14px;
    margin-bottom: 0;
}

.opportunity-type {
    padding: 18px 18px 16px;
    border-radius: 14px;
    border: 1px solid #ddd3bf;
    background: linear-gradient(180deg, #fff, #fcfaf6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.opportunity-type:hover {
    transform: translateY(-1px);
    border-color: #c79b3a;
    box-shadow: 0 10px 22px rgba(32, 28, 23, .08);
}

.opportunity-type-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.type-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f0e7;
    color: #68614f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.opportunity-type.active {
    border-color: #c69631;
    background: linear-gradient(180deg, #fff6db, #f9edd0);
    box-shadow: 0 14px 28px rgba(171, 124, 23, .15);
}

.opportunity-type.active .type-state {
    background: #201c17;
    color: #fff;
}

.opportunity-type.disabled {
    opacity: .42;
    pointer-events: none;
}

.trade-selection-notice {
    padding: 14px 16px;
    border: 1px solid #ecd8a4;
    border-radius: 12px;
    background: #fff8e6;
    color: #5d5137;
}

.trade-selection-notice strong {
    display: block;
    margin-bottom: 4px;
}

.trade-selection-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.trade-section {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(216, 207, 188, .95);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,250,246,.98));
    box-shadow: 0 14px 32px rgba(26, 22, 16, .05);
}

.trade-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #d3a12d, rgba(211,161,45,.15));
}

.trade-section.section-muted {
    opacity: .96;
}

.trade-step {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f6efdc;
    color: #956b15;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.trade-section-heading h2 {
    font-size: 21px;
    letter-spacing: -.02em;
}

.trade-section-heading p {
    max-width: 720px;
    font-size: 13px;
    line-height: 1.55;
}

.field input,
.field select,
.field textarea {
    border-radius: 12px;
    border-color: #d7cfbf;
    background: #fff;
}

.field textarea {
    min-height: 124px;
}

.type-placeholder-card {
    padding: 16px 17px;
    border: 1px dashed #ceb06a;
    border-radius: 12px;
    background: #fbf7ea;
}

.type-placeholder-card strong {
    display: block;
    margin-bottom: 4px;
}

.type-placeholder-card p {
    margin: 0;
    color: #6f654f;
    line-height: 1.55;
}

.form-summary {
    padding: 16px 17px;
    border-left-width: 4px;
    border-radius: 0 12px 12px 0;
    background: #faf6eb;
    font-size: 13px;
    line-height: 1.55;
}

.trade-actions-inline-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-panel-top {
    margin-bottom: 12px;
    padding: 0 4px;
}

.preview-helper {
    margin: 0;
    line-height: 1.6;
}

.preview-frame {
    border-radius: 18px;
    border: 1px solid rgba(62, 54, 44, .18);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,248,241,.98));
    box-shadow: 0 16px 36px rgba(26, 22, 16, .08);
}

.preview-frame-head {
    margin: -16px -16px 14px;
    padding: 14px 16px;
    border-radius: 18px 18px 0 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, #29241d, #211c16);
}

.preview-frame-head strong,
.preview-frame-head span {
    color: #f7f1de;
}

.preview-card {
    box-shadow: 0 10px 20px rgba(18, 16, 12, .04);
}

.preview-detail-grid div {
    background: #fcf8ef;
    border: 1px solid #efe6d1;
}

@media (max-width: 980px) {
    .opportunity-hero {
        padding: 20px;
    }

    .opportunity-header-side {
        width: 100%;
        justify-items: start;
        min-width: 0;
    }

    .workflow-hints {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .opportunity-page::before {
        height: 220px;
        background-size: 150% auto;
    }

    .opportunity-hero,
    .type-selection-panel,
    .trade-section,
    .preview-frame {
        border-radius: 14px;
    }

    .workflow-hints {
        grid-template-columns: 1fr;
    }

    .opportunity-type {
        padding: 16px;
    }

    .opportunity-type-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .trade-step {
        width: 38px;
        height: 38px;
    }

    .trade-actions-inline-choice {
        width: 100%;
        flex-direction: column;
    }

    .trade-actions-inline-choice .btn {
        width: 100%;
    }
}

/* v29 focused create-opportunity validation + live preview feedback */
.opportunity-header-side-compact {
    min-width: auto;
    align-self: flex-start;
}

.opportunity-hero {
    padding-top: 20px;
    padding-bottom: 20px;
}

.trade-preview-panel {
    z-index: 3;
}

.preview-frame {
    border: 2px solid rgba(198, 150, 49, .42);
    box-shadow:
        0 20px 52px rgba(31, 26, 18, .12),
        0 0 0 5px rgba(211, 161, 45, .055);
}

.preview-panel-top h2 {
    font-size: 24px;
}

.preview-card {
    border-color: #dfd3b9;
}

.preview-flash {
    position: relative;
    z-index: 1;
    border-radius: 9px;
    animation: lorexaPreviewFlash .9s ease;
}

#preview-commodity.preview-flash,
#preview-headline.preview-flash,
#preview-relationship.preview-flash,
#preview-category.preview-flash {
    padding: 3px 6px;
    margin-left: -6px;
    margin-right: -6px;
}

@keyframes lorexaPreviewFlash {
    0% {
        background: rgba(216, 168, 57, .34);
        box-shadow: 0 0 0 4px rgba(216, 168, 57, .18);
        transform: translateY(-1px);
    }
    55% {
        background: rgba(250, 237, 195, .72);
        box-shadow: 0 0 0 7px rgba(216, 168, 57, .08);
    }
    100% {
        background: transparent;
        box-shadow: 0 0 0 0 rgba(216, 168, 57, 0);
        transform: translateY(0);
    }
}

.field-invalid label {
    color: #a72b28;
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
    border-color: #c8443f !important;
    background: #fff8f7 !important;
    box-shadow: 0 0 0 4px rgba(200, 68, 63, .10) !important;
}

.field-error-message {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: #b4322e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.field-error-message::before {
    content: "!";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #b4322e;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.validation-flash input,
.validation-flash select,
.validation-flash textarea {
    animation: lorexaValidationPulse .72s ease;
}

@keyframes lorexaValidationPulse {
    0%, 100% { transform: translateX(0); }
    16% { transform: translateX(-5px); }
    32% { transform: translateX(5px); }
    48% { transform: translateX(-3px); }
    64% { transform: translateX(3px); }
    80% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .preview-flash,
    .validation-flash input,
    .validation-flash select,
    .validation-flash textarea {
        animation: none;
    }
}

@media (max-width: 680px) {
    .opportunity-header-side-compact {
        width: auto;
    }

    .preview-frame {
        box-shadow: 0 12px 28px rgba(31, 26, 18, .10);
    }
}

/* v30 geography logic */
.trade-grid.three .trade-span-two {
    grid-column: span 2;
}

@media (max-width: 680px) {
    .trade-grid.three .trade-span-two {
        grid-column: auto;
    }
}

/* v32 My Opportunities deal-board refinement */
body.my-opportunities-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 14% 14%, rgba(210, 161, 45, .09), transparent 28%),
        linear-gradient(180deg, #f8f5ec 0%, #f2eee3 100%);
}

body.my-opportunities-page > .site-header {
    flex: 0 0 auto;
}

body.my-opportunities-page > main {
    flex: 1 0 auto;
}

body.my-opportunities-page > .lx-site-footer {
    flex: 0 0 auto;
    margin-top: 0;
}

.my-opportunities-page-main {
    position: relative;
    isolation: isolate;
    width: min(1360px, calc(100% - 38px));
    padding-top: 38px;
}

.my-opportunities-page-main::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0 -8vw auto -8vw;
    height: 540px;
    background: url('world-map.svg') center 12% / min(1500px, 112vw) auto no-repeat;
    opacity: .075;
    pointer-events: none;
}

.my-opportunities-page-main::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -6vw auto -6vw;
    height: 520px;
    background: linear-gradient(180deg, rgba(248,245,236,.15), rgba(248,245,236,.82));
    pointer-events: none;
}

.my-opportunities-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 26px 28px;
    border: 1px solid rgba(205, 193, 165, .82);
    border-radius: 18px;
    background: rgba(255,255,255,.83);
    box-shadow: 0 18px 44px rgba(33, 28, 18, .06);
    backdrop-filter: blur(8px);
}

.my-opportunities-hero-copy {
    max-width: 800px;
}

.my-opportunities-hero h1 {
    margin: 0;
    font-size: clamp(36px, 4.4vw, 54px);
    line-height: .98;
    letter-spacing: -.055em;
}

.my-opportunities-hero p {
    max-width: 760px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.my-opportunities-hero-actions {
    flex: 0 0 auto;
}

.opportunity-summary-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 16px;
    background: #292720;
    box-shadow: 0 14px 30px rgba(25, 22, 16, .13);
}

.opportunity-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 10px 13px;
    border-radius: 11px;
    color: #d7d0c2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.opportunity-summary-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    transform: translateY(-1px);
}

.opportunity-summary-item strong {
    display: inline-grid;
    place-items: center;
    min-width: 29px;
    height: 29px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 12px;
}

.opportunity-summary-item.active {
    background: #d2a02a;
    color: #181611;
}

.opportunity-summary-item.active strong {
    background: rgba(30,26,18,.13);
    color: #181611;
}

.my-opportunities-verification-note {
    margin-bottom: 16px;
}

.my-opportunities-list {
    display: grid;
    gap: 13px;
}

.managed-opportunity {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    overflow: hidden;
    padding: 22px 22px 22px 26px;
    border: 1px solid #ddd5c5;
    border-radius: 16px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 12px 28px rgba(28, 24, 17, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.managed-opportunity:hover {
    transform: translateY(-1px);
    border-color: #cdbb95;
    box-shadow: 0 17px 36px rgba(28, 24, 17, .08);
}

.managed-opportunity.closed,
.managed-opportunity.expired {
    background: rgba(250,249,246,.92);
}

.managed-opportunity-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
}

.managed-opportunity-accent.buy {
    background: #d2a02a;
}

.managed-opportunity-accent.sell {
    background: #567865;
}

.managed-opportunity-main {
    min-width: 0;
}

.managed-opportunity-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.managed-opportunity-updated {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #756e61;
    font-size: 12px;
    font-weight: 700;
}

.managed-opportunity-updated::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d2a02a;
    box-shadow: 0 0 0 4px rgba(210,160,42,.10);
}

.managed-opportunity-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.managed-opportunity-category {
    display: block;
    margin-bottom: 4px;
    color: #9b721b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.managed-opportunity h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.managed-opportunity-title-row p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.48;
}

.managed-opportunity-id {
    flex: 0 0 auto;
    color: #a29a8c;
    font-size: 11px;
    font-weight: 700;
}

.managed-opportunity-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.managed-opportunity-facts > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #ece5d7;
    border-radius: 11px;
    background: #fbf8f1;
}

.managed-opportunity-facts span {
    display: block;
    margin-bottom: 4px;
    color: #8a8274;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.managed-opportunity-facts strong {
    display: block;
    overflow: hidden;
    color: #27231d;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.managed-opportunity-actions {
    align-self: stretch;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid #eee7d9;
}

.managed-opportunity-actions .btn,
.managed-opportunity-actions form,
.managed-opportunity-actions form .btn {
    width: 100%;
}

.btn-dark {
    background: #292720;
    color: #fff;
    border-color: #292720;
}

.btn-dark:hover {
    background: #15140f;
}

.btn-quiet-danger {
    background: #fff;
    color: #8b4137;
    border-color: #e1c7c1;
}

.btn-quiet-danger:hover {
    background: #fff5f3;
    border-color: #c9948a;
}

.badge-seller {
    background: #e7f0e9;
    color: #365e47;
}

.my-opportunities-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 60px 24px;
    border: 1px solid #ddd5c5;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    text-align: center;
    box-shadow: 0 16px 36px rgba(28,24,17,.05);
}

.my-opportunities-empty.compact {
    padding: 40px 24px;
}

.my-opportunities-empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5e9c8;
    color: #8d6515;
    font-size: 30px;
}

.my-opportunities-empty h2 {
    margin: 4px 0 0;
    font-size: 26px;
}

.my-opportunities-empty p {
    max-width: 560px;
    margin: 0 0 10px;
    color: var(--muted);
}

.opportunity-type.edit-locked {
    cursor: default;
}

@media (max-width: 1120px) {
    .managed-opportunity-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .my-opportunities-page-main {
        width: min(100% - 24px, 1180px);
    }

    .my-opportunities-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .opportunity-summary-strip {
        grid-template-columns: repeat(5, minmax(100px, 1fr));
        overflow-x: auto;
    }

    .managed-opportunity {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px 18px 18px 22px;
    }

    .managed-opportunity-actions {
        min-width: 0;
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid #eee7d9;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .managed-opportunity-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .my-opportunities-hero h1 {
        font-size: 38px;
    }

    .my-opportunities-hero-actions,
    .my-opportunities-hero-actions .btn {
        width: 100%;
    }

    .managed-opportunity-topline,
    .managed-opportunity-title-row {
        flex-direction: column;
    }

    .managed-opportunity-facts {
        grid-template-columns: 1fr;
    }

    .managed-opportunity-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   v38 · Guided opportunity creation
   Keeps only the current creation step visually prominent and
   prevents interaction with future steps until prerequisites pass.
   ============================================================ */

.type-selection-panel.guided-awaiting-side {
    position: relative;
    border-color: rgba(199, 155, 58, .92);
    box-shadow: 0 0 0 1px rgba(211, 161, 45, .12), 0 16px 36px rgba(142, 104, 27, .11);
    animation: lorexaGuidedTypePulse 1.9s ease-in-out 3;
}

.guided-selection-notice {
    border-color: rgba(211, 161, 45, .55);
    background: linear-gradient(135deg, #fff9e8, #fffdf6);
}

.trade-section[data-guided-step] {
    transition: opacity .24s ease, filter .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.trade-section.is-guided-locked {
    overflow: hidden;
    border-color: rgba(216, 207, 188, .62);
    background: linear-gradient(180deg, rgba(250,248,243,.9), rgba(246,243,236,.9));
    box-shadow: none;
}

.trade-section.is-guided-locked::before {
    background: linear-gradient(90deg, #d8d1c3, rgba(216,209,195,.12));
}

.trade-section.is-guided-locked .trade-section-heading {
    opacity: .44;
    filter: blur(.35px);
}

.trade-section.is-guided-locked > .trade-grid,
.trade-section.is-guided-locked > .form-summary,
.trade-section.is-guided-locked > .trade-actions {
    opacity: .26;
    filter: blur(1.7px);
    transform: scale(.996);
    pointer-events: none;
    user-select: none;
}

.trade-section.is-guided-locked::after {
    content: attr(data-locked-label);
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 36px);
    padding: 9px 14px;
    border: 1px solid rgba(190, 171, 132, .72);
    border-radius: 999px;
    background: rgba(255, 253, 247, .94);
    box-shadow: 0 8px 22px rgba(39, 31, 17, .08);
    color: #776b55;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.trade-section.is-guided-active {
    border-color: rgba(204, 154, 43, .95);
    box-shadow: 0 0 0 1px rgba(211, 161, 45, .12), 0 18px 40px rgba(127, 92, 21, .11);
}

.trade-section.is-guided-active::before {
    height: 5px;
    background: linear-gradient(90deg, #c89320, #e2bb57 58%, rgba(211,161,45,.18));
}

.trade-section.is-guided-active .trade-step {
    background: #f4e7bd;
    color: #805b0d;
    box-shadow: 0 0 0 4px rgba(211, 161, 45, .08);
}

.trade-section.guided-next-pulse {
    animation: lorexaGuidedNextPulse 1.75s ease-in-out 3;
}

.trade-section.is-guided-complete {
    border-color: rgba(143, 165, 135, .48);
    box-shadow: 0 10px 26px rgba(41, 73, 40, .035);
}

.trade-section.is-guided-complete::before {
    background: linear-gradient(90deg, #91aa87, rgba(145,170,135,.12));
}

.trade-section.is-guided-complete .trade-step {
    position: relative;
    background: #edf4ea;
    color: #496842;
}

.trade-section.is-guided-complete .trade-step::after {
    content: "✓";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #5e7f57;
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.guided-step-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 2px;
    padding: 14px 15px;
    border: 1px solid #e3d7bd;
    border-radius: 12px;
    background: #fbf8ef;
}

.guided-step-confirm > div {
    display: grid;
    gap: 3px;
}

.guided-step-confirm strong {
    font-size: 13px;
}

.guided-step-confirm span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.guided-step-confirm-button {
    flex: 0 0 auto;
    min-width: 178px;
}

.guided-step-confirm-button.is-confirmed {
    border-color: rgba(93, 127, 87, .35);
    background: #edf4ea;
    color: #496842;
}

@keyframes lorexaGuidedTypePulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(211,161,45,.12), 0 16px 36px rgba(142,104,27,.08);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(211,161,45,.13), 0 20px 44px rgba(142,104,27,.16);
    }
}

@keyframes lorexaGuidedNextPulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 0 1px rgba(211,161,45,.1), 0 18px 40px rgba(127,92,21,.08);
    }
    50% {
        transform: translateY(-1px);
        box-shadow: 0 0 0 5px rgba(211,161,45,.10), 0 22px 48px rgba(127,92,21,.16);
    }
}

@media (max-width: 680px) {
    .trade-section.is-guided-locked::after {
        max-width: calc(100% - 28px);
        padding: 8px 11px;
        font-size: 10px;
        white-space: normal;
    }

    .guided-step-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .guided-step-confirm-button {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .type-selection-panel.guided-awaiting-side,
    .trade-section.guided-next-pulse {
        animation: none;
    }
}
