/* ============================================
   P4 Packing Design System
   ============================================ */

:root {
    --p4-blue: #0A5FAD;
    --p4-blue-dark: #062E54;
    --p4-blue-darker: #041C35;
    --p4-blue-light: #E3EFF9;
    --p4-orange: #FBAD48;
    --p4-orange-dark: #E89420;
    --p4-orange-light: #FFF4E5;
    --p4-coral: #E8475F;
    --p4-bg: #FFFFFF;
    --p4-bg-alt: #F7F9FC;
    --p4-text: #1A1A2E;
    --p4-text-muted: #5A6578;
    --p4-border: #DDE3ED;
    --p4-gradient-hero: linear-gradient(135deg, #0A5FAD 0%, #062E54 100%);
    --p4-gradient-cta: linear-gradient(135deg, #0A5FAD 0%, #1477CC 100%);
    --p4-radius: 8px;
    --p4-radius-lg: 12px;
    --p4-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --p4-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --p4-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --p4-transition: 0.2s ease;
    --p4-nav-height: 90px;
}

* { box-sizing: border-box; }

/* Screen reader only */
.p4-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--p4-text);
    background: var(--p4-bg);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

code, pre, .p4-code {
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
}

a { color: var(--p4-blue); }

/* ============================================
   Buttons
   ============================================ */
.p4-btn-primary {
    background: var(--p4-blue);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--p4-radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--p4-transition);
}
.p4-btn-primary:hover { background: var(--p4-blue-dark); transform: translateY(-1px); box-shadow: var(--p4-shadow-md); }

.p4-btn-accent {
    background: var(--p4-orange);
    color: var(--p4-text);
    border: none;
    padding: 12px 28px;
    border-radius: var(--p4-radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--p4-transition);
}
.p4-btn-accent:hover { background: var(--p4-orange-dark); transform: translateY(-1px); box-shadow: var(--p4-shadow-md); }

.p4-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 26px;
    border-radius: var(--p4-radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--p4-transition);
}
.p4-btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

.p4-btn-outline-blue {
    background: transparent;
    color: var(--p4-blue);
    border: 2px solid var(--p4-blue);
    padding: 10px 26px;
    border-radius: var(--p4-radius);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--p4-transition);
}
.p4-btn-outline-blue:hover { background: var(--p4-blue); color: white; transform: translateY(-1px); }
.p4-btn-outline-blue.disabled { opacity: 0.4; pointer-events: none; cursor: default; }

.p4-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.p4-btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ============================================
   NavBar — Frosted Glass
   ============================================ */
.p4-navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--p4-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.p4-navbar.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

.p4-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--p4-nav-height);
    padding: 0 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.p4-navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.p4-navbar-logo img { max-height: 70px; width: auto; }

.p4-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 16px;
}

.p4-nav-item {
    position: relative;
}

.p4-nav-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: var(--p4-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--p4-radius);
    transition: all var(--p4-transition);
    white-space: nowrap;
    cursor: pointer;
}
.p4-nav-label:hover { background: var(--p4-bg-alt); color: var(--p4-blue); }
.p4-nav-label svg { opacity: 0.5; }

.p4-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--p4-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--p4-radius);
    transition: all var(--p4-transition);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.p4-nav-link:hover { background: var(--p4-bg-alt); color: var(--p4-blue); }
.p4-nav-link.active { color: var(--p4-blue); }

/* Dropdown */
.p4-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: white;
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius-lg);
    box-shadow: var(--p4-shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1001;
}
.p4-has-dropdown:hover > .p4-dropdown,
.p4-has-dropdown:focus-within > .p4-dropdown,
.p4-nav-item:hover > .p4-dropdown,
.p4-nav-item:focus-within > .p4-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.p4-dropdown-link {
    display: block;
    padding: 10px 14px;
    color: var(--p4-text);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--p4-radius);
    transition: background var(--p4-transition);
}
.p4-dropdown-link:hover { background: var(--p4-bg-alt); color: var(--p4-blue); }
.p4-dropdown-label {
    font-weight: 600;
    display: block;
}
.p4-dropdown-desc {
    font-size: 0.78rem;
    color: var(--p4-text-muted);
    margin-top: 2px;
    display: block;
}

/* Nav right-side actions */
.p4-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.p4-nav-cta {
    background: var(--p4-orange);
    color: var(--p4-blue-darker) !important;
    padding: 9px 22px;
    border-radius: var(--p4-radius);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--p4-transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(251, 173, 72, 0.3);
}
.p4-nav-cta:hover {
    background: var(--p4-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(251, 173, 72, 0.4);
}

.p4-nav-lang {
    background: none;
    border: 1px solid var(--p4-border);
    color: var(--p4-text-muted);
    padding: 4px 10px;
    border-radius: var(--p4-radius);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--p4-transition);
}
.p4-nav-lang:hover { border-color: var(--p4-blue); color: var(--p4-blue); }

/* Hamburger — hidden on desktop */
.p4-nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--p4-text);
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.p4-nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--p4-text);
    border-radius: 2px;
    transition: all 0.2s;
}

/* Mobile nav — slide-out panel */
.p4-mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 3000;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.3s ease;
}
.p4-mobile-nav--open { right: 0; }

.p4-mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2999;
}

.p4-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--p4-border);
}
.p4-mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--p4-text-muted);
    padding: 4px;
}

.p4-mobile-nav-body {
    padding: 16px 20px;
}
.p4-mobile-nav-section {
    margin-bottom: 20px;
}
.p4-mobile-nav-section h4 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--p4-text-muted);
    margin: 0 0 8px;
    font-weight: 700;
}
.p4-mobile-nav-section a {
    display: block;
    padding: 10px 0;
    color: var(--p4-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--p4-border);
}
.p4-mobile-nav-section a:last-child { border-bottom: none; }

.p4-mobile-nav-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--p4-border);
    margin-top: 8px;
}

/* ============================================
   Footer — Dark Multi-Column
   ============================================ */
