/* =====================================================================
   Deal closing page (js/deal-closing.js) + the YES! celebration
   ===================================================================== */

#deal-closing .dc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}
#deal-closing .dc-wizard { margin-bottom: 20px; padding: 24px 26px; }

/* ---------- Stepper ---------- */
.dc-stepper {
    list-style: none; margin: 0 0 24px; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    counter-reset: dc;
}
.dc-stepper li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 14px;
    background: var(--surface-2); color: var(--ink-3);
    font-weight: 600; font-size: 12.5px; cursor: pointer;
    position: relative; transition: background .15s, color .15s;
    min-width: 0;
}
.dc-stepper li:hover { background: var(--surface-3); }
.dc-dot {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line-2);
    font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.dc-dot .ic { width: 14px; height: 14px; }
.dc-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-stepper li.current { background: var(--blue-soft); color: var(--brand-blue); }
.dc-stepper li.current .dc-dot { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-violet); }
.dc-stepper li.done { color: var(--ink-2); }
.dc-stepper li.done .dc-dot { background: var(--green-soft); border-color: transparent; color: var(--green); }

/* ---------- Step content ---------- */
.dc-step-head { margin-bottom: 18px; }
.dc-step-head h3 { margin: 0 0 4px; font-size: 17px; }
.dc-step-head p { margin: 0; color: var(--ink-2); font-size: 13px; }
.dc-sub {
    margin: 22px 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-3);
}

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.dc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-field.wide { grid-column: 1 / -1; }
.dc-field > label, .dc-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.dc-label { display: block; }
.dc-req { color: var(--brand-pink); font-weight: 800; }
.dc-hint { font-size: 11.5px; color: var(--ink-3); }
.dc-field.invalid input, .dc-field.invalid select, .dc-field.invalid textarea,
.dc-field.invalid .dc-seg, .dc-field.invalid .dc-checks {
    border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-soft);
}
.dc-field.invalid .dc-checks, .dc-field.invalid .dc-seg { border: 1px solid; border-radius: var(--r-md); }

