/* ============================================
   CAMPAIGN MODALLARI — ORTAK DİL
   Harita/menü/pazarlık dili: lacivert cam panel,
   altın + turkuaz aksan, kompakt tipografi, SVG ikon
   ============================================ */

#cm-buy-modal,
#cm-building-select-modal,
#cm-material-modal {
    z-index: 25;
}

#cm-buyback-modal {
    z-index: 26;
}

#cm-collapse-modal {
    z-index: 30;
}

.cm-modal-inner {
    --cm-gold: #f3b53a;
    --cm-gold-light: #ffd97a;
    --cm-cyan: #54d9c9;
    --cm-text: #f3ecd8;
    --cm-muted: #8492ad;
    --cm-line: rgba(255, 255, 255, 0.08);
    --cm-panel: rgba(255, 255, 255, 0.025);
    --cm-danger: #ff6b8a;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 344px;
    max-width: 94%;
    max-height: 92%;
    padding: 13px 15px 15px;
    border-radius: 18px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(243, 181, 58, 0.09) 0%, transparent 56%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(7, 12, 21, 0.99) 100%);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: goSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 181, 58, 0.35) transparent;
    box-sizing: border-box;
}

.cm-modal-inner::-webkit-scrollbar { width: 4px; }

.cm-modal-inner::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(243, 181, 58, 0.32);
}

/* --- Başlık --- */

.cm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.cm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cm-gold);
}

.cm-kicker svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.cm-head-badge {
    flex-shrink: 0;
    max-width: 46%;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--cm-line);
    background: rgba(255, 255, 255, 0.05);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--cm-muted);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.cm-modal-sub {
    margin: -2px 0 0;
    font-size: 10px;
    line-height: 1.45;
    color: var(--cm-muted);
}

.cm-section-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-section-label svg {
    width: 11px;
    height: 11px;
    opacity: 0.85;
}

.cm-ico {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.cm-modal-cancel {
    width: 100%;
    box-sizing: border-box;
}

/* --- Buton dili --- */

.btn.cm-btn-gold,
.btn.cm-btn-ghost,
.btn.cm-btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn.cm-btn-gold {
    border: 1px solid rgba(255, 217, 122, 0.55);
    background: linear-gradient(180deg, #ffd97a 0%, #f3b53a 52%, #d9931f 100%);
    color: #231704;
    box-shadow:
        0 6px 18px rgba(243, 181, 58, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn.cm-btn-gold:hover {
    background: linear-gradient(180deg, #ffe49b 0%, #ffc44f 52%, #e0a028 100%);
    border-color: rgba(255, 228, 155, 0.8);
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(243, 181, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.cm-btn-ghost {
    border: 1px solid var(--cm-line);
    background: rgba(255, 255, 255, 0.04);
    color: #cfdaea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn.cm-btn-ghost:hover {
    background: rgba(84, 217, 201, 0.08);
    border-color: rgba(84, 217, 201, 0.28);
    color: var(--cm-cyan);
    transform: translateY(-1px);
}

.btn.cm-btn-danger {
    border: 1px solid rgba(255, 107, 138, 0.34);
    background: rgba(255, 77, 109, 0.1);
    color: #ff9aae;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn.cm-btn-danger:hover {
    background: rgba(255, 77, 109, 0.16);
    border-color: rgba(255, 107, 138, 0.55);
    color: #ffc2ce;
    transform: translateY(-1px);
}

.btn.cm-btn-gold:active,
.btn.cm-btn-ghost:active,
.btn.cm-btn-danger:active {
    transform: translateY(0) scale(0.99);
}

.btn.cm-btn-gold:disabled,
.btn.cm-btn-gold.disabled,
.btn.cm-btn-ghost:disabled,
.btn.cm-btn-danger:disabled {
    opacity: 0.4;
    filter: grayscale(0.35);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn.cm-btn-gold svg,
.btn.cm-btn-ghost svg,
.btn.cm-btn-danger svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* --- Genel aksiyon satırı --- */

.cm-modal-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 1px;
}

.cm-modal-actions .btn {
    flex: 1;
    min-width: 0;
}

/* --- Bina Tipi Seçim Modalı --- */

.cm-building-select-inner {
    width: 348px;
}

.cm-building-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-height: 288px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 181, 58, 0.3) transparent;
}

.cm-building-options::-webkit-scrollbar { width: 3px; }
.cm-building-options::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(243, 181, 58, 0.28);
}

.cm-building-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.cm-building-card:hover {
    transform: translateY(-1px);
    background: rgba(84, 217, 201, 0.06);
    border-color: rgba(84, 217, 201, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.cm-building-card:active {
    transform: scale(0.99);
}

.cm-building-card-color {
    width: 24px;
    height: 34px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.cm-building-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cm-building-card-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--cm-text);
    letter-spacing: 0.3px;
}

.cm-building-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 9px;
    font-weight: 600;
    color: var(--cm-muted);
}

.cm-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cm-stat .cm-ico {
    width: 10px;
    height: 10px;
    color: #7f92ad;
}

.cm-building-card-cost {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    color: var(--cm-gold);
    font-variant-numeric: tabular-nums;
}

.cm-building-card-cost .cm-ico {
    width: 10px;
    height: 10px;
    color: var(--cm-gold);
}

.cm-building-card-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: rgba(255, 107, 138, 0.22);
}

.cm-building-card-disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 107, 138, 0.22);
    box-shadow: none;
}

.cm-building-card-go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    color: var(--cm-muted);
}

.cm-building-card-go .cm-ico {
    width: 13px;
    height: 13px;
}

