/* Cookie Extractor tool */
.cex-tool {
    --cex-accent: #f59e0b;
    --cex-accent-soft: rgba(245, 158, 11, 0.14);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cex-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(2, 8, 20, 0.35));
}

.cex-kicker {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fbbf24;
}

.cex-title {
    margin: 0 0 .5rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.cex-sub {
    margin: 0;
    max-width: 52rem;
    color: var(--text-muted, #94a3b8);
    font-size: .92rem;
    line-height: 1.6;
}

.cex-badge {
    flex-shrink: 0;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    background: var(--cex-accent-soft);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.cex-card {
    position: relative;
    padding: 1.2rem 1.25rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border, rgba(148, 163, 184, 0.18));
    background: var(--bg-card, rgba(15, 23, 42, 0.72));
}

.cex-card--highlight {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.08);
}

.cex-card h3 {
    margin: 0 0 .55rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.cex-step-badge {
    display: inline-flex;
    margin-bottom: .55rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(0, 174, 239, 0.16);
    color: #7dd3fc;
}

.cex-help {
    margin: 0 0 .9rem;
    color: var(--text-muted, #94a3b8);
    font-size: .88rem;
    line-height: 1.55;
}

.cex-bookmark-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    margin-bottom: .75rem;
}

.cex-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .8rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(145deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.28);
    cursor: grab;
}

.cex-bookmark-btn:active { cursor: grabbing; }
.cex-bookmark-btn:hover { filter: brightness(1.06); color: #fff; }

.cex-tip, .cex-alt summary {
    font-size: .82rem;
    color: var(--text-dim, #64748b);
    line-height: 1.45;
}

.cex-tip kbd,
.cex-steps kbd,
.cex-code-row code,
.cex-alt code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
}

.cex-tip kbd,
.cex-steps kbd {
    display: inline-block;
    padding: .08rem .35rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(2, 6, 23, 0.85);
    color: #e2e8f0;
}

.cex-steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--text-muted, #94a3b8);
    font-size: .9rem;
    line-height: 1.55;
}

.cex-steps li { margin: .35rem 0; }

.cex-alt {
    margin-top: .25rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 8, 20, 0.4);
}

.cex-alt summary {
    cursor: pointer;
    font-weight: 700;
    color: #cbd5e1;
}

.cex-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .65rem;
}

.cex-code-row code {
    flex: 1;
    min-width: 0;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #7dd3fc;
}

.cex-cookies {
    min-height: 7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .82rem;
    margin-bottom: .75rem;
}

.cex-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.cex-mini {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    color: #94a3b8;
    border-radius: 10px;
    padding: .45rem .75rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.cex-mini:hover { color: #e2e8f0; border-color: rgba(148, 163, 184, 0.45); }

.cex-meta {
    margin-left: auto;
    font-size: .78rem;
    color: var(--text-dim, #64748b);
    font-weight: 600;
}

.cex-status {
    margin: .75rem 0 0;
    min-height: 1.25rem;
    font-size: .86rem;
    color: var(--text-muted, #94a3b8);
}

.cex-status.is-ok { color: #4ade80; }
.cex-status.is-error { color: #f87171; }

.cex-private-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .55rem;
}

.cex-private-link {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
    padding: .7rem .85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 8, 20, 0.45);
    color: #e2e8f0;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.35;
}

.cex-private-link span {
    color: #7dd3fc;
    font-size: .78rem;
    white-space: nowrap;
}

.cex-private-link:hover {
    border-color: rgba(0, 174, 239, 0.45);
    background: rgba(0, 174, 239, 0.1);
}

.cex-safety ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted, #94a3b8);
    font-size: .86rem;
    line-height: 1.55;
}

.cex-safety li { margin: .3rem 0; }

@media (max-width: 640px) {
    .cex-hero { flex-direction: column; }
    .cex-meta { margin-left: 0; width: 100%; }
    .cex-bookmark-row { flex-direction: column; align-items: stretch; }
    .cex-bookmark-btn { justify-content: center; }
}
