.docs-page-header {
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid #EEF2F6;
    margin-bottom: 32px;
}

.docs-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #059669;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.docs-page-title {
    font-size: 2.1rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #0F172A;
    line-height: 1.25;
}

.docs-page-lead {
    font-size: 1.05rem;
    color: #64748B;
    line-height: 1.65;
    margin-top: 10px;
    max-width: 740px;
}

.docs-badge-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #4F46E5;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle;
}

.category-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 22px 0 32px;
}

.cat-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cat-card-utility {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 1px solid #86EFAC;
}
.cat-card-utility:hover {
    border-color: #4ADE80;
    box-shadow: 0 10px 24px -5px rgba(34, 197, 94, 0.14);
}
.cat-card-utility h4 { color: #15803D; }
.cat-card-utility p { color: #166534; opacity: 0.9; }

.cat-card-marketing {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 1px solid #FECACA;
}
.cat-card-marketing:hover {
    border-color: #F87171;
    box-shadow: 0 10px 24px -5px rgba(239, 68, 68, 0.14);
}
.cat-card-marketing h4 { color: #991B1B; }
.cat-card-marketing p { color: #B91C1C; opacity: 0.9; }

.badge-rec-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.badge-rec-green {
    background: #DCFCE7;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

.badge-rec-red {
    background: #FFE4E6;
    color: #E11D48;
    border: 1px solid #FDA4AF;
}

.cat-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cat-card p {
    font-size: 0.83rem;
    line-height: 1.5;
}

.template-code-box {
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 18px 0 28px;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.template-code-box pre {
    color: #E2E8F0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.template-code-box .var-tag {
    color: #38BDF8;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.vars-table-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0 32px;
}

.vars-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.vars-table th {
    background: #F8FAFC;
    color: #475569;
    font-weight: 600;
    padding: 12px 18px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vars-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    vertical-align: middle;
}

.vars-table tr:last-child td {
    border-bottom: none;
}

.code-pill {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.8rem;
    background: #F1F5F9;
    color: #4F46E5;
    padding: 3px 7px;
    border-radius: 5px;
    border: 1px solid #E2E8F0;
    font-weight: 600;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 32px;
}

.btn-spec-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 16px;
    transition: all 0.2s ease;
}

.btn-spec-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.06);
}

.btn-num-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0284C7;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
}

.btn-spec-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.btn-payload-row {
    font-size: 0.76rem;
    color: #64748B;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wa-preview-canvas {
    background: linear-gradient(135deg, #0C1E17 0%, #0F2D21 100%);
    border-radius: 18px;
    padding: 28px 24px;
    margin: 28px 0;
    border: 1px solid #1E4D3A;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
}

.wa-bubble-card {
    max-width: 440px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 14px 14px 14px 4px;
    padding: 16px 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
}

.wa-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-bubble-header svg {
    color: #DC2626;
}

.wa-bubble-text {
    font-size: 0.88rem;
    color: #1E293B;
    line-height: 1.55;
    margin-bottom: 14px;
}

.wa-bubble-text p {
    margin-bottom: 8px;
}

.wa-bubble-text p:last-child {
    margin-bottom: 0;
}

.wa-bubble-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #F1F5F9;
    padding-top: 12px;
}

.wa-interactive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #0284C7;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: default;
}

.wa-interactive-btn.btn-cancel {
    color: #DC2626;
    background: #FEF2F2;
    border-color: #FEE2E2;
}

.wa-time-stamp {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.68rem;
    color: #94A3B8;
    margin-top: 6px;
}

.docs-nav-pager {
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid #EEF2F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pager-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748B;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pager-btn-back:hover {
    color: #0F172A;
    transform: translateX(-3px);
}

.pager-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    padding: 10px 20px;
    border-radius: 9px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transition: all 0.2s ease;
}

.pager-btn-next:hover {
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 820px) {
    .category-selection-grid,
    .buttons-grid {
        grid-template-columns: 1fr;
    }
}