.p4-footer-cta {
    background: var(--p4-gradient-cta);
    color: white;
    text-align: center;
    padding: 48px 32px;
}
.p4-footer-cta h2 {
    font-size: 2rem;
    margin: 0 0 8px;
    color: white;
}
.p4-footer-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 24px;
}
.p4-footer-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.p4-footer {
    background: var(--p4-blue-darker);
    color: rgba(255,255,255,0.8);
    padding: 48px 32px 24px;
}

.p4-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.p4-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.p4-footer-brand img { height: 36px; align-self: flex-start; }
.p4-footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.p4-footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.p4-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all var(--p4-transition);
    font-size: 0.85rem;
}
.p4-footer-social:hover { background: var(--p4-blue); color: white; }

.p4-footer-col h4 {
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px;
    font-weight: 700;
}
.p4-footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 3px 0;
    transition: color var(--p4-transition);
}
.p4-footer-col a:hover { color: white; }

.p4-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
.p4-footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-left: 20px;
}
.p4-footer-bottom a:hover { color: white; }

/* ============================================
   Sections
   ============================================ */
.p4-section { padding: 80px 32px; max-width: 1200px; margin: 0 auto; }
.p4-section-alt { background: var(--p4-bg-alt); }
.p4-section-full { padding: 80px 32px; }
.p4-section-dark { background: var(--p4-blue-dark); color: white; }
.p4-section-center { text-align: center; }

.p4-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.p4-section-header h2 {
    font-size: 2.2rem;
    margin: 0 0 12px;
}
.p4-section-header p {
    color: var(--p4-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}
.p4-section-dark .p4-section-header p { color: rgba(255,255,255,0.7); }

.p4-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--p4-blue);
    margin-bottom: 8px;
}
.p4-section-dark .p4-eyebrow { color: var(--p4-orange); }

/* ============================================
   Hero
   ============================================ */
.p4-hero {
    background: var(--p4-gradient-hero);
    color: white;
    text-align: center;
    padding: 100px 32px 80px;
    position: relative;
    overflow: hidden;
}
.p4-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(251,173,72,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.p4-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.p4-hero h1 {
    font-size: 3.2rem;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.p4-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 0 36px;
    line-height: 1.6;
}
.p4-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.p4-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.p4-hero-stat {
    text-align: center;
}
.p4-hero-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--p4-orange);
}
.p4-hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* Animated grid pattern for hero */
.p4-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: p4-grid-drift 20s linear infinite;
    pointer-events: none;
}
@keyframes p4-grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ============================================
   Page Hero (inner pages — split layout with image)
   ============================================ */
.p4-page-hero {
    background: var(--p4-gradient-hero);
    color: white;
    padding: 100px 32px 80px;
    position: relative;
    overflow: hidden;
}
.p4-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(251,173,72,0.06) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
}
.p4-page-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.p4-page-hero-text { position: relative; }
.p4-page-hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 12px 0 16px;
}
.p4-page-hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0;
}
.p4-page-hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.p4-page-hero-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.p4-page-hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(4,28,53,0.4) 100%);
    pointer-events: none;
}

/* ============================================
   Cards
   ============================================ */
.p4-card {
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius-lg);
    padding: 28px;
    background: white;
    transition: all var(--p4-transition);
}
.p4-card:hover { box-shadow: var(--p4-shadow-md); transform: translateY(-4px); }

.p4-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--p4-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.4rem;
}
.p4-card-icon-blue { background: var(--p4-blue-light); color: var(--p4-blue); }
.p4-card-icon-orange { background: var(--p4-orange-light); color: var(--p4-orange-dark); }

.p4-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: var(--p4-text);
}
.p4-card p {
    margin: 0;
    color: var(--p4-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.p4-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--p4-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 12px;
    transition: gap var(--p4-transition);
}
.p4-card-link:hover { gap: 8px; }

.p4-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.p4-cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.p4-cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ============================================
   Stat Cards
   ============================================ */
.p4-stat-card {
    text-align: center;
    padding: 32px;
}
.p4-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--p4-coral);
    line-height: 1;
    margin-bottom: 8px;
}
.p4-stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   Steps / Timeline
   ============================================ */
.p4-steps { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.p4-step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    position: relative;
}
.p4-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--p4-blue-light);
    color: var(--p4-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.p4-step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--p4-orange);
    color: var(--p4-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* ============================================
   Logo Marquee
   ============================================ */
.p4-marquee-section {
    padding: 40px 0;
    overflow: hidden;
    background: var(--p4-bg-alt);
    border-top: 1px solid var(--p4-border);
    border-bottom: 1px solid var(--p4-border);
}
.p4-marquee-label {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--p4-text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}
.p4-marquee-track {
    display: flex;
    gap: 64px;
    animation: p4-marquee 30s linear infinite;
    width: max-content;
}
.p4-marquee-track span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--p4-text-muted);
    opacity: 0.5;
    white-space: nowrap;
}
@keyframes p4-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Code Block
   ============================================ */
.p4-code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: var(--p4-radius-lg);
    padding: 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}
.p4-code-block .keyword { color: #cba6f7; }
.p4-code-block .string { color: #a6e3a1; }
.p4-code-block .number { color: #fab387; }
.p4-code-block .comment { color: #6c7086; }

.p4-code-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   CTA Banner (reusable)
   ============================================ */
.p4-cta-banner {
    background: var(--p4-gradient-cta);
    color: white;
    text-align: center;
    padding: 56px 32px;
    border-radius: 0;
}
.p4-cta-banner h2 {
    font-size: 2rem;
    margin: 0 0 12px;
    color: white;
}
.p4-cta-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin: 0 0 24px;
}
.p4-cta-banner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Testimonial Carousel
   ============================================ */
.p4-testimonial {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.p4-testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--p4-text);
    margin: 0 0 20px;
}
.p4-testimonial-author {
    font-weight: 600;
    color: var(--p4-text);
}
.p4-testimonial-role {
    font-size: 0.85rem;
    color: var(--p4-text-muted);
}
.p4-testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
.p4-testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--p4-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--p4-transition);
}
.p4-testimonial-dot.active { background: var(--p4-blue); width: 24px; border-radius: 4px; }

/* ============================================
   Accordion (FAQ)
   ============================================ */
