/* ============================================================
   CAMPAIGN HARİTA EKRANI
   Düzen: HUD → bölge yolu → kare tahta → ölçek/zoom → parsel kartı → dock
   ============================================================ */

#campaign-map {
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(24, 39, 66, 0.55) 0%, transparent 60%),
        linear-gradient(180deg, #060c16 0%, #0a1220 40%, #080e1a 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 11px 12px 11px;
    gap: 7px;
    overflow: hidden;
    animation: menuFadeIn 0.5s ease-out;
}

/* --- Üst kaynak barları --- */

.cm-hud {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 0 0 auto;
    z-index: 2;
}

.cm-topbar {
    display: flex;
    gap: 7px;
    width: 100%;
}

.cm-res-bar {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(24, 35, 53, 0.92), rgba(11, 17, 28, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cm-res-ico {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cm-res-ico svg { width: 16px; height: 16px; }

.cm-res-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.05;
}

.cm-res-value {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text-primary, #f3ecd8);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cm-res-label {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted, #8492ad);
    text-transform: uppercase;
    margin-top: 2px;
    font-style: normal;
}

.cm-money-bar .cm-res-value { color: var(--accent-gold, #f3b53a); }
.cm-materials-bar .cm-res-value { color: #74c7f0; }
.cm-pop-bar .cm-res-value { color: #a78bfa; }

/* Malzeme barı artık satın alma mağazasını açar */
.cm-materials-bar {
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}

.cm-materials-bar:hover {
    border-color: rgba(116, 199, 240, 0.45);
    background: linear-gradient(180deg, rgba(32, 55, 78, 0.95), rgba(12, 20, 32, 0.95));
}

.cm-materials-bar:active { transform: scale(0.99); }

.cm-materials-bar:focus-visible {
    outline: 2px solid rgba(116, 199, 240, 0.6);
    outline-offset: 2px;
}

.cm-res-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cm-res-plus {
    display: inline-grid;
    place-items: center;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(180deg, #9fe0fb, #3fa6d8);
    color: #05222f;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    font-style: normal;
    box-shadow: 0 1px 4px rgba(63, 166, 216, 0.55);
}

/* --- Prestij barı --- */

.cm-prestige-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 5px 9px 5px 6px;
    border-radius: 11px;
    background: rgba(10, 16, 27, 0.88);
    border: 1px solid rgba(243, 181, 58, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.12s ease;
}

.cm-prestige-bar:hover,
.cm-prestige-bar:focus-visible {
    border-color: rgba(243, 181, 58, 0.5);
    background: linear-gradient(180deg, rgba(38, 32, 18, 0.92), rgba(14, 18, 28, 0.94));
}

.cm-prestige-bar:active { transform: scale(0.995); }

.cm-prestige-bar:focus-visible {
    outline: 2px solid rgba(243, 181, 58, 0.6);
    outline-offset: 2px;
}

/* Patron portresi: prestij çubuğunun solunda, geliştirme menüsünü açar. */
.cm-prestige-boss {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(160deg, #ffd97a, #b97c14);
    box-shadow: 0 3px 12px rgba(243, 181, 58, 0.35);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.cm-prestige-boss img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #0d141e;
    display: block;
}

.cm-prestige-level-badge {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #ffd97a, #d9931f);
    color: #231704;
    font-weight: 900;
    font-size: 9px;
    padding: 4px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(243, 181, 58, 0.35);
}

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

.cm-prestige-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.cm-prestige-title {
    font-size: 9px;
    font-weight: 800;
    color: var(--accent-gold, #f3b53a);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cm-prestige-xp {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted, #8492ad);
    font-variant-numeric: tabular-nums;
}

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

.cm-xp-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e09b26, #ffd97a 60%, #54d9c9);
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(243, 181, 58, 0.5);
}

/* --- Şehir boyutu göstergesi --- */

.cm-zone-track {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 35, 53, 0.92), rgba(11, 17, 28, 0.92));
    border: 1px solid rgba(84, 217, 201, 0.22);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    color: #cfe0f5;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.cm-city-size-ico {
    font-size: 12px;
    line-height: 1;
}

.cm-city-size-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--text-muted, #8492ad);
}

.cm-city-size-value {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: var(--accent-cyan, #54d9c9);
    white-space: nowrap;
}

/* Büyüme duyurusu: yeni bölge açıldığında rozet parlar. */
@keyframes cmCityGrow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(84, 217, 201, 0.55); }
    35% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(84, 217, 201, 0.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(84, 217, 201, 0); }
}

.cm-zone-track.is-growing {
    animation: cmCityGrow 0.85s ease-out 2;
    border-color: rgba(84, 217, 201, 0.75);
}

.cm-zone-track.is-growing .cm-city-size-value {
    text-shadow: 0 0 10px rgba(84, 217, 201, 0.9);
}

/* --- Tahta --- */

.cm-board-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    margin: 0;
    touch-action: none;
    overscroll-behavior: contain;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.cm-board-wrap.is-panning {
    cursor: grabbing;
}

.cm-grid {
    position: relative;
    display: grid;
    place-content: center;
    border-radius: 12px;
    background: linear-gradient(160deg, #2d2e2a 0%, #292a26 60%, #252622 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.7),
        0 0 0 4px rgba(255, 255, 255, 0.025),
        0 18px 48px rgba(0, 0, 0, 0.55);
    transform-origin: center center;
    transition: none;
    will-change: transform;
    z-index: 2;
}

.cm-lanes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* --- Arsa hücresi --- */

.cm-cell {
    position: relative;
    overflow: hidden;
    border-radius: 3px;
    background: #8b803e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.62), 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1;
    transition: box-shadow 0.15s ease;
}

.cm-cell-plot-img,
.cm-cell > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1.16);
    transition: transform 0.2s ease;
}

.cm-cell:hover > img { transform: scale(1.2); }

.cm-cell-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6, 10, 18, 0) 46%, rgba(6, 10, 18, 0.66) 100%);
}

