.profile-page {
    background:
        radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(16, 185, 129, 0.16), transparent 26%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.14), transparent 24%),
        #f4f7fb;
}

.profile-toolbar {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.profile-toolbar .btn {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.profile-toolbar .btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.profile-paper {
    max-width: 1100px;
    margin: 1rem auto 3.5rem;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.profile-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 46%, #06b6d4 100%);
    color: #fff;
    padding: 3.2rem 2.5rem 2.6rem;
    position: relative;
}

.profile-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, #f59e0b, #10b981, #8b5cf6, #2563eb);
}

.profile-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-hero img {
    height: 70px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
}

.profile-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    opacity: 0.85;
    margin-bottom: 0.7rem;
}

.profile-hero h1 {
    font-size: 2.35rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.profile-hero .tagline {
    font-size: 1.15rem;
    opacity: 0.95;
}

.profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.profile-pills span {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.profile-body {
    padding: 2.25rem 2.4rem 2.8rem;
}

.profile-intro {
    font-size: 1.08rem;
    color: #334155;
    margin-bottom: 1.75rem;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-bottom: 2.2rem;
}

.meta-card {
    border-radius: 14px;
    padding: 1rem 1.05rem;
    color: #0f172a;
}

.meta-card span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-bottom: 0.25rem;
}

.meta-card strong { font-size: 0.98rem; }

.meta-blue { background: #dbeafe; }
.meta-green { background: #d1fae5; }
.meta-amber { background: #fef3c7; }
.meta-violet { background: #ede9fe; }

.profile-section h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.85rem;
    color: #0f172a;
}

.profile-section h2 i {
    margin-right: 0.4rem;
}

.c-blue { color: #2563eb; }
.c-green { color: #059669; }
.c-amber { color: #d97706; }
.c-violet { color: #7c3aed; }
.c-rose { color: #e11d48; }
.c-cyan { color: #0891b2; }

.client-grid,
.service-grid,
.value-grid {
    display: grid;
    gap: 0.9rem;
}

.client-grid { grid-template-columns: repeat(2, 1fr); }
.service-grid { grid-template-columns: repeat(2, 1fr); }
.value-grid { grid-template-columns: repeat(4, 1fr); }

.color-card {
    border-radius: 14px;
    padding: 1.15rem 1.15rem 1.2rem;
    color: #fff;
    min-height: 100%;
}

.color-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.color-card p,
.color-card ul { font-size: 0.88rem; line-height: 1.55; opacity: 0.95; }
.color-card ul { margin-left: 1.05rem; }
.color-card li { margin: 0.2rem 0; }

.bg-blue { background: linear-gradient(160deg, #1d4ed8, #2563eb); }
.bg-green { background: linear-gradient(160deg, #047857, #10b981); }
.bg-amber { background: linear-gradient(160deg, #b45309, #f59e0b); }
.bg-violet { background: linear-gradient(160deg, #6d28d9, #8b5cf6); }
.bg-rose { background: linear-gradient(160deg, #be123c, #f43f5e); }
.bg-cyan { background: linear-gradient(160deg, #0e7490, #06b6d4); }
.bg-slate { background: linear-gradient(160deg, #334155, #64748b); }
.bg-indigo { background: linear-gradient(160deg, #3730a3, #6366f1); }

.value-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 5px solid #2563eb;
    border-radius: 12px;
    padding: 1rem;
}

.value-card.v2 { border-top-color: #10b981; }
.value-card.v3 { border-top-color: #f59e0b; }
.value-card.v4 { border-top-color: #8b5cf6; }

.value-card h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.value-card p { font-size: 0.84rem; color: #64748b; }

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
}

.step {
    background: #eff6ff;
    border-radius: 12px;
    padding: 0.9rem;
}

.step b { display: block; color: #2563eb; font-size: 0.78rem; margin-bottom: 0.25rem; }
.step span { font-size: 0.82rem; color: #334155; }

.contact-band {
    margin-top: 2rem;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
}

.contact-band a { color: #bfdbfe; }
.contact-band h3 { margin-bottom: 0.5rem; }
.contact-band p { font-size: 0.9rem; line-height: 1.7; }

.pdf-capture-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}

.pdf-capture-host {
    position: fixed;
    left: 0;
    top: 0;
    width: 794px;
    background: #fff;
    z-index: 1;
    pointer-events: none;
}

.pdf-export {
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 794px !important;
    max-width: 794px !important;
}

.pdf-export .profile-meta,
.pdf-export .client-grid,
.pdf-export .service-grid {
    grid-template-columns: 1fr 1fr;
}

.pdf-export .value-grid,
.pdf-export .steps {
    grid-template-columns: 1fr 1fr;
}

.pdf-export .contact-band {
    grid-template-columns: 1fr;
}

@media (max-width: 900px) {
    .profile-meta,
    .client-grid,
    .service-grid,
    .value-grid,
    .steps,
    .contact-band,
    .profile-hero-top {
        grid-template-columns: 1fr 1fr;
    }
    .profile-hero h1 { font-size: 1.7rem; }
    .profile-hero, .profile-body { padding: 1.4rem; }
}

@media (max-width: 640px) {
    .profile-meta,
    .client-grid,
    .service-grid,
    .value-grid,
    .steps,
    .contact-band,
    .profile-hero-top {
        grid-template-columns: 1fr;
    }
}