/* Radio pills */
.dc-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dc-seg label { cursor: pointer; margin: 0; }
.dc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.dc-seg span {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
    border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
    font-size: 13px; font-weight: 600; color: var(--ink-2); transition: all .15s;
}
.dc-seg input:checked + span { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.dc-seg input:focus-visible + span { box-shadow: var(--ring); }

/* Checkboxes */
.dc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dc-checks.agree { grid-template-columns: 1fr; }
.dc-check {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--ink); margin: 0;
    padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--line);
    background: var(--surface); transition: border-color .15s, background .15s;
}
.dc-check:hover { border-color: var(--line-2); }
.dc-check input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.dc-check span { min-width: 0; }
.dc-check small { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 500; }
.dc-check:has(input:checked) { border-color: #cfc7f6; background: var(--blue-soft); }
.dc-check.strong { font-weight: 600; padding: 12px 14px; }
.dc-check.invalid { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

/* Ranked goals */
.dc-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.dc-rank-row { display: flex; gap: 8px; align-items: stretch; }
.dc-rank-row .dc-check { flex: 1; }
.dc-rank-row select { width: 104px; flex-shrink: 0; }

/* Access table */
.dc-access { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dc-access-head, .dc-access-row {
    display: grid; grid-template-columns: minmax(0, 1.6fr) 96px 110px minmax(0, 1.4fr);
    gap: 8px; align-items: center; padding: 8px 12px;
}
.dc-access-head { background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.dc-access-row { border-top: 1px solid var(--line); }
.dc-access-name { font-size: 13px; font-weight: 600; }

/* StayNest rooms & beds table */
.dc-rooms { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dc-rooms-head, .dc-room-row {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr) minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(0, 1.2fr) 32px; gap: 8px; align-items: center; padding: 8px 12px;
}
.dc-rooms-head { background: var(--surface-2); font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.dc-room-row { border-top: 1px solid var(--line); }
.dc-room-row .dc-money input { min-width: 0; }
.dc-room-row select { padding-right: 26px; background-position: right 8px center; }
.dc-room-row .icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.dc-rooms-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.dc-rooms-foot .dc-hint { margin: 0; }

/* Fieldsets for the onboarding form */
.dc-section { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 20px; margin: 0 0 16px; background: var(--surface); }
.dc-section legend { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.dc-sec-n {
    width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-soft); color: var(--brand-blue); font-size: 12px; font-weight: 800;
}

/* ---------- Lead picker ---------- */
.dc-lead-picker { position: relative; margin-bottom: 14px; }
.dc-lead-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-float); max-height: 320px; overflow: auto; padding: 6px;
}
.dc-lead-hit {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 8px 10px; border: none; background: none; border-radius: 10px; cursor: pointer; font-family: inherit;
}
.dc-lead-hit:hover, .dc-lead-hit:focus-visible { background: var(--surface-2); outline: none; }
.dc-lead-hit .avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 13px;
}
.dc-lead-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-lead-meta strong { font-size: 13.5px; color: var(--ink); }
.dc-lead-meta small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-lead-status { font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-3); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.dc-linked {
    display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    padding: 10px 12px; border-radius: var(--r-md); background: var(--green-soft); color: #0b6b4a; font-size: 13px;
}
.dc-linked .ic { width: 16px; height: 16px; flex-shrink: 0; }
.dc-linked span { flex: 1; min-width: 0; }

/* ---------- Package ---------- */
.dc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dc-cat, .dc-tier {
    font-family: inherit; text-align: left; cursor: pointer; color: var(--ink);
    background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dc-cat { display: flex; align-items: center; gap: 12px; padding: 14px; }
.dc-cat:hover, .dc-tier:hover { border-color: #cfc7f6; transform: translateY(-1px); }
.dc-cat .tile-ic {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--blue-soft); color: var(--brand-blue);
}
.dc-cat .tile-ic .ic { width: 18px; height: 18px; }
.dc-cat strong { display: block; font-size: 13.5px; }
.dc-cat small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
.dc-cat.selected, .dc-tier.selected { border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow-xs); }
.dc-cat.selected .tile-ic { background: var(--brand-gradient); color: #fff; }

.dc-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dc-tier { display: flex; flex-direction: column; gap: 4px; padding: 16px; position: relative; }
.dc-tier-name { font-weight: 700; font-size: 14.5px; }
.dc-tier-price { font-weight: 700; font-size: 12.5px; color: var(--brand-blue); }
.dc-tier-best { font-size: 11.5px; color: var(--ink-3); }
.dc-tier ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dc-tier li { font-size: 12px; color: var(--ink-2); padding-left: 16px; position: relative; line-height: 1.4; }
.dc-tier li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-pink); }
.dc-tier.custom { border-style: dashed; background: var(--surface-2); }
.dc-tier.selected::after {
    content: '✓'; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand-blue); color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

.dc-money { position: relative; display: flex; align-items: center; }
.dc-money > span { position: absolute; left: 12px; color: var(--ink-3); font-weight: 600; pointer-events: none; }
.dc-money > input { padding-left: 26px; }

.dc-addons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dc-addon {
    display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 0;
    border-radius: var(--r-md);
}
.dc-addon .dc-check { flex: 1; }
.dc-addon-inputs { display: flex; gap: 8px; flex-shrink: 0; }
.dc-addon-inputs .dc-money { width: 130px; }
.dc-addon .dc-qty { width: 84px; }
.dc-addon:not(.on) .dc-addon-inputs { opacity: .55; }

.dc-pkg-notes, #deal-closing .dc-field.wide textarea { min-height: 76px; }
#deal-closing .dc-step-body > .dc-field { margin-top: 16px; }
#dc-step-body > .dc-field.wide { margin-top: 18px; }

.dc-total {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
    background: var(--blue-soft); color: var(--ink-2); font-size: 13px;
}
.dc-total strong { font-size: 16px; color: var(--brand-navy); }
.dc-terms { margin: 12px 0 0; padding-left: 18px; color: var(--ink-3); font-size: 12px; line-height: 1.6; }

/* ---------- Review ---------- */
.dc-review { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dc-rv-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--surface); min-width: 0; }
.dc-rv-card.wide { grid-column: 1 / -1; }
.dc-rv-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dc-rv-title h4 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-rv-card dl, .dc-rv-sec dl {
    display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 12px; margin: 0; font-size: 13px;
}
.dc-rv-card dt, .dc-rv-sec dt { color: var(--ink-3); font-weight: 600; }
.dc-rv-card dd, .dc-rv-sec dd { margin: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.dc-rv-pkg { margin: 0 0 10px; font-size: 13.5px; }
.dc-rv-lines { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.dc-rv-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.dc-rv-lines li.total { font-size: 14.5px; font-weight: 700; color: var(--brand-navy); border-bottom: none; }
.dc-rv-lines li.muted { color: var(--ink-3); font-size: 12.5px; border-bottom: none; padding: 3px 0; }
.dc-rv-notes { margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; }
.dc-rv-answers { display: flex; flex-direction: column; gap: 14px; }
.dc-rv-sec h5 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-blue); }