.cm-building-card:hover .cm-building-card-go {
    color: var(--cm-cyan);
}

.cm-insufficient {
    color: var(--cm-danger);
    font-weight: 800;
    margin-left: 3px;
}

/* --- Onay modalı veri paneli (arsa / yıkım) --- */

.cm-buy-inner {
    width: 316px;
}

.cm-buy-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 4px 11px;
    border-radius: 11px;
    background: var(--cm-panel);
    border: 1px solid var(--cm-line);
    box-sizing: border-box;
}

.cm-buy-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    font-size: 10.5px;
}

.cm-buy-row + .cm-buy-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.cm-buy-label {
    color: var(--cm-muted);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.cm-buy-value {
    color: var(--cm-text);
    font-weight: 800;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.cm-buy-price-value {
    color: var(--cm-gold-light);
    font-weight: 900;
    font-size: 14px;
    text-shadow: 0 0 14px rgba(243, 181, 58, 0.3);
}

.cm-buy-cyan {
    color: var(--cm-cyan);
    text-shadow: 0 0 10px rgba(84, 217, 201, 0.28);
}

.cm-buy-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 107, 138, 0.22);
    color: var(--cm-danger);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: center;
}

.cm-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--cm-muted);
    font-size: 9px;
    line-height: 1.4;
    text-align: center;
}

.cm-note svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--cm-gold);
    opacity: 0.85;
}

/* --- Arsa işlem seçim modalı --- */

.cm-action-inner {
    width: 330px;
}

.cm-action-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 1px;
}

.cm-action-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--cm-line);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cm-action-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.cm-action-btn:active {
    transform: scale(0.995);
}

.cm-action-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cm-line);
    color: var(--cm-muted);
}

.cm-action-ico svg {
    width: 14px;
    height: 14px;
}

.cm-action-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--cm-text);
}

.cm-action-text small {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cm-muted);
}

.cm-action-chev {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--cm-muted);
    opacity: 0.7;
}

.cm-action-gold {
    border-color: rgba(243, 181, 58, 0.24);
    background: linear-gradient(90deg, rgba(243, 181, 58, 0.09), rgba(243, 181, 58, 0.015));
}

.cm-action-gold:hover {
    border-color: rgba(243, 181, 58, 0.45);
    background: linear-gradient(90deg, rgba(243, 181, 58, 0.14), rgba(243, 181, 58, 0.03));
}

.cm-action-gold .cm-action-ico {
    color: var(--cm-gold);
    background: rgba(243, 181, 58, 0.1);
    border-color: rgba(243, 181, 58, 0.2);
}

.cm-action-danger .cm-action-ico {
    color: var(--cm-danger);
    background: rgba(255, 77, 109, 0.09);
    border-color: rgba(255, 107, 138, 0.2);
}

.cm-action-danger:hover {
    border-color: rgba(255, 107, 138, 0.34);
    background: rgba(255, 77, 109, 0.06);
}

.cm-action-list .cm-modal-cancel {
    margin-top: 1px;
}

/* Restorasyon (satıştan önce) + reklam yer tutucu */
.cm-action-restore {
    border-color: rgba(84, 217, 201, 0.26);
    background: linear-gradient(90deg, rgba(84, 217, 201, 0.09), rgba(84, 217, 201, 0.012));
}

.cm-action-restore:hover {
    border-color: rgba(84, 217, 201, 0.48);
    background: linear-gradient(90deg, rgba(84, 217, 201, 0.14), rgba(84, 217, 201, 0.03));
}

.cm-action-restore .cm-action-ico {
    color: #54d9c9;
    background: rgba(84, 217, 201, 0.1);
    border-color: rgba(84, 217, 201, 0.22);
}

.cm-action-restore.is-cooldown {
    opacity: 0.62;
}

.cm-action-restore.is-cooldown:hover {
    opacity: 0.8;
}

.cm-action-ad {
    border-style: dashed;
    opacity: 0.72;
}

.cm-action-ad:hover {
    opacity: 0.85;
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(139, 92, 246, 0.05);
}

.cm-action-ad .cm-action-ico {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(167, 139, 250, 0.22);
}

.cm-action-ad .cm-action-text small {
    color: #a78bfa;
    opacity: 0.85;
}

/* --- Malzeme Satın Alma Modalı --- */

.cm-material-inner {
    width: 344px;
}

.cm-material-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 9px;
    background: var(--cm-panel);
    border: 1px solid var(--cm-line);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-material-balance-value {
    color: var(--cm-gold-light);
    font-size: 13px;
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
}

.cm-material-shop {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
}

.cm-material-unit-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
}

.cm-material-unit-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cm-material-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--cm-gold);
    background: rgba(243, 181, 58, 0.09);
    border: 1px solid rgba(243, 181, 58, 0.18);
}

.cm-material-icon svg {
    width: 15px;
    height: 15px;
}

.cm-material-name {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--cm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-material-unit {
    font-size: 9px;
    font-weight: 700;
    color: var(--cm-cyan);
    font-variant-numeric: tabular-nums;
}

.cm-material-stock {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(84, 217, 201, 0.08);
    border: 1px solid rgba(84, 217, 201, 0.18);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--cm-cyan);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cm-material-qty-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px 11px 10px;
    border-radius: 11px;
    background: var(--cm-panel);
    border: 1px solid var(--cm-line);
}

.cm-material-qty-head,
.cm-material-qty-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.cm-material-field-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-material-qty-readout {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--cm-muted);
    font-variant-numeric: tabular-nums;
}

