/* Settings v3 — color picker, eşit yükseklik butonlar, info-icon fix */

#settingsOverlay[hidden] { display: none !important; }
#settingsOverlay {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    animation: wm-fade-up .25s ease;
}

.settings-modal {
    display: flex; flex-direction: column;
    background: rgba(20,20,28,0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    overflow: hidden;
    color: #f3f3f5;
    animation: wm-mount-in .35s cubic-bezier(.2,.8,.2,1);
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: clamp(14px,1.6vw,22px) clamp(18px,2vw,28px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.modal-header h2 {
    font-size: clamp(1rem, 1.2vw + .4rem, 1.4rem);
    margin: 0; font-weight: 700;
}
.close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: inherit; font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
    display: grid; place-items: center;
    padding: 0;
}
.close-btn:hover { background: rgba(255,255,255,0.12); }
.close-btn img {
    width: 16px; height: 16px;
    filter: invert(1);
}

.modal-body { display: flex; flex: 1; min-height: 0; }

.sidebar {
    display: flex; flex-direction: column;
    width: clamp(160px, 16vw, 240px);
    padding: 12px 8px; gap: 4px;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.2);
    overflow-y: auto;
    flex-shrink: 0;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent; border: none;
    cursor: pointer; color: inherit;
    font-size: var(--font-base, .9rem);
    font-family: var(--font-family, inherit);
    text-align: left;
    transition: background .2s;
    width: 100%;
}
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
    box-shadow: inset 3px 0 0 var(--accent);
    font-weight: 600;
}
.nav-icon { font-size: 1.05em; }

.content-area {
    flex: 1; min-width: 0;
    padding: clamp(16px,1.8vw,28px);
    overflow-y: auto;
}
.tab-pane { display: none; }
.tab-pane.active {
    display: block;
    animation: wm-fade-up .3s cubic-bezier(.2,.8,.2,1);
}
.pane-head { margin-bottom: 18px; }
.pane-head h2 { font-size: clamp(1.1rem, 1.4vw + .3rem, 1.6rem); margin: 0 0 4px; }
.pane-sub { font-size: .8rem; opacity: .65; margin: 0; }

.setting-group {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: clamp(12px,1.4vw,20px);
    animation: wm-fade-up .35s ease both;
}

.group-title {
    display: flex; align-items: center; gap: 8px;
    font-size: clamp(.85rem, .9vw + .3rem, 1.05rem);
    margin: 0 0 6px; font-weight: 600;
}
.group-desc {
    font-size: .8rem; opacity: .65; margin: 0 0 12px;
    line-height: 1.5;
}

.setting-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; min-width: 0; }
.setting-info h4 {
    display: flex; align-items: center; gap: 6px;
    font-size: clamp(.82rem, .85vw + .2rem, .98rem);
    margin: 0 0 4px; font-weight: 600;
}
.setting-desc {
    font-size: .78rem; opacity: .62; margin: 0;
    line-height: 1.45;
    max-width: 60ch;
}
.setting-control { flex-shrink: 0; }
.inline-buttons {
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: stretch;        /* eşit yükseklik */
}
.inline-buttons > * { height: 38px; }   /* hepsi 38px */

/* ── Info icon (tooltip) — z-index ve pozisyon fix ───────────────────── */
.info-icon {
    position: relative;
    display: inline-grid; place-items: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: .7rem; cursor: help;
    opacity: .7; transition: .2s;
    user-select: none;
}
.info-icon:hover, .info-icon:focus {
    opacity: 1; background: var(--accent); outline: none;
}
.info-icon::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0,0,0,0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    font-size: .72rem; font-weight: 400;
    text-transform: none; letter-spacing: 0;
    white-space: normal; max-width: 260px; width: max-content;
    color: #fff;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
    z-index: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.info-icon:hover::after, .info-icon:focus::after {
    opacity: 1; visibility: visible;
}

/* ── Switch ──────────────────────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.switch input { display: none; }
.switch .slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 999px; transition: .25s;
}
.switch .slider::before {
    content: '';
    position: absolute; left: 3px; top: 3px;
    height: 18px; width: 18px;
    background: white; border-radius: 50%;
    transition: .25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ── Custom select ───────────────────────────────────────────────────── */