.dc-pill {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.dc-pill.cat-dm { background: var(--violet-soft); color: var(--violet); }
.dc-pill.cat-ads { background: var(--amber-soft); color: var(--amber); }
.dc-pill.cat-web { background: var(--teal-soft); color: #c2416b; }
.dc-pill.cat-app { background: var(--green-soft); color: var(--green); }

.dc-confirm { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.dc-after { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); }
.dc-rev-row { display: flex; gap: 8px; align-items: center; }
.dc-rev-row .dc-check { flex: 1; }
.dc-rev-row .dc-money { width: 150px; flex-shrink: 0; }
.dc-rev-row input:disabled { opacity: .55; }

/* ---------- Actions ---------- */
.dc-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.dc-actions-spacer { flex: 1; }
.dc-actions .btn { height: 42px; padding: 0 18px; }
.dc-complete-btn { background: var(--pink-gradient) !important; box-shadow: var(--shadow-pink) !important; font-weight: 700; }
.dc-complete-btn:hover { filter: brightness(1.04); }
.dc-spin {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
    animation: dcSpin .8s linear infinite; display: inline-block;
}
@keyframes dcSpin { to { transform: rotate(360deg); } }

/* ---------- Summary aside ---------- */
#deal-closing .dc-summary { position: sticky; top: 16px; padding: 20px; margin-bottom: 20px; }
.dc-sum-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dc-sum-head h4 { margin: 0; font-size: 14.5px; }
.dc-sum-head p { margin: 0; font-size: 12px; color: var(--ink-3); }
.dc-sum-ic {
    width: 40px; height: 40px; border-radius: 14px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--pink-gradient); color: #fff; box-shadow: var(--shadow-pink);
}
.dc-sum-ic .ic { width: 18px; height: 18px; }
.dc-sum { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.dc-sum dt { color: var(--ink-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.dc-sum dd { margin: 0; font-weight: 600; color: var(--ink); }
.dc-sum dd small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; }
.dc-bar { height: 7px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 4px 0; }
.dc-bar i { display: block; height: 100%; background: var(--brand-gradient); border-radius: inherit; transition: width .3s; }
.dc-sum-value {
    margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md);
    background: var(--brand-gradient); color: #fff; display: flex; flex-direction: column; gap: 2px;
}
.dc-sum-value span { font-size: 11.5px; opacity: .8; font-weight: 600; }
.dc-sum-value strong { font-size: 22px; letter-spacing: -.02em; }
.dc-sum-value small { font-size: 11.5px; opacity: .8; }

/* ---------- Closed deals ---------- */
#deal-closing .dc-deals .panel-title { flex-wrap: wrap; }
.dc-deals-search { margin-left: auto; width: 260px; }
.dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dc-stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.dc-stat span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.dc-stat strong { font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.dc-stat small { font-size: 12px; color: var(--ink-2); }
.dc-deals-list { display: flex; flex-direction: column; }
.dc-deal-row {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 90px;
    gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line);
}
.dc-deal-row.head { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; padding-top: 4px; }
.dc-deal-row > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.dc-deal-row strong { font-size: 13.5px; }
.dc-deal-row small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dc-d-act { align-items: flex-end !important; }
.dc-empty, .dc-empty-sm { color: var(--ink-3); text-align: center; padding: 24px 12px; font-size: 13px; }
.dc-empty-sm { padding: 14px 10px; }

/* ---------- Deal modal ---------- */
.dc-modal {
    position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
    background: rgba(42, 39, 83, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    padding: 16px; opacity: 0; transition: opacity .2s;
}
.dc-modal.open { opacity: 1; }
.dc-modal-card {
    background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-float);
    width: min(720px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
    transform: translateY(10px); transition: transform .2s;
}
.dc-modal.open .dc-modal-card { transform: none; }
.dc-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.dc-modal-head h3 { margin: 0 0 4px; font-size: 17px; }
.dc-modal-head p { margin: 0; font-size: 13px; color: var(--ink-2); }
.dc-modal-body { padding: 18px 22px; overflow: auto; }
.dc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Toast ---------- */
.dc-toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 99990; max-width: min(460px, calc(100vw - 32px));
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
    background: var(--ink); color: #fff; box-shadow: var(--shadow-float);
    transition: opacity .2s, transform .2s;
}
.dc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.dc-toast.ok { background: #2a2753; }
.dc-toast.error { background: var(--red); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    #deal-closing .dc-layout { grid-template-columns: 1fr; }
    #deal-closing .dc-summary { position: static; order: -1; padding: 16px; }
    #deal-closing .dc-summary .dc-sum { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
    #deal-closing .dc-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; }
    #deal-closing .dc-sum-head { grid-column: 1 / -1; margin-bottom: 0; }
    #deal-closing .dc-sum dt { margin-top: 0; }
    #deal-closing .dc-sum > dd { margin-right: 10px; }
    #deal-closing .dc-sum-value { margin-top: 0; padding: 10px 14px; }
    #deal-closing .dc-sum-value strong { font-size: 18px; }
    .dc-toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
    #deal-closing input, #deal-closing select, #deal-closing textarea,
    .dc-modal input, .dc-modal select, .dc-modal textarea { font-size: 16px; }
    #deal-closing input:not([type="checkbox"]):not([type="radio"]), #deal-closing select { min-height: 44px; }
    #deal-closing .dc-wizard { padding: 16px; }
    #deal-closing .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }

    .dc-stepper { grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 18px; }
    .dc-stepper li { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; font-size: 10.5px; }
    .dc-step-label { white-space: normal; line-height: 1.2; }
    .dc-stepper li:not(.current) .dc-step-label { color: var(--ink-3); }

    .dc-grid, .dc-review { grid-template-columns: 1fr; }
    .dc-cats { grid-template-columns: 1fr; }
    .dc-tiers { grid-template-columns: 1fr; }
    .dc-checks, .dc-rank { grid-template-columns: 1fr; }
    .dc-section { padding: 14px 12px 16px; }

    .dc-addon { flex-direction: column; align-items: stretch; padding: 0; }
    .dc-addon-inputs { padding-left: 38px; }
    .dc-addon-inputs .dc-money { flex: 1; width: auto; }
    .dc-rev-row { flex-direction: column; align-items: stretch; }
    .dc-rev-row .dc-money { width: auto; }

    .dc-access-head { display: none; }
    .dc-access-row { grid-template-columns: 1fr 1fr; padding: 12px; }
    .dc-access-name { grid-column: 1 / -1; }
    .dc-access-row input { grid-column: 1 / -1; }
    .dc-rooms-head { display: none; }
    .dc-room-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; padding: 12px; }
    .dc-room-row > input:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
    .dc-room-row .icon-btn { grid-column: 3; grid-row: 1; justify-self: end; width: 44px; height: 44px; }
    .dc-room-row > input:nth-child(2) { grid-column: 1; grid-row: 2; }
    .dc-room-row > select:nth-of-type(1) { grid-column: 2 / 4; grid-row: 2; }
    .dc-room-row > select:nth-of-type(2) { grid-column: 1; grid-row: 3; }
    .dc-room-row .dc-money { grid-column: 2 / 4; grid-row: 3; }

    .dc-rv-card dl, .dc-rv-sec dl { grid-template-columns: 1fr; gap: 2px; }
    .dc-rv-card dd, .dc-rv-sec dd { margin-bottom: 8px; }

    .dc-actions { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5;
        margin: 20px -16px -16px; padding: 12px 16px; background: rgba(255,255,255,.96);
        border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .dc-actions .btn { height: 46px; }
    #dc-next { flex: 1; justify-content: center; min-width: 0; }
    .dc-next-to { display: none; }
    .dc-toast { top: calc(80px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -12px); }

    .dc-deals-search { width: 100%; margin-left: 0; }
    .dc-stats { grid-template-columns: 1fr 1fr; }
    .dc-stats .dc-stat:last-child { grid-column: 1 / -1; }
    .dc-deal-row.head { display: none; }
    .dc-deal-row {
        grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px;
        border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px;
    }
    .dc-d-client { grid-column: 1; }
    .dc-d-value { grid-column: 2; grid-row: 1; align-items: flex-end !important; }
    .dc-d-pkg { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 6px !important; }
    .dc-d-when { grid-column: 1; }
    .dc-d-act { grid-column: 2; }

    .dc-modal { padding: 0; align-items: flex-end; }
    .dc-modal-card { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; }
    .dc-modal-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
    .dc-modal-foot .btn { flex: 1; justify-content: center; }
}

/* =====================================================================
   YES! blast (deal closed with an image)
   ===================================================================== */
.deal-yes-img { display: none; }
#deal-closed-overlay.has-yes .deal-loader { display: none; }
#deal-closed-overlay.has-yes .deal-loader-container { position: relative; min-height: 230px; min-width: 230px; margin-top: -8px; }
#deal-closed-overlay.has-yes .deal-yes-img {
    display: block; position: relative; z-index: 2;
    width: 210px; height: 210px; border-radius: 26px; object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 20px 50px -12px rgba(76, 60, 190, .7), 0 0 0 6px rgba(239, 106, 149, .35);
    transform: scale(0);
}
#deal-closed-overlay.has-yes.active .deal-yes-img { animation: dealYesPop .9s cubic-bezier(.2, 1.6, .4, 1) .1s forwards, dealYesWiggle 2.4s ease-in-out 1.1s infinite; }
#deal-closed-overlay.has-yes .deal-loader-container::before,
#deal-closed-overlay.has-yes .deal-loader-container::after {
    content: ''; position: absolute; left: 50%; top: 50%; pointer-events: none; z-index: 1;
    border-radius: 50%; transform: translate(-50%, -50%) scale(0);
}
/* Rays */
#deal-closed-overlay.has-yes .deal-loader-container::before {
    width: 420px; height: 420px;
    background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .55) 0deg 10deg, transparent 10deg 30deg);
    -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%);
}
/* Shockwave ring */
#deal-closed-overlay.has-yes .deal-loader-container::after {
    width: 260px; height: 260px; border: 6px solid rgba(239, 106, 149, .8);
}
#deal-closed-overlay.has-yes.active .deal-loader-container::before { animation: dealYesRays .7s ease-out forwards, dealYesSpin 12s linear .7s infinite; }
#deal-closed-overlay.has-yes.active .deal-loader-container::after { animation: dealYesRing 1s ease-out .15s forwards; }
#deal-closed-overlay.has-yes .deal-closed-card { overflow: visible; }
#deal-closed-overlay.has-yes .deal-closed-card h2 { font-size: 28px; background: var(--pink-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
#deal-closed-overlay.has-yes.active .deal-closed-card { animation: dealYesShake .5s ease .25s; }

