/* ═══════════════════════════════════════════════════════════════════════════
   Psycho Tests AI — Modern CSS with YekanBakh Typography
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── YekanBakh Font (self-hosted from the active theme's assets) ── */
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Thin.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Light.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Regular.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-SemiBold.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Bold.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-ExtraBold.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Black.woff2') format('woff2'),
         url('/wp-content/themes/esanj-theme/assets/fonts/YekanBakh-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ── CSS Variables (Design System) ── */
:root {
    /* Brand Colors — esanj green/teal */
    --pt-primary:           #2fa37f;
    --pt-primary-light:     #46c79b;
    --pt-primary-dark:      #1f8466;
    --pt-primary-glow:      rgba(47, 163, 127, 0.16);

    /* Secondary section accent (esanj steel blue, used for alternating bars) */
    --pt-blue:              #5688a3;
    --pt-blue-dark:         #3f6e88;
    --pt-warn:              #f0a05a;

    /* Accent / Success */
    --pt-accent:            #00c896;
    --pt-accent-dark:       #00a378;

    /* Surfaces */
    --pt-surface-0:         #ffffff;
    --pt-surface-1:         #f5f8f7;
    --pt-surface-2:         #eaf4f0;
    --pt-surface-3:         #dbeae4;
    --pt-surface-card:      rgba(255, 255, 255, 0.75);

    /* Text */
    --pt-text-primary:      #1a1a2e;
    --pt-text-secondary:    #5a5a72;
    --pt-text-muted:        #9595a5;
    --pt-text-inverse:      #ffffff;

    /* Borders & Shadows */
    --pt-border:            rgba(47, 163, 127, 0.14);
    --pt-border-light:      rgba(47, 163, 127, 0.08);
    --pt-shadow-sm:         0 2px 8px rgba(26, 26, 46, 0.04);
    --pt-shadow-md:         0 8px 24px rgba(26, 26, 46, 0.06);
    --pt-shadow-lg:         0 16px 48px rgba(26, 26, 46, 0.08);
    --pt-shadow-glow:       0 0 40px var(--pt-primary-glow);

    /* Spacing */
    --pt-radius-sm:         8px;
    --pt-radius-md:         16px;
    --pt-radius-lg:         24px;
    --pt-radius-xl:         32px;

    /* Transitions */
    --pt-transition-fast:   0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --pt-transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --pt-transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --pt-max-width:         1180px;
}

/* ── Base Reset ── */
.psycho-tests-catalog,
.psycho-test-container {
    font-family: 'YekanBakh', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    max-width: var(--pt-max-width);
    width: 100%;
    margin: 0 auto;
    /* Small side gutter only — the wider container should hug the sides. */
    padding: 0 14px;
    color: var(--pt-text-primary);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.psycho-tests-catalog *,
.psycho-test-container * {
    font-family: inherit;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   🏷  CATALOG GRID
   ═══════════════════════════════════════════════════ */

.psycho-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 8px 4px;
}

/* ── Test Card ── */
.psycho-test-card {
    position: relative;
    border-radius: var(--pt-radius-lg);
    overflow: hidden;
    background: var(--pt-surface-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-md);
    transition: transform var(--pt-transition-smooth),
                box-shadow var(--pt-transition-smooth);
    cursor: pointer;
}

.psycho-test-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, transparent 50%, rgba(47, 163, 127, 0.03) 100%);
    pointer-events: none;
    z-index: 1;
}

.psycho-test-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--pt-shadow-lg), var(--pt-shadow-glow);
}

.psycho-test-card:hover .psycho-test-thumbnail {
    transform: scale(1.06);
}

/* ── Thumbnail ── */
.psycho-test-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--pt-transition-smooth);
    border-bottom: 1px solid var(--pt-border-light);
}

/* ── Card Content ── */
.psycho-test-content {
    padding: 20px 22px 22px;
    position: relative;
    z-index: 2;
}

.psycho-test-content h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pt-text-primary);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.psycho-test-desc {
    color: var(--pt-text-secondary);
    font-size: 0.88rem;
    margin-bottom: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta ── */
.psycho-test-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--pt-text-muted);
    margin-bottom: 16px;
    padding: 8px 0;
    border-top: 1px dashed var(--pt-border-light);
    border-bottom: 1px dashed var(--pt-border-light);
}

.psycho-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ═══════════════════════════════════════════════════════
   🎛  Buttons
   ═══════════════════════════════════════════════════ */

.psycho-test-btn,
.psycho-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    border-radius: var(--pt-radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--pt-transition-smooth);
    letter-spacing: 0.02em;
}

/* Primary Button */
.psycho-test-btn,
.psycho-btn:not(.psycho-btn-secondary):not([disabled]) {
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-light) 100%);
    color: var(--pt-text-inverse);
    box-shadow: 0 4px 16px var(--pt-primary-glow),
                0 2px 4px rgba(47, 163, 127, 0.15);
}

.psycho-test-btn:hover,
.psycho-btn:not(.psycho-btn-secondary):not([disabled]):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 163, 127, 0.2),
                0 4px 8px rgba(47, 163, 127, 0.15);
    filter: brightness(1.08);
}

.psycho-test-btn:active,
.psycho-btn:not(.psycho-btn-secondary):not([disabled]):active {
    transform: translateY(0) scale(0.98);
}

/* Secondary Button */
.psycho-btn-secondary {
    background: var(--pt-surface-1);
    color: var(--pt-text-secondary);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
}

.psycho-btn-secondary:hover {
    background: var(--pt-surface-3);
    color: var(--pt-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--pt-shadow-md);
}

/* Disabled Button */
.psycho-btn:disabled,
.psycho-test-btn:disabled {
    background: var(--pt-surface-3);
    color: var(--pt-text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* ═══════════════════════════════════════════════════════
   📝  FORMS
   ═══════════════════════════════════════════════════ */

.psycho-form-group {
    margin-bottom: 22px;
    position: relative;
}

.psycho-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--pt-text-secondary);
    transition: color var(--pt-transition-fast);
}

.psycho-form-group:has(input:focus) label,
.psycho-form-group:has(select:focus) label,
.psycho-form-group:has(textarea:focus) label {
    color: var(--pt-primary);
}

.psycho-form-group input,
.psycho-form-group select,
.psycho-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pt-surface-3);
    border-radius: var(--pt-radius-md);
    background: var(--pt-surface-0);
    color: var(--pt-text-primary);
    font-size: 0.95rem;
    font-family: 'YekanBakh', sans-serif;
    transition: all var(--pt-transition-fast);
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.psycho-form-group input:focus,
.psycho-form-group select:focus,
.psycho-form-group textarea:focus {
    border-color: var(--pt-primary-light);
    box-shadow: 0 0 0 4px var(--pt-primary-glow),
                inset 0 1px 3px rgba(0,0,0,0.02);
}

.psycho-form-group input::placeholder {
    color: var(--pt-text-muted);
    font-family: 'YekanBakh', sans-serif;
}

/* Select styling */
.psycho-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232fa37f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    padding-left: 40px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   🎯  TEST RUNNER
   ═══════════════════════════════════════════════════ */

/* Steps */
.psycho-step {
    position: relative;
}

/* Demographics Form */
#psycho-demographics-form h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--pt-text-primary);
    letter-spacing: -0.02em;
}

