/* ============================================================
   PAGES.CSS — Premium Sub-Page Styles
   Matches homepage design tokens: --ink, --brand, --surface, etc.
   ============================================================ */

/* ---- Design Tokens (inheriting from home.css) ---- */
:root {
    --ink: #0f172a;
    --ink-sub: #475569;
    --brand: #4338ca;
    --brand-l: #6366f1;
    --brand-xl: #818cf8;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Override main.css padding ---- */
.main-content {
    padding: 0;
}

/* ---- Page Hero / Page Header ---- */
.pg-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #e0e7ff 100%);
}

.pg-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.pg-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 56, 202, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.pg-hero .pg-container {
    position: relative;
    z-index: 1;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.pg-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 auto 16px;
    max-width: 700px;
    letter-spacing: -0.02em;
}

.pg-hero .pg-subtitle {
    font-size: 1.15rem;
    color: var(--ink-sub);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* ---- Container ---- */
.pg-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section ---- */
.pg-section {
    padding: 72px 0;
}

.pg-section+.pg-section {
    border-top: 1px solid var(--border);
}

.pg-section--alt {
    background: var(--surface);
}

.pg-section--dark {
    background: var(--ink);
    color: var(--white);
    border-top: none;
}

.pg-section--dark+.pg-section,
.pg-section+.pg-section--dark {
    border-top: none;
}

.pg-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
    display: block;
}

.pg-section--dark .pg-section-label {
    color: var(--brand-xl);
}

.pg-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.pg-section--dark .pg-section-title {
    color: var(--white);
}

.pg-section-desc {
    font-size: 1.05rem;
    color: var(--ink-sub);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
}

.pg-section--dark .pg-section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.pg-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.pg-section-header .pg-section-desc {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* ---- Grid ---- */
.pg-grid {
    display: grid;
    gap: 24px;
}

.pg-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.pg-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.pg-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.pg-grid--sidebar {
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 900px) {

    .pg-grid--3,
    .pg-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg-grid--sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {

    .pg-grid--2,
    .pg-grid--3,
    .pg-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ---- Card ---- */
.pg-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.35s var(--ease);
    position: relative;
}

.pg-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.pg-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: #eef2ff;
    color: var(--brand);
}

.pg-card__icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.pg-card__icon--green {
    background: #f0fdf4;
    color: #16a34a;
}

.pg-card__icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.pg-card__icon--purple {
    background: #faf5ff;
    color: #9333ea;
}

.pg-card__icon--rose {
    background: #fff1f2;
    color: #e11d48;
}

.pg-card__icon--teal {
    background: #f0fdfa;
    color: #0d9488;
}

.pg-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.pg-card__desc {
    font-size: 0.92rem;
    color: var(--ink-sub);
    line-height: 1.65;
    margin-bottom: 16px;
}

.pg-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.pg-card__features li {
    font-size: 0.88rem;
    color: var(--ink-sub);
    padding: 4px 0 4px 22px;
    position: relative;
}

.pg-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.8rem;
}

.pg-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    transition: gap 0.25s var(--ease);
}

.pg-card__link:hover {
    gap: 10px;
}

/* ---- Pricing Cards ---- */
.pg-plan {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.35s var(--ease);
}

.pg-plan:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pg-plan--popular {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), var(--shadow-lg);
    transform: scale(1.04);
}

.pg-plan--popular:hover {
    transform: scale(1.04) translateY(-4px);
}

.pg-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brand);
    color: var(--white);
    padding: 5px 22px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pg-plan__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.pg-plan__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 4px;
}

.pg-plan__price-unit {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--ink-sub);
    display: block;
    margin-bottom: 24px;
}

.pg-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.pg-plan__features li {
    font-size: 0.9rem;
    color: var(--ink-sub);
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid var(--surface-2);
}

.pg-plan__features li:last-child {
    border-bottom: none;
}

.pg-plan__features li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    color: #16a34a;
    font-weight: 700;
}

/* ---- Table ---- */
.pg-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.pg-table th,
.pg-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.92rem;
}

