@font-face{font-family:system-fa;src:local("Tahoma");}
body{font-family:Tahoma,Arial,sans-serif;font-size:14px;line-height:1.8;}
.card{border:0;border-radius:18px;box-shadow:0 8px 25px rgba(20,30,60,.06)}
.btn{border-radius:12px;font-weight:600;}
.form-control,.form-select{border-radius:12px;padding:.65rem .85rem;}
.table{vertical-align:middle;}
.badge{border-radius:999px;padding:.45rem .7rem;}
.small-muted{font-size:.85rem;color:#6c757d;}
.result-box{background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 25px rgba(20,30,60,.06)}
.question-card{background:#fff;border:1px solid #eee;border-radius:16px;padding:16px;margin-bottom:12px;}
.option-row{background:#f8f9fa;border-radius:12px;padding:10px;margin:6px 0;}
textarea{min-height:120px;}

/* Psychologist modern dashboard */
.psychologist-main{max-width:1180px;}
.profile-hero{background:linear-gradient(135deg,#198754,#20c997);color:#fff;border-radius:24px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 18px 45px rgba(25,135,84,.18)}
.profile-hero .small-muted{color:rgba(255,255,255,.82)}
.profile-hero .badge{box-shadow:0 5px 18px rgba(0,0,0,.08)}
.profile-hero-stat{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);border-radius:20px;padding:18px 24px;min-width:140px;text-align:center;backdrop-filter:blur(8px)}
.stat-number{font-size:2.2rem;font-weight:800;line-height:1.1}.stat-number.mini{font-size:1.8rem;color:#198754;margin-bottom:.5rem}
.dashboard-card{display:block;text-decoration:none;color:#1f2937;background:#fff;border:1px solid rgba(0,0,0,.04);border-radius:24px;padding:24px;height:100%;box-shadow:0 12px 30px rgba(20,30,60,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.dashboard-card:hover{color:#111827;transform:translateY(-4px);box-shadow:0 18px 45px rgba(20,30,60,.12);border-color:rgba(25,135,84,.18)}
.dashboard-card p{color:#6b7280;margin-bottom:0;line-height:1.9}.card-icon{width:52px;height:52px;border-radius:18px;background:#f0fdf4;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin-bottom:14px}.card-link-text{display:inline-flex;margin-top:16px;color:#198754;font-weight:700}
.summary-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid #eef2f7}.summary-row:last-child{border-bottom:0}.summary-row span{color:#6b7280}.summary-row b{font-weight:800;text-align:left}.summary-row.compact{padding:7px 0;font-size:.92rem}
.review-card{background:#fff;border:1px solid #eef2f7;border-radius:20px;padding:18px;box-shadow:0 10px 24px rgba(20,30,60,.05)}
@media (max-width:768px){.profile-hero{align-items:flex-start;flex-direction:column}.profile-hero-stat{width:100%}}

:root{--soft:#f7faf9;--line:#e7ecea}.site-body{background:#fbfdfc;color:#16211d}.site-nav{backdrop-filter:blur(10px)}.hero-section{background:linear-gradient(135deg,#effaf5,#fff)}.hero-card,.public-card,.dashboard-card,.card{border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 30px rgba(12,42,28,.05)}.hero-card{background:#fff;padding:28px}.step-line{display:flex;gap:12px;align-items:flex-start;margin:14px 0}.step-line b{display:inline-flex;width:28px;height:28px;border-radius:50%;align-items:center;justify-content:center;background:#198754;color:#fff}.public-card{display:block;background:#fff;padding:22px;text-decoration:none;color:inherit;transition:.2s}.public-card:hover,.action-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(12,42,28,.1)}.avatar-circle{width:56px;height:56px;border-radius:20px;background:#e8f6ef;color:#198754;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:24px}.auth-body{background:linear-gradient(135deg,#f0fbf5,#fff);min-height:100vh}.summary-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f1}.summary-row:last-child{border-bottom:0}.profile-hero{border:1px solid var(--line);border-radius:28px;padding:28px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 10px 30px rgba(12,42,28,.05)}
.nav-search-input{min-width:220px}.test-form .option-row{cursor:pointer}.public-card .badge{white-space:nowrap}

/* Branding and public mobile navigation fixes */
.site-brand{display:inline-flex;align-items:center;gap:.55rem;min-width:0;max-width:70vw;}
.site-brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.site-logo{max-height:42px;max-width:150px;width:auto;height:auto;object-fit:contain;display:block;}
.logo-preview-box{border:1px solid #e7ecea;border-radius:16px;background:#fff;padding:10px;display:inline-flex;align-items:center;justify-content:center;min-width:110px;min-height:70px;}
.logo-preview-box img{max-height:58px;max-width:170px;object-fit:contain;display:block;}
.feature-summary-card .mini-stat{background:#f7faf9;border:1px solid #e7ecea;border-radius:18px;padding:14px;height:100%;}
.feature-summary-card .mini-stat b{display:block;color:#198754;margin-bottom:4px;}
.feature-summary-card .mini-stat span{font-size:.88rem;color:#6b7280;}
.feature-page-hero{background:linear-gradient(135deg,#effaf5,#fff);border:1px solid #e7ecea;border-radius:28px;padding:32px;}

@media (max-width: 991.98px){
  .site-nav .navbar-collapse{background:#fff;border:1px solid #e7ecea;border-radius:20px;margin-top:12px;padding:14px;box-shadow:0 18px 40px rgba(12,42,28,.10);}
  .site-nav .navbar-nav{gap:2px;}
  .site-nav .nav-link{padding:.65rem .75rem;border-radius:12px;}
  .site-nav .nav-link:hover{background:#f7faf9;}
  .site-search-form{width:100%;margin-right:0!important;flex-direction:column;align-items:stretch;}
  .site-search-form .nav-search-input{width:100%;min-width:0;}
  .site-search-form .btn{width:100%;}
  .site-auth-actions{width:100%;flex-direction:column;}
  .site-auth-actions .btn{width:100%;}
  .navbar-toggler{border-radius:12px;padding:.55rem .7rem;}
  .hero-section .display-6{font-size:1.85rem;}
}

/* Public listing and homepage search */
.home-search-card .form-control-lg{font-size:1rem;}
.listing-hero{background:linear-gradient(135deg,#effaf5,#fff);border:1px solid #e7ecea;border-radius:28px;padding:28px;}
.filter-card{background:#fff;border:1px solid #e7ecea;border-radius:24px;padding:20px;box-shadow:0 10px 30px rgba(12,42,28,.05);}
.filter-card .form-label{font-weight:700;color:#374151;}
@media (max-width: 991.98px){.listing-hero{padding:22px}.filter-card{padding:16px}}

.library-reader{max-width:920px}.library-content{font-size:1.04rem;line-height:2.05}.library-cover{max-width:260px;border-radius:22px;box-shadow:0 12px 34px rgba(15,23,42,.12)}.home-library-section{background:linear-gradient(135deg,rgba(16,185,129,.08),rgba(59,130,246,.05));border-radius:32px;margin-top:1rem;margin-bottom:1rem}.filter-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;padding:24px;box-shadow:0 14px 38px rgba(15,23,42,.04)}

/* Pricing plans */
.pricing-card{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #e7ecea;border-radius:28px;padding:26px;box-shadow:0 14px 38px rgba(12,42,28,.06);overflow:hidden;transition:.2s ease;}
.pricing-card:hover{transform:translateY(-4px);box-shadow:0 20px 46px rgba(12,42,28,.11)}
.pricing-card.featured{border-color:#198754;box-shadow:0 18px 45px rgba(25,135,84,.13)}
.pricing-card.current{border-color:#0d6efd;background:linear-gradient(180deg,#fff,#f8fbff)}
.pricing-price{font-size:1.8rem;font-weight:900;color:#198754;margin:.75rem 0 .15rem;}
.pricing-ribbon{position:absolute;top:18px;left:-38px;background:#198754;color:#fff;font-weight:800;padding:6px 42px;transform:rotate(-35deg);font-size:.8rem;}
.pricing-features{padding-right:1.1rem;margin-bottom:0;color:#374151;line-height:2;}
.pricing-features li{margin:.25rem 0}.pricing-card.compact{padding:20px;border-radius:22px}.min-h-50{min-height:50px}.home-pricing-section{background:linear-gradient(135deg,rgba(25,135,84,.06),rgba(32,201,151,.04));border-radius:32px;margin-top:1rem;margin-bottom:1rem;}
@media(max-width:768px){.pricing-price{font-size:1.45rem}.pricing-card{padding:20px}.pricing-ribbon{display:none}}


/* Home library spotlight */
.home-library-wrap{padding-top:2rem;padding-bottom:2rem}
.home-library-card{background:linear-gradient(135deg,#ffffff 0%,#f2fbf7 52%,#eef6ff 100%);border:1px solid rgba(15,23,42,.08);border-radius:34px;padding:34px;box-shadow:0 22px 60px rgba(15,23,42,.08);position:relative;overflow:hidden}
.home-library-card:before{content:"";position:absolute;inset:auto -80px -120px auto;width:260px;height:260px;border-radius:50%;background:rgba(25,135,84,.12);pointer-events:none}
.library-home-search{display:flex;gap:.75rem;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:.5rem;box-shadow:0 12px 30px rgba(15,23,42,.04)}
.library-home-search .form-control{border:0;box-shadow:none;background:transparent}.library-home-search .btn{border-radius:16px;white-space:nowrap}
.library-metric{height:100%;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;text-align:center;box-shadow:0 12px 26px rgba(15,23,42,.045)}
.library-metric b{display:block;font-size:1.65rem;color:#198754;line-height:1.2}.library-metric span{font-size:.86rem;color:#64748b}
.library-category-pills{display:flex;gap:.5rem;flex-wrap:wrap}.library-pill{display:inline-flex;align-items:center;border-radius:999px;background:#fff;color:#166534;text-decoration:none;border:1px solid rgba(25,135,84,.18);padding:.45rem .8rem;font-size:.88rem}.library-pill:hover{background:#eaf7ef;color:#14532d}.library-pill.muted{color:#64748b;border-color:#e5e7eb}
.library-mini-item{display:flex;flex-direction:column;gap:.45rem;text-decoration:none;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.05);transition:.2s ease;color:#0f172a}.library-mini-item:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(15,23,42,.08);color:#0f172a}.library-mini-item.empty{color:#64748b}.library-mini-type{align-self:flex-start;background:#ecfdf5;color:#166534;border-radius:999px;font-size:.75rem;font-weight:700;padding:.25rem .6rem}.library-mini-item small{color:#64748b}
@media(max-width:768px){.home-library-card{padding:22px;border-radius:24px}.library-home-search{display:block}.library-home-search .btn{width:100%;margin-top:.5rem}.library-metric b{font-size:1.35rem}}

/* EHR forms */
.ltr-input{direction:ltr;text-align:left;unicode-bidi:plaintext}

/* Professional homepage landing */
.py-lg-6{padding-top:5rem!important;padding-bottom:5rem!important}
.rp-home-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 20%,rgba(32,201,151,.18),transparent 30%),radial-gradient(circle at 88% 0%,rgba(13,110,253,.12),transparent 32%),linear-gradient(135deg,#f4fbf8 0%,#fff 58%,#f3f8ff 100%);border-bottom:1px solid rgba(15,23,42,.06)}
.rp-home-hero:before{content:"";position:absolute;right:-110px;top:80px;width:320px;height:320px;border-radius:999px;background:rgba(25,135,84,.09);filter:blur(2px)}
.rp-home-hero:after{content:"";position:absolute;left:-120px;bottom:-130px;width:360px;height:360px;border-radius:999px;background:rgba(59,130,246,.08)}
.rp-home-hero .container{position:relative;z-index:1}.rp-pill{display:inline-flex;align-items:center;gap:.35rem;border:1px solid rgba(15,23,42,.08);background:#fff;color:#334155;border-radius:999px;padding:.45rem .85rem;font-size:.86rem;font-weight:800;box-shadow:0 10px 25px rgba(15,23,42,.035)}
.rp-pill-green{background:#ecfdf5;color:#166534;border-color:rgba(25,135,84,.20)}.rp-pill-dark{background:rgba(15,23,42,.20);color:#fff;border-color:rgba(255,255,255,.25)}
.rp-hero-title{font-size:clamp(2rem,4vw,3.65rem);line-height:1.45;font-weight:950;letter-spacing:-.035em;color:#0f172a}.rp-hero-lead{font-size:1.12rem;line-height:2.15;color:#475569;max-width:780px}.rp-trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:760px}.rp-trust-row>div{background:rgba(255,255,255,.76);border:1px solid rgba(15,23,42,.07);border-radius:20px;padding:14px 16px;box-shadow:0 16px 35px rgba(15,23,42,.045);backdrop-filter:blur(8px)}.rp-trust-row b{display:block;font-size:1.55rem;color:#198754;line-height:1.2}.rp-trust-row span{display:block;color:#64748b;font-size:.83rem;margin-top:.25rem}
.rp-search-panel{position:relative;background:rgba(255,255,255,.88);border:1px solid rgba(15,23,42,.08);border-radius:34px;padding:30px;box-shadow:0 28px 80px rgba(15,23,42,.10);backdrop-filter:blur(12px)}.rp-search-badge{display:inline-flex;margin-bottom:14px;background:#0f172a;color:#fff;border-radius:999px;padding:.38rem .75rem;font-weight:800;font-size:.78rem}.rp-search-form{display:flex;gap:.65rem;background:#f8fafc;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:.55rem}.rp-search-form .form-control{border:0;background:transparent;box-shadow:none}.rp-search-form .btn{border-radius:17px;min-width:120px}.rp-quick-links{display:flex;gap:.55rem;flex-wrap:wrap}.rp-quick-links a{display:inline-flex;text-decoration:none;color:#166534;background:#ecfdf5;border:1px solid rgba(25,135,84,.18);border-radius:999px;padding:.42rem .75rem;font-weight:800;font-size:.85rem}.rp-mini-note{background:#f8fafc;border:1px dashed rgba(15,23,42,.16);border-radius:18px;padding:12px 14px;color:#64748b;font-size:.9rem}
.rp-path-card{display:block;height:100%;text-decoration:none;color:#0f172a;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:28px;padding:24px;box-shadow:0 18px 45px rgba(15,23,42,.055);transition:.22s ease}.rp-path-card:hover{color:#0f172a;transform:translateY(-5px);box-shadow:0 26px 60px rgba(15,23,42,.10);border-color:rgba(25,135,84,.25)}.rp-path-icon{width:58px;height:58px;border-radius:22px;background:linear-gradient(135deg,#ecfdf5,#eef6ff);display:flex;align-items:center;justify-content:center;font-size:1.8rem;margin-bottom:16px}.rp-path-card h3{font-size:1.08rem;font-weight:900;margin-bottom:10px}.rp-path-card p{color:#64748b;min-height:84px;margin-bottom:14px}.rp-path-card b{color:#198754}
.rp-section-kicker{display:inline-flex;color:#198754;background:#ecfdf5;border:1px solid rgba(25,135,84,.18);border-radius:999px;padding:.35rem .75rem;font-size:.82rem;font-weight:900;margin-bottom:12px}.rp-section-head{display:flex;justify-content:space-between;align-items:end;gap:16px}.rp-feature-band{background:linear-gradient(135deg,#0f172a,#14532d);color:#fff}.rp-feature-band .text-muted{color:rgba(255,255,255,.72)!important}.rp-feature-box{height:100%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:20px;backdrop-filter:blur(10px)}.rp-feature-box b{display:block;margin-bottom:8px;font-size:1.02rem}.rp-feature-box span{display:block;color:rgba(255,255,255,.74);line-height:1.9;font-size:.92rem}
.rp-item-card{display:flex;flex-direction:column;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:26px;padding:22px;box-shadow:0 16px 40px rgba(15,23,42,.052);transition:.2s ease}.rp-item-card:hover{transform:translateY(-3px);box-shadow:0 24px 54px rgba(15,23,42,.095);border-color:rgba(25,135,84,.20)}.rp-link-card{text-decoration:none;color:inherit}.rp-link-card:hover{color:inherit}.rp-card-avatar{width:50px;height:50px;border-radius:19px;background:#ecfdf5;display:flex;align-items:center;justify-content:center;font-size:1.45rem;margin-bottom:14px}.min-h-50{min-height:50px}
.rp-org-cta{background:#f8fafc}.rp-org-card{background:radial-gradient(circle at 15% 0%,rgba(255,255,255,.20),transparent 30%),linear-gradient(135deg,#166534,#0f172a);border-radius:34px;color:#fff;padding:34px;box-shadow:0 28px 80px rgba(15,23,42,.16);overflow:hidden}.rp-org-card p{color:rgba(255,255,255,.78);line-height:2}.rp-report-preview{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:24px;backdrop-filter:blur(10px)}.rp-report-row{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.rp-report-row span{color:rgba(255,255,255,.75)}.rp-report-row b{color:#fff}.rp-report-bar{height:10px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden;margin-bottom:18px}.rp-report-bar i{display:block;height:100%;background:#86efac;border-radius:999px}.rp-report-bar.warn i{background:#facc15}.rp-report-bar.danger i{background:#fb7185}.rp-report-preview small{color:rgba(255,255,255,.68)}
.rp-final-cta{background:linear-gradient(135deg,#fff,#f4fbf8);border:1px solid rgba(15,23,42,.08);border-radius:34px;padding:42px;box-shadow:0 20px 55px rgba(15,23,42,.065)}
@media(max-width:991.98px){.rp-trust-row{grid-template-columns:repeat(2,1fr)}.rp-section-head{align-items:flex-start;flex-direction:column}.rp-search-form{display:block}.rp-search-form .btn{width:100%;margin-top:.5rem}.rp-path-card p{min-height:auto}.py-lg-6{padding-top:3rem!important;padding-bottom:3rem!important}}
@media(max-width:575.98px){.rp-trust-row{grid-template-columns:1fr}.rp-search-panel,.rp-org-card,.rp-final-cta{padding:22px;border-radius:24px}.rp-hero-title{font-size:2rem}.rp-hero-lead{font-size:1rem}}