#psycho-demographics-form > p:first-of-type {
    color: var(--pt-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ── Progress Bar ── */
.psycho-progress-container {
    width: 100%;
    background: var(--pt-surface-3);
    border-radius: var(--pt-radius-xl);
    margin-bottom: 30px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.psycho-progress-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    pointer-events: none;
}

.psycho-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--pt-primary) 0%, var(--pt-primary-light) 100%);
    border-radius: var(--pt-radius-xl);
    transition: width 0.5s var(--pt-transition-spring),
                filter 0.3s ease;
    position: relative;
    filter: brightness(1);
}

.psycho-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    animation: progress-shimmer 2s infinite linear;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Question Block ── */
.psycho-question-block {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--pt-surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
    transition: box-shadow var(--pt-transition-fast);
}

.psycho-question-block:hover {
    box-shadow: var(--pt-shadow-md);
}

.psycho-question-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--pt-text-primary);
    line-height: 1.7;
    padding-right: 12px;
    border-right: 3px solid var(--pt-primary);
    letter-spacing: -0.01em;
}

.psycho-question-text:empty::before {
    content: '...';
    color: var(--pt-text-muted);
}

/* ── Options ── */
.psycho-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--pt-surface-1);
    border: 2px solid transparent;
    border-radius: var(--pt-radius-md);
    cursor: pointer;
    transition: all var(--pt-transition-fast);
    position: relative;
    overflow: hidden;
}

.psycho-option-label::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--pt-primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity var(--pt-transition-fast);
}

.psycho-option-label:hover {
    background: var(--pt-surface-2);
    border-color: var(--pt-border);
    transform: translateX(-4px);
}

.psycho-option-label:hover::before {
    opacity: 1;
}

.psycho-option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: var(--pt-primary);
    margin: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* ── Nav Buttons ── */
.psycho-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--pt-border-light);
}

.psycho-nav-buttons .psycho-btn {
    width: auto;
    flex: 1;
    max-width: 180px;
}

/* ═══════════════════════════════════════════════════════
   ⏳  SPINNER
   ═══════════════════════════════════════════════════ */

.psycho-spinner {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 20px auto;
}

.psycho-spinner::before,
.psycho-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--pt-primary);
    animation: psycho-spin 1s cubic-bezier(0.7, 0.3, 0.3, 0.7) infinite;
}

.psycho-spinner::before {
    border-top-color: var(--pt-primary);
}

.psycho-spinner::after {
    inset: 8px;
    border-top-color: var(--pt-accent);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

@keyframes psycho-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#psycho-loading p {
    color: var(--pt-text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════
   📊  RESULTS
   ═══════════════════════════════════════════════════ */

#psycho-results h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

#psycho-results h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--pt-primary), var(--pt-accent));
    border-radius: 3px;
}

.psycho-report-content {
    background: var(--pt-surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 28px;
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
    margin-bottom: 24px;
    line-height: 2;
    color: var(--pt-text-secondary);
    font-size: 0.95rem;
    transition: box-shadow var(--pt-transition-smooth);
}

.psycho-report-content:hover {
    box-shadow: var(--pt-shadow-md);
}

.psycho-report-content p {
    margin-bottom: 14px;
}

.psycho-report-content p:last-child {
    margin-bottom: 0;
}

/* Highlighted scoring in report */
.psycho-report-content strong {
    color: var(--pt-primary);
    font-weight: 600;
}

.psycho-chart-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 24px;
    padding: 24px;
    background: var(--pt-surface-card);
    backdrop-filter: blur(12px);
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
}

#psycho-download-pdf {
    margin-top: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

/* ═══════════════════════════════════════════════════════
   🚧  PAYMENT GATE
   ═══════════════════════════════════════════════════ */

.psycho-payment-gate {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, var(--pt-surface-1) 0%, var(--pt-surface-2) 100%);
    border-radius: var(--pt-radius-lg);
    border: 1px dashed var(--pt-border);
    position: relative;
    overflow: hidden;
}

.psycho-payment-gate::before {
    content: '🔒';
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
    filter: grayscale(0.3);
    opacity: 0.7;
}

.psycho-payment-gate h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--pt-text-primary);
}

.psycho-payment-gate p {
    color: var(--pt-text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
}

.psycho-payment-gate .psycho-btn {
    max-width: 240px;
    display: inline-flex;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   📱  RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 640px) {
    :root {
        --pt-max-width: 100%;
    }

    .psycho-tests-catalog,
    .psycho-test-container {
        padding: 0 12px;
    }

    .psycho-tests-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .psycho-test-thumbnail {
        height: 160px;
    }

    .psycho-nav-buttons {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .psycho-nav-buttons .psycho-btn {
        max-width: none;
        width: 100%;
    }

    .psycho-question-text {
        font-size: 1.05rem;
    }

    .psycho-option-label {
        padding: 12px 14px;
    }

    #psycho-results h2 {
        font-size: 1.3rem;
    }

    .psycho-report-content {
        padding: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   ✨  ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.psycho-test-card {
    animation: fadeInUp 0.5s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.08s);
}

.psycho-step.active {
    animation: fadeInScale 0.4s ease-out both;
}

.psycho-question-block {
    animation: fadeInUp 0.35s ease-out both;
    animation-delay: 0.05s;
}

/* ═══════════════════════════════════════════════════════
   🧠  RICH RESULT REPORT (esanj-style)
   ═══════════════════════════════════════════════════ */

/* The report content wrapper becomes a transparent shell so the inner
   cards stand on their own. */
.psycho-report-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}
.psycho-report-content:hover { box-shadow: none; }

/* ── Generic card ── */
.psycho-card {
    background: var(--pt-surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 22px 24px;
    border-radius: var(--pt-radius-lg);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
    margin-bottom: 18px;
}
.psycho-card h3 {
    margin: 0 0 16px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--pt-text-primary);
    letter-spacing: -0.01em;
}

/* ── Type / profile badge ── */
.psycho-type-badge {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 22px;
    border-radius: var(--pt-radius-lg);
    color: var(--pt-text-inverse);
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-light) 55%, var(--pt-accent) 140%);
    box-shadow: var(--pt-shadow-md), var(--pt-shadow-glow);
}
.psycho-type-code {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.1;
}
.psycho-type-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.95;
}
.psycho-type-subtitle {
    font-size: 0.95rem;
    margin-top: 8px;
    opacity: 0.9;
}
.psycho-type-pop {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.18);
    border-radius: var(--pt-radius-xl);
}
.psycho-type-pop strong { color: #fff; }

/* ── Result symbolic image ── */
.psycho-result-image { text-align: center; margin-bottom: 20px; }
.psycho-result-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pt-radius-md);
    box-shadow: var(--pt-shadow-md);
}

/* ── Summary box ── */
.psycho-result-summary {
    font-size: 1.02rem;
    line-height: 2;
    margin-bottom: 18px;
    padding: 20px 22px;
    background: var(--pt-surface-2);
    border-right: 4px solid var(--pt-primary);
    border-radius: var(--pt-radius-md);
    color: var(--pt-text-primary);
}

/* ── Dimension / compatibility / purity bars ── */
.psycho-dimensions { display: flex; flex-direction: column; gap: 16px; }
.psycho-dim-row { width: 100%; }
.psycho-dim-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    color: var(--pt-text-secondary);
    margin-bottom: 6px;
}
.psycho-dim-labels .dim-strong { color: var(--pt-primary); font-weight: 700; }
.psycho-dim-track {
    width: 100%;
    height: 10px;
    background: var(--pt-surface-3);
    border-radius: var(--pt-radius-xl);
    overflow: hidden;
}
.psycho-dim-fill {
    height: 100%;
    border-radius: var(--pt-radius-xl);
    background: linear-gradient(90deg, var(--pt-primary) 0%, var(--pt-primary-light) 100%);
    transition: width 0.8s var(--pt-transition-spring);
}

