.tarot-combination-finder {
    --tcf-bg: #090d17;
    --tcf-panel: rgba(15, 20, 34, 0.92);
    --tcf-panel-alt: rgba(21, 26, 43, 0.92);
    --tcf-border: rgba(201, 160, 80, 0.22);
    --tcf-gold: #e4c178;
    --tcf-gold-soft: #b69456;
    --tcf-purple: #9f6cf4;
    --tcf-purple-soft: rgba(159, 108, 244, 0.14);
    --tcf-text: #f7f1e3;
    --tcf-muted: #b8b2c9;
    --tcf-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
    background:
        radial-gradient(circle at top, rgba(103, 76, 154, 0.28), transparent 34%),
        radial-gradient(circle at bottom right, rgba(228, 193, 120, 0.12), transparent 28%),
        linear-gradient(180deg, #05070f 0%, #0c1020 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    color: var(--tcf-text);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 300px);
    padding: 24px;
    position: relative;
    overflow: visible;
    box-shadow: var(--tcf-shadow);
}

.tarot-combination-finder * {
    box-sizing: border-box;
}

.tarot-combination-finder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 180px 180px, 120px 120px;
    background-position: 0 0, 60px 80px;
    pointer-events: none;
    opacity: 0.22;
}

.tarot-combination-finder > * {
    position: relative;
    z-index: 1;
}

.tarot-combination-finder .tcf-main,
.tarot-combination-finder .tcf-result,
.tarot-combination-finder .tcf-tab-panels,
.tarot-combination-finder .tcf-tab-panel {
    min-width: 0;
}

.tarot-combination-finder a {
    color: inherit;
    text-decoration: none;
}

.tarot-combination-finder .tcf-controls,
.tarot-combination-finder .tcf-result,
.tarot-combination-finder .tcf-sidebar,
.tarot-combination-finder .tcf-side-card,
.tarot-combination-finder .tcf-panel {
    background: var(--tcf-panel);
    border: 1px solid var(--tcf-border);
    border-radius: 22px;
}

.tarot-combination-finder .tcf-controls,
.tarot-combination-finder .tcf-sidebar {
    display: grid;
    gap: 18px;
    align-self: start;
}

.tarot-combination-finder .tcf-panel,
.tarot-combination-finder .tcf-side-card,
.tarot-combination-finder .tcf-result {
    padding: 18px;
}

.tarot-combination-finder .tcf-result {
    container-type: inline-size;
}

.tarot-combination-finder .tcf-kicker,
.tarot-combination-finder .tcf-energy-label {
    color: var(--tcf-gold);
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tarot-combination-finder h2,
.tarot-combination-finder h3,
.tarot-combination-finder p,
.tarot-combination-finder button,
.tarot-combination-finder input,
.tarot-combination-finder textarea {
    margin: 0;
    font: inherit;
}

.tarot-combination-finder h2,
.tarot-combination-finder .tcf-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
}

.tarot-combination-finder .tcf-controls h2,
.tarot-combination-finder .tcf-controls h3,
.tarot-combination-finder .tcf-side-card h3,
.tarot-combination-finder .tcf-tab-panel h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tarot-combination-finder .tcf-controls p,
.tarot-combination-finder .tcf-side-card p,
.tarot-combination-finder .tcf-empty p,
.tarot-combination-finder .tcf-energy-card p,
.tarot-combination-finder .tcf-tab-panel p {
    color: var(--tcf-muted);
    line-height: 1.65;
}

.tarot-combination-finder .tcf-card-slot {
    position: relative;
    margin-top: 12px;
    z-index: 5;
}

.tarot-combination-finder .tcf-card-slot.is-hidden,
.tarot-combination-finder .tcf-button.is-hidden {
    display: none;
}