.cm-material-qty-readout b {
    font-size: 15px;
    letter-spacing: 0.2px;
    color: var(--cm-text);
}

.cm-material-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c98a22 0%, #f3b53a 55%, #54d9c9 100%);
    outline: none;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.cm-material-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4cf, #f3b53a 55%, #c98a22);
    border: 2px solid #0b1320;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(243, 181, 58, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cm-material-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }

.cm-material-slider::-moz-range-thumb {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4cf, #f3b53a 55%, #c98a22);
    border: 2px solid #0b1320;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(243, 181, 58, 0.18);
    cursor: pointer;
}

.cm-material-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cm-material-slider-hint {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-material-total-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cm-material-total {
    font-size: 14px;
    font-weight: 900;
    color: var(--cm-gold-light);
    font-variant-numeric: tabular-nums;
}

.cm-material-warning {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #ff9aae;
    background: rgba(255, 77, 109, 0.09);
    border: 1px solid rgba(255, 107, 138, 0.24);
}

.btn.cm-material-buy-btn {
    width: 100%;
}

.cm-material-buy-btn:disabled,
.cm-material-buy-btn.disabled {
    transform: none;
    box-shadow: none;
}

.cm-material-feedback {
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: center;
    color: #74f0c0;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-variant-numeric: tabular-nums;
}

.cm-material-feedback.is-pop {
    animation: materialPop 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes materialPop {
    0% { transform: scale(0.96); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- Satılmış Bina Geri Alım (NPC Pazarlığı) --- */

.cm-buyback-inner {
    width: 360px;
    max-height: 90%;
    overflow-y: auto;
    gap: 9px;
}

.cm-bb-seller {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--cm-panel);
    border: 1px solid var(--cm-line);
    box-sizing: border-box;
}

.cm-bb-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cm-line);
}

.cm-bb-speech-wrap {
    flex: 1;
    min-width: 0;
}

.cm-bb-building {
    margin: 0 0 3px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c9a75c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-bb-speech {
    margin: 0;
    font-size: 10.5px;
    line-height: 1.45;
    font-weight: 600;
    color: #cfdaea;
}

.cm-bb-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 9px 12px 8px;
    border-radius: 12px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(243, 181, 58, 0.14), transparent 70%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(243, 181, 58, 0.26);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cm-bb-price-block.is-agreed {
    border-color: rgba(84, 217, 201, 0.55);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(84, 217, 201, 0.16), transparent 70%),
        rgba(255, 255, 255, 0.025);
}

.cm-bb-price-label {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c9a75c;
}

.cm-bb-price-block.is-agreed .cm-bb-price-label {
    color: #54d9c9;
}

.cm-bb-price {
    font-size: 27px;
    font-weight: 900;
    line-height: 1.12;
    color: #ffd97a;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cm-bb-price-block.is-agreed .cm-bb-price {
    color: #7cf0e2;
}

.cm-bb-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.cm-bb-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-bb-stat span {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-bb-stat b {
    font-size: 11.5px;
    font-weight: 900;
    color: #e9eef7;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cm-bb-stat b.is-cyan { color: #54d9c9; }

.cm-bb-hint {
    margin: 0;
    font-size: 8.5px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    color: var(--cm-muted);
}

.cm-bb-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cm-bb-actions .btn {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    font-size: 9.5px;
    letter-spacing: 0.5px;
}

.cm-bb-actions .btn .btn-text {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.cm-bb-actions .cm-bb-cancel {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #96a3ba;
    height: 32px;
}

.cm-bb-actions .cm-bb-cancel:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

@keyframes buybackShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* --- Kısa ekranlar --- */

@media (max-height: 700px) {
    .cm-modal-inner {
        gap: 7px;
        padding: 11px 13px 13px;
        border-radius: 15px;
    }

    .cm-building-options { max-height: 230px; }
    .btn.cm-btn-gold,
    .btn.cm-btn-ghost,
    .btn.cm-btn-danger { height: 34px; font-size: 9px; }
}

/* ============================================
   PAZARLIK PANELİ (Bidding Modal)
   Harita/menü dili: lacivert cam panel, altın + turkuaz aksan, SVG ikon
   ============================================ */

#bidding-panel {
    z-index: 20;
    --bp-gold: #f3b53a;
    --bp-gold-light: #ffd97a;
    --bp-cyan: #54d9c9;
    --bp-text: #f3ecd8;
    --bp-muted: #8492ad;
    --bp-line: rgba(255, 255, 255, 0.08);
}

.bp-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(90% 60% at 50% 18%, rgba(15, 32, 54, 0.5) 0%, transparent 70%),
        rgba(3, 7, 13, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bp-modal {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 360px;
    max-width: 94%;
    max-height: 92%;
    padding: 13px 15px 15px;
    border-radius: 18px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(243, 181, 58, 0.09) 0%, transparent 56%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(7, 12, 21, 0.99) 100%);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: goSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 181, 58, 0.35) transparent;
}

.bp-modal::-webkit-scrollbar { width: 4px; }
.bp-modal::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(243, 181, 58, 0.32);
}

/* --- Başlık --- */

.bp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--bp-gold);
}

.bp-kicker svg { width: 13px; height: 13px; }

.bp-round {
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--bp-line);
    background: rgba(255, 255, 255, 0.05);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--bp-muted);
    font-variant-numeric: tabular-nums;
}

/* --- Müşteri Avatar + Konuşma Balonu --- */

.bp-customer {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.bp-avatar-wrap {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    padding: 2.5px;
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(243, 181, 58, 0.85), rgba(84, 217, 201, 0.4));
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(243, 181, 58, 0.15);
}