.p4-accordion-item {
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius);
    margin-bottom: 8px;
    overflow: hidden;
}
.p4-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--p4-text);
    transition: background var(--p4-transition);
}
.p4-accordion-header:hover { background: var(--p4-bg-alt); }
.p4-accordion-chevron {
    transition: transform 0.2s;
    font-size: 0.8rem;
}
.p4-accordion-item.open .p4-accordion-chevron { transform: rotate(180deg); }
.p4-accordion-body {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--p4-text-muted);
    line-height: 1.6;
}
.p4-accordion-item.open .p4-accordion-body { display: block; }

/* ============================================
   Pricing — Hero
   ============================================ */
.p4-pricing-hero {
    background: var(--p4-gradient-hero);
    color: white;
    padding: 100px 32px 80px;
    position: relative;
    overflow: hidden;
}
.p4-pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(251,173,72,0.06) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    pointer-events: none;
}
.p4-pricing-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
}
.p4-pricing-hero-text {
    position: relative;
}
.p4-pricing-hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 12px 0 20px;
}
.p4-pricing-hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.88;
    margin: 0 0 32px;
}
.p4-pricing-hero-stats {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.p4-pricing-hero-stat {
    display: flex;
    flex-direction: column;
}
.p4-pricing-hero-stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--p4-orange);
}
.p4-pricing-hero-stat-text {
    font-size: 0.82rem;
    opacity: 0.6;
    margin-top: 2px;
}
.p4-pricing-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
}
.p4-pricing-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.p4-pricing-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.p4-pricing-hero-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.p4-pricing-hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(4,28,53,0.5) 100%);
    pointer-events: none;
}
.p4-pricing-hero-image-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10,95,173,0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Pricing — Trust Bar */
.p4-pricing-trust {
    background: var(--p4-blue-darker);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 32px;
}
.p4-pricing-trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.p4-pricing-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}
.p4-pricing-trust-item svg { stroke: var(--p4-orange); flex-shrink: 0; }

/* ============================================
   Pricing — Cards
   ============================================ */
.p4-pricing-cards-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}
.p4-pricing-card {
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius-lg);
    padding: 40px;
    background: white;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}
.p4-pricing-card:hover {
    box-shadow: var(--p4-shadow-lg);
    transform: translateY(-4px);
}
.p4-pricing-card.featured {
    border-color: var(--p4-blue);
    box-shadow: 0 0 0 1px var(--p4-blue), var(--p4-shadow-lg);
}
.p4-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--p4-blue) 0%, #1477CC 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.p4-pricing-card-header {
    margin-bottom: 16px;
    text-align: center;
}
.p4-pricing-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--p4-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}
.p4-pricing-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--p4-text);
    line-height: 1;
    margin: 0;
}
.p4-pricing-period {
    font-size: 0.85rem;
    color: var(--p4-text-muted);
    margin-top: 4px;
}
.p4-pricing-desc {
    color: var(--p4-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 24px;
    text-align: center;
}
.p4-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}
.p4-pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--p4-border);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.p4-pricing-features li:last-child { border-bottom: none; }
.p4-pricing-check {
    color: var(--p4-blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.p4-pricing-card-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--p4-text-muted);
}

/* ============================================
   ROI Calculator Section
   ============================================ */
.p4-roi-section {
    background: var(--p4-blue-dark);
    position: relative;
    overflow: hidden;
}
.p4-roi-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 90%, rgba(251,173,72,0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 40%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}
.p4-roi-calculator {
    max-width: 880px;
    margin: 0 auto;
}

/* ROI Input Card */
.p4-roi-input-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}
.p4-roi-input-label {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    font-weight: 500;
}
.p4-roi-shipment-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.p4-roi-shipment-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--p4-orange);
    letter-spacing: -0.02em;
    line-height: 1;
}
.p4-roi-shipment-unit {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* Slider */
.p4-roi-slider-wrapper { margin-bottom: 20px; }

.p4-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.12) 0%,
        rgba(251,173,72,0.25) 50%,
        rgba(251,173,72,0.4) 100%
    );
    outline: none;
    cursor: pointer;
    position: relative;
}
.p4-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--p4-orange);
    border: 4px solid white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 0 4px rgba(251,173,72,0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.p4-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 8px rgba(251,173,72,0.15);
}
.p4-range-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--p4-orange);
    border: 4px solid white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 0 4px rgba(251,173,72,0.2);
    cursor: pointer;
}
.p4-range-slider::-moz-range-track {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.12) 0%,
        rgba(251,173,72,0.25) 50%,
        rgba(251,173,72,0.4) 100%
    );
    border: none;
}

.p4-roi-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

.p4-roi-monthly-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
    color: rgba(255,255,255,0.5);
}
.p4-roi-monthly-cost strong {
    color: white;
    font-weight: 700;
}

/* ROI Results */
.p4-roi-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.p4-roi-result-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}
.p4-roi-result-card:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-2px);
}
.p4-roi-result-transport { border-top: 3px solid var(--p4-orange); }
.p4-roi-result-corrugate { border-top: 3px solid #22C55E; }

.p4-roi-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 16px;
}
.p4-roi-result-transport .p4-roi-result-icon { color: var(--p4-orange); }
.p4-roi-result-corrugate .p4-roi-result-icon { color: #22C55E; }

.p4-roi-result-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}
.p4-roi-result-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
}
.p4-roi-result-detail {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* ROI Total Bar */
.p4-roi-total {
    background: linear-gradient(135deg, var(--p4-orange) 0%, var(--p4-orange-dark) 100%);
    border-radius: 16px;
    padding: 4px;
}
.p4-roi-total-inner {
    background: rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 24px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.p4-roi-total-left { display: flex; flex-direction: column; }
.p4-roi-total-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.p4-roi-total-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}
.p4-roi-total-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.p4-roi-total-roi-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.p4-roi-total-roi-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

/* ============================================
   Optimize Cards with Images
   ============================================ */
.p4-optimize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.p4-optimize-card {
    border: 1px solid var(--p4-border);
    border-radius: 16px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}
.p4-optimize-card:hover {
    box-shadow: var(--p4-shadow-lg);
    transform: translateY(-6px);
}
.p4-optimize-card-image {
    height: 200px;
    overflow: hidden;
}
.p4-optimize-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.p4-optimize-card:hover .p4-optimize-card-image img {
    transform: scale(1.05);
}
.p4-optimize-card-content {
    padding: 24px;
}
.p4-optimize-card-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
}
.p4-optimize-card-content p {
    font-size: 0.9rem;
    color: var(--p4-text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
}
.p4-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--p4-blue);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.p4-link-arrow:hover { gap: 8px; }
.p4-link-arrow::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

