/* ============================================================
   Plant Health Doctor — Premium CSS
   PlantCare.dotiam.com  |  ph- prefix
   Red/Medical theme — distinct from plant-identifier (green)
   ============================================================ */
@font-face { font-family: 'Inter'; font-display: swap; }

/* ---------- Variables ---------- */
:root {
    --ph-red:       #dc2626;
    --ph-red-d:     #991b1b;
    --ph-red-l:     #f87171;
    --ph-red-bg:    #fff5f5;
    --ph-orange:    #ea580c;
    --ph-green:     #16a34a;
    --ph-green-bg:  #f0fdf4;
    --ph-border:    #fecaca;
    --ph-border-d:  #fca5a5;
    --ph-text:      #1f2937;
    --ph-muted:     #6b7280;
    --ph-surface:   #ffffff;
    --ph-card-bg:   #fffafa;
    --ph-radius:    12px;
    --ph-radius-lg: 18px;
    --ph-shadow:    0 2px 16px rgba(220,38,38,.09);
    --ph-shadow-lg: 0 8px 40px rgba(220,38,38,.14);
    --ph-font:      'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Breadcrumb ---------- */
.pi-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--ph-border);
    padding: 10px 0;
}
.pi-bc-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 20px; display: flex; align-items: center;
    gap: 8px; font-size: .8rem; font-family: var(--ph-font);
}
.pi-bc-inner a { color: var(--ph-red); font-weight: 500; text-decoration: none; }
.pi-bc-inner a:hover { text-decoration: underline; }
.pi-bc-sep { color: var(--ph-muted); }

/* ---------- Hero ---------- */
.ph-hero {
    padding: 52px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ph-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.ph-hero-inner   { position: relative; max-width: 760px; margin: 0 auto; }
.ph-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
    color: #fff; border-radius: 30px; padding: 5px 18px;
    font-size: .74rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 16px;
    font-family: var(--ph-font);
}
.ph-hero-h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.2); line-height: 1.15; margin: 0 0 6px;
    font-family: var(--ph-font);
}
.ph-hero-h1-hi { display: block; font-size: clamp(.95rem,2.5vw,1.25rem); font-weight: 600; opacity: .88; margin-top: 6px; }
.ph-hero-sub   { font-size: clamp(.88rem,2vw,1rem); color: rgba(255,255,255,.92); margin: 14px 0 4px; line-height: 1.6; }
.ph-hero-sub-hi{ font-size: .82rem; color: rgba(255,255,255,.78); margin: 0 0 18px; }
.ph-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ph-hero-badges span {
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
    color: #fff; border-radius: 20px; padding: 5px 14px; font-size: .75rem; font-weight: 600;
    font-family: var(--ph-font);
}
@media(max-width:480px){ .ph-hero { padding: 36px 16px 44px; } }

/* ---------- Tool Section ---------- */
.ph-tool-section { background: var(--ph-red-bg); padding: 32px 0 48px; }
.ph-container    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Steps */
.ph-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; flex-wrap: wrap; background: #fff;
    border: 1px solid var(--ph-border); border-radius: 50px;
    padding: 14px 24px; margin-bottom: 28px; box-shadow: var(--ph-shadow);
}
.ph-step-item  { display: flex; align-items: center; gap: 10px; }
.ph-step-num {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--ph-red-d), var(--ph-red));
    color: #fff; border-radius: 50%; font-size: .75rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220,38,38,.35);
}
.ph-step-text strong { display: block; font-size: .82rem; font-weight: 700; color: var(--ph-text); font-family: var(--ph-font); }
.ph-step-text span   { display: block; font-size: .7rem; color: var(--ph-muted); }
.ph-step-arrow { font-size: 1.1rem; color: var(--ph-red); font-weight: 700; }
@media(max-width:640px){ .ph-steps { display: none; } }

/* ---------- Main Grid ---------- */
.ph-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media(max-width:960px){ .ph-grid { grid-template-columns: 1fr; } }