.bp-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0b1320;
    border: 2px solid #0b1320;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* NPC Mood Renkleri */
.bp-avatar.mood-happy { border-color: rgba(84, 217, 201, 0.75); }
.bp-avatar.mood-sus { border-color: rgba(243, 181, 58, 0.75); }
.bp-avatar.mood-angry {
    border-color: rgba(255, 92, 120, 0.8);
    animation: avatarShake 0.4s ease-out;
}

@keyframes avatarShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px) rotate(-2deg); }
    40% { transform: translateX(3px) rotate(2deg); }
    60% { transform: translateX(-2px) rotate(-1deg); }
    80% { transform: translateX(2px) rotate(1deg); }
}

.bp-speech-bubble {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 10px 13px;
    border-radius: 4px 12px 12px 12px;
    background: linear-gradient(180deg, rgba(20, 34, 52, 0.96), rgba(11, 19, 31, 0.96));
    border: 1px solid var(--bp-line);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.bp-speech-bubble::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 13px;
    width: 9px;
    height: 9px;
    background: #142233;
    border-left: 1px solid var(--bp-line);
    border-bottom: 1px solid var(--bp-line);
    transform: rotate(45deg);
    border-radius: 0 0 0 2px;
}

.bp-speech-bubble.mood-happy { border-color: rgba(84, 217, 201, 0.3); box-shadow: 0 2px 14px rgba(84, 217, 201, 0.08); }
.bp-speech-bubble.mood-sus {
    border-color: rgba(243, 181, 58, 0.3);
    background: linear-gradient(180deg, rgba(36, 32, 18, 0.95), rgba(17, 15, 9, 0.96));
    box-shadow: 0 2px 14px rgba(243, 181, 58, 0.08);
}
.bp-speech-bubble.mood-angry {
    border-color: rgba(255, 92, 120, 0.32);
    background: linear-gradient(180deg, rgba(40, 19, 26, 0.96), rgba(17, 9, 13, 0.97));
    box-shadow: 0 2px 14px rgba(255, 92, 120, 0.08);
}

.bp-speech-bubble.mood-sus::before {
    background: #241f12;
    border-color: rgba(243, 181, 58, 0.3);
}

.bp-speech-bubble.mood-angry::before {
    background: #28131a;
    border-color: rgba(255, 92, 120, 0.32);
}

.bp-npc-name {
    display: block;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--bp-gold);
    margin-bottom: 3px;
    opacity: 0.9;
}

.bp-speech-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #e8eef6;
    min-height: 34px;
}

/* --- Ortak mikro etiket --- */

.bp-section-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bp-muted);
}

.bp-section-label svg {
    width: 11px;
    height: 11px;
    opacity: 0.85;
}

/* --- NPC Patience (Tahammül) Barı --- */

.bp-patience-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-patience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.bp-patience-value {
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--bp-cyan);
    font-variant-numeric: tabular-nums;
    transition: color 0.5s ease;
}

.bp-patience-bar-bg {
    width: 100%;
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.bp-patience-bar-fill {
    height: 100%;
    width: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #2b9c90, #54d9c9);
    box-shadow: 0 0 8px rgba(84, 217, 201, 0.32);
    transition: width 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease;
}

.bp-patience-bar-fill.is-mid {
    background: linear-gradient(90deg, #c98a22, #f3b53a);
    box-shadow: 0 0 8px rgba(243, 181, 58, 0.35);
}

.bp-patience-bar-fill.is-low {
    background: linear-gradient(90deg, #c2304c, #ff4d6d);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
}

@keyframes patienceShake {
    0%, 100% { transform: translateX(0); }
    10%      { transform: translateX(-4px); }
    20%      { transform: translateX(4px); }
    30%      { transform: translateX(-3px); }
    40%      { transform: translateX(3px); }
    50%      { transform: translateX(-2px); }
    60%      { transform: translateX(2px); }
    70%      { transform: translateX(-1px); }
    80%      { transform: translateX(1px); }
}

.patience-shake { animation: patienceShake 0.4s ease-out; }

.patience-shake .bp-patience-bar-bg {
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

/* --- Kalite + Yıldızlar --- */

.bp-quality-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--bp-line);
}

.bp-quality-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bp-quality-value {
    font-size: 11px;
    font-weight: 900;
    color: var(--bp-gold);
    font-variant-numeric: tabular-nums;
}

.bp-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 1px 0;
}

.bp-star {
    width: 21px;
    height: 21px;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.bp-star.is-empty {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.bp-star.is-full {
    filter: drop-shadow(0 2px 6px rgba(243, 181, 58, 0.35));
}

.bp-star-active { animation: starPop 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes starPop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); opacity: 1; }
}

.bp-progress-bg {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bp-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff4d6d 0%, #f3b53a 55%, #54d9c9 100%);
    box-shadow: 0 0 10px rgba(243, 181, 58, 0.35);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Teklif Bilgileri --- */

.bp-offers-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bp-offer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--bp-line);
}

.bp-offer-npc {
    border-color: rgba(243, 181, 58, 0.16);
    background: linear-gradient(90deg, rgba(243, 181, 58, 0.07), rgba(243, 181, 58, 0.01));
}

.bp-offer-player {
    border-color: rgba(84, 217, 201, 0.16);
    background: linear-gradient(90deg, rgba(84, 217, 201, 0.07), rgba(84, 217, 201, 0.01));
}

.bp-offer-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bp-muted);
}