/* ============================================
   Comparison Table
   ============================================ */
.p4-comparison-table-wrapper {
    max-width: 780px;
    margin: 0 auto;
    overflow-x: auto;
}
.p4-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.p4-comparison-table thead th {
    padding: 14px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--p4-blue);
    color: var(--p4-text);
}
.p4-comparison-table thead th:first-child {
    text-align: left;
}
.p4-comparison-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--p4-border);
    text-align: center;
    color: var(--p4-text);
}
.p4-comparison-table tbody td:first-child {
    text-align: left;
    color: var(--p4-text-muted);
    font-weight: 500;
}
.p4-comparison-table tbody tr:hover {
    background: var(--p4-bg-alt);
}
.p4-check-green {
    color: #22C55E;
    font-weight: 700;
    font-size: 1.1rem;
}
.p4-check-muted {
    color: var(--p4-border);
    font-size: 1.1rem;
}

/* Button variants */
.p4-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}
.p4-btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: var(--p4-radius);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--p4-transition);
    background: transparent;
}
.p4-btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============================================
   Pricing Responsive
   ============================================ */
@media (max-width: 992px) {
    .p4-pricing-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .p4-pricing-hero-text h1 { font-size: 2.4rem; }
    .p4-pricing-hero-image img { height: 320px; }
    .p4-optimize-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .p4-pricing-hero { padding: 60px 16px 48px; }
    .p4-pricing-hero-text h1 { font-size: 2rem; }
    .p4-pricing-hero-image { display: none; }
    .p4-pricing-cards-row { grid-template-columns: 1fr; }
    .p4-pricing-card.featured { transform: none; }
    .p4-roi-results { grid-template-columns: 1fr; }
    .p4-roi-result-value { font-size: 2.2rem; }
    .p4-roi-shipment-number { font-size: 2.5rem; }
    .p4-roi-total-inner { flex-direction: column; text-align: center; }
    .p4-roi-total-right { align-items: center; }
    .p4-pricing-trust-inner { gap: 24px; }
    .p4-comparison-table { font-size: 0.82rem; }
    .p4-comparison-table thead th,
    .p4-comparison-table tbody td { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .p4-pricing-hero-stats { gap: 16px; }
    .p4-pricing-hero-stat-divider { display: none; }
    .p4-roi-input-card { padding: 24px 16px; }
    .p4-roi-result-card { padding: 24px 16px; }
}

/* ============================================
   Animations
   ============================================ */
.p4-animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.p4-animate-in.p4-visible {
    opacity: 1;
    transform: translateY(0);
}
.p4-animate-delay-1 { transition-delay: 0.1s; }
.p4-animate-delay-2 { transition-delay: 0.2s; }
.p4-animate-delay-3 { transition-delay: 0.3s; }
.p4-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Modal
   ============================================ */
.p4-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.p4-modal {
    background: white;
    border-radius: var(--p4-radius-lg);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: var(--p4-shadow-lg);
}
.p4-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--p4-text-muted);
}

/* ============================================
   Form Inputs
   ============================================ */
.p4-input {
    padding: 10px 14px;
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius);
    font-size: 0.9rem;
    width: 100%;
    font-family: inherit;
    transition: border-color var(--p4-transition), box-shadow var(--p4-transition);
}
.p4-input:focus {
    outline: none;
    border-color: var(--p4-blue);
    box-shadow: 0 0 0 3px rgba(10,95,173,0.1);
}

/* ============================================
   Sandbox
   ============================================ */
.p4-sandbox-layout {
    display: grid;
    grid-template-columns: 42% 1fr;
    height: calc(100vh - var(--p4-nav-height));
    overflow: hidden;
}
.p4-sandbox-panel {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border-right: 1px solid var(--p4-border);
}
.p4-sandbox-viewer {
    position: relative;
    background: #1a1a2e;
}
.p4-sandbox-viewer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   Tabs
   ============================================ */
.p4-tabs { display: flex; border-bottom: 2px solid var(--p4-border); margin-bottom: 16px; }
.p4-tab {
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--p4-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: color var(--p4-transition);
}
.p4-tab.active { color: var(--p4-blue); border-bottom-color: var(--p4-blue); }

/* ============================================
   Presets
   ============================================ */
.p4-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.p4-preset-btn {
    padding: 6px 14px;
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius);
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--p4-transition);
    font-family: inherit;
}
.p4-preset-btn:hover { background: var(--p4-blue-light); border-color: var(--p4-blue); }

/* ============================================
   Social Icons
   ============================================ */
.p4-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--p4-blue);
    color: white;
    text-decoration: none;
    transition: background var(--p4-transition);
}
.p4-social-icon:hover { background: var(--p4-blue-dark); }

/* ============================================
   Tables
   ============================================ */
.p4-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.p4-table th {
    text-align: left;
    padding: 6px 4px;
    border-bottom: 2px solid var(--p4-border);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--p4-text-muted);
}
.p4-table td {
    padding: 4px;
    border-bottom: 1px solid var(--p4-border);
    vertical-align: middle;
}
.p4-table input {
    border: 1px solid var(--p4-border);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.8rem;
    width: 100%;
}
.p4-table input[type="number"] { width: 48px; }
.p4-table input[type="checkbox"] { width: auto; }

/* ============================================
   Color Swatch
   ============================================ */
.p4-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
    display: inline-block;
}

/* ============================================
   Docs Hero
   ============================================ */