.tarot-combination-finder .tcf-card-slot-label {
    color: var(--tcf-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.tarot-combination-finder .tcf-card-slot:focus-within {
    z-index: 35;
}

.tarot-combination-finder .tcf-card-pill {
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    cursor: text;
    display: flex;
    gap: 12px;
    min-height: 60px;
    padding: 10px 12px;
}

.tarot-combination-finder .tcf-card-pill span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tarot-combination-finder .tcf-card-pill img,
.tarot-combination-finder .tcf-popular-thumbs img {
    width: 34px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.tarot-combination-finder .tcf-remove {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--tcf-muted);
    cursor: pointer;
    font-size: 1.25rem;
}

.tarot-combination-finder .tcf-search,
.tarot-combination-finder .tcf-textarea {
    width: 100%;
    background: rgba(7, 10, 18, 0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--tcf-text);
    margin-top: 10px;
    padding: 12px 14px;
}

.tarot-combination-finder .tcf-textarea {
    min-height: 112px;
    resize: vertical;
}

.tarot-combination-finder .tcf-search-results {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(8, 11, 19, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    z-index: 40;
}

.tarot-combination-finder .tcf-search-results.is-visible {
    display: block;
}

.tarot-combination-finder .tcf-search-item {
    align-items: center;
    background: rgba(255,255,255,0.02);
    border: 0;
    border-radius: 12px;
    color: var(--tcf-text);
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.tarot-combination-finder .tcf-search-item span {
    overflow-wrap: anywhere;
}

.tarot-combination-finder .tcf-search-item-name {
    color: var(--tcf-text);
    font-size: 0.96rem;
    line-height: 1.35;
}

.tarot-combination-finder .tcf-search-item:hover,
.tarot-combination-finder .tcf-search-item:focus,
.tarot-combination-finder .tcf-context:hover,
.tarot-combination-finder .tcf-tab:hover {
    background: rgba(255,255,255,0.06);
}

.tarot-combination-finder .tcf-context-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tarot-combination-finder .tcf-context,
.tarot-combination-finder .tcf-tab,
.tarot-combination-finder .tcf-button {
    align-items: center;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    display: flex;
    justify-content: center;
    line-height: 1.3;
    min-height: 52px;
    padding: 12px 14px;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    white-space: normal;
    word-break: break-word;
}

.tarot-combination-finder .tcf-context,
.tarot-combination-finder .tcf-tab,
.tarot-combination-finder .tcf-button-secondary,
.tarot-combination-finder .tcf-button-ghost {
    background: rgba(255,255,255,0.03);
    color: var(--tcf-text);
}

.tarot-combination-finder .tcf-context.is-active,
.tarot-combination-finder .tcf-tab.is-active {
    background: var(--tcf-purple-soft);
    border-color: rgba(159, 108, 244, 0.45);
    color: #f9efff;
}

.tarot-combination-finder .tcf-button-primary {
    background: linear-gradient(135deg, #8f4ff0, #c26cff);
    border-color: rgba(194, 108, 255, 0.66);
    color: #fff;
}

.tarot-combination-finder .tcf-button:hover,
.tarot-combination-finder .tcf-context:hover,
.tarot-combination-finder .tcf-tab:hover {
    transform: translateY(-1px);
}

.tarot-combination-finder .tcf-char-count {
    color: var(--tcf-muted);
    font-size: 0.85rem;
    margin: 8px 0 14px;
    text-align: right;
}

.tarot-combination-finder .tcf-energy-wrap {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    margin-top: 24px;
}

.tarot-combination-finder .tcf-card-pair {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    min-height: 280px;
    min-width: 0;
}

.tarot-combination-finder .tcf-card-display {
    flex: 0 1 160px;
    min-width: 0;
    max-width: 190px;
    text-align: center;
}

.tarot-combination-finder .tcf-card-plus {
    flex: 0 0 auto;
}

.tarot-combination-finder .tcf-card-display img,
.tarot-combination-finder .tcf-card-placeholder {
    width: min(100%, 190px);
    aspect-ratio: 2 / 3.2;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(228, 193, 120, 0.2);
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.tarot-combination-finder .tcf-card-placeholder {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 16px;
}

.tarot-combination-finder .tcf-card-display h3 {
    margin-top: 12px;
}

.tarot-combination-finder .tcf-card-plus {
    color: var(--tcf-gold);
    font-size: 2rem;
}

.tarot-combination-finder .tcf-energy-card {
    background: linear-gradient(180deg, rgba(25, 17, 45, 0.88), rgba(17, 21, 36, 0.96));
    border: 1px solid rgba(159, 108, 244, 0.22);
    border-radius: 22px;
    min-width: 0;
    padding: 18px;
}

.tarot-combination-finder .tcf-result-header,
.tarot-combination-finder .tcf-badges,
.tarot-combination-finder .tcf-tabs,
.tarot-combination-finder .tcf-link-list,
.tarot-combination-finder .tcf-popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tarot-combination-finder .tcf-result-header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tarot-combination-finder .tcf-badge {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    color: var(--tcf-text);
    display: inline-flex;
    font-size: 0.82rem;
    padding: 6px 12px;
}

.tarot-combination-finder .tcf-badge-context {
    background: rgba(216, 93, 151, 0.16);
}

.tarot-combination-finder .tcf-admin-note {
    background: rgba(228, 193, 120, 0.1);
    border-left: 3px solid var(--tcf-gold);
    border-radius: 12px;
    color: var(--tcf-gold);
    margin-top: 16px;
    padding: 12px 14px;
}

.tarot-combination-finder .tcf-tabs {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 24px;
    padding-top: 18px;
}

.tarot-combination-finder .tcf-tab-panel {
    display: none;
    padding-top: 16px;
}

.tarot-combination-finder .tcf-tab-panel.is-active {
    display: block;
}

.tarot-combination-finder .tcf-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

.tarot-combination-finder .tcf-link-list a,
.tarot-combination-finder .tcf-popular-item {
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.tarot-combination-finder .tcf-popular-grid {
    flex-direction: column;
}

.tarot-combination-finder .tcf-popular-thumbs {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 6px;
    min-width: 78px;
}

.tarot-combination-finder .tcf-popular-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tarot-combination-finder .tcf-feedback {
    color: var(--tcf-gold);
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
}

.tarot-combination-finder .tcf-empty {
    align-items: center;
    display: grid;
    justify-items: start;
    min-height: 100%;
    padding: 34px 12px;
}

.tarot-combination-finder-page-wrap {
    margin: 0 auto;
    max-width: 1420px;
    padding: 24px;
}

@media (max-width: 1100px) {
    .tarot-combination-finder {
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    }

    .tarot-combination-finder .tcf-sidebar {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 760px) {
    .tarot-combination-finder .tcf-energy-wrap {
        grid-template-columns: 1fr;
    }

    .tarot-combination-finder .tcf-energy-card {
        max-width: 420px;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 860px) {
    .tarot-combination-finder {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .tarot-combination-finder .tcf-energy-wrap,
    .tarot-combination-finder .tcf-sidebar {
        grid-template-columns: 1fr;
    }

    .tarot-combination-finder .tcf-card-pair {
        flex-direction: column;
    }

    .tarot-combination-finder .tcf-card-plus {
        transform: rotate(90deg);
    }

    .tarot-combination-finder .tcf-result-header {
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .tarot-combination-finder {
        border-radius: 20px;
        gap: 18px;
        padding: 14px;
    }

    .tarot-combination-finder .tcf-context-grid {
        grid-template-columns: 1fr;
    }

    .tarot-combination-finder .tcf-card-display img,
    .tarot-combination-finder .tcf-card-placeholder {
        width: 160px;
    }
}