/* Crypto Watchlist styles */

.cwl-wrap {
    font-family: "Sofia Sans Condensed", sans-serif;
    color: var(--text-normal, #111);
}

/* Toolbar */
.cwl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px 0;
}

.cwl-title {
    font-size: 22px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Lock button */
.cwl-lock-btn {
    background: transparent;
    border: 1px solid var(--gray-border, #ddd);
    border-radius: 4px;
    padding: 7px 9px;
    cursor: pointer;
    color: var(--text-third, #666);
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}
.cwl-lock-btn:hover {
    color: #a88640;
    border-color: #a88640;
}
.cwl-lock-btn:active {
    transform: scale(0.96);
}
.cwl-lock-btn svg {
    display: block;
}
.cwl-lock-btn .cwl-icon-locked {
    display: none;
}
.cwl-wrap.cwl-locked .cwl-lock-btn {
    color: #a88640;
    border-color: #a88640;
    background: rgba(247, 147, 26, 0.05);
}
.cwl-wrap.cwl-locked .cwl-lock-btn .cwl-icon-locked {
    display: block;
}
.cwl-wrap.cwl-locked .cwl-lock-btn .cwl-icon-unlocked {
    display: none;
}

/* Locked layout */
.cwl-wrap.cwl-locked .cwl-add-tile {
    display: none !important;
}
.cwl-wrap.cwl-locked .cwl-remove {
    display: none !important;
}
.cwl-wrap.cwl-locked .cwl-grid > [data-module] {
    cursor: default;
}

/* Grid */
.cwl-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(120px, auto);
    gap: 10px;
}
.cwl-grid .cwl-item-wide {
    grid-column: span 1;
    grid-row: span 1;
}
.cwl-grid .cwl-item-chart {
    grid-column: span 1;
}

@media (max-width: 1100px) {
    .cwl-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 800px) {
    .cwl-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cwl-grid .cwl-item-wide {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .cwl-grid .cwl-item-chart {
        grid-column: 1 / -1;
    }
}
@media (max-width: 480px) {
    .cwl-grid {
        grid-template-columns: 1fr !important;
    }
    .cwl-grid .cwl-item-wide,
    .cwl-grid .cwl-item-chart {
        grid-column: 1 / -1;
    }
}

/* Buttons */
.cwl-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 0px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.15s, background 0.15s;
    font-family: "Sofia Sans Condensed", sans-serif;
}
.cwl-btn-primary {
    background: #05060c;
    color: #fff;
}
.cwl-btn-primary:hover {
    opacity: 0.9;
}
.cwl-btn-ghost {
    background: transparent;
    color: var(--text-normal, #111);
    border-color: var(--gray-border, #ddd);
}
.cwl-btn-ghost:hover {
    background: var(--gray-border, #f3f3f3);
}

/* Login wall */
.cwl-login-wall {
    text-align: center;
    padding: 60px 20px;
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #e8e8e8);
}
.cwl-login-wall h3 {
    margin: 0 0 8px;
}
.cwl-login-wall p {
    margin: 0 0 14px;
    color: var(--text-third, #666);
}

/* Add tile */
.cwl-add-tile {
    background: transparent;
    border: 2px dashed var(--gray-border, #c8c8c8);
    border-radius: 0;
    padding: 18px;
    min-height: 110px;
    cursor: pointer;
    color: var(--text-third, #888);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
    box-sizing: border-box;
}
.cwl-add-tile:hover {
    border-color: #a88640;
    color: #a88640;
    background: rgba(247, 147, 26, 0.04);
}
.cwl-add-tile:active {
    transform: scale(0.99);
}
.cwl-add-tile-plus {
    display: inline-flex;
}
.cwl-add-tile-plus svg {
    display: block;
}
.cwl-add-tile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Remove button */
.acc-card.cwl-item,
.cwl-item-wide,
.cwl-item-chart,
.cwl-acr-wrap {
    position: relative;
}
.cwl-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: #888;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
    z-index: 5;
}
.acc-card.cwl-item:hover .cwl-remove,
.cwl-item-wide:hover .cwl-remove,
.cwl-item-chart:hover .cwl-remove,
.cwl-acr-wrap:hover .cwl-remove {
    opacity: 1;
}
.cwl-remove:hover {
    background: #ea3943;
    color: #fff;
}
body.dark-theme .cwl-remove {
    background: rgba(255, 255, 255, 0.08);
    color: #aeb6c2;
}
body.dark-theme .cwl-remove:hover {
    background: #ea3943;
    color: #fff;
}

.cwl-acr-wrap > .acr-card {
    height: 100%;
}

/* Drag */
.cwl-dragging {
    opacity: 0.35;
}
.cwl-drag-over {
    outline: 2px dashed #f7931a;
    outline-offset: -2px;
}

/* Grid drag cursor */
.cwl-grid > [data-module] {
    cursor: move;
}
.cwl-grid > [data-module].cwl-dragging {
    cursor: grabbing;
}
.cwl-grid [data-module] button,
.cwl-grid [data-module] a,
.cwl-grid [data-module] input,
.cwl-grid [data-module] .acc-pp-tab {
    cursor: pointer;
}
.cwl-grid .cwl-remove {
    cursor: pointer;
}

/* acr cards */
.cwl-wrap .acr-card {
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #e8e8e8);
    border-radius: 0;
    padding: 14px 16px;
    box-sizing: border-box;
}
.cwl-wrap .acr-label {
    font-size: 10px;
    color: var(--text-third, #888);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}
.cwl-wrap .acr-value {
    font-size: 22px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.1;
    color: var(--text-normal, #111);
}
.cwl-wrap .acr-sub {
    font-size: 11px;
    margin-top: 6px;
    color: var(--muted, #888);
}
.cwl-wrap .acr-pos {
    color: var(--pos, #3fb950);
}
.cwl-wrap .acr-neg {
    color: var(--neg, #f85149);
}
.cwl-wrap .acr-null {
    color: var(--muted, #888);
    font-size: 13px;
}

.cwl-wrap .acr-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 5px;
}
.cwl-wrap .acr-badge-green {
    background: rgba(63, 185, 80, 0.15);
    color: var(--pos, #3fb950);
}
.cwl-wrap .acr-badge-red {
    background: rgba(248, 81, 73, 0.15);
    color: var(--neg, #f85149);
}
.cwl-wrap .acr-badge-gray {
    background: rgba(139, 148, 158, 0.15);
    color: var(--muted, #888);
}

.cwl-wrap .acr-spark-wrap {
    margin-top: 6px;
}
.cwl-wrap .acr-spark {
    display: block;
    width: 100%;
    height: 34px;
}

/* dominance bar */
.cwl-wrap .acr-dom-nums {
    display: flex;
    gap: 20px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.cwl-wrap .acr-dom-nums > div > div:first-child {
    font-size: 10px;
    color: var(--muted, #888);
}
.cwl-wrap .acr-dom-nums > div > div:last-child {
    font-size: 18px;
    font-weight: 700;
}
.cwl-wrap .acr-dom-bar {
    display: flex;
    height: 7px;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0 7px;
}
.cwl-wrap .acr-dom-btc {
    background: #f7931a;
}
.cwl-wrap .acr-dom-eth {
    background: #627eea;
}
.cwl-wrap .acr-dom-oth {
    background: #444c56;
}
.cwl-wrap .acr-dom-row {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: var(--muted, #888);
    flex-wrap: wrap;
}
.cwl-wrap .acr-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

/* RSI bar-needle */
.cwl-wrap .acr-bar-bg {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin: 8px 0 5px;
    position: relative;
}
.cwl-wrap .acr-bar-needle {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 14px;
    background: #fff;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* Charts */
.cwl-wrap .acr-chart-panel {
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #e8e8e8);
    border-radius: 0;
    padding: 14px 14px 12px;
    box-sizing: border-box;
    height: 100%;
}
.cwl-wrap .acr-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 4px;
}
.cwl-wrap .acr-chart-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.cwl-wrap .acr-chart-sub {
    font-size: 11px;
    color: var(--text-third, #888);
    margin-bottom: 8px;
    line-height: 1.3;
}
.cwl-wrap .acr-chart-leg {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}
.cwl-wrap .acr-chart-leg span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-secondary, #555);
}
.cwl-wrap .acr-chart-leg i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cwl-wrap .acr-ch {
    position: relative;
    width: 100%;
    height: 200px;
}
.cwl-wrap .acr-ch canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Saved coins table */
.cwl-wrap .cwl-saved-table-section {
    margin-top: 32px;
}
.cwl-wrap .cwl-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-normal, #111);
}
.cwl-wrap .cwl-saved-table-empty {
    background: var(--white-background, #fff);
    border: 1px dashed var(--gray-border, #d8d8d8);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-third, #888);
}
.cwl-wrap .cwl-saved-table-empty p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 1.5;
}
.cwl-wrap .cwl-saved-table-empty-star {
    color: #f7931a;
    font-size: 16px;
}

/* Modal */
.cwl-modal[hidden] {
    display: none;
}
.cwl-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cwl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    animation: cwlFade 0.15s ease;
}
.cwl-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: cwlPop 0.18s ease;
}
@keyframes cwlFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes cwlPop {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.cwl-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 8px;
}
.cwl-modal-head h3 {
    margin: 0;
    font-size: 24px;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
}
.crypto-market-section p {
    font-size: 14px;
    font-family: "Sofia Sans Condensed", sans-serif;
    margin-left: 20px;
}
.cwl-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
}
.cwl-modal-close:hover {
    color: var(--text-normal, #111);
}
.cwl-modal-hint {
    margin: 0 18px 10px;
    color: var(--text-third, #777);
    font-size: 13px;
}
.cwl-modal-body {
    padding: 4px 12px 12px;
    overflow-y: auto;
}

.cwl-modal-item {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: grab;
    user-select: none;
    transition: background 0.12s;
}
.cwl-modal-item:hover {
    background: var(--filter-2, #f8f8f8);
}
.cwl-modal-item:active {
    cursor: grabbing;
}

.cwl-drag-handle {
    color: #bbb;
    font-size: 14px;
    padding: 0 2px;
}
.cwl-modal-icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
}
.cwl-modal-label {
    flex: 1;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
}
.cwl-modal-check {
    width: 18px;
    height: 18px;
    accent-color: #05060c;
    cursor: pointer;
}

.cwl-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--gray-border, #f0f0f0);
}
.cwl-modal-status {
    position: absolute;
    left: 18px;
    bottom: 22px;
    font-size: 12px;
    color: var(--text-third, #777);
}
.cwl-modal-status.ok {
    color: #16c784;
}
.cwl-modal-status.error {
    color: #ea3943;
}

@media (max-width: 480px) {
    .cwl-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cwl-title {
        text-align: center;
    }
}

/* Accent colors */
.cwl-app,
.cwl-modal,
.cwl-toast {
    --cwl-blue: #3e47e0;
    --cwl-blue-d: #2a32b8;
    --cwl-gold: #a8873f;
}

.cwl-app {
    max-width: 100%;
}

/* Buttons */
.cwl-btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--button, #0b0d1a);
    color: var(--text-white, #fff);
    border: 0;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 22px;
    cursor: pointer;
    line-height: 1;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}
.cwl-btn-blue:hover {
    background: #a88640;
    color: #fff;
}
.cwl-btn-blue:active {
    transform: scale(0.985);
}
.cwl-btn-blue.cwl-btn-sm {
    font-size: 14px;
    padding: 9px 16px;
}
.cwl-btn-inline {
    padding: 8px 14px;
    font-size: 14px;
}
.cwl-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-normal, #0d1421);
    border: 1px solid var(--gray-border, #e4e7eb);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 0;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.cwl-btn-ghost:hover {
    background: var(--gray-border, #f3f4f6);
}
.cwl-link-btn {
    background: none;
    border: none;
    color: var(--cwl-blue);
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: none;
}
.cwl-link-btn:hover {
    text-decoration: underline;
}

/* Page title */
.cwl-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 50px;
}
.cwl-page-icon {
    font-size: 26px;
    line-height: 1;
}
.cwl-page-name {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 1.1;
    margin: 0;
    color: var(--text-normal, #0b0d1a);
    letter-spacing: 0.01em;
}

/* Save strip */
.cwl-saver-strip {
    text-align: center;
    padding: 9px 14px;
    margin: 0 0 12px;
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #eaecef);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-third, #616e85);
}

/* Merge bar */
.cwl-merge-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    padding: 11px 40px 11px 14px;
    margin: 0 0 12px;
    position: relative;
    background: var(--gray-background, #f8fafd);
    border: 1px solid var(--gray-border, #eaecef);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-normal, #0d1421);
}
.cwl-merge-bar-go {
    font-size: 14px;
}
.cwl-merge-bar-x {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--text-third, #616e85);
    cursor: pointer;
    padding: 2px 6px;
}
.cwl-merge-bar-x:hover {
    color: var(--text-normal, #0d1421);
}

/* Tab bar */
.cwl-tabbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 20px;
    border-bottom: 1px solid var(--gray-border, #eaecef);
}
.cwl-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}
.cwl-tabs::-webkit-scrollbar {
    height: 5px;
}
.cwl-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-third, #616e85);
    transition: background 0.15s, color 0.15s;
}
.cwl-tab:hover {
    background: var(--gray-border, #f3f4f6);
    color: var(--text-normal, #0d1421);
}
.cwl-tab.is-active {
    background: #a88640;
    color: #ffffff!important;
}

.cwl-tab-name.is-active {
    background: #a88640;
    color: #ffffff!important;
}
.cwl-tab-ico {
    font-size: 15px;
    line-height: 1;
}
.cwl-tab-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-normal);
    border-radius: 0px;
    transition: background 0.15s;
}
.cwl-tab-new:hover {
    background: #a88640;
    color: #fff;
}
.cwl-tab-new span {
    font-size: 17px;
    line-height: 1;
}

.cwl-tab-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.cwl-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--dark-background);
    border: 0;
    cursor: pointer;
    padding: 8px 13px;
    border-radius: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cwl-act:hover {
    background: #a88640;
}
.cwl-act-icon {
    padding: 6px 11px;
    font-size: 18px;
}

.cwl-menu-wrap {
    position: relative;
}
.cwl-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #eaecef);
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
    padding: 6px;
    min-width: 190px;
}
.cwl-menu[hidden] {
    display: none;
}
.cwl-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-normal, #0d1421);
    padding: 9px 11px;
    border-radius: 7px;
}
.cwl-menu-item:hover {
    background: var(--gray-border, #f3f4f6);
}
.cwl-menu-danger {
    color: #ea3943;
}
.cwl-menu-danger:hover {
    background: rgba(234, 57, 67, 0.08);
}
/* Menu share box */
.cwl-menu {
    min-width: 360px;
    max-width: calc(100vw - 40px);
}
.cwl-menu-sep {
    height: 1px;
    background: var(--gray-border, #eaecef);
    margin: 6px 4px;
}
.cwl-menu-public {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 11px;
}
.cwl-menu-public .cwl-public-txt {
    margin-right: auto;
}
.cwl-menu-share {
    display: flex;
    gap: 8px;
    align-items: stretch;
    padding: 4px 11px 8px;
}
.cwl-menu-share[hidden] {
    display: none;
}

/* Empty state */
.cwl-empty {
    text-align: center;
    padding: 30px 12px 40px;
}
.cwl-empty-star {
    width: 64px;
    height: 64px;
    margin: 6px auto 16px;
    border-radius: 50%;
    background: rgba(247, 166, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cwl-empty-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 22px;
    color: var(--text-normal, #0d1421);
    letter-spacing: 0.01em;
}
.cwl-empty-note {
    color: var(--text-third, #616e85);
    font-size: 14px;
}

.cwl-suggest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 860px;
    margin: 0 auto 26px;
}
@media (max-width: 760px) {
    .cwl-suggest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 460px) {
    .cwl-suggest-grid {
        grid-template-columns: 1fr;
    }
}

.cwl-coin-card {
    position: relative;
    text-align: left;
    background: var(--white-background, #fff);
    border: 1px solid var(--gray-border, #eaecef);
    border-radius: 0px;
    padding: 14px 16px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s,
    transform 0.08s;
}
.cwl-coin-card:hover {
    border-color: #a88640;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}
.cwl-coin-card:active {
    transform: translateY(1px);
}
.cwl-coin-card.is-selected {
    border-color: #a88640;
    background: rgb(168 134 64 / 6%);
    box-shadow: 0 0 0 1px #a88640 inset;
}
.cwl-cc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cwl-cc-id {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.cwl-coin-logo,
.cwl-coin-logo-fb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex: 0 0 auto;
    object-fit: cover;
}
.cwl-coin-logo-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9edf3;
    color: #5b6776;
    font-weight: 700;
    font-size: 12px;
}
.cwl-cc-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-normal, #0d1421);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cwl-cc-toggle {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    color: #616e85;
    transition: background 0.15s, color 0.15s;
}
.cwl-coin-card:hover .cwl-cc-toggle {
    background: #e6e9ee;
}
.cwl-cc-toggle .cwl-ic-check {
    display: none;
}
.cwl-coin-card.is-selected .cwl-cc-toggle {
    background: #a88640;
    color: #fff;
}
.cwl-coin-card.is-selected .cwl-cc-toggle .cwl-ic-plus {
    display: none;
}
.cwl-coin-card.is-selected .cwl-cc-toggle .cwl-ic-check {
    display: block;
}

.cwl-cc-price {
    font-weight: 800;
    font-size: 19px;
    color: var(--text-normal, #0d1421);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.cwl-cc-price sub {
    font-size: 0.62em;
    bottom: -0.05em;
    font-weight: 700;
}
.cwl-cc-pct {
    font-size: 13px;
    font-weight: 700;
}
.cwl-cc-spark {
    height: 38px;
}
.cwl-cc-spark .cwl-spark {
    width: 100%;
    height: 38px;
    display: block;
}

.cwl-search-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-normal);
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 0;
}
.cwl-search-more:hover {
    background: rgb(168 134 64);
    color: #fff;
}

.cwl-addbar {
    max-width: 860px;
    margin: 22px auto 0;
}
.cwl-addbar .cwl-btn-blue {
    width: 100%;
    padding: 14px;
    font-size: 17px;
}
.cwl-addbar[hidden] {
    display: none;
}

/* Coins section */
.cwl-coins-section {
    margin-bottom: 8px;
    margin-top: 0px;
}
.cwl-hidden {
    display: none !important;
}

/* Modules */
.cwl-modules {
    margin-top: 34px;
    padding-top: 8px;
}
.cwl-modules-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.cwl-modules.cwl-locked .cwl-add-tile {
    display: none !important;
}
.cwl-modules.cwl-locked .cwl-remove {
    display: none !important;
}
.cwl-modules.cwl-locked .cwl-grid > [data-module] {
    cursor: default;
}
.cwl-modules .cwl-lock-btn .cwl-icon-locked {
    display: none;
}
.cwl-modules.cwl-locked .cwl-lock-btn {
    color: #a88640;
    border-color: #a88640;
    background: rgba(247, 147, 26, 0.05);
}
.cwl-modules.cwl-locked .cwl-lock-btn .cwl-icon-locked {
    display: block;
}
.cwl-modules.cwl-locked .cwl-lock-btn .cwl-icon-unlocked {
    display: none;
}

/* Modal close */
.cwl-modal-x {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 0;
    cursor: pointer;
    color: var(--text-normal);
    padding: 9px;
}
.cwl-modal-x:hover {
    color: var(--text-normal, #0d1421);
}

/* Search modal */
.cwl-search-card {
    max-width: 540px;
    width: 100%;
    height: 76vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    padding: 0;
}
.cwl-search-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--gray-border, #eef0f2);
}
.cwl-search-inputwrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--gray-border, #f3f4f6);
    border-radius: 0px;
    padding: 5px 10px;
    color: #98a0ad;
}
.cwl-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-normal, #0d1421);
    padding: 0 10px;
}
.cwl-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
}
.cwl-search-loading,
.cwl-search-empty {
    text-align: center;
    color: var(--text-third, #616e85);
    padding: 40px 10px;
    font-size: 14px;
}
.cwl-search-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.12s;
}
.cwl-search-row:hover {
    background: var(--gray-border, #f5f6f8);
}
.cwl-sr-rank {
    width: 28px;
    flex: 0 0 auto;
    text-align: right;
    font-size: 12px;
    color: var(--text-third, #9aa3b2);
}
.cwl-sr-id {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cwl-sr-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-normal, #0d1421);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cwl-sr-sym {
    font-size: 12px;
    color: var(--text-third, #9aa3b2);
    text-transform: uppercase;
    margin-left: 2px;
}
.cwl-sr-price {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-normal, #0d1421);
}
.cwl-sr-pct {
    flex: 0 0 auto;
    width: 64px;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
}
.cwl-sr-star {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #cfd3da;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.12s, background 0.12s;
}
.cwl-sr-star:hover {
    color: var(--cwl-gold);
    background: rgba(247, 166, 0, 0.1);
}
.cwl-sr-star.is-on {
    color: var(--cwl-gold);
}
.cwl-search-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-border, #eef0f2);
}
.cwl-search-count {
    font-size: 13px;
    color: var(--text-third, #616e85);
}

/* Sign-up modal */
.cwl-signup-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    padding: 30px 26px 26px;
    border-radius: 0;
    position: relative;
}
.cwl-signup-x {
    position: absolute;
    top: 12px;
    right: 14px;
}
.cwl-signup-star {
    width: 70px;
    height: 70px;
    margin: 4px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cwl-signup-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--text-normal, #0d1421);
}
.cwl-signup-sub {
    color: var(--text-third, #616e85);
    font-size: 15px;
    margin: 0 0 20px;
    line-height: 1.45;
}
.cwl-signup-cta {
    width: 100%;
    padding: 14px;
    font-size: 17px;
}
.cwl-signup-later {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-third, #9aa3b2);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.cwl-signup-later:hover {
    color: var(--text-normal, #0d1421);
}

/* Name modal */
.cwl-name-card {
    max-width: 420px;
    width: 100%;
    border-radius: 0px;
}
.cwl-name-body {
    padding: 8px 18px 4px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.cwl-name-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--gray-border, #dfe2e7);
    border-radius: 0;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-normal, #0d1421);
    outline: none;
    background: var(--white-background, #fff);
}

/* Create/rename fields */
.cwl-field-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-normal, #0d1421);
    margin: 4px 0 8px;
}
.cwl-field-label-mt {
    margin-top: 20px;
}
.cwl-char-counter {
    font-size: 12px;
    color: var(--text-third, #9aa3b2);
    margin: 6px 2px 0;
}
.cwl-desc-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--gray-border, #dfe2e7);
    border-radius: 0px;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-normal, #0d1421);
    outline: none;
    background: var(--white-background, #fff);
    resize: vertical;
    min-height: 40px;
    height: 80px;
}
.cwl-desc-input:focus,
.cwl-name-input:focus {
    border-color: var(--cwl-blue);
}
.cwl-public-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.cwl-public-ico {
    color: var(--text-normal, #0d1421);
    display: inline-flex;
    flex: 0 0 auto;
}
.cwl-public-txt {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-right: auto;
}
.cwl-public-txt strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-normal, #0d1421);
}
.cwl-public-txt span {
    font-size: 13px;
    color: var(--text-third, #616e85);
}
/* Toggle switch */
.cwl-switch {
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    border-radius: 999px !important;
    border: none;
    background: var(--gray-border, #d7dbe3);
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background 0.18s;
}
.cwl-switch .cwl-switch-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50% !important;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.18s;
}
.cwl-switch.is-on {
    background: var(--cwl-blue, #3e47e0);
}
.cwl-switch.is-on .cwl-switch-dot {
    transform: translateX(20px);
}
/* Share link */
.cwl-share-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: 16px;
}
.cwl-share-row[hidden] {
    display: none;
}
.cwl-share-link {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--gray-border, #dfe2e7);
    border-radius: 0px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-third, #616e85);
    background: var(--gray-border, #f4f5f7);
    outline: none;
}
.cwl-share-copy {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Main tab star */
.cwl-tab-main {
    color: #d8c08c;
    margin-right: 2px;
    font-size: 13px;
    line-height: 1;
}
/* Merge modal */
.cwl-merge-card {
    max-width: 440px;
    width: 100%;
    border-radius: 14px;
}
.cwl-merge-body {
    padding: 10px 18px 4px;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}
.cwl-merge-into {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-third, #616e85);
    margin: 2px 0 14px;
}
.cwl-merge-into strong {
    color: var(--text-normal, #0d1421);
}
.cwl-merge-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cwl-merge-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 10px;
    cursor: pointer;
    border: 1px solid transparent;
}
.cwl-merge-row:hover {
    background: var(--gray-border, #f5f6f8);
}
.cwl-merge-cb {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--cwl-blue, #3e47e0);
    cursor: pointer;
}
.cwl-merge-name {
    margin-right: auto;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-normal, #0d1421);
}
.cwl-merge-count {
    font-size: 13px;
    color: var(--text-third, #9aa3b2);
    white-space: nowrap;
}
.cwl-merge-empty {
    padding: 18px 4px;
    text-align: center;
    color: var(--text-third, #9aa3b2);
    font-size: 14px;
}
body.dark-theme .cwl-share-link {
    background: rgba(255, 255, 255, 0.04);
}

/* Public page */
.cwl-public {
    max-width: 2000px;
    margin: 0 auto;
}
.cwl-public-head {
    margin: 4px 0 26px;
}
.cwl-public .cwl-page-name {
    margin: 0 0 6px;
}
.cwl-public-by {
    font-size: 14px;
    color: var(--text-third, #616e85);
}
.cwl-public-desc {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-normal, #0d1421);
    max-width: 760px;
}
.cwl-public-empty {
    text-align: center;
    padding: 40px 12px;
    color: var(--text-third, #616e85);
}
.cwl-public-empty .cwl-page-name {
    margin-bottom: 10px;
}
.cwl-public-cta {
    margin-top: 30px;
}
body.dark-theme .cwl-desc-input {
    background: rgba(255, 255, 255, 0.04);
}

/* Guest sign-up */
.cwl-name-signup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-border, #eee);
}
.cwl-name-signup[hidden] {
    display: none;
}
.cwl-name-signup-txt {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cwl-name-signup-txt strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-normal, #0d1421);
}
.cwl-name-signup-txt span {
    font-size: 12px;
    color: var(--text-third, #616e85);
}

/* Danger button */
.cwl-btn-danger {
    background: #ea3943 !important;
    border-color: #ea3943 !important;
    color: #fff !important;
}

/* Confirm popup */
.cwl-confirm-card {
    max-width: 400px;
    width: 100%;
    padding: 22px 22px 18px;
}
.cwl-confirm-title {
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--text-normal, #0d1421);
}
.cwl-confirm-msg {
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-third, #616e85);
    margin: 0 0 18px;
}
.cwl-confirm-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.cwl-name-input:focus {
    border-color: var(--cwl-blue);
}
.cwl-modal-item.cwl-dragging {
    opacity: 0.45;
}

/* Icon picker */
.cwl-icon-label {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-third, #616e85);
}
.cwl-icon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
@media (max-width: 460px) {
    .cwl-icon-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
.cwl-icon-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    line-height: 1;
    cursor: pointer;
    background: var(--white-background, #fff);
    padding: 7px;
    border: 1px solid var(--gray-border, #e4e7eb);
    transition: border-color 0.12s, background 0.12s, transform 0.08s;
}
.cwl-icon-opt:hover {
    background: var(--gray-border, #f3f4f6);
}
.cwl-icon-opt:active {
    transform: scale(0.94);
}
.cwl-icon-opt.is-on {
    border-color: var(--cwl-blue);
    background: rgba(62, 71, 224, 0.08);
    box-shadow: 0 0 0 1px var(--cwl-blue) inset;
}

/* Logo icons */
.cwl-tab-ico,
.cwl-page-icon {
    display: inline-flex;
    align-items: center;
}
.cwl-tab-logo {
    width: 20px;
    height: 20px;
    object-fit: cover;
}
.cwl-page-logo {
    width: 30px;
    height: 30px;
    object-fit: cover;
}
.cwl-opt-logo {
    width: 26px;
    height: 26px;
    object-fit: cover;
}
.cwl-list-ico {
    object-fit: cover;
}
.cwl-ico-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9edf3;
    color: #5b6776;
    font-weight: 700;
    font-size: 11px;
}
body.dark-theme .cwl-ico-fb {
    background: #2a313b;
    color: #aeb6c2;
}

/* Coins title */
.cwl-coins-title {
    font-size: 22px;
    font-weight: 800;
    margin: 6px 0 14px;
    color: var(--text-normal, #0d1421);
}

/* Round logos */
.cwl-coin-logo,
.cwl-coin-logo-fb,
.cwl-sr-id .cwl-coin-logo,
.cwl-sr-id .cwl-coin-logo-fb,
.cwl-tab-logo,
.cwl-page-logo,
.cwl-opt-logo,
.cwl-list-ico,
.cwl-ico-fb {
    border-radius: 50% !important;
}

/* Dark mode */
body.dark-theme .cwl-merge-bar,
body.dark-theme .cwl-saver-strip,
body.dark-theme .cwl-coin-card,
body.dark-theme .cwl-menu,
body.dark-theme .cwl-search-card,
body.dark-theme .cwl-signup-card,
body.dark-theme .cwl-name-card,
body.dark-theme .cwl-modal-card {
    background: var(--white-background, #12161c);
    border-color: var(--gray-border, #222831);
}
body.dark-theme .cwl-tab:hover,
body.dark-theme .cwl-act:hover,
body.dark-theme .cwl-menu-item:hover,
body.dark-theme .cwl-search-row:hover,
body.dark-theme .cwl-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}
body.dark-theme .cwl-act {
    border-color: var(--gray-border, #2a313b);
}
body.dark-theme .cwl-search-inputwrap {
    background: rgba(255, 255, 255, 0.06);
}
body.dark-theme .cwl-coin-logo-fb {
    background: #2a313b;
    color: #aeb6c2;
}
body.dark-theme .cwl-cc-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #aeb6c2;
}
body.dark-theme .cwl-name-input {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 600px) {
    .cwl-tabbar {
        gap: 8px;
    }
    .cwl-tab-actions {
        width: 100%;
    }
    .cwl-act {
        flex: 1 1 auto;
        justify-content: center;
    }
    .cwl-empty-title {
        font-size: 23px;
    }
    .cwl-sr-pct {
        display: none;
    }
    .cwl-page-title {
        margin-bottom: 30px;
    }
}

/* Toast */
.cwl-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(14px);
    background: #1a1d26;
    color: #fff;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100000;
}
.cwl-toast.cwl-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Table star */
.cwl-tbl-star {
    background: none;
    border: none;
    cursor: pointer;
    color: #cfd2d6;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    margin-right: 6px;
    vertical-align: middle;
    transition: color 0.15s, transform 0.12s;
}
.cwl-tbl-star:hover {
    color: #a8873f;
    transform: scale(1.15);
}
.cwl-tbl-star.cwl-tbl-star-active {
    color: #a8873f;
}
.cwl-tbl-star.cwl-tbl-star-active:hover {
    color: #ea3943;
}

.cwl-menu svg {
    width: 15px;
    display: inline-block;
    height: 15px;
    margin-right: 5px;
    position: relative;
    top: -1px;
}

.cwl-menu i {
    margin-right: 5px;
}

.cwl-modal-x {
    border: 1px solid var(--gray-border);
}

.cwl-modal-x:hover {
    background: var(--dark-background);
}


.cwl-modal-x:hover i {
    color: #fff;
}

.cwl-modal-x i {
    font-size: 14px;
}