.p4-docs-hero {
    background: var(--p4-gradient-hero);
    color: white;
    padding: 100px 32px 80px;
    position: relative;
    overflow: hidden;
}
.p4-docs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(251,173,72,0.06) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    pointer-events: none;
}
.p4-docs-hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}
.p4-docs-hero-text { position: relative; }
.p4-docs-hero-text h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 12px 0 16px;
}
.p4-docs-hero-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
    margin: 0 0 24px;
}
.p4-docs-hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.p4-docs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.p4-docs-hero-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.p4-docs-hero-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.p4-docs-hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(4,28,53,0.4) 100%);
    pointer-events: none;
}

/* ============================================
   Docs Layout
   ============================================ */
.p4-docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr 380px;
    min-height: calc(100vh - var(--p4-nav-height) - 200px);
}
.p4-docs-sidebar {
    border-right: 1px solid var(--p4-border);
    padding: 0;
    background: var(--p4-bg-alt);
}
.p4-docs-sidebar-sticky {
    position: sticky;
    top: 0;
    padding: 24px 20px;
}
.p4-docs-sidebar-title {
    margin: 0 0 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--p4-text-muted);
    font-weight: 700;
}
.p4-docs-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p4-docs-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--p4-radius);
    text-decoration: none;
    font-size: 0.82rem;
    color: var(--p4-text);
    font-weight: 500;
    transition: all 0.15s ease;
}
.p4-docs-nav-link:hover { background: white; }
.p4-docs-nav-link.active {
    background: white;
    box-shadow: var(--p4-shadow);
    font-weight: 600;
}
.p4-docs-sidebar-info {
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: var(--p4-radius-lg);
    border: 1px solid var(--p4-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.p4-docs-sidebar-info-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.p4-docs-sidebar-info-row svg { flex-shrink: 0; margin-top: 2px; }
.p4-docs-sidebar-info-row strong {
    display: block;
    font-size: 0.82rem;
    color: var(--p4-text);
}
.p4-docs-sidebar-info-row span {
    font-size: 0.78rem;
    color: var(--p4-text-muted);
    line-height: 1.5;
}

/* Docs Content */
.p4-docs-content {
    padding: 40px 48px;
    overflow-y: auto;
}
.p4-docs-endpoint {
    margin-bottom: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--p4-border);
}
.p4-docs-endpoint:last-child { border-bottom: none; }
.p4-docs-endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.p4-docs-endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--p4-text);
}
.p4-docs-endpoint-desc {
    font-size: 1rem;
    color: var(--p4-text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
}
.p4-docs-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--p4-text);
    margin: 28px 0 12px;
}
.p4-docs-section-title svg { color: var(--p4-blue); flex-shrink: 0; }
.p4-docs-muted { font-weight: 400; color: var(--p4-text-muted); }

/* Docs Tables */
.p4-docs-table-wrap {
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius-lg);
    overflow: hidden;
    margin-bottom: 4px;
}
.p4-docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.p4-docs-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--p4-bg-alt);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--p4-text-muted);
    border-bottom: 1px solid var(--p4-border);
}
.p4-docs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--p4-border);
    vertical-align: middle;
}
.p4-docs-table tr:last-child td { border-bottom: none; }
.p4-docs-table tr:hover td { background: rgba(10,95,173,0.02); }
.p4-docs-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--p4-blue);
    font-weight: 600;
}
.p4-docs-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--p4-blue-light);
    color: var(--p4-blue);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}
.p4-docs-tag-required {
    display: inline-block;
    padding: 2px 8px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}
.p4-docs-tag-optional {
    display: inline-block;
    padding: 2px 8px;
    background: var(--p4-orange-light);
    color: var(--p4-orange-dark);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Docs info boxes */
.p4-docs-info-box {
    padding: 12px 16px;
    background: var(--p4-blue-light);
    border-radius: var(--p4-radius);
    border-left: 3px solid var(--p4-blue);
    font-size: 0.88rem;
    margin: 12px 0;
}
.p4-docs-info-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    background: rgba(10,95,173,0.08);
    padding: 1px 5px;
    border-radius: 3px;
}
.p4-docs-info-box-warn {
    background: #FEF3C7;
    border-left-color: #F59E0B;
}

/* Docs Try-It Panel */
.p4-docs-tryit {
    border-left: 1px solid var(--p4-border);
    padding: 0;
    background: var(--p4-blue-darker);
    color: white;
}
.p4-docs-tryit-sticky {
    position: sticky;
    top: 0;
    padding: 24px 20px;
}
.p4-docs-tryit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.p4-docs-tryit-header h4 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.p4-docs-tryit-header svg { color: var(--p4-orange); }

.p4-docs-tryit-field {
    margin-bottom: 16px;
}
.p4-docs-tryit-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.p4-docs-tryit .p4-input {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: white;
}
.p4-docs-tryit .p4-input:focus {
    border-color: var(--p4-orange);
    box-shadow: 0 0 0 3px rgba(251,173,72,0.15);
}
.p4-docs-tryit .p4-input option { color: var(--p4-text); background: white; }

.p4-docs-tryit-readonly-badge {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
}

.p4-docs-code-textarea {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    line-height: 1.6 !important;
    resize: vertical;
    cursor: default;
}
.p4-docs-code-textarea.has-content {
    border-color: rgba(34,197,94,0.3);
}

/* Send Button */
.p4-docs-send-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--p4-orange);
    color: var(--p4-blue-darker);
    border: none;
    border-radius: var(--p4-radius);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}
.p4-docs-send-btn:hover:not(:disabled) {
    background: var(--p4-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251,173,72,0.3);
}
.p4-docs-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner */
.p4-docs-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(4,28,53,0.2);
    border-top-color: var(--p4-blue-darker);
    border-radius: 50%;
    animation: p4-spin 0.6s linear infinite;
}
@keyframes p4-spin {
    to { transform: rotate(360deg); }
}