/* ---------- Input Column ---------- */
.ph-input-col {
    background: var(--ph-surface); border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-lg); overflow: hidden;
    box-shadow: var(--ph-shadow); position: sticky; top: 80px;
}
@media(max-width:960px){ .ph-input-col { position: static; } }

/* Mode Tabs */
.ph-modes { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 2px solid var(--ph-border); }
.ph-mode {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 15px 8px; border: none; border-right: 1px solid var(--ph-border);
    background: var(--ph-red-bg); cursor: pointer; transition: all .2s;
    font-family: var(--ph-font);
}
.ph-mode:last-child { border-right: none; }
.ph-mode.active { background: #fff; }
.ph-mode-icon { font-size: 1.5rem; transition: transform .2s; }
.ph-mode.active .ph-mode-icon { transform: scale(1.15); }
.ph-mode-en { font-size: .78rem; font-weight: 700; color: var(--ph-muted); }
.ph-mode-hi { font-size: .66rem; color: var(--ph-muted); opacity: .75; }
.ph-mode.active .ph-mode-en,
.ph-mode.active .ph-mode-hi { color: var(--ph-red); opacity: 1; }

/* Mode Content */
.ph-mode-content { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* Source Buttons */
.ph-source-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-source-btn {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 16px 10px; border-radius: 14px; border: 2px solid var(--ph-border-d);
    background: var(--ph-card-bg); cursor: pointer; transition: all .2s; font-family: var(--ph-font);
}
.ph-source-btn:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow); }
.ph-btn-camera:hover { border-color: #0284c7; background: rgba(2,132,199,.05); }
.ph-btn-upload:hover { border-color: var(--ph-red); background: rgba(220,38,38,.05); }
.ph-sb-icon { font-size: 1.8rem; }
.ph-sb-en   { font-size: .8rem; font-weight: 700; color: var(--ph-text); }
.ph-sb-hi   { font-size: .68rem; color: var(--ph-muted); }

/* Dropzone */
.ph-dropzone {
    border: 2px dashed var(--ph-border-d); border-radius: var(--ph-radius);
    background: var(--ph-card-bg); cursor: pointer; transition: all .2s;
    min-height: 150px; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.ph-dropzone:hover, .ph-dropzone.dragover { border-color: var(--ph-red); background: rgba(220,38,38,.03); }
.ph-dz-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 5px; padding: 24px 16px; text-align: center;
}
.ph-dz-icon { font-size: 2.2rem; opacity: .4; }
.ph-dz-en   { font-size: .85rem; font-weight: 600; color: var(--ph-text); margin: 0; }
.ph-dz-hi   { font-size: .72rem; color: var(--ph-muted); margin: 0; }
.ph-dz-empty small { font-size: .7rem; color: #9ca3af; }
.ph-dz-preview { width: 100%; height: 100%; position: relative; }
.ph-dz-preview img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.ph-dz-change {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 20px;
    padding: 5px 12px; font-size: .75rem; font-weight: 600; cursor: pointer;
    transition: background .2s; font-family: var(--ph-font);
}
.ph-dz-change:hover { background: var(--ph-red); }

/* Photo Tips */
.ph-photo-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ph-pt-good, .ph-pt-bad {
    font-size: .72rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
    display: flex; align-items: flex-start; gap: 4px; line-height: 1.4;
}
.ph-pt-good { background: rgba(16,185,129,.08); color: #065f46; border: 1px solid rgba(16,185,129,.2); }
.ph-pt-bad  { background: rgba(239,68,68,.06);  color: #991b1b; border: 1px solid rgba(239,68,68,.15); }

/* Field / Textarea */
.ph-field    { display: flex; flex-direction: column; gap: 6px; }
.ph-label    { font-size: .8rem; font-weight: 700; color: var(--ph-text); font-family: var(--ph-font); }
.ph-label-hi { font-size: .72rem; font-weight: 400; color: var(--ph-muted); }
.ph-textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--ph-border-d);
    border-radius: var(--ph-radius); font-size: .88rem; color: var(--ph-text);
    background: var(--ph-card-bg); resize: vertical; min-height: 130px;
    outline: none; font-family: var(--ph-font); transition: border-color .2s; line-height: 1.6;
}
.ph-textarea:focus { border-color: var(--ph-red); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.ph-textarea::placeholder { color: #9ca3af; }

/* Chips */
.ph-chips-wrap  { display: flex; flex-direction: column; gap: 8px; }
.ph-chips-label { font-size: .72rem; font-weight: 700; color: var(--ph-muted); }
.ph-chips       { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chip {
    background: var(--ph-red-bg); border: 1.5px solid var(--ph-border-d); border-radius: 20px;
    padding: 5px 12px; font-size: .74rem; font-weight: 600; color: var(--ph-text);
    cursor: pointer; transition: all .2s; font-family: var(--ph-font);
}
.ph-chip:hover { border-color: var(--ph-red); color: var(--ph-red); background: rgba(220,38,38,.04); }

/* Diagnose Button */
.ph-diagnose-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: calc(100% - 32px); margin: 12px 16px 16px;
    padding: 16px;
    background: linear-gradient(135deg, var(--ph-red-d) 0%, var(--ph-red) 50%, var(--ph-orange) 100%);
    color: #fff; border: none; border-radius: var(--ph-radius);
    font-size: .95rem; font-weight: 800; cursor: pointer;
    transition: all .25s ease; box-shadow: 0 4px 18px rgba(220,38,38,.4);
    font-family: var(--ph-font);
}
.ph-diagnose-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(220,38,38,.55); }
.ph-diagnose-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Trust Strip */
.ph-trust {
    display: flex; align-items: center; justify-content: space-around;
    padding: 12px 16px; background: var(--ph-red-bg); border-top: 1px solid var(--ph-border);
}
.ph-trust-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ph-trust-stat span  { font-size: 1.1rem; }
.ph-trust-stat b     { font-size: .78rem; font-weight: 900; color: var(--ph-red-d); }
.ph-trust-stat small { font-size: .6rem; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .5px; }
.ph-trust-div        { width: 1px; height: 28px; background: var(--ph-border-d); }

/* ---------- Result Column ---------- */
.ph-result-col {
    background: var(--ph-surface); border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-lg); overflow: hidden;
    box-shadow: var(--ph-shadow); min-height: 480px;
    display: flex; flex-direction: column;
}

/* States */
.ph-state {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 32px 24px; text-align: center; gap: 10px;
}
.ph-ph-anim { position: relative; width: 110px; height: 110px; margin-bottom: 8px; }
.ph-ph-ring {
    position: absolute; border-radius: 50%;
    border: 2px solid rgba(220,38,38,.18);
    animation: phPulse 2.5s ease-out infinite;
}
.ph-ph-ring.r1{inset:0;animation-delay:0s}
.ph-ph-ring.r2{inset:-12px;animation-delay:.7s}
.ph-ph-ring.r3{inset:-24px;animation-delay:1.4s}
@keyframes phPulse{0%{opacity:.7;transform:scale(.85)}100%{opacity:0;transform:scale(1.3)}}
.ph-ph-center {
    position: absolute; inset: 12px;
    background: linear-gradient(135deg, var(--ph-red-d), var(--ph-red));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; box-shadow: 0 6px 20px rgba(220,38,38,.35);
}
.ph-state h3    { font-size: 1.2rem; font-weight: 800; color: var(--ph-red-d); margin: 0; font-family: var(--ph-font); }
.ph-state p     { font-size: .86rem; color: var(--ph-muted); max-width: 340px; line-height: 1.6; margin: 0; font-family: var(--ph-font); }
.ph-state h4    { font-size: .95rem; font-weight: 700; color: var(--ph-red); margin: 6px 0 0; }
.ph-ph-hi-p     { font-size: .82rem !important; }
.ph-ph-tags     { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.ph-ph-tags span {
    background: var(--ph-red-bg); border: 1px solid var(--ph-border);
    border-radius: 20px; padding: 4px 12px; font-size: .72rem; color: var(--ph-text); font-weight: 500;
}

/* Loading */
.ph-load-anim { width: 64px; height: 64px; margin: 0 auto 16px; position: relative; }
.ph-load-icon {
    font-size: 2.8rem; display: block; text-align: center;
    animation: phSpin 2s linear infinite;
}
@keyframes phSpin { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.ph-load-title { font-size: 1.1rem; font-weight: 800; color: var(--ph-red-d); font-family: var(--ph-font); }
.ph-load-sub   { font-size: .82rem; color: var(--ph-muted); }
.ph-load-bar   { width: 240px; height: 6px; background: var(--ph-border); border-radius: 6px; overflow: hidden; margin: 12px auto; }
.ph-load-fill  { height: 100%; background: linear-gradient(90deg, var(--ph-red-d), var(--ph-red)); border-radius: 6px; width: 0%; transition: width 1s ease; }
.ph-load-steps { display: flex; flex-direction: column; gap: 8px; }
.ph-ls {
    font-size: .8rem; color: var(--ph-muted); padding: 6px 14px;
    border-radius: 20px; transition: all .3s; font-family: var(--ph-font);
}
.ph-ls.active { background: rgba(220,38,38,.08); color: var(--ph-red-d); font-weight: 700; }

/* Error */
.ph-err-icon  { font-size: 3rem; }
.ph-err-title { font-size: 1.1rem; font-weight: 800; color: var(--ph-red); font-family: var(--ph-font); }
.ph-err-msg   { font-size: .85rem; color: var(--ph-muted); max-width: 320px; text-align: center; font-family: var(--ph-font); }
.ph-err-retry {
    background: var(--ph-red); color: #fff; border: none; border-radius: var(--ph-radius);
    padding: 10px 22px; font-size: .85rem; font-weight: 700; cursor: pointer;
    transition: all .2s; font-family: var(--ph-font); margin-top: 8px;
}
.ph-err-retry:hover { background: var(--ph-red-d); }

/* ---------- Result Header ---------- */
.ph-res-header {
    padding: 20px 20px 16px; border-bottom: 1px solid var(--ph-border);
    background: linear-gradient(135deg, rgba(220,38,38,.04), rgba(248,113,113,.03));
}
.ph-rh-name {
    font-size: 1.5rem; font-weight: 900; color: var(--ph-text);
    line-height: 1.2; margin-bottom: 4px; font-family: var(--ph-font);
}
.ph-rh-sci {
    font-size: .82rem; font-style: italic; color: var(--ph-muted); margin-bottom: 10px;
}
.ph-rh-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-rh-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px; font-size: .72rem; font-weight: 700;
    border: 1px solid; font-family: var(--ph-font);
}
/* Confidence */
.ph-rh-badge.high   { background: rgba(16,185,129,.1); color: #065f46; border-color: rgba(16,185,129,.3); }
.ph-rh-badge.medium { background: rgba(245,158,11,.1); color: #92400e; border-color: rgba(245,158,11,.3); }
.ph-rh-badge.low    { background: rgba(239,68,68,.1);  color: #991b1b; border-color: rgba(239,68,68,.3); }
/* Severity */
.ph-sev-mild     { background: rgba(16,185,129,.1); color: #065f46; border-color: rgba(16,185,129,.3); }
.ph-sev-moderate { background: rgba(245,158,11,.1); color: #92400e; border-color: rgba(245,158,11,.3); }
.ph-sev-severe   { background: rgba(220,38,38,.1);  color: #991b1b; border-color: rgba(220,38,38,.3); }
/* Urgency */
.ph-urg-low    { background: rgba(99,102,241,.1); color: #3730a3; border-color: rgba(99,102,241,.3); }
.ph-urg-medium { background: rgba(245,158,11,.1); color: #92400e; border-color: rgba(245,158,11,.3); }
.ph-urg-high   { background: rgba(220,38,38,.12); color: #7f1d1d; border-color: rgba(220,38,38,.3); animation: phUrgPulse 1.5s ease-in-out infinite; }
@keyframes phUrgPulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* Quick Stats */
.ph-res-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-bottom: 1px solid var(--ph-border);
}
.ph-res-stat {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 14px 10px; border-right: 1px solid var(--ph-border); text-align: center;
}
.ph-res-stat:last-child { border-right: none; }
.ph-res-stat-icon  { font-size: 1.3rem; }
.ph-res-stat-label { font-size: .58rem; font-weight: 700; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .8px; }
.ph-res-stat-val   { font-size: .8rem; font-weight: 800; color: var(--ph-text); }

/* ---------- Tabs ---------- */
.ph-res-tabs-bar {
    border-bottom: 1px solid var(--ph-border);
    background: var(--ph-red-bg);
    overflow-x: auto;
}
.ph-res-tabs {
    display: flex; min-width: max-content;
}
.ph-res-tab {
    flex: 1; min-width: 90px; padding: 12px 14px;
    border: none; background: none; border-bottom: 2px solid transparent;
    font-size: .78rem; font-weight: 700; color: var(--ph-muted);
    cursor: pointer; transition: all .2s; white-space: nowrap; font-family: var(--ph-font);
}
.ph-res-tab.active { color: var(--ph-red); border-bottom-color: var(--ph-red); background: #fff; }
.ph-res-tab:hover:not(.active) { color: var(--ph-text); background: rgba(220,38,38,.04); }

/* Tab Body */
.ph-res-tab-body { padding: 18px 20px; flex: 1; min-height: 200px; }

/* Diagnosis tab — overview grid */
.ph-ov-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.ph-ov-card {
    background: var(--ph-red-bg); border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius); padding: 12px 14px;
}
.ph-ov-label { font-size: .65rem; font-weight: 800; color: var(--ph-red); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.ph-ov-val   { font-size: .88rem; font-weight: 600; color: var(--ph-text); }
.ph-desc-box {
    background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius);
    padding: 14px; font-size: .86rem; color: #374151; line-height: 1.7;
}

/* Symptoms / Causes list */
.ph-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ph-list-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: var(--ph-radius);
    font-size: .85rem; color: var(--ph-text); line-height: 1.5;
    font-family: var(--ph-font);
}
.ph-list-item.symptom { background: rgba(220,38,38,.05); border: 1px solid rgba(220,38,38,.15); }
.ph-list-item.cause   { background: rgba(245,158,11,.05); border: 1px solid rgba(245,158,11,.2); }
.ph-list-bullet { flex-shrink: 0; font-size: 1rem; }

/* Treatment methods */
.ph-method-list { display: flex; flex-direction: column; gap: 10px; }
.ph-method-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px; border-radius: var(--ph-radius); border: 1px solid;
    font-family: var(--ph-font);
}
.ph-method-item.organic  { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.2); }
.ph-method-item.chemical { background: rgba(99,102,241,.05); border-color: rgba(99,102,241,.2); }
.ph-method-icon  { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.ph-method-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.ph-method-item.organic  .ph-method-label { color: #065f46; }
.ph-method-item.chemical .ph-method-label { color: #3730a3; }
.ph-method-text  { font-size: .85rem; color: #374151; line-height: 1.6; }

/* Prevention list */
.ph-prevent-list { display: flex; flex-direction: column; gap: 8px; }
.ph-prevent-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; background: var(--ph-green-bg);
    border: 1px solid rgba(22,163,74,.2); border-radius: var(--ph-radius);
    font-size: .85rem; color: var(--ph-text); line-height: 1.5;
    font-family: var(--ph-font);
}
.ph-prevent-item::before { content: '🛡️'; flex-shrink: 0; }

/* Warning box */
.ph-warn-box {
    background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
    border-radius: var(--ph-radius); padding: 12px 14px; font-size: .82rem;
    color: #92400e; display: flex; gap: 8px; margin-top: 12px;
    font-family: var(--ph-font); line-height: 1.6;
}

/* Recovery info */
.ph-recovery-box {
    background: linear-gradient(135deg, rgba(16,185,129,.07), rgba(16,185,129,.03));
    border: 1px solid rgba(16,185,129,.25); border-radius: var(--ph-radius);
    padding: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px;
    font-family: var(--ph-font);
}
.ph-recovery-icon  { font-size: 1.6rem; flex-shrink: 0; }
.ph-recovery-label { font-size: .65rem; font-weight: 800; color: #065f46; text-transform: uppercase; letter-spacing: .8px; }
.ph-recovery-val   { font-size: .95rem; font-weight: 700; color: var(--ph-text); }

/* Actions */
.ph-res-actions {
    display: flex; gap: 8px; padding: 16px 20px;
    border-top: 1px solid var(--ph-border); background: var(--ph-red-bg); flex-wrap: wrap;
}
.ph-act-wa {
    background: #25d366; color: #fff; border: none; border-radius: var(--ph-radius);
    padding: 10px 18px; font-size: .82rem; font-weight: 700; cursor: pointer;
    transition: all .2s; font-family: var(--ph-font);
}
.ph-act-wa:hover { background: #20b857; }
.ph-act-copy, .ph-act-new {
    background: #fff; color: var(--ph-text); border: 1.5px solid var(--ph-border-d);
    border-radius: var(--ph-radius); padding: 10px 16px; font-size: .82rem;
    font-weight: 600; cursor: pointer; transition: all .2s; font-family: var(--ph-font);
}
.ph-act-copy:hover { border-color: var(--ph-red); color: var(--ph-red); }
.ph-act-new:hover  { border-color: var(--ph-muted); }

/* ---------- SEO Section ---------- */
.ph-seo-section {
    background: #fff; padding: 56px 0; border-top: 1px solid var(--ph-border);
    content-visibility: auto; contain-intrinsic-size: 0 600px;
}
.ph-seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:768px){ .ph-seo-grid { grid-template-columns: 1fr; } }
.ph-seo-card    { border-radius: var(--ph-radius); padding: 24px; }
.ph-seo-card.en { background: var(--ph-red-bg); border: 1px solid var(--ph-border); }
.ph-seo-card.hi { background: #fff8f1; border: 1px solid #fed7aa; }
.ph-seo-card h2 { font-size: 1.1rem; font-weight: 800; color: var(--ph-red-d); margin: 0 0 10px; line-height: 1.4; font-family: var(--ph-font); }
.ph-seo-card.hi h2 { color: #9a3412; }
.ph-seo-card p  { font-size: .875rem; color: #374151; line-height: 1.8; margin: 0; font-family: var(--ph-font); }

/* ---------- Related / FAQ / Disclaimer (reuse pi-) ---------- */
.pi-disclaimer { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--ph-radius); padding: 14px 18px; font-size: .82rem; color: #92400e; line-height: 1.6; margin: 20px 0 28px; }

/* ---------- Mobile ---------- */
@media(max-width:480px){
    .ph-hero          { padding: 36px 16px 44px; }
    .ph-tool-section  { padding: 20px 0 36px; }
    .ph-mode-content  { padding: 12px; }
    .ph-diagnose-btn  { margin: 0 12px 12px; width: calc(100% - 24px); font-size: .88rem; }
    .ph-res-tab-body  { padding: 14px; }
    .ph-res-header    { padding: 18px; }
    .ph-rh-name       { font-size: 1.3rem; }
    .ph-res-actions   { padding: 12px 14px; }
    .ph-ov-grid       { grid-template-columns: 1fr; }
    .ph-res-stats     { grid-template-columns: repeat(2,1fr); }
    .ph-seo-section   { padding: 36px 0; }
}