.bp-offer-label svg {
    width: 12px;
    height: 12px;
    opacity: 0.9;
}

.bp-offer-amount {
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: var(--bp-gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(243, 181, 58, 0.22);
}

.bp-player-amount {
    color: var(--bp-cyan);
    text-shadow: 0 0 12px rgba(84, 217, 201, 0.22);
}

.bp-profit-indicator {
    align-self: flex-end;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
    background: rgba(84, 217, 201, 0.1);
    border: 1px solid rgba(84, 217, 201, 0.25);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.bp-profit-positive { color: #6ff0dd; }

.bp-profit-negative {
    color: #ff6b86;
    background: rgba(255, 77, 109, 0.1);
    border-color: rgba(255, 77, 109, 0.28);
}

/* --- Maliyet Hesabı --- */

.bp-cost-section {
    width: 100%;
    padding: 8px 11px 9px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--bp-line);
}

.bp-cost-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 6px;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bp-muted);
}

.bp-cost-header svg { width: 12px; height: 12px; }

.bp-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 2.5px 0;
}

.bp-cost-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(220, 230, 244, 0.66);
}

.bp-cost-label svg {
    width: 12px;
    height: 12px;
    color: #7f92ad;
}

.bp-cost-val {
    font-size: 11px;
    font-weight: 700;
    color: var(--bp-text);
    font-variant-numeric: tabular-nums;
}

/* Geri alım + restorasyon yatırımı (arsa/inşaat tabanı yerine) */
#bp-cost-invest-row .bp-cost-label svg { color: #54d9c9; }
#bp-cost-invest { color: #54d9c9; font-weight: 800; }

.bp-cost-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.09);
    margin: 5px 0;
}

.bp-cost-total-row .bp-cost-label {
    font-weight: 800;
    color: var(--bp-text);
}

.bp-cost-total-row .bp-cost-label svg { color: var(--bp-gold); }

.bp-cost-total-val {
    font-size: 13.5px;
    font-weight: 900;
    color: var(--bp-gold);
    text-shadow: 0 0 10px rgba(243, 181, 58, 0.22);
}

/* --- Fiyat Slider --- */

.bp-slider-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.bp-slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.bp-slider-value {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: var(--bp-gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 16px rgba(243, 181, 58, 0.28);
}

.bp-slider-track-container {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    align-items: center;
}

.bp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 7px;
    border-radius: 999px;
    /* Düşük teklif güvenli (yeşil), yüksek teklif riskli (kırmızı). */
    background: linear-gradient(90deg, #54d9c9 0%, #f3b53a 58%, #c98a22 78%, #7a2536 100%);
    outline: none;
    cursor: pointer;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.bp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4cf, #f3b53a 55%, #c98a22);
    border: 2px solid #0b1320;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(243, 181, 58, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.bp-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }

.bp-slider::-moz-range-thumb {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff4cf, #f3b53a 55%, #c98a22);
    border: 2px solid #0b1320;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.55),
        0 0 0 3px rgba(243, 181, 58, 0.18);
    cursor: pointer;
}

.bp-slider-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #63728c;
}

/* --- Aksiyon Butonları --- */

.bp-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    padding-top: 2px;
}

.bp-actions .btn {
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 6px;
}

.bp-btn-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.bp-btn-ico svg { width: 14px; height: 14px; }

.bp-btn-reject {
    flex: 0 0 38%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 92, 120, 0.22);
    color: #ff9fb0;
    box-shadow: none;
}

.bp-btn-reject:hover {
    background: rgba(255, 77, 109, 0.12);
    border-color: rgba(255, 92, 120, 0.5);
    color: #ffd3da;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.18);
}