/* ── Collapsible narrative sections ── */
.psycho-sections { margin-bottom: 18px; }
.psycho-section {
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--pt-shadow-sm);
}
.psycho-section > summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--pt-text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--pt-transition-fast);
}
.psycho-section > summary::-webkit-details-marker { display: none; }
.psycho-section > summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--pt-primary);
    font-weight: 700;
    transition: transform var(--pt-transition-fast);
}
.psycho-section[open] > summary::after { content: '−'; }
.psycho-section > summary:hover { background: var(--pt-surface-2); }
.psycho-section-body {
    padding: 4px 20px 20px;
    line-height: 2;
    color: var(--pt-text-secondary);
    font-size: 0.95rem;
}
.psycho-section-body p { margin: 0 0 12px; }
.psycho-section-body ul { margin: 0 0 12px; padding-right: 22px; }
.psycho-section-body li { margin-bottom: 8px; }
.psycho-section-body strong { color: var(--pt-primary); }

/* ── Two-column strengths / weaknesses ── */
.psycho-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.psycho-two-col .psycho-card { margin-bottom: 0; }
.psycho-card ul { margin: 0; padding-right: 20px; }
.psycho-card li { margin-bottom: 8px; line-height: 1.8; }
.psycho-strengths h3 { color: var(--pt-accent-dark); }
.psycho-weaknesses h3 { color: #d9534f; }

/* ── Chips (careers / celebrities) ── */
.psycho-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.psycho-chip {
    display: inline-block;
    padding: 8px 16px;
    background: var(--pt-surface-2);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-xl);
    font-size: 0.86rem;
    color: var(--pt-text-primary);
}

/* ── Books ── */
.psycho-books { list-style: none; padding: 0; margin: 0; }
.psycho-books li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--pt-border-light);
}
.psycho-books li:last-child { border-bottom: none; }
.psycho-book-note { color: var(--pt-text-muted); font-size: 0.85rem; }

@media (max-width: 640px) {
    .psycho-two-col { grid-template-columns: 1fr; }
    .psycho-type-code { font-size: 2.2rem; }
}

/* ═══════════════════════════════════════════════════════
   🎴  TABBED RESULT REPORT (esanj-style clone)
   ═══════════════════════════════════════════════════ */

/* ── Hero header ── */
.psycho-hero {
    border-radius: var(--pt-radius-lg);
    padding: 32px 28px 24px;
    margin-bottom: 18px;
    color: var(--pt-text-inverse);
    background: linear-gradient(135deg, var(--pt-primary-dark) 0%, var(--pt-primary) 45%, var(--pt-primary-light) 80%, var(--pt-accent) 160%);
    box-shadow: var(--pt-shadow-md), var(--pt-shadow-glow);
    text-align: center;
}
.psycho-hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.psycho-hero-avatar img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.psycho-hero-info { text-align: right; }
.psycho-hero-test { font-size: 0.85rem; opacity: 0.85; margin-bottom: 4px; }
.psycho-hero-code { font-size: 2.8rem; font-weight: 900; letter-spacing: 0.06em; line-height: 1.1; overflow-wrap: anywhere; }
/* Long descriptors that aren't a short code (e.g. a full phrase) render readable. */
.psycho-hero-code.is-long { font-size: 1.3rem; font-weight: 700; letter-spacing: normal; line-height: 1.55; margin-top: 4px; }
.psycho-hero-title { font-size: 1.3rem; font-weight: 700; margin-top: 2px; }
.psycho-hero-subtitle { font-size: 0.95rem; opacity: 0.92; margin-top: 6px; }
.psycho-hero-name { display: inline-block; margin-top: 10px; padding: 4px 14px; background: rgba(255,255,255,0.18); border-radius: var(--pt-radius-xl); font-size: 0.85rem; }
.psycho-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.psycho-hero-meta span {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.16);
    padding: 6px 14px;
    border-radius: var(--pt-radius-xl);
}

/* ── Tab bar ── */
.psycho-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    margin-bottom: 18px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--pt-border);
}
.psycho-tabs::-webkit-scrollbar { height: 6px; }
.psycho-tabs::-webkit-scrollbar-thumb { background: var(--pt-surface-3); border-radius: 6px; }
.psycho-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 18px;
    border-radius: var(--pt-radius-xl);
    border: 1px solid var(--pt-border);
    background: var(--pt-surface-1);
    color: var(--pt-text-secondary);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pt-transition-fast);
}
.psycho-tab:hover { background: var(--pt-surface-2); color: var(--pt-text-primary); }
.psycho-tab.active {
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-light) 100%);
    color: var(--pt-text-inverse);
    border-color: transparent;
    box-shadow: 0 4px 12px var(--pt-primary-glow);
}

/* ── Panels (stacked vertically, all visible) ── */
.psycho-report-content,
.psycho-panels { overflow-x: hidden; }
.psycho-panel {
    display: block;
    margin-bottom: 22px;
    padding: 28px 34px;
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border-light);
    border-radius: var(--pt-radius-lg);
    box-shadow: var(--pt-shadow-sm);
}
.psycho-panel:last-child { margin-bottom: 0; }
.psycho-panel-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.55;
    margin: 0 0 20px;
    color: var(--pt-text-primary);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--pt-surface-3);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Dichotomy split bars ── */