.custom-select {
    position: relative;
    min-width: 160px; cursor: pointer; user-select: none;
    height: 38px;
}
.cs-selected {
    height: 100%;
    padding: 0 32px 0 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex; align-items: center; gap: 8px;
    transition: border-color .2s;
}
.cs-selected::after {
    content: '\25BE';
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%); opacity: .6;
    transition: transform .2s;
    font-style: normal;
}
.custom-select.open .cs-selected::after { transform: translateY(-50%) rotate(180deg); }
.cs-selected img { width: 18px; height: 18px; border-radius: 3px; }
.cs-items {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px);
    background: rgba(20,20,28,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 4px;
    max-height: 240px; overflow-y: auto;
    z-index: 5;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: .18s;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.custom-select.open .cs-items { opacity: 1; visibility: visible; transform: translateY(0); }
.cs-item {
    padding: 8px 12px; border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background .15s;
}
.cs-item:hover { background: rgba(255,255,255,0.08); }
.cs-item.selected { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.cs-item img { width: 18px; height: 18px; border-radius: 3px; }

/* ── Inputs ──────────────────────────────────────────────────────────── */
.text-input {
    height: 38px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.12);
    color: inherit;
    padding: 0 12px; border-radius: 10px;
    outline: none;
    font-size: .9rem;
    font-family: var(--font-family, inherit);
    transition: border-color .2s;
}
.text-input:focus { border-color: var(--accent); }

/* ── Custom color picker (native picker yerine) ──────────────────────── */
.color-input {
    -webkit-appearance: none; appearance: none;
    width: 38px; height: 38px;
    padding: 0;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, transform .15s;
}
.color-input:hover { border-color: var(--accent); transform: scale(1.05); }
.color-input::-webkit-color-swatch-wrapper { padding: 0; }
.color-input::-webkit-color-swatch { border: none; border-radius: 8px; }
.color-input::-moz-color-swatch    { border: none; border-radius: 8px; }

/* ── Buttons (eşit yükseklik) ────────────────────────────────────────── */
.action-btn {
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: inherit;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: .88rem;
    font-family: var(--font-family, inherit);
    transition: background .2s;
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1;
}
.action-btn:hover { background: rgba(255,255,255,0.16); }
.action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.action-btn.danger {
    background: rgba(248,113,113,0.16);
    border-color: rgba(248,113,113,0.4);
    color: #fca5a5;
}
.action-btn.small {
    height: 32px;
    padding: 0 10px;
    font-size: .78rem;
}

/* Danger zone */
.danger-zone {
    border-color: rgba(248,113,113,0.2);
    background: rgba(248,113,113,0.04);
}
.danger-title { color: #fca5a5; }

/* Lists */
.engine-list, .bang-list, .rss-list, .storage-list,
.history-list, .widget-toggles {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 10px;
}

/* ── RSS kaynak listesi ─────────────────────────────────────────── */
.rss-default-note {
    font-size: .76rem; opacity: .6; line-height: 1.5;
    padding: 8px 10px; margin-bottom: 2px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.rss-badge {
    display: inline-block; margin-left: 8px;
    padding: 1px 7px; border-radius: 999px;
    font-size: .66rem; font-weight: 600; vertical-align: middle;
    letter-spacing: .01em;
}
.rss-badge.ok  { background: rgba(74,222,128,0.14); color: #86efac; }
.rss-badge.err { background: rgba(248,113,113,0.16); color: #fca5a5; }
.rss-badge.off { background: rgba(255,255,255,0.08); opacity: .65; }

.rss-list-item .action-btn.small { flex-shrink: 0; }

/* Ekleme modalındaki doğrulama satırı */
.rss-add-status {
    margin: -2px 0 10px;
    padding: 8px 10px; border-radius: 8px;
    font-size: .78rem; line-height: 1.45;
}
.rss-add-status.busy {
    background: rgba(255,255,255,0.06); opacity: .8;
}
.rss-add-status.err {
    background: rgba(248,113,113,0.12); color: #fca5a5;
}
.rss-add-status.ok {
    background: rgba(74,222,128,0.12); color: #86efac;
}

/* Widget toggles row */
.widget-toggles .widget-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
}
.widget-toggle-row .toggle-info {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1; min-width: 0;
}
.widget-toggle-row .toggle-name { font-weight: 600; font-size: .9rem; }
.widget-toggle-row .toggle-desc { font-size: .74rem; opacity: .6; }
.widget-toggle-row .toggle-actions {
    display: flex; align-items: center; gap: 8px;
}
.widget-toggle-row .gear-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: inherit; cursor: pointer;
    display: grid; place-items: center;
    padding: 4px;
}
.widget-toggle-row .gear-btn img {
    width: 100%; height: 100%; filter: invert(1);
}
.widget-toggle-row .gear-btn:hover { background: rgba(255,255,255,0.12); }

.version-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.version-label { opacity: .7; font-size: .78rem; }
.version-value { font-family: ui-monospace, monospace; font-weight: 600; }
.update-status { font-size: .78rem; opacity: .8; padding: 8px 0; }
.update-notes {
    background: rgba(0,0,0,0.2);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: .78rem;
    line-height: 1.5;
}

.kb-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.kb-row:last-child { border-bottom: none; }
.kb-capture {
    height: 34px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    color: inherit;
    padding: 0 14px; border-radius: 8px;
    font-family: ui-monospace, monospace;
    cursor: pointer;
    min-width: 64px; text-align: center;
    transition: background .2s;
}
.kb-capture:hover { background: rgba(255,255,255,0.1); }
.kb-capture.capturing {
    background: var(--accent); border-color: var(--accent);
    animation: wm-pulse-border 1s infinite;
}


/* Arka plan şablon grid */





/* Sıfırla butonları DAİMA action-btn boyutunda (38px) — small zorla devre dışı */
.inline-buttons > .action-btn,
.inline-buttons > .text-input,
.inline-buttons > .custom-select,
.inline-buttons > .bnt-cp-trigger { height: 38px !important; }
.inline-buttons > .action-btn.small { height: 38px !important; padding: 0 14px !important; font-size: .85rem !important; }

/* Sidebar nav-icon — SVG container */
.nav-item .nav-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.nav-item .nav-icon svg { width: 100%; height: 100%; }

/* Info icon SVG yer tutucu */
.info-icon { padding: 0; }
.info-icon[data-svg] { background: transparent; }
.info-icon[data-svg] svg { width: 14px; height: 14px; opacity: .65; }
.info-icon[data-svg]:hover svg, .info-icon[data-svg]:focus svg { opacity: 1; color: var(--accent); }

/* Edit modu dashed border SADECE edit aktifken */
/* widget-mounting sınıfını hariç tut — giriş animasyonu çalışsın */
body:not(.layout-edit-mode) .widget:not(.widget-mounting) {
    outline: none !important;
    animation: none !important;
}


/* Template card resim arka planlı */








/* ═══ Hazır Arka Plan thumbnails ═══ */
.bg-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.bg-tpl-card {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s, border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.bg-tpl-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent 60%);
    pointer-events: none;
}
.bg-tpl-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.bg-tpl-card.active {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent);
}
.bg-tpl-dot {
    position: absolute;
    bottom: 6px; left: 6px;
    width: 10px; height: 10px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,.5);
    z-index: 1;
}