/* Response status badges */
.p4-docs-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.p4-docs-status-ok { background: rgba(34,197,94,0.15); color: #22C55E; }
.p4-docs-status-err { background: rgba(239,68,68,0.15); color: #EF4444; }

/* Badge size variant */
.p4-badge-lg { padding: 4px 12px; font-size: 0.78rem; }

/* Docs responsive */
@media (max-width: 1200px) {
    .p4-docs-layout { grid-template-columns: 1fr 340px; }
    .p4-docs-sidebar { display: none; }
}
@media (max-width: 992px) {
    .p4-docs-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .p4-docs-hero-text h1 { font-size: 2rem; }
    .p4-docs-hero-image { display: none; }
}
@media (max-width: 768px) {
    .p4-docs-layout { grid-template-columns: 1fr; }
    .p4-docs-tryit { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
    .p4-docs-content { padding: 24px 16px; }
    .p4-docs-hero { padding: 60px 16px 48px; }
}

/* ============================================
   Badges
   ============================================ */
.p4-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.p4-badge-post { background: #2ecc71; color: white; }
.p4-badge-get { background: #1abc9c; color: white; }
.p4-badge-ai {
    background: var(--p4-orange-light);
    color: var(--p4-orange-dark);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.p4-badge-soon {
    background: var(--p4-blue-light);
    color: var(--p4-blue);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* ============================================
   Content Prose
   ============================================ */
.p4-prose { max-width: 720px; margin: 0 auto; }
.p4-prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.p4-prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.p4-prose p { margin: 0 0 16px; line-height: 1.7; }
.p4-prose ul, .p4-prose ol { padding-left: 24px; margin: 0 0 16px; }
.p4-prose li { margin-bottom: 8px; line-height: 1.6; }

/* ============================================
   Two-column layout
   ============================================ */
.p4-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* ============================================
   Contact Page
   ============================================ */
.p4-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 960px;
    margin: 0 auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .p4-footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
    .p4-footer-brand { grid-column: span 3; }
    .p4-cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .p4-code-split { grid-template-columns: 1fr; }
    .p4-split { grid-template-columns: 1fr; }
    .p4-contact-grid { grid-template-columns: 1fr; }
    .p4-page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .p4-page-hero-text h1 { font-size: 2.4rem; }
    .p4-page-hero-image { display: none; }
}

@media (max-width: 768px) {
    .p4-navbar-inner { padding: 0 16px; }
    .p4-nav-links { display: none; }
    .p4-nav-hamburger { display: flex; }
    .p4-nav-cta { display: none; }

    .p4-hero { padding: 60px 16px 48px; }
    .p4-hero h1 { font-size: 2.2rem; }
    .p4-hero p { font-size: 1rem; }
    .p4-hero-stats { gap: 24px; }

    .p4-page-hero { padding: 60px 16px 48px; }
    .p4-page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .p4-page-hero-text h1 { font-size: 2.2rem; }
    .p4-page-hero-image { display: none; }

    .p4-section { padding: 48px 16px; }
    .p4-section-header h2 { font-size: 1.6rem; }

    .p4-footer-grid { grid-template-columns: 1fr 1fr; }
    .p4-footer-brand { grid-column: span 2; }

    .p4-cards-grid-3 { grid-template-columns: 1fr; }
    .p4-cards-grid-2 { grid-template-columns: 1fr; }

    .p4-docs-layout { grid-template-columns: 1fr; }
    .p4-docs-sidebar, .p4-docs-tryit { display: none; }

    .p4-sandbox-layout { grid-template-columns: 1fr; height: auto; }

    .p4-pricing-card.featured { transform: none; }
}

@media (max-width: 480px) {
    .p4-hero h1 { font-size: 1.8rem; }
    .p4-footer-grid { grid-template-columns: 1fr; }
    .p4-footer-brand { grid-column: span 1; }
    .p4-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .p4-footer-bottom a { margin-left: 0; margin: 0 8px; }
}

/* ============================================
   Toast Notifications
   ============================================ */
.p4-toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}
.p4-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 360px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--p4-radius);
    box-shadow: var(--p4-shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--p4-text);
    border-left: 4px solid var(--p4-blue);
    pointer-events: auto;
    animation: p4-toast-in 0.3s ease forwards;
}
.p4-toast-success { border-left-color: #16A34A; }
.p4-toast-error { border-left-color: #DC2626; }
.p4-toast-info { border-left-color: var(--p4-blue); }
.p4-toast-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1rem;
}
.p4-toast-success .p4-toast-icon { color: #16A34A; }
.p4-toast-error .p4-toast-icon { color: #DC2626; }
.p4-toast-info .p4-toast-icon { color: var(--p4-blue); }
.p4-toast-message { flex: 1; }
.p4-toast-out {
    animation: p4-toast-out 0.3s ease forwards;
}
@keyframes p4-toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes p4-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* ============================================
   Blog
   ============================================ */

.p4-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--p4-bg);
    border-radius: var(--p4-radius-lg);
    border: 1px solid var(--p4-border);
    overflow: hidden;
    transition: box-shadow var(--p4-transition), transform var(--p4-transition);
    text-decoration: none;
    color: inherit;
}
.p4-blog-card:hover {
    box-shadow: var(--p4-shadow-lg);
    transform: translateY(-2px);
}

.p4-blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.p4-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--p4-transition);
}
.p4-blog-card:hover .p4-blog-card-image img {
    transform: scale(1.05);
}

.p4-blog-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.p4-blog-card-body h3 {
    margin: 0.5rem 0;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--p4-text);
}
.p4-blog-card-body p {
    color: var(--p4-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.p4-blog-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--p4-text-muted);
    border-top: 1px solid var(--p4-border);
    padding-top: 0.75rem;
    margin-top: auto;
}

.p4-blog-category-badge {
    display: inline-block;
    background: var(--p4-blue-light);
    color: var(--p4-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Blog Filters */
.p4-blog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.p4-blog-filter-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--p4-border);
    background: var(--p4-bg);
    color: var(--p4-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--p4-transition);
}
.p4-blog-filter-pill:hover,
.p4-blog-filter-pill.active {
    background: var(--p4-blue);
    color: #fff;
    border-color: var(--p4-blue);
}

.p4-blog-search {
    margin-bottom: 2rem;
}
.p4-blog-search input {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 1rem;
    border: 1px solid var(--p4-border);
    border-radius: var(--p4-radius);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--p4-transition);
}
.p4-blog-search input:focus {
    border-color: var(--p4-blue);
}