.pg-table thead th {
    background: var(--surface);
    font-weight: 700;
    color: var(--ink);
    border-bottom: 2px solid var(--border);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pg-table tbody td {
    color: var(--ink-sub);
    border-bottom: 1px solid var(--surface-2);
}

.pg-table tbody tr:last-child td {
    border-bottom: none;
}

.pg-table tbody tr:hover {
    background: var(--surface);
}

.pg-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
}

/* ---- Buttons (Page-Level) ---- */
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.pg-btn--primary {
    background: var(--brand);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25);
}

.pg-btn--primary:hover {
    background: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.pg-btn--outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.pg-btn--outline:hover {
    background: var(--brand);
    color: var(--white);
}

.pg-btn--white {
    background: var(--white);
    color: var(--brand);
}

.pg-btn--white:hover {
    background: #eef2ff;
    transform: translateY(-1px);
}

.pg-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.pg-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
}

.pg-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- CTA Banner ---- */
.pg-cta {
    background: linear-gradient(135deg, var(--brand) 0%, #312e81 100%);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pg-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.pg-cta .pg-container {
    position: relative;
    z-index: 1;
}

.pg-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.pg-cta p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.pg-cta .pg-btn-group {
    justify-content: center;
}

/* ---- Contact Cards ---- */
.pg-contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all 0.35s var(--ease);
}

.pg-contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.pg-contact-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    background: #eef2ff;
}

.pg-contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.pg-contact-card p {
    font-size: 0.88rem;
    color: var(--ink-sub);
    margin-bottom: 14px;
    line-height: 1.5;
}

.pg-contact-card .pg-btn {
    width: 100%;
}

.pg-contact-card small {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--ink-sub);
    opacity: 0.7;
}

/* ---- Forms ---- */
.pg-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.pg-form__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    text-align: center;
}

.pg-form__subtitle {
    font-size: 0.92rem;
    color: var(--ink-sub);
    text-align: center;
    margin-bottom: 32px;
}

.pg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .pg-form-grid {
        grid-template-columns: 1fr;
    }

    .pg-form {
        padding: 28px 20px;
    }
}

.pg-form-group {
    margin-bottom: 20px;
}

.pg-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.pg-form-input,
.pg-form-select,
.pg-form-textarea {
    width: 100%;
    padding: 11px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s var(--ease);
    outline: none;
}

.pg-form-input:focus,
.pg-form-select:focus,
.pg-form-textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
    background: var(--white);
}

.pg-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.pg-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--ink-sub);
    margin-bottom: 20px;
}

.pg-form-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pg-form-captcha img {
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* ---- FAQ Accordion ---- */
.pg-faq {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease);
}

.pg-faq:hover {
    box-shadow: var(--shadow-sm);
}

.pg-faq__q {
    padding: 18px 24px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.pg-faq__q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-sub);
    transition: transform 0.25s var(--ease);
}

.pg-faq.open .pg-faq__q::after {
    transform: rotate(45deg);
}

.pg-faq__a {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.pg-faq.open .pg-faq__a {
    padding: 0 24px 20px;
    max-height: 400px;
}

.pg-faq__a p {
    font-size: 0.92rem;
    color: var(--ink-sub);
    line-height: 1.7;
    margin: 0;
}

/* ---- Stats Strip ---- */
.pg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 32px 0;
}

.pg-stat {
    text-align: center;
}

.pg-stat__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 4px;
}

.pg-stat__label {
    font-size: 0.82rem;
    color: var(--ink-sub);
    font-weight: 500;
}

.pg-section--dark .pg-stat__number {
    color: var(--brand-xl);
}