/* ═══ Şablon Seç modal kartları (büyük) ═══ */
.template-card {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s, border-color .2s, box-shadow .2s;
    background-size: cover !important;
    background-position: center !important;
}
.template-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.tpl-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
    color: #fff;
    pointer-events: none;
}
.tpl-name {
    font-weight: 600;
    font-size: .9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
    margin-bottom: 6px;
}
.tpl-dots { display: flex; gap: 6px; }
.tpl-dots span {
    width: 12px; height: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.5);
}


/* Native font select */
.bnt-font-select {
    height: 38px;
    min-width: 180px;
    background: rgba(0,0,0,.3);
    color: inherit;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 0 32px 0 12px;
    font-family: var(--font-family, inherit);
    font-size: .9rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.bnt-font-select:focus { border-color: var(--accent); outline: none; }
.bnt-font-select option { background: rgba(20,20,28,1); color: #f3f3f5; }

/* ═══ Coin Selector Premium UI ═══════════════════════════════════════════ */
.cs-coin-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Dropdown container */
.cs-coin-dropdown {
    position: relative;
}

/* Trigger button */
.cs-coin-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    color: inherit;
    cursor: pointer;
    font-size: .9rem;
    font-family: var(--font-family, inherit);
    transition: border-color .2s, background .2s;
    text-align: left;
}
.cs-coin-trigger:hover {
    border-color: var(--accent);
    background: rgba(0,0,0,0.38);
}
.cs-coin-dropdown.cs-open .cs-coin-trigger {
    border-color: var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.cs-coin-trigger-icon {
    display: inline-flex;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--accent);
    align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700;
    flex-shrink: 0;
    transition: background .2s, transform .2s;
}
.cs-coin-dropdown.cs-open .cs-coin-trigger-icon {
    transform: rotate(45deg);
}
.cs-coin-trigger-arr {
    margin-left: auto;
    opacity: .55;
    font-size: .8rem;
    transition: transform .2s;
}
.cs-coin-dropdown.cs-open .cs-coin-trigger-arr {
    transform: rotate(180deg);
}

/* Dropdown panel */
.cs-coin-panel {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: rgba(16,16,22,0.98);
    border: 1px solid rgba(255,255,255,0.13);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 6px;
    max-height: 0;
    overflow: hidden;
    z-index: 60;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
    opacity: 0;
    transition: max-height .3s cubic-bezier(.2,.8,.2,1), opacity .2s;
    pointer-events: none;
}
.cs-coin-dropdown.cs-open .cs-coin-panel {
    max-height: 260px;
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
}

/* Coin option inside dropdown */
.cs-coin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}
.cs-coin-option:hover {
    background: rgba(255,255,255,0.07);
}
.cs-coin-option.cs-already {
    background: rgba(248,113,113,0.15);
    animation: cs-shake .35s ease;
}
@keyframes cs-shake {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}
.cs-coin-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: .95rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cs-coin-name {
    font-weight: 600;
    font-size: .88rem;
    flex: 1;
}
.cs-coin-id {
    font-size: .72rem;
    opacity: .45;
    font-family: ui-monospace, monospace;
}