/* Blog Post Detail */
.p4-blog-header {
    margin-bottom: 2rem;
}
.p4-blog-header h1 {
    margin: 0.75rem 0;
    font-size: 2.2rem;
    line-height: 1.3;
}

.p4-blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--p4-text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.p4-blog-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.p4-blog-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--p4-radius-lg);
    overflow: hidden;
}
.p4-blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Blog Content Prose */
.p4-blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--p4-text);
}
.p4-blog-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--p4-blue-dark);
}
.p4-blog-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}
.p4-blog-content p {
    margin: 0 0 1.25rem;
}
.p4-blog-content ul, .p4-blog-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.p4-blog-content li {
    margin-bottom: 0.5rem;
}
.p4-blog-content blockquote {
    border-left: 4px solid var(--p4-orange);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--p4-bg-alt);
    border-radius: 0 var(--p4-radius) var(--p4-radius) 0;
    font-style: italic;
    color: var(--p4-text-muted);
}
.p4-blog-content img {
    max-width: 100%;
    border-radius: var(--p4-radius);
    margin: 1rem 0;
}

/* Blog Tags */
.p4-blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--p4-border);
}
.p4-blog-tag {
    padding: 0.3rem 0.75rem;
    background: var(--p4-bg-alt);
    border: 1px solid var(--p4-border);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--p4-text-muted);
    text-decoration: none;
    transition: all var(--p4-transition);
}
.p4-blog-tag:hover {
    background: var(--p4-blue-light);
    color: var(--p4-blue);
    border-color: var(--p4-blue);
}

/* Admin Table */
.p4-admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.p4-admin-toolbar h1 {
    margin: 0;
    font-size: 1.5rem;
}

.p4-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.p4-admin-table th,
.p4-admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--p4-border);
}
.p4-admin-table th {
    font-weight: 600;
    color: var(--p4-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.p4-admin-table tr:hover {
    background: var(--p4-bg-alt);
}

.p4-badge-published {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.p4-badge-draft {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--p4-orange-light);
    color: var(--p4-orange-dark);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.p4-btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--p4-border);
    background: var(--p4-bg);
    color: var(--p4-text);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--p4-transition);
}
.p4-btn-sm:hover {
    background: var(--p4-bg-alt);
}
.p4-btn-danger {
    color: #DC2626;
    border-color: #DC2626;
}
.p4-btn-danger:hover {
    background: #FEF2F2;
}

/* Admin Form */
.p4-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 768px) {
    .p4-form-grid { grid-template-columns: 1fr; }
}
.p4-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.p4-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--p4-text);
}
.p4-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .p4-blog-header h1 { font-size: 1.5rem; }
    .p4-blog-content { font-size: 1rem; }
    .p4-admin-toolbar { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   CUSTOMER PORTAL
   ═══════════════════════════════════════════ */

.p4-customer-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.p4-customer-sidebar {
    width: 260px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    flex-shrink: 0;
}

.p4-customer-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}

.p4-customer-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.15s;
}

.p4-customer-sidebar-link:hover {
    background: #e2e8f0;
    color: #0A5FAD;
}

.p4-customer-sidebar-link.active {
    background: #0A5FAD;
    color: #fff;
}

.p4-customer-sidebar-link.active svg {
    stroke: #fff;
}

.p4-customer-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1100px;
}

.p4-customer-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.p4-customer-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.p4-customer-page-header p {
    color: #64748b;
    margin: 0.25rem 0 0;
}

/* Portal Stat Cards */
.p4-portal-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.p4-portal-stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.p4-portal-stat-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.p4-portal-stat-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

/* Quick Links */
.p4-customer-quick-links h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.p4-quick-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.p4-quick-link-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: all 0.15s;
}

.p4-quick-link-card:hover {
    border-color: #0A5FAD;
    color: #0A5FAD;
    box-shadow: 0 2px 8px rgba(10, 95, 173, 0.1);
}

