.page-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.page-hero .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px 5px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 1.4rem;
}

.page-hero .hero-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── LAYOUT ── */
.dec-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── INPUT PANEL ── */
.input-panel {
    position: sticky;
    top: 80px;
}

.panel-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.dec-input-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1.2rem;
}

.dec-input-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 79, 233, 0.1);
}

.dec-input-card .input-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 0;
}

.dec-input-card textarea {
    width: 100%;
    border: none;
    outline: none;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--ink);
    padding: 12px 16px;
    resize: none;
    min-height: 110px;
    background: transparent;
    line-height: 1.7;
}

.dec-input-card textarea::placeholder {
    color: var(--muted);
}

.dec-input-card .input-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 10px;
    border-top: 1px solid var(--border);
}

/* Category Filter */
.cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.cat-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink2);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.15s;
}

.cat-btn:hover,
.cat-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Preview of entered text */
.preview-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.preview-box-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.preview-text {
    font-size: 14px;
    color: var(--muted);
    font-style: italic;
    font-family: 'Fira Code', monospace;
    line-height: 1.5;
}


.results-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.results-hd h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.results-hd span {
    font-size: 11.5px;
    color: var(--muted);
}

/* ── DECORATION CARDS ── */
.dec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dec-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    position: relative;
}

.dec-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(91, 79, 233, 0.09);
    transform: translateY(-2px);
}

.dec-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dec-name {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.dec-cat-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--primary-light);
    color: var(--primary);
}

.dec-output {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    word-break: break-word;
    white-space: pre-wrap;
    min-height: 28px;
    font-family: 'Fira Code', monospace;
}

.dec-output.empty {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: italic;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dec-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Reuse copy-btn from style.css */

/* ── INFO SECTION ── */
.dec-info {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 1rem;
}

.dec-info-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dec-info-block h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dec-info-block p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
    .dec-layout {
        grid-template-columns: 1fr;
    }

    .input-panel {
        position: static;
    }

    .dec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .dec-grid {
        grid-template-columns: 1fr;
    }
}