.bp-btn-submit {
    flex: 1;
    background: linear-gradient(180deg, #ffd97a 0%, #f3b53a 52%, #d9931f 100%);
    border: 1px solid rgba(255, 217, 122, 0.55);
    color: #231704;
    box-shadow:
        0 6px 18px rgba(243, 181, 58, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bp-btn-submit:hover {
    background: linear-gradient(180deg, #ffe49b 0%, #ffc44f 52%, #e0a028 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(243, 181, 58, 0.35);
}

.bp-btn-submit .bp-ico-accept { display: none; }

.bp-btn-submit.bp-btn-submit-accept {
    background: linear-gradient(180deg, #8bf0e0 0%, #54d9c9 55%, #2b9c90 100%);
    border-color: rgba(139, 240, 224, 0.55);
    color: #042522;
    box-shadow:
        0 6px 18px rgba(84, 217, 201, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bp-btn-submit.bp-btn-submit-accept .bp-ico-offer { display: none; }
.bp-btn-submit.bp-btn-submit-accept .bp-ico-accept { display: block; }

.bp-actions .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Kısa ekranlar --- */

@media (max-height: 760px) {
    .bp-modal { gap: 7px; padding: 11px 13px 13px; }
    .bp-avatar-wrap { width: 58px; height: 58px; }
    .bp-stars { gap: 5px; }
    .bp-star { width: 19px; height: 19px; }
    .bp-speech-text { min-height: 24px; }
    .bp-cost-section { padding: 6px 10px 7px; }
    .bp-actions .btn { height: 39px; }
    .bp-slider-value { font-size: 17px; }
}

@media (max-height: 680px) {
    .bp-cost-row { padding: 1.5px 0; }
    .bp-offer-row { padding: 6px 9px; }
    .bp-quality-section { padding: 6px 9px; }
}

@media (max-height: 620px) {
    .bp-modal { gap: 5px; padding: 9px 12px 10px; border-radius: 15px; }
    .bp-avatar-wrap { width: 50px; height: 50px; }
    .bp-speech-bubble { padding: 6px 9px; }
    .bp-speech-text { min-height: 20px; font-size: 10.5px; }
    .bp-quality-section { gap: 3px; padding: 5px 8px; }
    .bp-stars { gap: 4px; }
    .bp-star { width: 17px; height: 17px; }
    .bp-offers-section { gap: 4px; }
    .bp-cost-section { padding: 5px 9px 6px; }
    .bp-cost-header { padding-bottom: 4px; margin-bottom: 3px; }
    .bp-cost-divider { margin: 3px 0; }
    .bp-slider-section { gap: 3px; }
    .bp-slider-value { font-size: 16px; }
    .bp-slider-track-container { height: 20px; }
    .bp-actions { padding-top: 0; }
    .bp-actions .btn { height: 36px; font-size: 10px; }
}

/* ============================================
   CAMPAIGN İNŞAAT TAMAMLANDI PANELİ
   Harita/pazarlık dili: lacivert cam panel, altın + turkuaz, SVG ikon
   ============================================ */

#campaign-complete {
    z-index: 15;
    background:
        radial-gradient(90% 60% at 50% 20%, rgba(15, 32, 54, 0.5) 0%, transparent 70%),
        rgba(3, 7, 13, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cc-inner {
    --cc-gold: #f3b53a;
    --cc-gold-light: #ffd97a;
    --cc-cyan: #54d9c9;
    --cc-text: #f3ecd8;
    --cc-muted: #8492ad;
    --cc-line: rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 342px;
    max-width: 94%;
    max-height: 92%;
    padding: 13px 15px 15px;
    border-radius: 18px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(243, 181, 58, 0.09) 0%, transparent 56%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(7, 12, 21, 0.99) 100%);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: goSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 181, 58, 0.35) transparent;
    box-sizing: border-box;
}

.cc-inner::-webkit-scrollbar { width: 4px; }
.cc-inner::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(243, 181, 58, 0.32);
}

/* --- Başlık --- */

.cc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cc-gold);
}

.cc-kicker svg { width: 13px; height: 13px; }

.cc-badge {
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--cc-line);
    background: rgba(255, 255, 255, 0.05);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--cc-muted);
    font-variant-numeric: tabular-nums;
}

/* --- Kalite özeti --- */

.cc-hero {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cc-line);
}

.cc-hero-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.cc-section-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cc-muted);
}

.cc-section-label svg {
    width: 11px;
    height: 11px;
    opacity: 0.85;
}

.cc-quality-value {
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    color: var(--cc-gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 16px rgba(243, 181, 58, 0.32);
}

.cc-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 1px 0;
}

.cc-stars img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.cc-stars img.is-empty {
    opacity: 0.42;
    filter: grayscale(0.4);
}

.cc-stars img.is-full {
    filter: drop-shadow(0 2px 6px rgba(243, 181, 58, 0.35));
}

.cc-quality-bar-bg {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.cc-quality-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff4d6d 0%, #f3b53a 55%, #54d9c9 100%);
    box-shadow: 0 0 10px rgba(243, 181, 58, 0.35);
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Kazanılan XP --- */

.cc-xp-panel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 9px 11px 10px;
    border-radius: 11px;
    background: linear-gradient(90deg, rgba(243, 181, 58, 0.07), rgba(243, 181, 58, 0.01));
    border: 1px solid rgba(243, 181, 58, 0.16);
}

.cc-xp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cc-xp-value {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: var(--cc-gold-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 12px rgba(243, 181, 58, 0.3);
    animation: ccXpPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes ccXpPop {
    0% { transform: scale(0.88); }
    62% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cc-xp-quick-tags {
    display: flex;
    gap: 4px;
}

.cc-xp-tag {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cc-line);
    font-size: 9px;
    font-weight: 800;
    color: #cfdaea;
    font-variant-numeric: tabular-nums;
}

.cc-xp-tag svg {
    width: 10px;
    height: 10px;
    opacity: 0.85;
    color: var(--cc-gold);
}

.cc-xp-tag-ico {
    width: 9px;
    height: 9px;
    object-fit: contain;
}

/* --- Detaylar Dropdown --- */

.cc-details-wrapper {
    width: 100%;
}

.cc-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cc-line);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cc-details-toggle:hover {
    background: rgba(84, 217, 201, 0.07);
    border-color: rgba(84, 217, 201, 0.25);
}

.cc-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cc-muted);
    transition: color 0.2s ease;
}

.cc-toggle-label svg {
    width: 12px;
    height: 12px;
}

.cc-details-toggle:hover .cc-toggle-label {
    color: var(--cc-cyan);
}

.cc-toggle-arrow {
    display: inline-flex;
    width: 12px;
    height: 12px;
    color: var(--cc-muted);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-toggle-arrow svg {
    width: 12px;
    height: 12px;
}

.cc-toggle-open .cc-toggle-arrow {
    transform: rotate(180deg);
}

.cc-quality-details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease,
                margin-top 0.2s ease;
    margin-top: 0;
}

.cc-quality-details:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 238px;
    overflow-y: auto;
    opacity: 1;
    margin-top: 6px;
    padding-right: 2px;
}

/* Slim Scrollbar */
.cc-quality-details::-webkit-scrollbar {
    width: 3px;
}
.cc-quality-details::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.cc-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.cc-detail-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cc-detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #7f92ad;
}

.cc-detail-icon svg {
    width: 13px;
    height: 13px;
}

