/* =====================================================
   忆时光 · Portal CSS
   Open public-facing frontend — separate from workbench
   ===================================================== */

/* ---- Reset & Base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.portal-body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #2d2d2d;
    background: #fff;
    font-size: 15px;
    line-height: 1.7;
}
body.elderly-mode { font-size: 19px !important; }
body.elderly-mode h1 { font-size: 2.6rem !important; }
body.elderly-mode h2 { font-size: 2rem !important; }
body.elderly-mode p  { font-size: 1.15rem !important; }

/* ---- Typography ------------------------------------ */
h1, h2, h3, h4 {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.3;
    color: #1a1a2e;
}

/* ---- Portal Header --------------------------------- */
.portal-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid #f0ebe3;
    transition: box-shadow 0.2s;
}
.portal-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.portal-header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.portal-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
}
.portal-brand .brand-icon { font-size: 1.6rem; }
.portal-brand .brand-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.2rem; font-weight: 700;
    color: #7c4e2d;
}
.portal-brand .brand-tagline {
    font-size: 0.72rem; color: #888;
    border-left: 1px solid #ddd; padding-left: 10px; margin-left: 4px;
    display: none;
}
@media(min-width: 640px) { .portal-brand .brand-tagline { display: block; } }

.portal-nav {
    display: flex; align-items: center; gap: 6px;
}
@media(max-width: 768px) { .portal-nav { display: none; } }