/* Status Badges */
.p4-status-active { color: #16a34a; font-weight: 600; }
.p4-status-past_due { color: #ea580c; font-weight: 600; }
.p4-status-canceled { color: #dc2626; font-weight: 600; }
.p4-status-open { color: #0A5FAD; }
.p4-status-in_progress { color: #FBAD48; }
.p4-status-resolved { color: #16a34a; }
.p4-status-closed { color: #94a3b8; }

.p4-status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.p4-status-badge.p4-status-open { background: #eff6ff; }
.p4-status-badge.p4-status-in_progress { background: #fffbeb; }
.p4-status-badge.p4-status-resolved { background: #f0fdf4; }
.p4-status-badge.p4-status-closed { background: #f1f5f9; }

/* API Key Styles */
.p4-key-masked {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #64748b;
}

.p4-key-reveal {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    overflow-x: auto;
}

.p4-key-reveal code {
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Tables */
.p4-table-wrapper {
    overflow-x: auto;
}

.p4-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.p4-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: 2px solid #e2e8f0;
}

.p4-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.p4-table tbody tr:hover {
    background: #f8fafc;
}

.p4-table-row-clickable {
    cursor: pointer;
}

/* ═══════════════════════════════════════════
   AUTH PAGES — Split Panel Design
   ═══════════════════════════════════════════ */

.p4-auth-shell {
    display: flex;
    min-height: 100vh;
}

/* Visual Panel (Left) */
.p4-auth-visual {
    position: relative;
    flex: 0 0 45%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.p4-auth-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.p4-auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4, 28, 53, 0.7) 0%,
        rgba(6, 46, 84, 0.85) 50%,
        rgba(4, 28, 53, 0.95) 100%
    );
}

.p4-auth-visual-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p4-auth-logo {
    display: inline-block;
    margin-bottom: auto;
}

.p4-auth-logo img {
    height: 32px;
    opacity: 0.9;
}

.p4-auth-visual-text {
    margin-bottom: 2.5rem;
}

.p4-auth-visual-text h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.p4-auth-visual-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.p4-auth-visual-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.p4-auth-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p4-auth-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--p4-orange);
}

.p4-auth-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.p4-auth-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Form Panel (Right) */
.p4-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #fff;
    position: relative;
    overflow-y: auto;
}

.p4-auth-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(10, 95, 173, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.p4-auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.p4-auth-form-inner--register {
    max-width: 480px;
}

.p4-auth-mobile-logo {
    display: none;
}

.p4-auth-mobile-logo img {
    height: 36px;
}

.p4-auth-form-header {
    margin-bottom: 2rem;
}

.p4-auth-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--p4-orange);
    margin-bottom: 0.75rem;
}

.p4-auth-form-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--p4-blue-dark);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.p4-auth-form-header p {
    font-size: 0.95rem;
    color: var(--p4-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Error Alert */
.p4-auth-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--p4-radius);
    color: #991b1b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Form */
.p4-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.p4-auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.p4-auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.p4-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.p4-auth-input-wrap svg {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.p4-auth-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--p4-radius);
    font-size: 0.9rem;
    color: var(--p4-text);
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.p4-auth-input-wrap input:only-child {
    padding-left: 14px;
}

.p4-auth-input-wrap input:focus {
    border-color: var(--p4-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(10, 95, 173, 0.08);
}

.p4-auth-input-wrap input::placeholder {
    color: #b0bec5;
}

/* Submit Button */
.p4-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: var(--p4-gradient-cta);
    color: #fff;
    border: none;
    border-radius: var(--p4-radius);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(10, 95, 173, 0.25);
    margin-top: 0.25rem;
}

.p4-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 95, 173, 0.35);
}

.p4-auth-submit:active {
    transform: translateY(0);
}

.p4-auth-note {
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

/* Divider */
.p4-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.p4-auth-divider::before,
.p4-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.p4-auth-divider span {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Alt Action Link */
.p4-auth-alt-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 24px;
    background: transparent;
    color: var(--p4-blue);
    border: 1.5px solid var(--p4-blue);
    border-radius: var(--p4-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.p4-auth-alt-action:hover {
    background: rgba(10, 95, 173, 0.04);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px) {
    .p4-auth-shell {
        flex-direction: column;
    }

    .p4-auth-visual {
        flex: none;
        min-height: 240px;
    }

    .p4-auth-visual-content {
        padding: 2rem;
        height: auto;
    }

    .p4-auth-logo {
        margin-bottom: 1.5rem;
    }

    .p4-auth-visual-text h2 {
        font-size: 1.5rem;
    }

    .p4-auth-visual-stats {
        gap: 1.5rem;
    }

    .p4-auth-form-panel {
        padding: 2rem;
    }

    .p4-auth-mobile-logo {
        display: none;
    }
}

@media (max-width: 600px) {
    .p4-auth-visual {
        display: none;
    }

    .p4-auth-mobile-logo {
        display: block;
        margin-bottom: 1.5rem;
    }

    .p4-auth-form-panel {
        padding: 1.5rem;
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .p4-auth-field-row {
        grid-template-columns: 1fr;
    }

    .p4-auth-form-header h1 {
        font-size: 1.5rem;
    }
}

.p4-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.p4-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.p4-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.p4-input {
    padding: 0.65rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.p4-input:focus {
    outline: none;
    border-color: #0A5FAD;
    box-shadow: 0 0 0 3px rgba(10, 95, 173, 0.1);
}

.p4-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

textarea.p4-input {
    resize: vertical;
}

select.p4-input {
    appearance: auto;
}

.p4-btn-full {
    width: 100%;
    text-align: center;
}

.p4-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}

.p4-btn-sm:hover {
    background: #f1f5f9;
}

.p4-btn-outline {
    padding: 0.55rem 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.p4-btn-outline:hover {
    background: #f1f5f9;
}

.p4-btn-danger {
    border-color: #fca5a5;
    color: #dc2626;
}

.p4-btn-danger:hover {
    background: #fef2f2;
}

.p4-form-note {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
}

.p4-account-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

.p4-account-footer a {
    color: #0A5FAD;
    font-weight: 600;
    text-decoration: none;
}

/* Alerts */
.p4-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.p4-alert h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.p4-alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.p4-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Modal */
.p4-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.p4-modal {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.p4-modal h3 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: #1e293b;
}

.p4-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* NavBar Avatar */
.p4-nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--p4-blue) 0%, #1477CC 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(10, 95, 173, 0.3);
    transition: all 0.2s;
}

.p4-nav-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(10, 95, 173, 0.4);
}

.p4-nav-login {
    color: var(--p4-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 18px;
    border-radius: var(--p4-radius);
    border: 1.5px solid var(--p4-border);
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.p4-nav-login:hover {
    color: var(--p4-blue);
    border-color: var(--p4-blue);
    background: rgba(10, 95, 173, 0.04);
}

.p4-dropdown-right {
    right: 0;
    left: auto;
}

/* Invite Form */
.p4-invite-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.p4-invite-form .p4-form-group {
    flex: 1;
    min-width: 200px;
}

/* Ticket Thread */
.p4-ticket-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.p4-ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.p4-ticket-message {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
}

.p4-ticket-message.p4-ticket-staff {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.p4-ticket-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.p4-ticket-message-time {
    color: #94a3b8;
    margin-left: auto;
}

.p4-badge-staff {
    background: #0A5FAD;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.p4-ticket-message-body {
    color: #334155;
    line-height: 1.6;
    white-space: pre-wrap;
}

.p4-ticket-reply {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.p4-ticket-reply-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.p4-back-link {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

.p4-back-link:hover {
    color: #0A5FAD;
}

/* Responsive */
@media (max-width: 768px) {
    .p4-customer-layout {
        flex-direction: column;
    }

    .p4-customer-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 0;
    }

    .p4-customer-sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 0.5rem;
    }

    .p4-customer-sidebar-link {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .p4-customer-content {
        padding: 1.5rem;
    }

    .p4-form-row {
        grid-template-columns: 1fr;
    }

    .p4-invite-form {
        flex-direction: column;
    }

    .p4-portal-stat-cards {
        grid-template-columns: 1fr 1fr;
    }
}