.pg-section--dark .pg-stat__label {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
    .pg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Discount / Volume Cards ---- */
.pg-volume-card {
    background: var(--surface);
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    transition: all 0.25s var(--ease);
}

.pg-volume-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.pg-volume-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.pg-volume-card p {
    font-size: 0.88rem;
    color: var(--ink-sub);
    margin: 0;
}

/* ---- Calculator ---- */
.pg-calculator {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 560px;
    margin: 0 auto;
}

.pg-calculator__result {
    background: var(--surface);
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

.pg-calculator__result h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 4px;
}

.pg-calculator__result p {
    font-size: 0.88rem;
    color: var(--ink-sub);
    margin: 0;
}

/* ---- Value Props / Feature Rows ---- */
.pg-value-row {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.pg-value-row:last-child {
    border-bottom: none;
}

.pg-value-row__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #eef2ff;
    flex-shrink: 0;
}

.pg-value-row h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.pg-value-row p {
    font-size: 0.9rem;
    color: var(--ink-sub);
    line-height: 1.6;
    margin: 0;
}

/* ---- Blog Cards ---- */
.pg-blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s var(--ease);
}

.pg-blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pg-blog-card__thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--brand);
}

.pg-blog-card__body {
    padding: 24px;
}

.pg-blog-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    background: #eef2ff;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.pg-blog-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.35;
}

.pg-blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--ink-sub);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pg-blog-card__meta {
    font-size: 0.78rem;
    color: var(--ink-sub);
    opacity: 0.7;
}

/* ---- Responsive Fine-Tuning ---- */
@media (max-width: 768px) {
    .pg-hero {
        padding: 60px 0 48px;
    }

    .pg-section {
        padding: 48px 0;
    }

    .pg-form {
        padding: 24px 16px;
    }

    .pg-value-row {
        flex-direction: column;
        gap: 12px;
    }

    .pg-cta {
        padding: 48px 0;
    }
}

/* ---- FAQ Script ---- */
/* Handled via inline JS, no extra needed */

/* ---- Utility Classes ---- */
.pg-text-center {
    text-align: center;
}

.pg-mb-0 {
    margin-bottom: 0;
}

.pg-mt-2 {
    margin-top: 2rem;
}

.pg-mt-3 {
    margin-top: 3rem;
}

/* ============================================================
   INTEGRATION / GUIDE PAGE ADDITIONS
   Code blocks, checklists, callouts, steps, card links, etc.
   ============================================================ */