.cc-detail-icon img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.cc-detail-info {
    flex: 1;
    min-width: 0;
}

.cc-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.cc-detail-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #cfdaea;
    letter-spacing: 0.2px;
}

.cc-detail-value {
    font-size: 9.5px;
    font-weight: 900;
    color: var(--cc-gold);
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
}

.cc-detail-bar-bg {
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    margin-top: 4px;
}

.cc-detail-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.cc-bar-precision {
    background: linear-gradient(90deg, #ff6b8a, #f3b53a);
}

.cc-bar-stability {
    background: linear-gradient(90deg, #2b9c90, #54d9c9);
}

.cc-bar-integrity {
    background: linear-gradient(90deg, #c98a22, #7be3a2);
}

.cc-bar-capacity {
    background: linear-gradient(90deg, #8b8ff5, #c084fc);
}

.cc-detail-desc {
    display: none;
}

/* --- XP Dağılımı --- */

.cc-xp-section-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 1px;
    padding-top: 6px;
    border-top: 1px dashed rgba(243, 181, 58, 0.2);
}

.cc-xp-section-title {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.6px;
    color: var(--cc-gold);
    text-transform: uppercase;
    opacity: 0.85;
}

.cc-xp-detail-row {
    background: rgba(243, 181, 58, 0.035);
    border-color: rgba(243, 181, 58, 0.12);
}

.cc-xp-detail-row:hover {
    background: rgba(243, 181, 58, 0.07);
}

.cc-xp-detail-row .cc-detail-icon {
    color: var(--cc-gold);
}

.cc-xp-badge-val {
    color: var(--cc-cyan) !important;
    text-shadow: 0 0 8px rgba(84, 217, 201, 0.3);
}

/* --- Devam butonu --- */

.cc-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 217, 122, 0.55);
    background: linear-gradient(180deg, #ffd97a 0%, #f3b53a 52%, #d9931f 100%);
    color: #231704;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow:
        0 6px 18px rgba(243, 181, 58, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cc-continue-btn:hover {
    background: linear-gradient(180deg, #ffe49b 0%, #ffc44f 52%, #e0a028 100%);
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(243, 181, 58, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cc-continue-btn:active {
    transform: translateY(0);
}

.cc-btn-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.cc-btn-ico svg {
    width: 14px;
    height: 14px;
}

/* --- Kısa ekranlar --- */

@media (min-height: 780px) {
    .cc-quality-details:not(.hidden) { max-height: 340px; }
}

@media (max-height: 760px) {
    .cc-inner { gap: 7px; padding: 11px 13px 13px; }
    .cc-hero { padding: 8px 10px 9px; gap: 6px; }
    .cc-xp-panel { padding: 7px 10px 8px; gap: 5px; }
    .cc-stars img { width: 19px; height: 19px; }
    .cc-quality-value { font-size: 19px; }
    .cc-detail-row { padding: 5px 8px; }
}

@media (max-height: 660px) {
    .cc-inner { gap: 6px; padding: 10px 12px 11px; border-radius: 15px; }
    .cc-quality-value { font-size: 18px; }
    .cc-xp-value { font-size: 14px; }
    .cc-continue-btn { height: 36px; font-size: 10px; }
    .cc-quality-details:not(.hidden) {
        max-height: 176px;
        -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent 100%);
    }
}

/* --- Satış Özeti Modalı --- */
.cm-sale-result-inner {
    width: 336px;
    max-height: 88%;
    gap: 10px;
    overflow-y: auto;
}

.cm-sr-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 12px 11px;
    border-radius: 14px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(243, 181, 58, 0.16), transparent 68%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(243, 181, 58, 0.3);
}

.cm-sr-label {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #c9a75c;
}

.cm-sr-price {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    color: #ffd97a;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 18px rgba(243, 181, 58, 0.35);
}

.cm-sr-building {
    font-size: 10px;
    font-weight: 700;
    color: #a8b5cb;
    text-align: center;
}

.cm-sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.cm-sr-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-sr-stat span {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8492ad;
}

.cm-sr-stat b {
    font-size: 13px;
    font-weight: 900;
    color: #e9eef7;
    font-variant-numeric: tabular-nums;
}

.cm-sr-stat b.is-gain { color: #4be3aa; }
.cm-sr-stat b.is-loss { color: #ff7d8f; }

.cm-sr-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.cm-sr-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9.5px;
}

.cm-sr-meta-row > span:first-child {
    flex: 1;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8492ad;
}

.cm-sr-meta-row b {
    font-size: 10.5px;
    font-weight: 900;
    color: #e9eef7;
}

.cm-sr-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.cm-sr-stars img {
    width: 9px;
    height: 9px;
    object-fit: contain;
}

.cm-sr-close {
    width: 100%;
    height: 40px;
}


/* ============================================
   CAMPAIGN UI — KAT SAYACI (İnşaat sırasında)
   ============================================ */

#ui-campaign-floor {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(69, 168, 102, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    z-index: 11;
}


/* ============================================
   SEVİYE ATLAMA (LEVEL UP) MODALI
   ============================================ */

#cm-levelup-modal {
    z-index: 30;
}

.cm-levelup-inner {
    position: relative;
    width: 312px;
    align-items: center;
    gap: 10px;
    text-align: center;
    overflow: hidden;
    border-color: rgba(243, 181, 58, 0.34);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 60px rgba(243, 181, 58, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cm-levelup-inner::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(243, 181, 58, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.cm-levelup-inner > * {
    position: relative;
    z-index: 1;
}

.cm-levelup-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    width: 100%;
    padding: 11px 14px 12px;
    border-radius: 13px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(243, 181, 58, 0.14) 0%, transparent 70%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-sizing: border-box;
}

.cm-levelup-badge {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1.5px;
    color: var(--cm-gold-light);
    text-shadow: 0 0 26px rgba(243, 181, 58, 0.45);
    font-variant-numeric: tabular-nums;
    animation: levelBadgePop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-levelup-rank {
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cm-cyan);
}

.cm-levelup-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.cm-lu-perk-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
    text-align: left;
}

.cm-lu-unlock-item {
    background: rgba(84, 217, 201, 0.05);
    border-color: rgba(84, 217, 201, 0.2);
}

.cm-lu-perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    border-radius: 8px;
    color: var(--cm-gold);
    background: rgba(243, 181, 58, 0.1);
    border: 1px solid rgba(243, 181, 58, 0.2);
}

.cm-lu-unlock-item .cm-lu-perk-icon {
    color: var(--cm-cyan);
    background: rgba(84, 217, 201, 0.09);
    border-color: rgba(84, 217, 201, 0.22);
}

.cm-lu-perk-icon svg {
    width: 13px;
    height: 13px;
}

.cm-lu-perk-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cm-lu-perk-title {
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-lu-perk-desc {
    font-size: 10px;
    font-weight: 800;
    color: var(--cm-gold-light);
}

.cm-lu-unlock-item .cm-lu-perk-desc {
    color: var(--cm-cyan);
}

.btn.cm-btn-gold.cm-levelup-btn {
    width: 100%;
    margin-top: 1px;
}

@keyframes levelBadgePop {
    0% { transform: scale(0.5); }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); }
}


/* ===== MODAL Z-INDEX HİYERARŞİSİ ===== */
/* Modallar campaign map overlay'inin (z-index:10) üzerinde görünmeli */

#cm-missions-modal,
#cm-buy-modal,
#cm-building-select-modal,
#cm-plot-action-modal,
#cm-demolish-modal,
#cm-estate-modal,
#cm-supervisor-shop-modal,
#cm-material-modal,
#cm-levelup-modal,
#cm-estate-building-done-modal,
#cm-estate-summary-modal,
#cm-demolition-modal,
#bidding-panel {
    z-index: 20;
}


/* ===== SİTE: ARA BİNA TAMAMLANDI MODALI ===== */

.cm-ebd-inner {
    width: 306px;
    gap: 9px;
    border-color: rgba(84, 217, 201, 0.24);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cm-ebd-progress {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.cm-ebd-dot {
    width: 26px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.09);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.cm-ebd-dot-done {
    background: linear-gradient(90deg, #f3b53a, #ffd97a);
    box-shadow: 0 0 8px rgba(243, 181, 58, 0.45);
}

.cm-ebd-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 12px 13px;
    border-radius: 13px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(243, 181, 58, 0.1) 0%, transparent 70%),
        rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
    box-sizing: border-box;
}

.cm-ebd-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 28px;
}

.cm-ebd-stars img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.cm-ebd-quality-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.cm-ebd-quality {
    font-size: 17px;
    font-weight: 900;
    color: var(--cm-gold-light);
    text-shadow: 0 0 14px rgba(243, 181, 58, 0.3);
    font-variant-numeric: tabular-nums;
}

.cm-ebd-bar-bg {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.cm-ebd-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #54d9c9, #f3b53a);
    box-shadow: 0 0 10px rgba(243, 181, 58, 0.4);
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-ebd-xp {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(84, 217, 201, 0.06);
    border: 1px solid rgba(84, 217, 201, 0.18);
    box-sizing: border-box;
}

.cm-ebd-xp svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--cm-cyan);
}

.cm-ebd-xp-label {
    flex: 1;
    text-align: left;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.cm-ebd-xp-val {
    font-size: 12px;
    font-weight: 900;
    color: var(--cm-cyan);
    font-variant-numeric: tabular-nums;
}

.btn.cm-btn-gold.cm-ebd-btn {
    width: 100%;
    margin-top: 2px;
}

/* --- Bina Çöktü Modalı --- */

.cm-collapse-inner {
    width: 344px;
    border-color: rgba(255, 107, 138, 0.3);
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(255, 107, 138, 0.13) 0%, transparent 58%),
        linear-gradient(180deg, rgba(26, 18, 27, 0.98) 0%, rgba(9, 10, 16, 0.99) 100%);
}

.cm-collapse-kicker {
    color: var(--cm-danger);
}

.cm-badge-danger {
    border-color: rgba(255, 107, 138, 0.38);
    background: rgba(255, 107, 138, 0.12);
    color: var(--cm-danger);
}

.cm-collapse-title {
    margin: 1px 0 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: var(--cm-text);
}

.cm-collapse-desc {
    margin: -3px 0 1px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--cm-muted);
}

.cm-collapse-gauge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 107, 138, 0.07);
    border: 1px solid rgba(255, 107, 138, 0.22);
}

.cm-collapse-gauge-label {
    flex-shrink: 0;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.4px;
    color: var(--cm-danger);
}

.cm-collapse-gauge-bg {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.cm-collapse-gauge-fill {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff6b8a, #ffa1b6);
    box-shadow: 0 0 10px rgba(255, 107, 138, 0.6);
}

.cm-collapse-gauge-value {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 900;
    color: var(--cm-danger);
    font-variant-numeric: tabular-nums;
}

.cm-buy-danger {
    color: var(--cm-danger);
    text-shadow: 0 0 10px rgba(255, 107, 138, 0.25);
}