/* Hücre üstünde sürekli etiket/yıldız/fiyat gösterilmez.
   Arsa bilgileri seçim kartında ve baloncukta görünür. */

/* Seçilen hücrenin üstünde açılan durum balonu */
.cm-map-bubble {
    position: absolute;
    z-index: 8;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 210px;
    padding: 5px 9px 6px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(23, 33, 48, 0.98), rgba(10, 16, 26, 0.98));
    border: 1px solid rgba(243, 181, 58, 0.55);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(243, 181, 58, 0.16);
    pointer-events: none;
    text-align: center;
}

.cm-map-bubble.is-below {
    transform: translate(-50%, 0);
}

.cm-map-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    background: rgba(10, 16, 26, 0.98);
    border-right: 1px solid rgba(243, 181, 58, 0.55);
    border-bottom: 1px solid rgba(243, 181, 58, 0.55);
    transform: rotate(45deg);
}

.cm-map-bubble.is-below::after {
    top: -5px;
    bottom: auto;
    border: 0;
    border-left: 1px solid rgba(243, 181, 58, 0.55);
    border-top: 1px solid rgba(243, 181, 58, 0.55);
}

.cm-map-bubble b {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-map-bubble span {
    font-size: 9px;
    font-weight: 800;
    color: #f6d98a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Belediye */
.cm-cell-belediye {
    box-shadow: 0 0 0 2px rgba(243, 181, 58, 0.85), 0 0 18px rgba(243, 181, 58, 0.25);
}

.cm-cell-belediye > img { filter: sepia(0.5) hue-rotate(-12deg) saturate(1.6) brightness(1.06); }

.cm-cell-hall-mark {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--cm-cell, 60px) * 0.42);
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
    pointer-events: none;
    transform: translateY(-8%);
}

.cm-cell-belediye .cm-cell-shade {
    background: linear-gradient(180deg, rgba(243, 181, 58, 0.22), rgba(4, 8, 14, 0.55) 85%);
}

.cm-cell-belediye-owned {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.9), 0 0 22px rgba(16, 185, 129, 0.35);
}

/* Seçili */
.cm-cell-selected {
    box-shadow: 0 0 0 2px var(--accent-gold, #ffd97a), 0 0 16px rgba(243, 181, 58, 0.55);
    z-index: 3;
}

/* Kilitli bölge */
.cm-cell-locked {
    cursor: default;
    background: #26241f;
}

.cm-cell-locked > img {
    filter: grayscale(0.92) brightness(0.4) contrast(0.9);
}

.cm-cell-locked::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(5, 9, 16, 0.45);
    pointer-events: none;
}