.psycho-dichotomies { display: flex; flex-direction: column; gap: 22px; }
.psycho-dich-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pt-text-secondary);
    margin-bottom: 8px;
}
.psycho-dich-head .dich-strong { color: var(--pt-primary); font-weight: 700; }
.psycho-dich-bar {
    display: flex;
    height: 38px;
    border-radius: var(--pt-radius-md);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.psycho-dich-left, .psycho-dich-right {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    min-width: 28px;
    transition: width 0.8s var(--pt-transition-spring);
}
.psycho-dich-left  { background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-primary-light) 100%); }
.psycho-dich-right { background: linear-gradient(135deg, #16b5a0 0%, var(--pt-accent) 100%); }

/* ── Population cards ── */
.psycho-pop-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 22px;
}
.psycho-pop-card {
    text-align: center;
    padding: 20px 12px;
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    box-shadow: var(--pt-shadow-sm);
}
.psycho-pop-val { font-size: 1.7rem; font-weight: 800; color: var(--pt-primary); line-height: 1.2; }
.psycho-pop-lbl { font-size: 0.82rem; color: var(--pt-text-muted); margin-top: 6px; }

/* ── Compatibility matrix (color coded) ── */
.psycho-compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
}
.psycho-compat-cell {
    border-radius: var(--pt-radius-md);
    padding: 14px 8px;
    text-align: center;
    color: #fff;
    box-shadow: var(--pt-shadow-sm);
}
.psycho-compat-cell .compat-type { font-weight: 700; font-size: 0.95rem; }
.psycho-compat-cell .compat-pct { font-size: 0.82rem; opacity: 0.95; margin-top: 2px; }
.compat-high { background: linear-gradient(135deg, #14a37f 0%, #00c896 100%); }
.compat-mid  { background: linear-gradient(135deg, #e8a317 0%, #f5c451 100%); }
.compat-low  { background: linear-gradient(135deg, #d9534f 0%, #e87a77 100%); }

/* ── Celebrity / character gallery ── */
.psycho-gallery { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.psycho-celeb { width: 88px; text-align: center; }
.psycho-celeb-av {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pt-primary) 0%, var(--pt-accent) 130%);
    box-shadow: var(--pt-shadow-md);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}
/* When a real photo is loaded, drop the gradient/initial and show the image. */
.psycho-celeb-av.has-photo { color: transparent; border: 2px solid var(--pt-surface-1); }
.psycho-celeb-av.has-photo .psycho-celeb-initial { display: none; }
.psycho-celeb-name { font-size: 0.8rem; color: var(--pt-text-secondary); line-height: 1.4; }

/* ── Purity bars (green → orange) ── */
.psycho-purity { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.psycho-purity-overall { font-size: 1rem; margin-bottom: 8px; }
.psycho-purity-head { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--pt-text-secondary); margin-bottom: 6px; }
.psycho-purity-track { height: 12px; background: var(--pt-surface-3); border-radius: var(--pt-radius-xl); overflow: hidden; }
.psycho-purity-fill {
    height: 100%;
    border-radius: var(--pt-radius-xl);
    background: linear-gradient(90deg, #00c896 0%, #e8a317 70%, #d9534f 100%);
    transition: width 0.8s var(--pt-transition-spring);
}

/* ── Sub-headings / lists inside panels ── */
.psycho-sub-h { margin-top: 22px; }
.psycho-panel h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 14px; color: var(--pt-text-primary); }
.psycho-rec-list { margin: 0; padding-right: 20px; }
.psycho-rec-list li { margin-bottom: 8px; line-height: 1.8; }
.psycho-section-body { line-height: 2.05; color: var(--pt-text-secondary); font-size: 1.05rem; overflow-wrap: anywhere; }
.psycho-section-body p { margin: 0 0 15px; }
.psycho-section-body ul { margin: 0 0 15px; padding-right: 22px; }
.psycho-section-body li { margin-bottom: 9px; line-height: 1.95; }
.psycho-section-body strong { color: var(--pt-primary); }

/* ── Bottom prev/next navigation ── */
.psycho-result-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--pt-border-light);
}
.psycho-result-nav .psycho-btn { width: auto; flex: 0 0 auto; min-width: 130px; }
.psycho-sec-indicator { font-size: 0.85rem; color: var(--pt-text-muted); font-weight: 600; }

/* ── Social share bar ── */
.psycho-share {
    margin-top: 22px;
    padding: 20px;
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    text-align: center;
}
.psycho-share-title { font-weight: 700; margin-bottom: 14px; color: var(--pt-text-primary); }
.psycho-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.psycho-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 9px 16px;
    border-radius: var(--pt-radius-md);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--pt-transition-fast), filter var(--pt-transition-fast);
}
.psycho-share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.psycho-share-btn.share-tg { background: #229ED9; }
.psycho-share-btn.share-wa { background: #25D366; }
.psycho-share-btn.share-tw { background: #111; }
.psycho-share-btn.share-fb { background: #1877F2; }
.psycho-share-btn.share-in { background: #0A66C2; }
.psycho-share-link {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.psycho-share-link input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    background: var(--pt-surface-0);
    color: var(--pt-text-secondary);
    font-size: 0.82rem;
    direction: ltr;
    text-align: left;
}
.psycho-share-link .psycho-btn { width: auto; flex: 0 0 auto; min-width: 110px; padding: 10px 16px; }

/* ── Keep sections/cards intact across page breaks ── */
.psycho-panel,
.psycho-hero,
.psycho-card,
.psycho-pop-card,
.psycho-compat-cell,
.psycho-chart-container,
.psycho-share { page-break-inside: avoid; break-inside: avoid; }
.psycho-panel-title { page-break-after: avoid; break-after: avoid; }

/* ──────────────────────────────────────────────────────────────────────────
   esanj-style landing page (test cover screen)
   ────────────────────────────────────────────────────────────────────────── */
.psycho-landing-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.psycho-landing-cover {
    flex: 0 0 200px;
    max-width: 200px;
}
.psycho-landing-cover img {
    width: 100%;
    border-radius: var(--pt-radius-md);
    box-shadow: var(--pt-shadow-md);
    display: block;
}
.psycho-landing-intro { flex: 1; min-width: 240px; }
.psycho-landing-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--pt-text-primary);
}
.psycho-landing-desc {
    color: var(--pt-text-secondary);
    line-height: 2;
    margin-bottom: 18px;
}
.psycho-landing-rating { margin-bottom: 12px; color: var(--pt-text-secondary); }
.psycho-stars { color: #f5a623; letter-spacing: 2px; }
.psycho-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.psycho-landing-block { margin-top: 30px; }
.psycho-landing-h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--pt-text-primary);
}
.psycho-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.psycho-criterion {
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 16px;
    border-inline-start: 4px solid var(--pt-primary);
}
.psycho-criterion-title { font-weight: 800; color: var(--pt-primary-dark); margin-bottom: 6px; }
.psycho-criterion-text { color: var(--pt-text-secondary); line-height: 1.8; font-size: 0.92rem; }

.psycho-faq { display: grid; gap: 10px; }
.psycho-faq-item {
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 0;
    overflow: hidden;
}
.psycho-faq-item summary {
    cursor: pointer;
        padding: 14px 41px 13px 10px;
    font-weight: 700;
    color: var(--pt-text-primary);
    list-style: none;
    position: relative;
}
.psycho-faq-item summary::-webkit-details-marker { display: none; }
.psycho-faq-item summary::after {
    content: "+";
    position: absolute;
    inset-inline-start: 18px;
    color: var(--pt-primary);
    font-weight: 800;
}
.psycho-faq-item[open] summary::after { content: "–"; }
.psycho-faq-a {
    padding: 0 18px 16px;
    color: var(--pt-text-secondary);
    line-height: 1.9;
}
.psycho-btn-premium,
.psycho-btn.psycho-btn-premium {
    background: linear-gradient(135deg, #e95483 0%, #f0a05a 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 4px 16px rgba(233, 84, 131, 0.28) !important;
}
.psycho-btn-premium:hover { transform: translateY(-2px); }

.psycho-landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin: 26px 0;
}
.psycho-stat {
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 14px 8px;
    text-align: center;
}
.psycho-stat-val { font-size: 1.15rem; font-weight: 800; color: var(--pt-primary-dark); }
.psycho-stat-lbl { font-size: 0.8rem; color: var(--pt-text-muted); margin-top: 4px; }

.psycho-tier-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 26px;
}
.psycho-tier {
    position: relative;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-lg);
    padding: 22px 20px;
    box-shadow: var(--pt-shadow-sm);
}
.psycho-tier-premium {
    border: 2px solid #e95483;
    box-shadow: 0 12px 32px rgba(233, 84, 131, 0.14);
}
.psycho-tier-badge {
    position: absolute;
    top: -12px;
    inset-inline-start: 20px;
    background: linear-gradient(135deg, #e95483, #f0a05a);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.psycho-tier-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.psycho-tier-head h3 { margin: 0; font-size: 1.2rem; }
.psycho-tier-price { font-size: 1.25rem; font-weight: 800; color: var(--pt-primary-dark); }
.psycho-tier-premium .psycho-tier-price { color: #e95483; }
.psycho-tier-price span { font-size: 0.8rem; font-weight: 500; }
.psycho-tier-sub { font-weight: 700; margin: 0 0 8px; color: var(--pt-text-secondary); }
.psycho-tier ul { list-style: none; padding: 0; margin: 0 0 18px; }
.psycho-tier li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 9px;
    line-height: 1.7;
    color: var(--pt-text-secondary);
}
.psycho-tier li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--pt-accent);
    font-weight: 800;
}
.psycho-tier-premium li::before { color: #e95483; }
.psycho-tier .psycho-btn { width: 100%; }
.psycho-tier-note { font-size: 0.78rem; color: var(--pt-text-muted); margin: 10px 0 0; line-height: 1.6; }

/* Payment result banners (Zarinpal callback) */
.psycho-pay-notice {
    border-radius: var(--pt-radius-md);
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid transparent;
}
.psycho-pay-ok   { background: rgba(0, 200, 150, 0.12); color: #0a7a5a; border-color: rgba(0, 200, 150, 0.4); }
.psycho-pay-warn { background: rgba(245, 166, 35, 0.12); color: #9a6700; border-color: rgba(245, 166, 35, 0.4); }
.psycho-pay-err  { background: rgba(233, 84, 131, 0.10); color: #b3245a; border-color: rgba(233, 84, 131, 0.4); }

/* ──────────────────────────────────────────────────────────────────────────
   Premium report panels (quadrants, work matrix, type guide, upsell, related)
   ────────────────────────────────────────────────────────────────────────── */
.psycho-quadrants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.psycho-quadrant {
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 14px;
}
.psycho-quadrant-group { font-weight: 700; color: var(--pt-text-primary); margin-bottom: 4px; }
.psycho-quadrant-place { color: var(--pt-primary-dark); font-weight: 700; }
.psycho-quadrant-note { font-size: 0.85rem; color: var(--pt-text-muted); margin-top: 6px; line-height: 1.6; }

.psycho-workrel { display: grid; gap: 12px; }
.psycho-wr-tier {
    border-radius: var(--pt-radius-md);
    padding: 12px 14px;
    border: 1px solid var(--pt-border);
}
.psycho-wr-similar    { background: rgba(0, 200, 150, 0.08); }
.psycho-wr-inspiring  { background: rgba(47, 163, 127, 0.07); }
.psycho-wr-complement { background: rgba(240, 160, 90, 0.10); }
.psycho-wr-challenging{ background: rgba(233, 84, 131, 0.08); }
.psycho-wr-label { font-weight: 700; margin-bottom: 8px; color: var(--pt-text-primary); }
.psycho-wr-types { display: flex; flex-wrap: wrap; gap: 6px; }
.psycho-wr-type {
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    border-radius: 8px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.85rem;
}

.psycho-chips-muted .psycho-chip { opacity: 0.7; background: var(--pt-surface-2); }

.psycho-typeconn .psycho-tc-lbl { font-weight: 700; }
.psycho-tc-select {
    padding: 8px 12px;
    border-radius: var(--pt-radius-sm);
    border: 1px solid var(--pt-border);
    background: var(--pt-surface-0);
    font-family: inherit;
    margin-bottom: 14px;
    min-width: 160px;
}
.psycho-tc-row {
    border-inline-start: 3px solid var(--pt-primary-light);
    padding-inline-start: 12px;
    margin-bottom: 14px;
}
.psycho-tc-row h4 { margin: 0 0 4px; color: var(--pt-primary-dark); font-size: 0.98rem; }
.psycho-tc-row p { margin: 0; line-height: 1.9; color: var(--pt-text-secondary); }

/* Upsell teaser for the locked (free) report */
.psycho-upsell {
    background: linear-gradient(135deg, rgba(233, 84, 131, 0.06), rgba(47, 163, 127, 0.06));
    border: 1px dashed #e95483;
    border-radius: var(--pt-radius-lg);
    padding: 22px;
    text-align: center;
}
.psycho-upsell-lock { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.psycho-upsell-head h3 { margin: 0 0 6px; color: var(--pt-text-primary); }
.psycho-upsell-head p { color: var(--pt-text-secondary); margin: 0 0 14px; }
.psycho-upsell-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 18px;
    max-width: 460px;
    text-align: start;
    display: grid;
    gap: 8px;
}
.psycho-upsell-list li {
    position: relative;
    padding-inline-start: 26px;
    color: var(--pt-text-secondary);
    line-height: 1.6;
}
.psycho-upsell-list li::before {
    content: "★";
    position: absolute;
    inset-inline-start: 0;
    color: #e95483;
}
.psycho-upsell-btn { display: inline-block; }

/* Related tests footer cards */
.psycho-related {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.psycho-related-card {
    display: block;
    text-decoration: none;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    overflow: hidden;
    transition: transform var(--pt-transition-fast);
}
.psycho-related-card:hover { transform: translateY(-3px); box-shadow: var(--pt-shadow-md); }
.psycho-related-thumb {
    display: block;
    width: 100%;
    height: 80px;
    background-size: cover;
    background-position: center;
    background-color: var(--pt-surface-2);
}
.psycho-related-title {
    display: block;
    padding: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pt-text-primary);
    text-align: center;
}

@media (max-width: 640px) {
    .psycho-landing-cover { flex-basis: 100%; max-width: 100%; }
    .psycho-tier-compare { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Print / "Save as PDF" — the report is printed natively by the browser.
   JS (printReport) tags every element that is NOT an ancestor of the report
   with .psycho-print-hide so the print starts at the top with no blank pages;
   here we collapse those and lay the report out cleanly on white paper.
   ────────────────────────────────────────────────────────────────────────── */
@media print {
    /* Make sure background colors / gradients (bars, cards, hero) actually print */
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    .psycho-print-hide { display: none !important; }

    html, body.psycho-printing { background: #ffffff !important; margin: 0 !important; padding: 0 !important; }

    /* Drop interactive chrome that should never appear on paper */
    #psycho-download-pdf,
    .psycho-share,
    .psycho-result-nav,
    .psycho-upsell,
    .psycho-related,
    .psycho-tabs { display: none !important; }

    /* The 16-type guide is interactive; print the selected entry without the picker. */
    .psycho-tc-select { display: none !important; }

    /* Let the report use the full printable width */
    .psycho-test-container { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
    .psycho-report-content {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Every section visible and never sliced; flat (no card chrome) for print. */
    .psycho-panel {
        display: block !important;
        page-break-inside: avoid;
        break-inside: avoid;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 0 18px !important;
        margin: 0 0 18px !important;
    }

    @page { margin: 14mm 12mm; }
}

@media (max-width: 640px) {
    .psycho-hero-info { text-align: center; }
    .psycho-hero-code { font-size: 2.3rem; }
    .psycho-pop-cards { grid-template-columns: 1fr; }
    .psycho-pop-val { font-size: 1.5rem; }
    .psycho-result-nav { flex-direction: row; }
    .psycho-result-nav .psycho-btn { min-width: 0; flex: 1; }
    .psycho-dich-left, .psycho-dich-right { font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   esanj-style report upgrade — section bars, structured summary, role cards,
   ring gauges, identity pie, attachments, and the branded print/PDF layout.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Card panels with a full-width gradient header bar ── */
.psycho-panel {
    background: var(--pt-surface-card);
    border: 1px solid var(--pt-border-light);
    border-radius: var(--pt-radius-lg);
    box-shadow: var(--pt-shadow-sm);
    padding: 30px 36px;
    margin-bottom: 24px;
}
.psycho-panel-title {
    background: linear-gradient(135deg, var(--pt-primary-dark) 0%, var(--pt-primary) 100%);
    color: #fff;
    text-align: center;
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.7;
    /* Bleed to the card edges so the title reads as a full-width header band. */
    padding: 18px 30px;
    border: 0;
    border-radius: var(--pt-radius-lg) var(--pt-radius-lg) 8px 8px;
    box-shadow: 0 6px 18px rgba(31, 132, 102, 0.18);
    margin: -30px -36px 26px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.psycho-panel.is-blue .psycho-panel-title {
    background: linear-gradient(135deg, var(--pt-blue-dark) 0%, var(--pt-blue) 100%);
    box-shadow: 0 6px 18px rgba(63, 110, 136, 0.18);
}

/* ── Hero recolor to green ── */
.psycho-hero {
    background: linear-gradient(135deg, var(--pt-primary-dark) 0%, var(--pt-primary) 55%, var(--pt-primary-light) 120%);
}

/* ── Structured summary (خلاصه نتایج شما) ── */
.psycho-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}
.psycho-summary-table {
    background: var(--pt-surface-1);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 18px 20px;
}
.psycho-summary-code {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--pt-primary-dark);
    text-align: center;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}
.psycho-summary-code.is-long {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.6;
    text-align: right;
}
.psycho-summary-dl { margin: 0; }
.psycho-summary-row {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--pt-border-light);
}
.psycho-summary-row:last-child { border-bottom: 0; }
.psycho-summary-row dt {
    flex: 0 0 96px;
    font-weight: 800;
    color: var(--pt-primary-dark);
    margin: 0;
}
.psycho-summary-row dd { margin: 0; color: var(--pt-text-secondary); line-height: 1.7; }
.psycho-summary-chart { margin: 0 !important; }

/* ── Four-group role cards (دسته‌بندی چهارگانه) ── */
.psycho-roles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.psycho-role {
    text-align: center;
    padding: 18px 10px 14px;
    background: var(--pt-surface-0);
    border: 1.5px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    color: var(--pt-text-muted);
    position: relative;
    opacity: 0.5;                 /* non-selected groups are dimmed... */
    transition: all var(--pt-transition-fast);
}
.psycho-role-ic-wrap { position: relative; display: inline-block; }
.psycho-role .psycho-role-ic { width: 42px; height: 42px; margin: 0 auto 8px; display: block; }
.psycho-role-name { font-weight: 700; font-size: 0.92rem; color: var(--pt-text-secondary); }
.psycho-role-check {
    position: absolute;
    top: -6px; inset-inline-start: -8px;
    width: 20px; height: 20px;
    background: var(--pt-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(47, 163, 127, 0.4);
}
/* ...so the user's own group clearly stands out as the answer. */
.psycho-role.is-active {
    opacity: 1;
    color: var(--pt-primary-dark);
    border: 2px solid var(--pt-primary);
    background: rgba(47, 163, 127, 0.12);
    box-shadow: 0 10px 24px rgba(47, 163, 127, 0.22);
    transform: translateY(-3px);
}
.psycho-role.is-active .psycho-role-name { color: var(--pt-primary-dark); font-weight: 800; }
.psycho-role-badge {
    margin-top: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--pt-primary-dark), var(--pt-primary));
    border-radius: 999px;
    padding: 4px 10px;
    display: inline-block;
}

/* ── Ring gauges (درصد فراوانی) ── */
.psycho-gauges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px; }
.psycho-gauge { text-align: center; flex: 0 0 auto; }
.psycho-gauge-ring {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.psycho-gauge-hole {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--pt-surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--pt-text-primary);
    box-shadow: inset 0 0 0 1px var(--pt-border-light);
}
.psycho-gauge-lbl { font-size: 0.82rem; color: var(--pt-text-muted); max-width: 130px; line-height: 1.5; }

/* ── Identity A/T pie (هویت تیپ شخصیتی) ── */
.psycho-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.psycho-identity-pie {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pt-shadow-md);
}
.psycho-identity-hole {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--pt-surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--pt-text-primary);
}
.psycho-identity-legend { font-size: 0.92rem; color: var(--pt-text-secondary); line-height: 2.1; }
.psycho-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }
.psycho-key-a { background: var(--pt-primary); }
.psycho-key-t { background: var(--pt-blue); }

/* keyword chips spacing under the personality-traits section */
.psycho-keychips { margin-top: 14px; }

/* ── Attachments / download cards (پیوست‌ها) ── */
.psycho-attachments { display: grid; gap: 12px; }
.psycho-attach {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(47, 163, 127, 0.06);
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-md);
    padding: 16px 18px;
    cursor: pointer;
    transition: all var(--pt-transition-fast);
    font-family: inherit;
}
.psycho-attach:hover { background: rgba(47, 163, 127, 0.12); transform: translateY(-2px); }
.psycho-attach-t { display: block; font-weight: 800; color: var(--pt-primary-dark); margin-bottom: 4px; }
.psycho-attach-s { display: block; font-size: 0.82rem; color: var(--pt-text-muted); }

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

/* ── Print-only branded scaffolding is hidden on screen ── */
.psycho-pdf-cover,
.psycho-pdf-toc,
.psycho-pdf-divider,
.psycho-pdf-runhead,
.psycho-pdf-runfoot { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   BRANDED PRINT / "Save as PDF" — cover page, table of contents, per-part
   divider pages, and a running header + footer repeated on every page.
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    @page { margin: 22mm 12mm 18mm; }

    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .psycho-print-hide { display: none !important; }
    html, body.psycho-printing { background: #fff !important; margin: 0 !important; padding: 0 !important; }

    /* Drop interactive chrome */
    #psycho-download-pdf, .psycho-share, .psycho-result-nav, .psycho-upsell,
    .psycho-related, .psycho-tabs, .psycho-tc-select, .psycho-attachments { display: none !important; }

    .psycho-test-container { max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
    .psycho-report-content { background: #fff !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; backdrop-filter: none !important; }

    /* The whole printed report is RTL, independent of the theme/body direction. */
    .psycho-test-container,
    .psycho-report-content,
    .psycho-pdf-cover,
    .psycho-pdf-toc,
    .psycho-pdf-divider,
    .psycho-pdf-runhead,
    .psycho-pdf-runfoot { direction: rtl !important; }

    /* Running header + footer repeat on every printed page (fixed boxes). */
    .psycho-pdf-runhead, .psycho-pdf-runfoot {
        display: flex !important;
        position: fixed;
        left: 0; right: 0;
        align-items: center;
        justify-content: space-between;
        padding: 4px 12mm;
        font-size: 8.5pt;
        color: var(--pt-text-muted);
    }
    .psycho-pdf-runhead { top: 0; border-bottom: 2px solid var(--pt-primary); }
    .psycho-pdf-runhead-t { font-weight: 700; color: var(--pt-text-secondary); }
    .psycho-pdf-brand-sm, .psycho-pdf-brand { font-weight: 900; color: var(--pt-primary); }
    .psycho-pdf-runfoot { bottom: 0; border-top: 1px solid var(--pt-border); }

    /* Cover page (first page). */
    .psycho-pdf-cover {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        height: 226mm;
        min-height: 0;
        break-after: page;
        page-break-after: always;
        break-inside: avoid;
        page-break-inside: avoid;
        text-align: center;
        padding-top: 0;
    }
    .psycho-pdf-cover-head { display: flex; align-items: center; justify-content: space-between; }
    .psycho-pdf-brand { font-size: 16pt; }
    .psycho-pdf-cover-test { text-align: right; }
    .psycho-pdf-cover-test strong { display: block; font-size: 14pt; color: var(--pt-text-primary); }
    .psycho-pdf-cover-test span { font-size: 9pt; color: var(--pt-text-muted); }
    .psycho-pdf-cover-card {
        margin: auto 0;
        border: 1px solid var(--pt-border);
        border-radius: 14px;
        padding: 26px;
        background: var(--pt-surface-1);
    }
    .psycho-pdf-cover-code { font-size: 40pt; font-weight: 900; color: var(--pt-primary-dark); letter-spacing: 0.05em; }
    .psycho-pdf-cover-title { font-size: 15pt; font-weight: 700; color: var(--pt-text-secondary); margin-bottom: 18px; }
    .psycho-pdf-cover-meta { display: inline-grid; gap: 8px; text-align: right; }
    .psycho-pdf-cover-meta > div { display: flex; gap: 10px; }
    .psycho-pdf-cover-meta dt { font-weight: 800; color: var(--pt-primary-dark); margin: 0; min-width: 120px; }
    .psycho-pdf-cover-meta dd { margin: 0; color: var(--pt-text-secondary); }
    .psycho-pdf-cover-foot { font-size: 30pt; font-weight: 200; color: var(--pt-text-muted); letter-spacing: 0.02em; }
    .psycho-pdf-cover-foot span { color: var(--pt-primary); font-weight: 400; font-size: 16pt; }

    /* Table of contents (second page). */
    .psycho-pdf-toc { display: block !important; break-after: page; page-break-after: always; }
    .psycho-pdf-toc h2 { color: var(--pt-primary); font-size: 18pt; margin: 0 0 18px; border-bottom: 2px solid var(--pt-primary); padding-bottom: 8px; }
    .psycho-toc-part { font-weight: 800; color: var(--pt-primary-dark); margin: 16px 0 6px; }
    .psycho-toc-row { padding: 5px 14px; color: var(--pt-text-secondary); border-bottom: 1px dotted var(--pt-border); }

    /* Per-part divider pages. */
    .psycho-pdf-divider {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        min-height: 232mm;
        break-before: page;
        page-break-before: always;
        break-after: page;
        page-break-after: always;
        text-align: right;
        border-right: 0;
    }
    .psycho-pdf-divider-k { font-size: 26pt; font-weight: 900; color: var(--pt-primary); }
    .psycho-pdf-divider-t { font-size: 22pt; font-weight: 800; color: var(--pt-text-primary); margin-top: 6px; }

    /* Each top-level section starts cleanly; titles keep their colored bar. */
    .psycho-panel { display: block !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: 18px; }
    .psycho-panel-title { box-shadow: none !important; }
    .psycho-hero { box-shadow: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Result page width — the generic theme template (single.php) wraps the report
   in an INLINE max-width:800px <article>, which made the sections feel cramped.
   A scoped !important override widens it (it beats the inline style) so the
   esanj-style report uses its full intended width on the result page only.
   ═══════════════════════════════════════════════════════════════════════════ */
body.single-psycho_result article {
    max-width: 1180px !important;
    padding-top: 40px !important;
}
@media (max-width: 1240px) {
    body.single-psycho_result article { max-width: 100% !important; }
}
/* Let the report control its own typography instead of the prose wrapper. */
body.single-psycho_result .esanj-prose { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════
   🚀  LANDING V2 (plp-*) — modern hero-driven test page
   Rendered inside the plugin's clean single template
   (templates/single-psycho.php) with no theme sidebar.
   ═══════════════════════════════════════════════════ */

.psycho-single-page {
    display: block;
    padding: 28px 0 72px;
    background:
        radial-gradient(900px 420px at 85% -60px, rgba(47, 163, 127, 0.10), transparent 65%),
        radial-gradient(700px 380px at 0% 30%, rgba(86, 136, 163, 0.08), transparent 60%);
    min-height: 60vh;
}

/* ── Hero ── */
.plp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: clamp(30px, 5vw, 60px) clamp(22px, 4.5vw, 56px);
    color: #f2fbf7;
    background:
        radial-gradient(1000px 500px at 88% -80px, rgba(70, 199, 155, 0.35), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(86, 136, 163, 0.30), transparent 55%),
        linear-gradient(135deg, #08251d 0%, #12463a 52%, #1f8466 130%);
    box-shadow: 0 24px 70px rgba(8, 37, 29, 0.35);
    isolation: isolate;
}
.plp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    z-index: 0;
    animation: plpDrift 16s ease-in-out infinite;
    pointer-events: none;
}
.plp-blob-a { width: 420px; height: 420px; background: #2fa37f; top: -160px; left: -100px; }
.plp-blob-b { width: 340px; height: 340px; background: #5688a3; bottom: -160px; right: -80px; animation-delay: -8s; }
@keyframes plpDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(0, 34px, 0) scale(1.1); }
}
/* faint dot grid texture, pure CSS */
.plp-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(115deg, transparent 35%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.9));
            mask-image: linear-gradient(115deg, transparent 35%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.9));
    pointer-events: none;
}
.plp-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
}
.plp-hero-inner.no-art { grid-template-columns: 1fr; max-width: 780px; }

.plp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.plp-eyebrow svg { width: 15px; height: 15px; color: #7ee7c0; }

.plp-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    font-weight: 900;
    line-height: 1.35;
    color: #ffffff;
    text-wrap: balance;
}
.plp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.95rem; }
.plp-stars { color: #ffd166; letter-spacing: 2px; font-size: 1rem; text-shadow: 0 0 14px rgba(255, 209, 102, 0.45); }
.plp-rating strong { font-size: 1.05rem; }
.plp-rating-sub { opacity: 0.75; font-size: 0.85rem; }

.plp-desc {
    color: rgba(242, 251, 247, 0.85);
    font-size: 0.95rem;
    line-height: 1.95;
    max-width: 56ch;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.plp-desc p { margin: 0 0 8px; }

.plp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.plp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.plp-chip svg { width: 15px; height: 15px; color: #7ee7c0; flex: none; }

/* CTA buttons */
.plp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.plp-btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 800;
    color: #05231b;
    background: linear-gradient(120deg, #7ee7c0, #46c79b 55%, #2fa37f);
    background-size: 160% 100%;
    box-shadow: 0 10px 30px rgba(46, 199, 155, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: transform var(--pt-transition-fast), box-shadow var(--pt-transition-fast), background-position var(--pt-transition-smooth);
}
.plp-btn-main:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 16px 38px rgba(46, 199, 155, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #05231b;
}
.plp-btn-main:active { transform: translateY(0); }
.plp-btn-main svg { width: 18px; height: 18px; transition: transform var(--pt-transition-fast); }
.plp-btn-main:hover svg { transform: translateX(-4px); }

.plp-btn-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffe1ec;
    background: linear-gradient(120deg, rgba(233, 84, 131, 0.28), rgba(233, 84, 131, 0.14));
    border: 1px solid rgba(233, 84, 131, 0.55);
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: transform var(--pt-transition-fast), background var(--pt-transition-fast);
}
.plp-btn-pro:hover { transform: translateY(-2px); background: rgba(233, 84, 131, 0.38); color: #fff; }

.plp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: background var(--pt-transition-fast), transform var(--pt-transition-fast);
}
.plp-hero .plp-btn-ghost:hover { background: rgba(255, 255, 255, 0.10); color: #fff; transform: translateY(-2px); }

.plp-trust { margin-top: 16px; font-size: 0.78rem; color: rgba(242, 251, 247, 0.6); }
.plp-admin-note { margin-top: 12px; font-size: 0.8rem; color: #ffb8cd; }

/* hero artwork: tilted glass cover with floating stat badges */
.plp-hero-art { display: flex; justify-content: center; }
.plp-cover {
    position: relative;
    transform: rotate(-3deg);
    animation: plpHover 7s ease-in-out infinite;
    max-width: 380px;
    width: 100%;
}
@keyframes plpHover {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50%      { transform: rotate(-2.2deg) translateY(-12px); }
}
.plp-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px rgba(4, 22, 17, 0.55);
}
.plp-float {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(10, 40, 32, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(4, 22, 17, 0.45);
    animation: plpHover 7s ease-in-out infinite;
}
.plp-float b { font-size: 1.02rem; color: #7ee7c0; }
.plp-float span { font-size: 0.7rem; color: rgba(242, 251, 247, 0.75); }
.plp-float-a { top: 10%; right: -26px; animation-delay: -2s; }
.plp-float-b { bottom: 12%; left: -26px; animation-delay: -4.5s; }

/* ── Sections ── */
.plp-section { margin-top: 52px; }
.plp-h2 {
    position: relative;
    margin: 0 0 26px;
    padding-right: 18px;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--pt-text-primary);
}
.plp-h2::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 6px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--pt-primary-light), var(--pt-blue));
}

/* journey steps */
.plp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plp-step-card {
    position: relative;
    overflow: hidden;
    padding: 26px 24px 22px;
    border-radius: 22px;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
    transition: transform var(--pt-transition-fast), box-shadow var(--pt-transition-fast);
}
.plp-step-card:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-md); }
.plp-step-card h3 { margin: 4px 0 8px; font-size: 1.02rem; font-weight: 800; }
.plp-step-card p { margin: 0; font-size: 0.87rem; color: var(--pt-text-secondary); line-height: 1.9; }
.plp-step-num {
    position: absolute;
    top: -18px;
    left: 6px;
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--pt-surface-3);
    pointer-events: none;
}

/* criteria */
.plp-criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plp-criterion {
    padding: 22px;
    border-radius: 20px;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    border-top: 3px solid var(--pt-primary-light);
    box-shadow: var(--pt-shadow-sm);
    transition: transform var(--pt-transition-fast), box-shadow var(--pt-transition-fast);
}
.plp-criterion:hover { transform: translateY(-4px); box-shadow: var(--pt-shadow-md); }
.plp-criterion-title { font-weight: 800; color: var(--pt-primary-dark); margin-bottom: 6px; }
.plp-criterion-text { color: var(--pt-text-secondary); line-height: 1.85; font-size: 0.9rem; }

/* tiers */
.plp-tier-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; }
.plp-tier {
    position: relative;
    padding: 30px 28px;
    border-radius: 24px;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
}
.plp-tier-pro {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--pt-surface-0), var(--pt-surface-0)) padding-box,
        linear-gradient(135deg, var(--pt-primary-light), var(--pt-blue) 60%, #e95483) border-box;
    box-shadow: 0 18px 50px rgba(47, 163, 127, 0.16);
}
.plp-ribbon {
    position: absolute;
    top: -14px;
    right: 24px;
    padding: 5px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, #e95483, #c93b6c);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(233, 84, 131, 0.4);
}
.plp-tier-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.plp-tier-head h3 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.plp-tier-price { font-size: 1.35rem; font-weight: 900; color: var(--pt-primary-dark); }
.plp-tier-pro .plp-tier-price { color: #e95483; }
.plp-tier-price span { font-size: 0.78rem; font-weight: 600; }
.plp-tier-sub { margin: 0 0 10px; font-weight: 700; font-size: 0.88rem; color: var(--pt-text-secondary); }
.plp-tier-list { list-style: none; margin: 0 0 22px; padding: 0; }
.plp-tier-list li {
    position: relative;
    padding: 7px 30px 7px 0;
    font-size: 0.9rem;
    color: var(--pt-text-secondary);
    line-height: 1.8;
}
.plp-tier-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pt-surface-2);
    color: var(--pt-primary-dark);
    font-size: 0.72rem;
    font-weight: 900;
}
.plp-tier-list-pro li::before { background: rgba(233, 84, 131, 0.12); color: #e95483; }
.plp-tier-btn { width: 100%; }
.plp-tier .plp-btn-ghost { border-color: var(--pt-primary); color: var(--pt-primary-dark); }
.plp-tier .plp-btn-ghost:hover { background: var(--pt-surface-2); transform: translateY(-2px); }
.plp-tier-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--pt-text-muted); line-height: 1.8; }
.plp-tier-note-warn { color: #b3245a; }

/* FAQ */
.plp-faq { display: grid; gap: 12px; max-width: 860px; }
.plp-faq-item {
    border-radius: 18px;
    background: var(--pt-surface-0);
    border: 1px solid var(--pt-border);
    box-shadow: var(--pt-shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--pt-transition-fast);
}
.plp-faq-item[open] { box-shadow: var(--pt-shadow-md); }
.plp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 22px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    list-style: none;
}
.plp-faq-item summary::-webkit-details-marker { display: none; }
.plp-faq-ic {
    position: relative;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pt-surface-2);
    transition: transform var(--pt-transition-fast), background var(--pt-transition-fast);
}
.plp-faq-ic::before,
.plp-faq-ic::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--pt-primary-dark);
    transform: translate(-50%, -50%);
}
.plp-faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--pt-transition-fast); }
.plp-faq-item[open] .plp-faq-ic { transform: rotate(45deg); background: var(--pt-primary-glow); }
.plp-faq-a { padding: 0 22px 20px; color: var(--pt-text-secondary); font-size: 0.9rem; line-height: 2; }