@keyframes dealYesPop { 0% { transform: scale(0) rotate(-25deg); } 60% { transform: scale(1.18) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes dealYesWiggle { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.04) rotate(-3deg); } 75% { transform: scale(1.04) rotate(3deg); } }
@keyframes dealYesRays { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes dealYesSpin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dealYesRing { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
@keyframes dealYesShake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1deg); } 40% { transform: translateX(6px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

@media (max-width: 760px) {
    #deal-closed-overlay.has-yes .deal-yes-img { width: 170px; height: 170px; }
    #deal-closed-overlay.has-yes .deal-loader-container { min-height: 190px; min-width: 190px; }
    #deal-closed-overlay.has-yes .deal-loader-container::before { width: 320px; height: 320px; }
    #deal-closed-overlay.has-yes .deal-closed-card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #deal-closed-overlay.has-yes.active .deal-yes-img { animation: none; transform: none; }
    #deal-closed-overlay.has-yes.active .deal-loader-container::before { animation: none; transform: translate(-50%, -50%); opacity: 1; }
    #deal-closed-overlay.has-yes.active .deal-loader-container::after,
    #deal-closed-overlay.has-yes.active .deal-closed-card { animation: none; }
}

/* ContentOS sync status on closed deals */
.dc-cos { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.6; border: 0; text-decoration: none; white-space: nowrap; width: fit-content; }
.dc-cos.sent { background: var(--violet-soft); color: var(--violet); }
.dc-cos.sending { background: var(--amber-soft); color: var(--amber); }
.dc-cos.failed { background: rgba(229, 72, 77, .1); color: var(--red); cursor: pointer; }
.dc-cos.failed:hover { background: rgba(229, 72, 77, .18); }
.dc-cos.failed:disabled { opacity: .6; cursor: progress; }
.dc-modal-head [data-cos-slot] .dc-cos { margin-top: 8px; }