.cm-cell-lockbox {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    pointer-events: none;
}

.cm-cell-lockbox svg {
    width: 15px;
    height: 15px;
    color: rgba(230, 238, 250, 0.75);
    filter: drop-shadow(0 1px 3px #000);
}

.cm-cell-zone-name {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(220, 230, 245, 0.6);
    text-shadow: 0 1px 3px #000;
}

/* Boş harita gözü (park / şehir dokusu) */
.cm-cell-void {
    cursor: default;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.cm-cell-void.is-park {
    background:
        radial-gradient(circle at 30% 32%, #3c7a45 0 6px, transparent 7px),
        radial-gradient(circle at 70% 58%, #43884a 0 7px, transparent 8px),
        radial-gradient(circle at 38% 78%, #356f3d 0 5px, transparent 6px),
        linear-gradient(155deg, #4e7440 0%, #456639 60%, #3d5c34 100%);
}

/* Tower Omega çevresi: belediye meydanı filler'ı */
.cm-cell-void.is-plaza {
    box-shadow:
        inset 0 0 0 2px rgba(243, 181, 58, 0.18),
        inset 0 0 22px rgba(8, 20, 14, 0.35);
    background:
        radial-gradient(circle at 50% 50%, rgba(243, 181, 58, 0.14) 0 12%, transparent 13%),
        radial-gradient(circle at 26% 30%, #4a8a4e 0 6px, transparent 7px),
        radial-gradient(circle at 74% 34%, #3f7c45 0 6px, transparent 7px),
        radial-gradient(circle at 30% 76%, #3a743f 0 6px, transparent 7px),
        radial-gradient(circle at 70% 72%, #4a8a4e 0 6px, transparent 7px),
        linear-gradient(155deg, #527c43 0%, #46693a 60%, #3d5c34 100%);
}

.cm-cell-void.is-district {
    background:
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0 1px,
            rgba(0, 0, 0, 0.18) 1px 3px,
            rgba(120, 112, 92, 0.16) 3px 13px,
            rgba(0, 0, 0, 0.32) 13px 15px),
        repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.04) 0 1px,
            rgba(0, 0, 0, 0.14) 1px 3px,
            rgba(120, 112, 92, 0.14) 3px 13px,
            rgba(0, 0, 0, 0.3) 13px 15px),
        linear-gradient(150deg, #4c4435, #3a342a);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.cm-cell-void.is-district::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 24% 26%, rgba(255, 214, 140, 0.14) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 66%, rgba(255, 214, 140, 0.1) 0 1px, transparent 2px),
        radial-gradient(circle at 46% 84%, rgba(255, 214, 140, 0.12) 0 1px, transparent 2px);
    pointer-events: none;
}

/* --- Zoom + mektuplar (sağ üst) --- */

.cm-mapmeta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    height: 38px;
    z-index: 2;
}

.cm-mapmeta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mektuplar: harita köşesinde bağımsız zarf ikonu */
.cm-letters-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cfd9ea;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.cm-letters-btn svg {
    width: 18px;
    height: 18px;
}

.cm-letters-btn:hover,
.cm-letters-btn:focus-visible {
    background: rgba(243, 181, 58, 0.14);
    border-color: rgba(243, 181, 58, 0.35);
    color: var(--accent-gold, #ffd97a);
}

.cm-letters-btn:focus-visible {
    outline: 2px solid rgba(243, 181, 58, 0.55);
    outline-offset: 2px;
}

.cm-letters-btn:active { transform: scale(0.95); }

.cm-letters-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd97a, #dda028);
    color: #231704;
    font-size: 9px;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

@media (pointer: coarse) {
    .cm-letters-btn {
        width: 44px;
        height: 44px;
    }
    .cm-letters-btn svg { width: 20px; height: 20px; }
    .cm-letters-badge { top: -6px; right: -6px; }
    .cm-mapmeta { height: 44px; }
}

.cm-zoom-controls {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.cm-zoom-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cfd9ea;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.cm-zoom-btn:hover,
.cm-zoom-btn:focus-visible {
    background: rgba(243, 181, 58, 0.14);
    border-color: rgba(243, 181, 58, 0.35);
    color: var(--accent-gold, #ffd97a);
}

.cm-zoom-btn:focus-visible {
    outline: 2px solid rgba(243, 181, 58, 0.55);
    outline-offset: 2px;
}

.cm-zoom-btn:active { transform: scale(0.94); }

@media (pointer: coarse) {
    .cm-zoom-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* --- Seçili parsel kartı --- */

.cm-plot-card {
    flex: 0 0 auto;
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(24, 35, 53, 0.96), rgba(9, 14, 23, 0.96));
    border: 1px solid rgba(243, 181, 58, 0.26);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    z-index: 2;
}

.cm-plot-card.is-empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(12, 18, 29, 0.6);
    box-shadow: none;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted, #8492ad);
    gap: 7px;
}

.cm-plot-card.is-empty svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.cm-pc-art {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.55);
    background: #8b803e;
}

.cm-pc-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
}

.cm-pc-art.is-estate {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, rgba(52, 211, 153, 0.28), transparent 70%), #0a2b25;
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.6);
}

.cm-pc-art.is-estate span { font-size: 19px; line-height: 1; }

.cm-pc-body {
    flex: 1;
    min-width: 0;
}

.cm-pc-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cm-pc-name strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary, #f3ecd8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.cm-pc-stars img {
    width: 7.5px;
    height: 7.5px;
    object-fit: contain;
}

.cm-pc-meta {
    margin-top: 1px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted, #8492ad);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-pc-meta b { color: #b9c7dd; }

.cm-pc-num {
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.cm-pc-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--accent-gold, #ffd97a);
    font-variant-numeric: tabular-nums;
}

.cm-pc-gain {
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-cyan, #54d9c9);
    white-space: nowrap;
}

.cm-pc-action {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #241704;
    background: linear-gradient(180deg, #ffd97a, #e2a027);
    box-shadow: 0 4px 14px rgba(243, 181, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    white-space: nowrap;
}

.cm-pc-action:active { transform: translateY(1px); }

.cm-pc-action.is-locked {
    background: rgba(255, 255, 255, 0.06);
    color: #96a3ba;
    box-shadow: none;
    cursor: not-allowed;
}

.cm-pc-action.is-ad {
    background: rgba(243, 181, 58, 0.12);
    color: #f3c568;
    box-shadow: inset 0 0 0 1px rgba(243, 181, 58, 0.35);
    padding: 0 9px;
    font-size: 8.5px;
}

.cm-pc-action.is-ad:hover {
    background: rgba(243, 181, 58, 0.2);
}

/* --- Alt: asistan + dock --- */

.cm-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    flex: 0 0 auto;
    z-index: 2;
}

.cm-effect-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
}

.cm-effect-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    animation: effectChipIn 0.3s ease both;
}

.cm-effect-chip.is-supply {
    color: #ffb4a2;
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.28);
}

.cm-effect-chip.is-sway {
    color: #d8c4ff;
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
}

.cm-effect-chip.is-inspector {
    color: #ffd97a;
    background: rgba(243, 181, 58, 0.1);
    border-color: rgba(243, 181, 58, 0.3);
}

@keyframes effectChipIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.cm-assistant {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20, 30, 47, 0.94), rgba(10, 16, 26, 0.94));
    border: 1px solid rgba(84, 217, 201, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    animation: assistantSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes assistantSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cm-assistant-enter {
    animation: assistantSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-avatar {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: linear-gradient(180deg, #23364d, #101a29);
    border: 1px solid rgba(84, 217, 201, 0.45);
    object-fit: cover;
    padding: 2px;
    flex-shrink: 0;
}

.cm-speech-bubble {
    position: relative;
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}

#cm-assistant-text {
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #d7e0ef;
    letter-spacing: 0.2px;
    min-height: 0;
    margin: 0;
}

.cm-dock {
    display: flex;
    gap: 7px;
    width: 100%;
}

.cm-dock-btn {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 32, 49, 0.95), rgba(10, 16, 26, 0.95));
    color: #cfdaea;
    font-family: inherit;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.cm-dock-btn svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.cm-dock-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(243, 181, 58, 0.4);
}

.cm-dock-primary {
    border-color: rgba(243, 181, 58, 0.38);
    background: linear-gradient(180deg, rgba(243, 181, 58, 0.16), rgba(10, 16, 26, 0.95));
    color: var(--accent-gold, #ffd97a);
}