/* Selected coins list */
.cs-coin-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 32px;
}
.cs-coin-empty {
    font-size: .78rem;
    opacity: .45;
    padding: 8px 4px;
    font-style: italic;
}

/* Coin pill */
.cs-coin-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: background .15s, border-color .15s, opacity .2s, transform .2s;
    animation: cs-pill-in .25s cubic-bezier(.2,.8,.2,1);
}
.cs-coin-pill:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.14);
}
@keyframes cs-pill-in {
    from { opacity:0; transform: translateY(6px) scale(.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}
.cs-coin-pill.cs-pill-new {
    animation: cs-pill-in .25s cubic-bezier(.2,.8,.2,1);
}
.cs-coin-pill.cs-pill-exit {
    animation: cs-pill-out .2s ease forwards;
}
@keyframes cs-pill-out {
    to { opacity:0; transform: translateX(-12px) scale(.95); }
}
.cs-coin-pill-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: .9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cs-coin-pill-name {
    font-weight: 600;
    font-size: .87rem;
    flex: 1;
}
.cs-coin-pill-sym {
    font-size: .72rem;
    font-family: ui-monospace, monospace;
    opacity: .45;
    flex-shrink: 0;
    margin-right: 2px;
}
.cs-coin-pill-rm {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: inherit;
    cursor: pointer;
    font-size: .85rem;
    display: inline-flex;
    align-items: center; justify-content: center;
    line-height: 1;
    opacity: .55;
    transition: background .15s, opacity .15s;
    flex-shrink: 0;
    padding: 0;
    margin-left: auto;
}
.cs-coin-pill-rm:hover {
    background: rgba(248,113,113,0.25);
    color: #fca5a5;
    opacity: 1;
}


/* ── Widgetlar sekmesi: switch yerine "+" / çöp kutusu eylem düğmesi ──
   (v2.4.1 — ekleme artık panoda yerleştirme akışıyla yapılıyor) */
.widget-toggle-row .wt-action {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    border: 1px solid transparent; border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: inherit; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.widget-toggle-row .wt-action:hover { transform: translateY(-1px); }
.widget-toggle-row .wt-action:active { transform: none; }

.widget-toggle-row .wt-action.add {
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
}
.widget-toggle-row .wt-action.add:hover {
    background: var(--accent); color: #fff;
}
.widget-toggle-row .wt-action.remove { opacity: .7; }
.widget-toggle-row .wt-action.remove:hover {
    background: rgba(248,113,113,0.16);
    border-color: rgba(248,113,113,0.3);
    color: #fca5a5; opacity: 1;
}
/* Ekranda sığacak yer yok — düğme pasif görünür ama tıklanabilir kalır
   (tıklayınca nedenini açıklayan bir uyarı gösterilir) */
.widget-toggle-row .wt-action.add.no-space {
    background: rgba(248,113,113,0.12);
    color: #fca5a5; opacity: .6;
}

.widget-toggle-row.on-board { border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.wt-badge {
    display: inline-block; margin-left: 8px;
    padding: 1px 7px; border-radius: 999px;
    font-size: .64rem; font-weight: 600; vertical-align: middle;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    color: var(--accent);
}

/* Widgetlar sekmesindeki "nasıl eklenir" bilgi kutusu */
.wt-howto {
    display: flex; gap: 11px; align-items: flex-start;
    margin: 0 0 14px;
    padding: 12px 14px; border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    font-size: .8rem; line-height: 1.5;
}
.wt-howto-icon { flex-shrink: 0; opacity: .8; color: var(--accent); }
.wt-howto b { display: block; margin-bottom: 2px; }
.wt-howto p { margin: 0; opacity: .78; }