/* mobile sticky CTA */
.plp-sticky {
    position: fixed;
    bottom: 12px;
    right: 12px;
    left: 12px;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(10, 40, 32, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(4, 22, 17, 0.45);
    color: #f2fbf7;
}
.plp-sticky-info { display: flex; flex-direction: column; min-width: 0; }
.plp-sticky-info b { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plp-sticky-info span { font-size: 0.72rem; opacity: 0.7; }
.plp-sticky .plp-btn-main { padding: 11px 22px; font-size: 0.9rem; flex: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .plp-hero-inner { grid-template-columns: 1fr; }
    .plp-hero-art { order: -1; }
    .plp-cover { max-width: 290px; }
    .plp-steps-grid { grid-template-columns: 1fr; }
    .plp-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .plp-sticky { display: flex; }
    #psycho-landing { padding-bottom: 86px; } /* room for the sticky bar */
    .plp-float-a { right: -8px; }
    .plp-float-b { left: -8px; }
    .plp-cta .plp-btn-main,
    .plp-cta .plp-btn-pro,
    .plp-cta .plp-btn-ghost { width: 100%; }
}

/* motion & print safety */
@media (prefers-reduced-motion: reduce) {
    .plp-blob, .plp-cover, .plp-float { animation: none; }
    .plp-btn-main, .plp-step-card, .plp-criterion { transition: none; }
}
@media print {
    .plp-sticky { display: none !important; }
}

/* ── Esanj article integration ─────────────────────────────────────────── */
.psycho-layout-embedded {
    padding-top: 8px;
    padding-bottom: 18px;
}
.psycho-embedded-intro {
    padding: 30px 32px;
    border-radius: 26px;
    color: #f2fbf7;
    background:
        radial-gradient(circle at 12% 0, rgba(126, 231, 192, 0.24), transparent 38%),
        linear-gradient(135deg, #082f26, #145e4b);
    box-shadow: 0 18px 50px rgba(8, 47, 38, 0.18);
}
.psycho-embedded-intro span {
    display: inline-block;
    margin-bottom: 8px;
    color: #8de9c7;
    font-size: 0.8rem;
    font-weight: 800;
}
.psycho-embedded-intro h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 900;
}
.psycho-embedded-intro p {
    max-width: 700px;
    margin: 0;
    color: rgba(242, 251, 247, 0.78);
}
.psycho-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.psycho-result-actions .psycho-btn {
    width: auto;
    min-width: 190px;
    text-decoration: none;
}
@media (max-width: 600px) {
    .psycho-embedded-intro { padding: 24px 20px; }
    .psycho-result-actions .psycho-btn { width: 100%; }
}