.pnav-link {
    padding: 6px 14px; border-radius: 8px;
    text-decoration: none; color: #555;
    font-size: 0.9rem; font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.pnav-link:hover, .pnav-link.active { background: #f5efe8; color: #7c4e2d; }
.pnav-btn {
    padding: 7px 18px; border-radius: 8px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    transition: all 0.15s; cursor: pointer;
}
.pnav-btn-primary {
    background: #7c4e2d; color: #fff;
}
.pnav-btn-primary:hover { background: #5c3820; }
.pnav-btn-outline {
    border: 1px solid #7c4e2d; color: #7c4e2d; background: transparent;
}
.pnav-btn-outline:hover { background: #f5efe8; }
.pnav-elderly-toggle {
    background: none; border: 1px solid #ddd; border-radius: 8px;
    padding: 6px 10px; cursor: pointer; color: #888; font-size: 0.85rem;
    transition: all 0.15s;
}
.pnav-elderly-toggle:hover { border-color: #7c4e2d; color: #7c4e2d; }

/* Mobile hamburger */
.portal-ham {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
@media(max-width: 768px) { .portal-ham { display: flex; } }
.portal-ham span {
    display: block; width: 22px; height: 2px;
    background: #333; border-radius: 2px; transition: all 0.2s;
}
.portal-mobile-nav {
    display: none; flex-direction: column;
    border-top: 1px solid #f0ebe3;
    background: #fff; padding: 8px 16px 16px;
}
.portal-mobile-nav.open { display: flex; }
.pmob-link {
    padding: 12px 8px; text-decoration: none;
    color: #555; font-size: 1rem; border-bottom: 1px solid #f5f5f5;
}
.pmob-link:last-child { border-bottom: none; }
.pmob-cta { color: #7c4e2d; font-weight: 700; }

/* ---- Flash Messages -------------------------------- */
.portal-flash {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    z-index: 2000; padding: 12px 24px; border-radius: 10px;
    font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-width: 90vw;
}
.portal-flash button {
    background: none; border: none; cursor: pointer;
    font-size: 1.1rem; margin-left: 12px; opacity: 0.7;
}
.portal-flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.portal-flash-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- Portal Main ----------------------------------- */
.portal-main { min-height: calc(100vh - 64px - 200px); }

/* ---- Hero Section ---------------------------------- */
.hero {
    background: linear-gradient(135deg, #fdf8f2 0%, #f5e8d5 40%, #ede0ce 100%);
    padding: 80px 24px 60px;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%23c4964e' opacity='0.18'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.9); border: 1px solid #e0c99e;
    border-radius: 999px; padding: 6px 18px;
    font-size: 0.82rem; color: #7c4e2d; font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 2.8rem; font-weight: 700;
    color: #1a1a2e; margin-bottom: 20px;
    line-height: 1.2;
}
@media(max-width: 600px) { .hero h1 { font-size: 2rem; } }
.hero h1 em { color: #7c4e2d; font-style: normal; }
.hero-sub {
    font-size: 1.1rem; color: #666; max-width: 600px;
    margin: 0 auto 36px;
}
.hero-ctas {
    display: flex; flex-wrap: wrap; gap: 16px;
    justify-content: center;
}
.btn-hero-primary {
    background: #7c4e2d; color: #fff; border: none;
    padding: 14px 32px; border-radius: 10px;
    font-size: 1rem; font-weight: 700;
    text-decoration: none; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { background: #5c3820; transform: translateY(-1px); }
.btn-hero-secondary {
    background: transparent; color: #7c4e2d;
    border: 2px solid #7c4e2d; padding: 13px 28px;
    border-radius: 10px; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: #f5efe8; }
.hero-trust {
    margin-top: 40px; display: flex;
    justify-content: center; flex-wrap: wrap; gap: 24px;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem; color: #888;
}
.hero-trust-item i { color: #7c4e2d; }

/* ---- Section Common -------------------------------- */
.portal-section {
    padding: 72px 24px;
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: #7c4e2d;
    margin-bottom: 10px;
}
.section-title {
    font-size: 2rem; font-weight: 700; color: #1a1a2e;
    margin-bottom: 14px;
}
.section-sub {
    color: #666; font-size: 1rem; max-width: 600px;
    margin-bottom: 48px;
}
.bg-warm { background: #fdf8f2; }
.bg-dark  { background: #1a1a2e; color: #e8e0d5; }
.bg-dark .section-title { color: #f5e8d5; }
.bg-dark .section-sub { color: #a89e8e; }

/* ---- Pain Points ----------------------------------- */
.pain-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; margin-top: 40px;
}
.pain-card {
    background: #fff; border: 1px solid #ede0ce;
    border-radius: 16px; padding: 28px 24px;
    transition: box-shadow 0.2s;
}
.pain-card:hover { box-shadow: 0 8px 32px rgba(124,78,45,0.1); }
.pain-icon { font-size: 2rem; margin-bottom: 14px; }
.pain-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #1a1a2e; }
.pain-card p  { font-size: 0.9rem; color: #666; }

/* ---- Module Cards ---------------------------------- */
.modules-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; margin-top: 40px;
}
.module-card {
    background: #fff; border: 1px solid #ede0ce;
    border-radius: 20px; padding: 32px 26px;
    transition: all 0.2s; cursor: default;
    position: relative; overflow: hidden;
}
.module-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #7c4e2d, #c4964e);
    border-radius: 20px 20px 0 0;
}
.module-card:hover { box-shadow: 0 12px 40px rgba(124,78,45,0.12); transform: translateY(-2px); }
.module-num {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
    color: #c4964e; opacity: 0.8; margin-bottom: 10px;
}
.module-icon { font-size: 2.2rem; margin-bottom: 14px; }
.module-card h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 8px; }
.module-card p  { font-size: 0.88rem; color: #666; margin-bottom: 14px; }
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module-tag {
    background: #f5efe8; color: #7c4e2d;
    border-radius: 6px; padding: 2px 10px;
    font-size: 0.75rem; font-weight: 600;
}

/* ---- Journey Flow ---------------------------------- */
.journey-steps {
    display: flex; flex-direction: column; gap: 0;
    max-width: 700px; margin: 40px auto 0;
}
.journey-step {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 0 0 32px 0; position: relative;
}
.journey-step:not(:last-child)::after {
    content: ''; position: absolute;
    left: 19px; top: 42px; bottom: 0; width: 2px;
    background: linear-gradient(#c4964e, #e0c99e);
}
.journey-dot {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.journey-body { text-align: left; }
.journey-body h3 { font-size: 1rem; color: #1a1a2e; margin-bottom: 4px; }
.journey-body p  { font-size: 0.87rem; color: #888; }

/* ---- Role Tabs ------------------------------------- */
.role-tabs {
    display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap;
    justify-content: center;
}
.role-tab {
    padding: 10px 24px; border-radius: 10px;
    border: 2px solid #ede0ce; background: #fff;
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
    color: #555; transition: all 0.15s;
}
.role-tab.active, .role-tab:hover {
    background: #7c4e2d; color: #fff; border-color: #7c4e2d;
}
.role-panel { display: none; }
.role-panel.active { display: block; }
.role-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.role-feature {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid #ede0ce;
    border-radius: 12px; padding: 16px;
}
.role-feature i { color: #7c4e2d; margin-top: 2px; font-size: 1rem; }
.role-feature h4 { font-size: 0.9rem; color: #1a1a2e; margin-bottom: 3px; }
.role-feature p  { font-size: 0.82rem; color: #888; }

/* ---- Trust Bar ------------------------------------- */
.trust-grid {
    display: flex; flex-wrap: wrap; gap: 24px;
    justify-content: center; margin-top: 40px;
}
.trust-pill {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 14px 20px;
}
.trust-pill i { color: #c4964e; font-size: 1.1rem; }
.trust-pill span { font-size: 0.88rem; color: #d4c4b0; }

/* ---- Final CTA ------------------------------------ */
.final-cta {
    text-align: center; padding: 80px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2350 100%);
}
.final-cta h2 { color: #f5e8d5; margin-bottom: 16px; font-size: 2rem; }
.final-cta p  { color: #a89e8e; margin-bottom: 36px; }
.final-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Register Form --------------------------------- */
.register-page {
    min-height: calc(100vh - 144px);
    padding: 60px 24px;
    background: linear-gradient(135deg, #fdf8f2, #f5e8d5);
    display: flex; align-items: flex-start; justify-content: center;
}
.register-card {
    background: #fff; border-radius: 20px;
    box-shadow: 0 8px 48px rgba(124,78,45,0.1);
    width: 100%; max-width: 560px;
    overflow: hidden;
}
.register-card-header {
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    padding: 28px 32px; color: #fff; text-align: center;
}
.register-card-header h1 { font-size: 1.5rem; color: #fff; margin-bottom: 4px; }
.register-card-header p  { font-size: 0.85rem; opacity: 0.85; }
.register-tabs {
    display: flex; border-bottom: 1px solid #f0ebe3;
}
.reg-tab {
    flex: 1; padding: 14px;
    text-align: center; cursor: pointer;
    font-size: 0.9rem; font-weight: 600;
    color: #888; border-bottom: 3px solid transparent;
    transition: all 0.15s; background: #fafaf8; border: none;
}
.reg-tab.active { color: #7c4e2d; border-bottom: 3px solid #7c4e2d; background: #fff; }
.reg-panel { display: none; padding: 28px 32px; }
.reg-panel.active { display: block; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid #ddd; border-radius: 8px;
    font-size: 0.92rem; font-family: inherit; color: #1a1a2e;
    transition: border-color 0.15s;
    background: #fafaf8;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #7c4e2d; background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 0.78rem; color: #aaa; margin-top: 4px; }
.btn-submit {
    width: 100%; padding: 13px;
    background: #7c4e2d; color: #fff; border: none;
    border-radius: 10px; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    margin-top: 8px;
}
.btn-submit:hover { background: #5c3820; }
.reg-login-link { text-align: center; font-size: 0.85rem; color: #888; margin-top: 18px; }
.reg-login-link a { color: #7c4e2d; text-decoration: none; font-weight: 600; }
.inst-notice {
    background: #fff8e6; border: 1px solid #f0d97e;
    border-radius: 8px; padding: 12px 16px;
    font-size: 0.82rem; color: #7a6000;
    margin-bottom: 20px; display: flex; gap: 10px;
}

/* ---- My Portal ------------------------------------ */
.my-portal { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.portal-welcome {
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    border-radius: 16px; padding: 28px 32px; color: #fff; margin-bottom: 32px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.portal-welcome h2 { color: #fff; margin-bottom: 4px; }
.portal-welcome p  { opacity: 0.85; font-size: 0.9rem; }
.portal-welcome-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-portal-action {
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 8px 18px; border-radius: 8px;
    text-decoration: none; font-size: 0.88rem; font-weight: 600;
    transition: background 0.15s;
}
.btn-portal-action:hover { background: rgba(255,255,255,0.35); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 32px; }
.portal-module-card {
    background: #fff; border: 1px solid #ede0ce;
    border-radius: 14px; padding: 24px;
    text-decoration: none; color: inherit;
    transition: all 0.2s; display: block;
}
.portal-module-card:hover { box-shadow: 0 6px 28px rgba(124,78,45,0.12); transform: translateY(-2px); }
.pm-icon { font-size: 1.8rem; margin-bottom: 10px; }
.pm-title { font-family: 'Noto Serif SC', serif; font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.pm-sub { font-size: 0.82rem; color: #888; }
.portal-section-head { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.elder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 32px; }
.elder-card {
    background: #fff; border: 1px solid #ede0ce; border-radius: 12px;
    padding: 16px; display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: inherit; transition: all 0.15s;
}
.elder-card:hover { border-color: #7c4e2d; box-shadow: 0 4px 16px rgba(124,78,45,0.1); }
.elder-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.elder-info-name { font-weight: 700; font-size: 0.95rem; color: #1a1a2e; }
.elder-info-sub  { font-size: 0.78rem; color: #888; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.archive-thumb {
    border-radius: 10px; overflow: hidden;
    border: 1px solid #ede0ce; background: #fafaf8;
    aspect-ratio: 4/3; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 0.82rem; color: #aaa; gap: 8px;
    text-decoration: none; transition: all 0.15s;
}
.archive-thumb:hover { border-color: #7c4e2d; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-thumb i { font-size: 2rem; }
.portal-empty {
    padding: 32px; text-align: center; color: #aaa; font-size: 0.9rem;
    background: #fafaf8; border-radius: 12px; border: 1px dashed #ddd;
}
.portal-empty i { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ---- Therapy Page --------------------------------- */
.therapy-page {
    padding-bottom: 72px;
}
.therapy-hero {
    background: linear-gradient(135deg, #2f1e12 0%, #7c4e2d 52%, #b07b4a 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
}
.therapy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.12), transparent 20%),
        radial-gradient(circle at 84% 20%, rgba(255,255,255,0.08), transparent 24%),
        linear-gradient(0deg, rgba(20,13,8,0.08), rgba(20,13,8,0.08));
}
.therapy-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}
.therapy-hero-copy .section-label {
    color: rgba(255,255,255,0.76);
    margin-bottom: 12px;
}
.therapy-hero-copy h1 {
    color: #fff;
    font-size: 2.25rem;
    line-height: 1.12;
    margin-bottom: 12px;
}
.therapy-hero-copy p {
    max-width: 640px;
    color: rgba(255,255,255,0.86);
    font-size: 0.96rem;
    margin-bottom: 14px;
}
.therapy-hero-lead {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.therapy-hero-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.therapy-hero-highlight span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff2dd;
    font-size: 0.83rem;
    font-weight: 600;
}
.therapy-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.therapy-hero-actions .btn-hero-primary,
.therapy-hero-actions .therapy-hero-secondary-btn {
    min-width: 188px;
    justify-content: center;
}
.therapy-hero-actions .btn-hero-primary {
    background: linear-gradient(180deg, #fff3dd 0%, #f3d3a0 100%);
    color: #5f3516;
    border: 1px solid rgba(255, 234, 206, 0.9);
    box-shadow: 0 16px 34px rgba(54, 28, 8, 0.26);
}
.therapy-hero-actions .btn-hero-primary:hover {
    background: linear-gradient(180deg, #fff8ec 0%, #f6dab1 100%);
    color: #4d2a11;
    box-shadow: 0 20px 38px rgba(54, 28, 8, 0.3);
}
.therapy-hero-secondary-btn {
    color: rgba(255, 247, 234, 0.88);
    border-color: rgba(255, 230, 198, 0.38);
    background: rgba(255, 248, 236, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 231, 0.04);
}
.therapy-hero-secondary-btn:hover {
    background: rgba(255, 248, 236, 0.1);
    border-color: rgba(255, 230, 198, 0.56);
    color: #fff6e8;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(42, 22, 8, 0.1);
}
.therapy-hero-secondary-btn:focus-visible {
    outline: 2px solid #f3c98c;
    outline-offset: 2px;
}
.therapy-hero-panel {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 42px rgba(36, 21, 10, 0.18);
    backdrop-filter: blur(6px);
}
.therapy-panel-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: rgba(255,255,255,0.82);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.therapy-panel-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.therapy-panel-stat {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 14px;
}
.therapy-panel-stat strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 6px;
}
.therapy-panel-stat span {
    display: block;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
}
.therapy-panel-list {
    display: grid;
    gap: 10px;
}
.therapy-panel-list li {
    list-style: none;
    display: flex;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
}
.therapy-panel-list i {
    color: #f0c98c;
    margin-top: 4px;
}
.therapy-section {
    padding: 52px 24px 0;
}
.therapy-section-inner {
    max-width: 1120px;
    margin: 0 auto;
}
.therapy-section-templates-first {
    padding-top: 36px;
}
.therapy-section-sub-compact {
    max-width: 760px;
    margin-bottom: 28px;
}
.therapy-story-grid,
.therapy-feature-grid,
.therapy-template-grid,
.therapy-reading-grid {
    display: grid;
    gap: 20px;
}
.therapy-story-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 18px;
}
.therapy-story-card,
.therapy-feature-card,
.therapy-template-card,
.therapy-reading-card {
    background: #fff;
    border: 1px solid #ede0ce;
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(124, 78, 45, 0.06);
}
.therapy-story-card {
    padding: 20px 20px 18px;
}
.therapy-story-card h3 {
    font-size: 1rem;
    margin: 10px 0 6px;
}
.therapy-story-card p {
    font-size: 0.84rem;
    color: #675d55;
}
.therapy-story-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.therapy-feature-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}
.therapy-feature-lead {
    background: linear-gradient(160deg, #1a1a2e 0%, #2e2b44 100%);
    border-radius: 24px;
    padding: 28px;
    color: #f5e8d5;
}
.therapy-feature-lead h3 {
    color: #fff7ea;
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.therapy-feature-lead p {
    color: #d8c9b6;
}
.therapy-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.therapy-feature-card {
    padding: 22px;
}
.therapy-feature-card h4 {
    font-size: 0.98rem;
    margin-bottom: 8px;
}
.therapy-feature-card p {
    color: #6d635a;
    font-size: 0.88rem;
}
.therapy-flow {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}
.therapy-flow-step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    background: #fff;
    border: 1px solid #ede0ce;
    border-radius: 18px;
    padding: 18px 20px;
}
.therapy-flow-index {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c4e2d, #c4964e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.therapy-flow-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}
.therapy-flow-content p {
    color: #6d635a;
    font-size: 0.89rem;
}
.therapy-template-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.therapy-template-note {
    color: #7a6c60;
    font-size: 0.88rem;
    max-width: 420px;
}
.therapy-template-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
    gap: 22px;
}
.therapy-template-card {
    position: relative;
    padding: 24px 22px 22px;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
}
.therapy-template-card:hover,
.therapy-template-card:focus-visible {
    transform: translateY(-4px);
    border-color: #d4b188;
    box-shadow: 0 18px 42px rgba(124, 78, 45, 0.16);
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f1 100%);
    outline: none;
}
.therapy-template-card.is-featured {
    border-color: #ddbf9b;
    box-shadow: 0 16px 38px rgba(124, 78, 45, 0.12);
}
.therapy-template-card.is-featured h3 {
    color: #6a3f22;
}
.therapy-template-accent {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7c4e2d, #c4964e, #f0d2a7);
    opacity: 0.95;
}
.therapy-template-card::after {
    content: '';
    position: absolute;
    top: -42px;
    right: -42px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 210, 167, 0.35), rgba(240, 210, 167, 0));
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}
.therapy-template-card:hover::after,
.therapy-template-card:focus-visible::after {
    opacity: 1;
    transform: scale(1);
}
.therapy-template-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}
.therapy-template-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f7efe4;
    color: #7c4e2d;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.therapy-template-card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.28rem;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1b1722;
}
.therapy-template-card p {
    position: relative;
    z-index: 1;
    color: #6b6158;
    font-size: 0.86rem;
    margin-bottom: 16px;
    min-height: 4.8em;
}
.therapy-template-goal {
    position: relative;
    z-index: 1;
    background: #fcf7f1;
    border: 1px solid #efe2d4;
    border-radius: 16px;
    padding: 14px 14px 13px;
    margin-bottom: 0;
}
.therapy-template-goal span {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    color: #9a7a58;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.therapy-template-goal strong {
    display: block;
    color: #2b2623;
    font-size: 0.84rem;
    line-height: 1.6;
}
.therapy-empty {
    padding: 32px;
    background: #fff;
    border: 1px dashed #d9c5b3;
    border-radius: 18px;
    color: #857669;
    text-align: center;
}
.therapy-reading-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-top: 26px;
}
.therapy-reading-card {
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.therapy-reading-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(124, 78, 45, 0.1);
    border-color: #d3b087;
}
.therapy-reading-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.therapy-reading-card p {
    color: #6b6158;
    font-size: 0.86rem;
    margin-bottom: 14px;
}
.therapy-reading-link {
    color: #7c4e2d;
    font-size: 0.83rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .therapy-hero-inner,
    .therapy-feature-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .therapy-hero-inner {
        padding: 56px 18px 48px;
    }
    .therapy-section {
        padding: 42px 18px 0;
    }
    .therapy-section-templates-first {
        padding-top: 28px;
    }
    .therapy-hero-copy h1 {
        font-size: 2.05rem;
    }
    .therapy-hero-lead {
        font-size: 1rem;
    }
    .therapy-hero-actions .btn-hero-primary,
    .therapy-hero-actions .therapy-hero-secondary-btn {
        min-width: 0;
        width: 100%;
    }
    .therapy-panel-stats {
        grid-template-columns: 1fr;
    }
    .therapy-flow-step {
        grid-template-columns: 1fr;
    }
    .therapy-flow-index {
        width: 46px;
        height: 46px;
    }
    .therapy-template-card p {
        min-height: 0;
    }
}

/* ---- Legacy Page ---------------------------------- */
.legacy-page { max-width: 1100px; margin: 0 auto; padding: 60px 24px; }

/* Hero two-column */
.legacy-hero { margin-bottom: 64px; }
.legacy-hero-inner {
    display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.legacy-hero-text { flex: 1; min-width: 280px; }
.legacy-hero-img  { flex: 1; min-width: 280px; }
.legacy-hero-img img {
    width: 100%; max-width: 520px; height: auto;
    border-radius: 20px; object-fit: cover;
    box-shadow: 0 12px 48px rgba(124,78,45,0.14);
}
.legacy-kicker {
    font-size: 0.78rem; font-weight: 700; letter-spacing: 2px;
    color: #7c4e2d; text-transform: uppercase; margin-bottom: 14px;
}
.legacy-hero h1 { font-size: 2.4rem; margin-bottom: 16px; line-height: 1.3; }
.legacy-hero p  { color: #666; max-width: 480px; margin-bottom: 22px; line-height: 1.7; }
.legacy-hero-trust {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px;
}
.legacy-hero-trust span {
    font-size: 0.82rem; color: #7c4e2d; font-weight: 600;
}
.legacy-hero-trust i { margin-right: 4px; color: #b46e2b; }

/* Products section */
.legacy-products-section { margin-bottom: 56px; }
.legacy-section-title {
    font-size: 1.3rem; font-weight: 700; color: #1a1a2e;
    margin-bottom: 24px; text-align: center;
}
.legacy-section-hint {
    font-size: 0.8rem; font-weight: 400; color: #aaa;
    margin-left: 8px; vertical-align: middle;
}
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 0;
}
.product-card {
    background: #fff; border: 2px solid #ede0ce; border-radius: 18px;
    padding: 28px 24px; text-align: center;
    cursor: pointer; transition: all 0.22s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden; user-select: none;
}
.product-card:hover {
    box-shadow: 0 10px 36px rgba(124,78,45,0.13);
    transform: translateY(-3px); border-color: #c4964e;
}
.product-card.active {
    border-color: #7c4e2d; background: #fdf5ec;
    box-shadow: 0 8px 32px rgba(124,78,45,0.18);
    transform: translateY(-3px);
}
.product-card.active .product-select-indicator { opacity: 1; transform: translateY(0); }
.product-select-indicator {
    position: absolute; top: 12px; right: 14px;
    background: #7c4e2d; color: #fff;
    font-size: 0.72rem; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    opacity: 0; transform: translateY(-6px);
    transition: all 0.2s;
}
.product-icon { font-size: 2.8rem; margin-bottom: 14px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: #1a1a2e; }
.product-card p  { font-size: 0.88rem; color: #666; margin-bottom: 14px; }
.product-card-footer {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.product-badge {
    display: inline-block; background: #f5efe8;
    color: #7c4e2d; border-radius: 6px;
    padding: 3px 12px; font-size: 0.76rem; font-weight: 700;
}
.product-badge-hot {
    background: #fde8cc; color: #b44c00;
}
.product-price-hint {
    font-size: 0.88rem; font-weight: 700; color: #7c4e2d;
}

/* Product Preview Panel */
.product-preview {
    display: none; flex-direction: column; align-items: center;
    gap: 20px; margin-top: 32px; padding-top: 32px;
    border-top: 1px solid #ede0ce;
    animation: fadeSlideUp 0.3s ease;
}
.product-preview.visible { display: flex; }
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.product-preview-img-wrap {
    position: relative; max-width: 480px; width: 100%;
}
.product-preview-img-wrap img {
    width: 100%; height: auto; max-height: 360px;
    object-fit: cover; border-radius: 16px;
    box-shadow: 0 12px 40px rgba(124,78,45,0.15);
    display: block;
}
.product-price-badge {
    position: absolute; top: 16px; right: 16px;
    background: #7c4e2d; color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem; font-weight: 700;
    padding: 8px 20px; border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
}
.product-preview-cta {
    display: inline-flex; gap: 8px; text-decoration: none;
    font-size: 1.05rem;
}
.product-preview-sub {
    font-size: 0.8rem; color: #aaa; margin: 0;
}

.legacy-form-wrap {
    background: linear-gradient(135deg, #fdf8f2, #f5e8d5);
    border-radius: 20px; padding: 48px 40px; max-width: 560px; margin: 0 auto;
    box-shadow: 0 4px 32px rgba(124,78,45,0.08);
}
.legacy-form-wrap h2 { margin-bottom: 8px; }
.legacy-form-wrap p  { color: #888; font-size: 0.9rem; margin-bottom: 28px; }
.legacy-success {
    text-align: center; padding: 40px;
    background: #d4edda; border-radius: 16px;
    max-width: 480px; margin: 0 auto;
}
.legacy-success h2 { color: #155724; margin-bottom: 10px; }
.legacy-success p  { color: #186429; font-size: 0.9rem; }

/* ---- Pending page --------------------------------- */
.pending-page-wrap {
    min-height: calc(100vh - 144px); display: flex;
    align-items: center; justify-content: center; padding: 60px 24px;
}
.pending-card {
    text-align: center; max-width: 500px;
    background: #fff; border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 40px rgba(124,78,45,0.1);
}
.pending-card .big-icon { font-size: 4rem; margin-bottom: 20px; }
.pending-card h2 { margin-bottom: 14px; }
.pending-card p  { color: #666; margin-bottom: 24px; font-size: 0.95rem; }

/* ---- Portal Footer -------------------------------- */
.portal-footer {
    background: #1a1a2e; color: #a89e8e;
    padding: 48px 24px 0;
}
.portal-footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { min-width: 180px; }
.footer-brand span { font-family: 'Noto Serif SC', serif; font-size: 1.1rem; color: #f5e8d5; font-weight: 700; }
.footer-brand p     { font-size: 0.85rem; margin-top: 6px; }
.footer-brand .footer-sub { font-size: 0.78rem; opacity: 0.6; margin-top: 4px; }
.footer-links {
    flex: 1; display: flex; flex-wrap: wrap; gap: 40px;
}
.footer-links div { min-width: 120px; }
.footer-links h4 { color: #f5e8d5; font-size: 0.85rem; margin-bottom: 12px; font-weight: 700; }
.footer-links a { display: block; color: #a89e8e; text-decoration: none; font-size: 0.82rem; margin-bottom: 8px; }
.footer-links a:hover { color: #c4964e; }
.footer-bottom {
    max-width: 1100px; margin: 0 auto;
    padding: 16px 0; text-align: center;
    font-size: 0.78rem; color: #6b6057;
}

/* ---- Evidence Section ------------------------------ */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px; margin-top: 40px;
}
.evidence-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px; padding: 28px 24px;
    transition: background 0.2s;
}
.evidence-card:hover { background: rgba(255,255,255,0.11); }
.evidence-num {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.8rem; font-weight: 700;
    color: #c4964e; line-height: 1; margin-bottom: 10px;
}
.evidence-title {
    font-size: 0.95rem; font-weight: 700;
    color: #f5e8d5; margin-bottom: 10px;
}
.evidence-desc {
    font-size: 0.85rem; color: #a89e8e; line-height: 1.7;
}
.evidence-card-quote { border-color: rgba(196,150,78,0.35); }
.evidence-quote-icon {
    font-size: 2rem; color: #c4964e; line-height: 1; margin-bottom: 12px;
}
.evidence-quote-text {
    font-size: 0.95rem; color: #e8ddd0; line-height: 1.8;
    font-style: italic; margin-bottom: 12px;
}
.evidence-quote-author {
    font-size: 0.8rem; color: #a89e8e;
}
.evidence-ref-icon {
    font-size: 1.4rem; color: #c4964e; margin-bottom: 12px;
}

/* ---- Founder Section ------------------------------- */
.founder-section {
    background: linear-gradient(135deg, #fdf8f2 0%, #f0e4d0 100%);
}
.founder-card {
    max-width: 760px; margin: 40px auto 0;
    background: #fff;
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 8px 48px rgba(124,78,45,0.1);
    text-align: center;
    position: relative;
}
@media(max-width:600px) { .founder-card { padding: 28px 24px; } }
.founder-quote-mark {
    font-size: 3rem; color: #c4964e; line-height: 1;
    margin-bottom: 16px; opacity: 0.6;
}
.founder-blockquote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.05rem; color: #3a2e26;
    line-height: 1.9; margin: 0 0 28px;
    border: none; padding: 0;
}
.founder-tags {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.founder-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f5efe8; color: #7c4e2d;
    border-radius: 999px; padding: 7px 18px;
    font-size: 0.85rem; font-weight: 600;
}
.founder-tag i { font-size: 0.8rem; }

/* ---- Principles Section ---------------------------- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-top: 40px;
}
.principle-card {
    background: #fff; border: 1px solid #ede0ce;
    border-radius: 16px; padding: 28px 22px;
    transition: all 0.2s;
}
.principle-card:hover {
    box-shadow: 0 6px 28px rgba(124,78,45,0.1);
    transform: translateY(-2px);
}
.principle-icon {
    font-size: 1.9rem; margin-bottom: 12px; line-height: 1;
}
.principle-card h3 {
    font-size: 1rem; color: #1a1a2e; margin-bottom: 8px;
}
.principle-card p { font-size: 0.87rem; color: #666; line-height: 1.7; }

/* ---- Utility -------------------------------------- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
a { color: #7c4e2d; }

/* ---- Responsive ----------------------------------- */
@media(max-width: 600px) {
    .hero { padding: 60px 16px 48px; }
    .portal-section { padding: 48px 16px; }
    .register-page { padding: 32px 16px; }
    .reg-panel { padding: 20px 20px; }
    .register-card-header { padding: 22px 20px; }
    .portal-footer-inner { flex-direction: column; gap: 28px; }
    .legacy-form-wrap { padding: 32px 20px; }
    .legacy-hero-inner { flex-direction: column; gap: 28px; }
    .legacy-hero h1 { font-size: 1.8rem; }
    .legacy-hero-img img { max-width: 100%; }
    .product-price-badge { font-size: 1.1rem; padding: 6px 14px; }
    .portal-welcome { padding: 20px 20px; }
}

/* ============================================================
   PUBLIC GALLERY (/gallery)
   ============================================================ */

/* Hero Banner */
.glr-hero {
    background: linear-gradient(135deg, #2d1b0e 0%, #7c4e2d 50%, #b07b4a 100%);
    color: #fff;
}
.glr-hero-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 56px 24px 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
}
.glr-hero-text .section-label { color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.glr-hero-text h1 { color: #fff; font-size: 2.2rem; margin-bottom: 10px; }
.glr-hero-text p  { color: rgba(255,255,255,0.85); font-size: 1rem; max-width: 520px; }
.glr-hero-stats {
    display: flex; gap: 28px; flex-wrap: wrap;
}
.glr-stat {
    text-align: center;
    background: rgba(255,255,255,0.12);
    border-radius: 12px; padding: 14px 22px;
    min-width: 90px;
}
.glr-stat span { display: block; font-size: 1.8rem; font-weight: 700; color: #fff; font-family: 'Noto Serif SC', serif; }
.glr-stat em   { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.7); font-style: normal; margin-top: 2px; }

/* Layout */
.glr-layout {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}
@media(max-width: 900px) {
    .glr-layout { grid-template-columns: 1fr; }
    .glr-sidebar { display: none; } /* collapsed on mobile – could add toggle */
}

/* Sidebar */
.glr-sidebar {
    position: sticky; top: 80px;
    background: #faf8f5;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #f0e8de;
}
.glr-filter-group {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.glr-filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.glr-filter-group h4 {
    font-size: 0.78rem; text-transform: uppercase; color: #999; letter-spacing: .06em;
    margin-bottom: 10px; font-family: 'Noto Sans SC', sans-serif; font-weight: 500;
}
.glr-filter-btn {
    display: flex; align-items: center; gap: 6px;
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 6px 10px; border-radius: 7px;
    font-size: 0.87rem; color: #555;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px; font-family: inherit;
}
.glr-filter-btn:hover { background: #f0e8de; color: #7c4e2d; }
.glr-filter-btn.active { background: #7c4e2d; color: #fff; }
.glr-filter-count {
    margin-left: auto;
    background: rgba(0,0,0,0.08); border-radius: 10px;
    padding: 1px 7px; font-size: 0.75rem;
}
.glr-filter-btn.active .glr-filter-count { background: rgba(255,255,255,0.25); }
.glr-reset-link {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.83rem; color: #c0392b; text-decoration: none; padding: 6px 0;
}
.glr-reset-link:hover { text-decoration: underline; }

/* Active filter pills */
.glr-active-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-bottom: 18px;
}
.glr-pill {
    background: #f5efe8; border: 1px solid #e0d0c0;
    border-radius: 20px; padding: 4px 12px;
    font-size: 0.82rem; color: #7c4e2d;
    display: flex; align-items: center; gap: 6px;
}
.glr-pill a { color: #c0392b; text-decoration: none; font-size: 1rem; line-height: 1; }
.glr-result-count { font-size: 0.83rem; color: #999; margin-left: auto; }

/* Grid */
.glr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Card */
.glr-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0e8de;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.glr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.glr-card-link { text-decoration: none; color: inherit; }

.glr-card-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #f5ede4;
    display: flex; align-items: center; justify-content: center;
}
.glr-card-thumb.has-img {
    padding: 10px;
    background: linear-gradient(180deg, #fcf7f1 0%, #f2e8dc 100%);
}
.glr-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.glr-card-thumb.no-img i { font-size: 2.4rem; color: #c9a680; }
.glr-card-thumb.type-audio { background: linear-gradient(135deg,#2c3e50,#4a6fa5); }
.glr-card-thumb.type-audio i { color: #aed6f1; }
.glr-card-thumb.type-video { background: linear-gradient(135deg,#1a1a2e,#6b3fa0); }
.glr-card-thumb.type-video i { color: #d7bde2; }
.glr-card-thumb.type-text, .glr-card-thumb.type-other { background: linear-gradient(135deg,#f5f0e8,#e8d5c4); }
.glr-card-thumb.type-text i, .glr-card-thumb.type-other i { color: #7c4e2d; }

.glr-card-type-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 0.72rem;
}

.glr-card-body { padding: 14px 14px 10px; flex: 1; }
.glr-card-body h3 { font-size: 0.95rem; color: #1a1a2e; margin-bottom: 6px; line-height: 1.4; }
.glr-card-desc { font-size: 0.82rem; color: #777; line-height: 1.6; margin-bottom: 8px; }
.glr-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.glr-tag {
    background: #f5efe8; color: #7c4e2d;
    border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; text-decoration: none;
}
.glr-tag:hover { background: #7c4e2d; color: #fff; }
.glr-decade {
    background: #eef2f8; color: #4a6fa5;
    border-radius: 6px; padding: 2px 8px; font-size: 0.75rem; text-decoration: none;
}
.glr-decade:hover { background: #4a6fa5; color: #fff; }

.glr-card-footer {
    padding: 8px 14px 12px;
    display: flex; align-items: center; gap: 12px;
    border-top: 1px solid #f5f0ea;
}
.glr-warm-btn {
    display: flex; align-items: center; gap: 5px;
    background: none; border: 1px solid #e0d0c0;
    border-radius: 20px; padding: 4px 12px; cursor: pointer;
    font-size: 0.82rem; color: #888;
    transition: all 0.15s; font-family: inherit;
}
.glr-warm-btn:hover { border-color: #e74c7e; color: #e74c7e; }
.glr-warm-btn.warmed { background: #fdf0f5; border-color: #e74c7e; color: #e74c7e; }
.glr-warm-btn.warmed i { color: #e74c7e; }
.glr-warm-btn i { font-size: 0.9rem; }
.glr-comment-count { font-size: 0.82rem; color: #aaa; display: flex; align-items: center; gap: 4px; }

/* Empty state */
.glr-empty {
    grid-column: 1 / -1;
    text-align: center; padding: 80px 24px; color: #bbb;
}
.glr-empty i { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.glr-empty p { font-size: 1rem; }

/* Pagination */
.glr-pager {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 40px;
}
.glr-page-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; border-radius: 9px; padding: 0 10px;
    background: #fff; border: 1px solid #e0d0c0;
    text-decoration: none; color: #555; font-size: 0.9rem;
    transition: all 0.15s;
}
.glr-page-btn:hover { border-color: #7c4e2d; color: #7c4e2d; }
.glr-page-btn.active { background: #7c4e2d; border-color: #7c4e2d; color: #fff; }

/* Login prompt toast */
.glr-login-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
    padding: 20px 28px; z-index: 2000;
    display: none; align-items: center; gap: 16px;
    border: 1px solid #f0e8de;
}
.glr-login-toast.show {
    display: flex;
    animation: slideUp 0.2s ease;
}
.glr-login-toast-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.glr-login-toast i { font-size: 1.6rem; color: #e74c7e; }
.glr-login-toast p { font-size: 0.95rem; color: #333; margin: 0; }
@keyframes slideUp { from { transform: translateX(-50%) translateY(20px); opacity:0; } to { transform: translateX(-50%) translateY(0); opacity:1; } }

/* ---- Show Page ---------------------------------- */
.glr-show-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 24px 60px; }
.glr-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.85rem; color: #999; margin-bottom: 28px;
}
.glr-breadcrumb a { color: #7c4e2d; text-decoration: none; }
.glr-breadcrumb a:hover { text-decoration: underline; }
.glr-breadcrumb span { color: #bbb; }

.glr-show-inner {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px; align-items: start;
}
@media(max-width: 860px) { .glr-show-inner { grid-template-columns: 1fr; } }

/* Media Frame */
.glr-media-frame {
    background: #1a1a2e;
    border-radius: 16px; overflow: hidden;
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
}
.glr-media-img {
    width: 100%; max-height: 520px;
    object-fit: contain; display: block;
}
.glr-media-video {
    width: 100%; max-height: 480px; display: block;
}
.glr-audio-wrap {
    padding: 48px 24px; text-align: center; width: 100%;
}
.glr-audio-icon { font-size: 4rem; color: #aed6f1; margin-bottom: 24px; }
.glr-audio-player { width: 100%; }
.glr-text-icon {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: #c9a680; padding: 60px 24px;
}
.glr-text-icon i { font-size: 3.5rem; }
.glr-text-icon span { font-size: 1rem; }

/* Show Meta */
.glr-show-meta { margin-top: 24px; }
.glr-show-meta h1 { font-size: 1.7rem; margin-bottom: 14px; }
.glr-show-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.glr-date { font-size: 0.82rem; color: #999; display: flex; align-items: center; gap: 4px; }
.glr-story {
    background: #faf8f5; border-left: 4px solid #7c4e2d;
    border-radius: 0 12px 12px 0;
    padding: 18px 20px; line-height: 1.9;
    color: #444; font-size: 0.97rem; margin-bottom: 24px;
}
.glr-warm-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.glr-warm-big {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 2px solid #e74c7e;
    color: #e74c7e; border-radius: 30px;
    padding: 10px 22px; font-size: 1rem; cursor: pointer;
    transition: all 0.15s; font-family: inherit; font-weight: 600;
}
.glr-warm-big:hover, .glr-warm-big.warmed { background: #fdf0f5; }
.glr-warm-big i { font-size: 1.1rem; }
.glr-warm-hint { font-size: 0.82rem; color: #aaa; }
.glr-warm-hint a { color: #7c4e2d; }

/* Comments Panel */
.glr-comments-panel {
    background: #fff; border-radius: 14px;
    border: 1px solid #f0e8de;
    padding: 22px; margin-bottom: 24px;
}
.glr-comments-panel h3 {
    font-size: 1rem; color: #1a1a2e; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.glr-comment-badge {
    background: #f5efe8; color: #7c4e2d;
    border-radius: 10px; padding: 2px 8px; font-size: 0.75rem; font-family: 'Noto Sans SC', sans-serif;
}
.glr-comments-list { max-height: 360px; overflow-y: auto; margin-bottom: 16px; }
.glr-comments-empty { font-size: 0.87rem; color: #aaa; text-align: center; padding: 20px 0; }
.glr-comment-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid #f5f0ea;
}
.glr-comment-item:last-child { border-bottom: none; }
.glr-comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #7c4e2d; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 600; flex-shrink: 0;
}
.glr-comment-content { flex: 1; }
.glr-comment-author { font-weight: 600; font-size: 0.85rem; color: #333; margin-bottom: 4px; }
.glr-comment-content p { font-size: 0.88rem; color: #555; line-height: 1.6; margin-bottom: 4px; }
.glr-comment-content time { font-size: 0.75rem; color: #bbb; }

.glr-comment-form textarea {
    width: 100%; border: 1px solid #e0d0c0; border-radius: 10px;
    padding: 10px 12px; font-size: 0.88rem; font-family: inherit;
    resize: vertical; outline: none; color: #333;
    transition: border-color 0.2s;
}
.glr-comment-form textarea:focus { border-color: #7c4e2d; }
.glr-comment-form-footer {
    display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
#commentCharCount { font-size: 0.78rem; color: #bbb; }
.glr-comment-login-hint {
    text-align: center; padding: 16px 0;
    font-size: 0.87rem; color: #aaa;
}
.glr-comment-login-hint a { color: #7c4e2d; }

/* Related */
.glr-related { background: #faf8f5; border-radius: 14px; padding: 20px; }
.glr-related h4 { font-size: 0.95rem; color: #1a1a2e; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.glr-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.glr-related-card { text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #f0e8de; transition: transform 0.15s; }
.glr-related-card:hover { transform: translateY(-2px); }
.glr-related-thumb {
    height: 90px; background: #f5ede4;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}
.glr-related-thumb.no-img i { color: #c9a680; font-size: 1.6rem; }
.glr-related-thumb.type-audio { background: linear-gradient(135deg,#2c3e50,#4a6fa5); }
.glr-related-thumb.type-audio i { color: #aed6f1; }
.glr-related-thumb.type-video { background: linear-gradient(135deg,#1a1a2e,#6b3fa0); }
.glr-related-thumb.type-video i { color: #d7bde2; }
.glr-related-info { padding: 8px 10px; font-size: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.glr-related-info span { color: #333; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 70%; }
.glr-related-info small { color: #e74c7e; display: flex; align-items: center; gap: 3px; }

/* ============================================================
   ABOUT PAGE (/about)
   ============================================================ */
.about-hero {
    background: linear-gradient(135deg, #2d1b0e 0%, #7c4e2d 50%, #b07b4a 100%);
    color: #fff;
    overflow: hidden;
}
.about-hero-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: stretch; min-height: 360px;
}
.about-hero-inner {
    flex: 1;
    padding: 64px 40px 64px 0;
    display: flex; flex-direction: column; justify-content: center;
}
.about-hero-inner .section-label { color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.about-hero-inner h1 { font-size: 3rem; color: #fff; margin-bottom: 18px; }
.about-lead { color: rgba(255,255,255,0.85); font-size: 1.05rem; line-height: 1.8; }
.about-hero-image {
    flex: 0 0 420px;
    overflow: hidden;
    position: relative;
    margin-right: -24px;
}
.about-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0.85;
    display: block;
}
.about-hero-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(74,44,26,0.6) 0%, transparent 60%);
}
@media(max-width: 900px) {
    .about-hero-container { flex-direction: column; padding: 0; min-height: auto; }
    .about-hero-image { flex: none; height: 220px; margin-right: 0; }
    .about-hero-inner { padding: 48px 24px; }
}

/* Content Wrap */
.about-content-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px 60px; }

.about-section { padding: 40px 0; border-bottom: 1px solid #f0e8de; }
.about-section:last-child { border-bottom: none; }
.about-intro-text { font-size: 1.05rem; line-height: 1.9; color: #444; }

.about-h2 {
    font-size: 1.35rem; color: #1a1a2e; margin-bottom: 22px;
    display: flex; align-items: center; gap: 10px;
}
.about-h2 i { color: #7c4e2d; font-size: 1.1rem; }

/* Pain List */
.about-pain-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.about-pain-list li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 0.97rem; color: #444; line-height: 1.7;
}
.about-pain-list i { color: #7c4e2d; margin-top: 3px; flex-shrink: 0; }

/* Modules Grid */
.about-modules-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 18px;
}
.about-module-card {
    background: #faf8f5; border-radius: 14px;
    padding: 22px 20px; border: 1px solid #f0e8de;
}
.about-module-icon { font-size: 2rem; margin-bottom: 12px; }
.about-module-card h3 { font-size: 1rem; color: #1a1a2e; margin-bottom: 8px; }
.about-module-card p  { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* Steps */
.about-steps { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.about-steps li {
    display: flex; align-items: flex-start; gap: 14px;
    font-size: 0.97rem; color: #444; line-height: 1.7;
}
.about-step-num {
    min-width: 28px; height: 28px; border-radius: 50%;
    background: #7c4e2d; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; flex-shrink: 0;
}
.about-section-warm { background: none; }

/* Stats Row */
.about-stats-row {
    display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 24px;
}
.about-stat-block {
    display: flex; align-items: center; gap: 16px;
    background: #faf8f5; border-radius: 14px;
    padding: 18px 24px; border: 1px solid #f0e8de; flex: 1; min-width: 200px;
}
.about-stat-num { font-size: 2.4rem; font-weight: 700; color: #7c4e2d; font-family: 'Noto Serif SC', serif; flex-shrink: 0; }
.about-stat-block > span { font-size: 0.87rem; color: #555; line-height: 1.6; }
.about-stat-block small { font-size: 0.78rem; color: #999; display: block; margin-top: 2px; }
.about-quote {
    border-left: 4px solid #7c4e2d; padding: 16px 20px;
    background: #fdf8f3; border-radius: 0 12px 12px 0;
    color: #555; font-style: italic; font-size: 0.95rem; line-height: 1.8;
}
.about-quote cite { display: block; margin-top: 8px; font-size: 0.82rem; color: #999; font-style: normal; }

/* Pillars */
.about-pillars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 18px; }
.about-pillar {
    background: #faf8f5; border-radius: 14px;
    padding: 20px; border: 1px solid #f0e8de;
}
.about-pillar i { font-size: 1.5rem; color: #7c4e2d; margin-bottom: 10px; display: block; }
.about-pillar h4 { font-size: 0.97rem; color: #1a1a2e; margin-bottom: 6px; }
.about-pillar p  { font-size: 0.84rem; color: #666; line-height: 1.7; }

/* Tabs */
.about-tabs-section { padding: 48px 0 0; }
.about-tabs-nav {
    display: flex; gap: 4px; margin-bottom: 28px;
    border-bottom: 2px solid #f0e8de; padding-bottom: 0;
}
.about-tab-btn {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    padding: 10px 22px; font-size: 0.95rem; font-family: inherit;
    color: #888; border-radius: 10px 10px 0 0;
    position: relative; bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}
.about-tab-btn:hover { color: #7c4e2d; }
.about-tab-btn.active { color: #7c4e2d; font-weight: 600; border-bottom-color: #7c4e2d; background: #fdf8f3; }
.about-tab-panel { display: none; }
.about-tab-panel.active { display: block; animation: fadeTabIn 0.2s ease; }
@keyframes fadeTabIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }

/* Tech Grid */
.about-tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.about-tech-card {
    background: #fff; border-radius: 14px; padding: 24px;
    border: 1px solid #f0e8de;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.about-tech-card h3 {
    font-size: 1rem; color: #1a1a2e; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.about-tech-card h3 i { color: #7c4e2d; }
.about-tech-card p { font-size: 0.87rem; color: #555; line-height: 1.8; margin-bottom: 10px; }
.about-tech-card p:last-child { margin-bottom: 0; }

/* AI Section */
.about-ai-wrap {}
.about-ai-hero-text {
    background: linear-gradient(135deg, #1a1a2e, #2c3e50);
    color: #fff; border-radius: 16px;
    padding: 36px 36px; margin-bottom: 28px; text-align: center;
}
.about-ai-hero-text h3 { font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.about-ai-hero-text p  { color: rgba(255,255,255,0.8); font-size: 0.97rem; line-height: 1.8; max-width: 700px; margin: 0 auto; }
.about-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
@media(max-width: 700px) { .about-ai-grid { grid-template-columns: 1fr; } }
.about-ai-card {
    background: #fff; border-radius: 14px; padding: 24px;
    border: 1px solid #f0e8de; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.about-ai-icon { font-size: 2rem; margin-bottom: 10px; }
.about-ai-card h4 { font-size: 1rem; color: #1a1a2e; margin-bottom: 10px; }
.about-ai-card p  { font-size: 0.87rem; color: #555; line-height: 1.8; margin-bottom: 8px; }
.about-ai-footer-quote {
    background: linear-gradient(135deg, #f5efe8, #faf5ee);
    border-radius: 14px; padding: 28px 36px; text-align: center;
    border: 1px solid #e8d8c8;
}
.about-ai-footer-quote i { font-size: 1.5rem; color: #7c4e2d; margin-bottom: 12px; display: block; }
.about-ai-footer-quote p { font-size: 1.05rem; color: #4a2c1a; font-style: italic; line-height: 1.8; }

/* CTA */
.about-cta {
    text-align: center;
    background: linear-gradient(135deg, #f5efe8, #fdf8f3);
    border-radius: 20px; padding: 48px 24px;
    border: 1px solid #e8d0b8; margin-top: 40px;
}
.about-cta h2 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 10px; }
.about-cta p   { color: #777; margin-bottom: 24px; }
.about-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