/* ---- Section Variants ---- */
.pg-section--gray {
    background: var(--surface, #f8fafc);
    border-top: none;
}

.pg-section--gray+.pg-section {
    border-top: none;
}

.pg-section+.pg-section--gray {
    border-top: none;
}

.pg-section--cta {
    background: linear-gradient(135deg, var(--brand, #4338ca) 0%, #6366f1 50%, #818cf8 100%);
    color: #fff;
    border-top: none;
    position: relative;
    overflow: hidden;
}

.pg-section--cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.pg-section--cta+.pg-section,
.pg-section+.pg-section--cta {
    border-top: none;
}

/* ---- Code Blocks ---- */
.pg-code-block {
    background: #1e1e2e;
    border-radius: var(--radius, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pg-code-block__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pg-code-block__lang {
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Cascadia Code', monospace);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.pg-code-block__copy {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-code-block__copy:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pg-code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pg-code-block code {
    font-family: var(--font-mono, 'SF Mono', 'Fira Code', 'Cascadia Code', monospace);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #cdd6f4;
    white-space: pre;
    tab-size: 4;
}

/* Code scrollbar styling */
.pg-code-block pre::-webkit-scrollbar {
    height: 6px;
}

.pg-code-block pre::-webkit-scrollbar-track {
    background: transparent;
}

.pg-code-block pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ---- Checklists ---- */
.pg-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-checklist li {
    position: relative;
    padding: 8px 0 8px 28px;
    font-size: 0.92rem;
    color: var(--ink-sub, #64748b);
    line-height: 1.6;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.pg-checklist li:last-child {
    border-bottom: none;
}

.pg-checklist li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 8px;
    color: #16a34a;
    font-weight: 700;
    font-size: 0.85rem;
}

.pg-checklist li code {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
}

/* ---- Steps List (numbered) ---- */
.pg-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.pg-steps-list li {
    position: relative;
    padding: 10px 0 10px 40px;
    font-size: 0.92rem;
    color: var(--ink-sub, #64748b);
    line-height: 1.6;
    border-bottom: 1px solid var(--border, #e2e8f0);
    counter-increment: step-counter;
}

.pg-steps-list li:last-child {
    border-bottom: none;
}

.pg-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand, #4338ca), #6366f1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Callouts ---- */
.pg-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius, 12px);
    padding: 20px 24px;
    font-size: 0.92rem;
    color: #1e40af;
    line-height: 1.7;
}

.pg-callout--tip {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.pg-callout--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.pg-callout--danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.pg-callout code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
}

/* ---- Card Link (clickable card) ---- */
a.pg-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s var(--ease, ease);
}

a.pg-card--link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.1));
    border-color: var(--brand, #4338ca);
}

a.pg-card--link .pg-card__title {
    transition: color 0.2s ease;
}

a.pg-card--link:hover .pg-card__title {
    color: var(--brand, #4338ca);
}

/* ---- FAQ with <details> ---- */
details.pg-faq__item {
    background: var(--white, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 12px);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

details.pg-faq__item:hover {
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
}

details.pg-faq__item summary.pg-faq__q {
    padding: 18px 24px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink, #1e293b);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}

details.pg-faq__item summary.pg-faq__q::-webkit-details-marker {
    display: none;
}

details.pg-faq__item summary.pg-faq__q::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-sub, #64748b);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

details[open].pg-faq__item summary.pg-faq__q::after {
    transform: rotate(45deg);
}

details.pg-faq__item .pg-faq__a {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    color: var(--ink-sub, #64748b);
    line-height: 1.7;
    max-height: none;
    overflow: visible;
}

details.pg-faq__item .pg-faq__a a {
    color: var(--brand, #4338ca);
    text-decoration: none;
    font-weight: 500;
}

details.pg-faq__item .pg-faq__a a:hover {
    text-decoration: underline;
}

details.pg-faq__item .pg-faq__a code {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
}

/* ---- Table Wrapper (scrollable) ---- */
.pg-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius, 12px);
}

.pg-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.pg-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

/* Table cell code styling */
.pg-table code {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
    white-space: nowrap;
}

/* ---- Ghost Button (for CTAs) ---- */
.pg-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
}

.pg-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---- White Button (for CTAs) ---- */
.pg-btn--white {
    background: #fff;
    color: var(--brand, #4338ca);
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.pg-btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Hero Actions (button row) ---- */
.pg-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ---- Grid single column variant ---- */
.pg-grid--1 {
    grid-template-columns: 1fr;
}

/* ---- Inline code in card text ---- */
.pg-card__text code {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font-mono, monospace);
}

/* ---- Responsive additions for guide pages ---- */
@media (max-width: 768px) {
    .pg-code-block pre {
        padding: 16px;
    }

    .pg-code-block code {
        font-size: 0.78rem;
    }

    .pg-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .pg-hero__actions .pg-btn--white,
    .pg-hero__actions .pg-btn--ghost {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .pg-callout {
        padding: 16px;
    }

    details.pg-faq__item summary.pg-faq__q {
        padding: 14px 16px;
        font-size: 0.92rem;
    }

    details.pg-faq__item .pg-faq__a {
        padding: 0 16px 16px;
    }

    .pg-steps-list li {
        padding-left: 36px;
    }
}

@media (max-width: 480px) {
    .pg-code-block code {
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .pg-table {
        font-size: 0.82rem;
    }
}

/* ---- Tawk.to Chat Widget Override ----
   Prevent the chat widget from overlapping page content.
   We shrink the minimized bubble and push it to a safe position. */
#tawk-bubble-container,
.tawk-min-container {
    bottom: 80px !important;
    /* Move above WhatsApp button */
    left: auto !important;
    right: 80px !important;
    /* Position to the left of WhatsApp */
}

/* When the widget is maximized, ensure it doesn't cover content */
iframe[title="chat widget"] {
    z-index: 999 !important;
}

/* Make sure the WhatsApp floating button doesn't conflict */
.whatsapp-float,
a[href*="wa.me"] {
    z-index: 998;
}