﻿/* refine.css -- thêm thứ bậc chữ, độ sâu nhẹ và chuyển động ngắn cho trang chủ. Nạp cuối cùng. */
html.theme-clean{--accent:#1d4ed8;--accent-dark:#1e40af;--tint:#eff6ff;--ink:#0f172a;--shadow-sm:0 1px 2px rgba(15,23,42,.06);--shadow-md:0 1px 2px rgba(15,23,42,.05),0 10px 28px rgba(15,23,42,.07);--shadow-lg:0 2px 4px rgba(15,23,42,.06),0 18px 40px rgba(15,23,42,.12);}
html.theme-clean body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif !important;-webkit-font-smoothing:antialiased;}

/* Chữ: một họ chữ, thứ bậc rõ */
html.theme-clean h1,html.theme-clean h2,html.theme-clean h3{font-family:Inter,system-ui,sans-serif !important;color:var(--ink) !important;}
html.theme-clean .hero-apple h1{font-size:52px !important;font-weight:800 !important;letter-spacing:-.035em !important;line-height:1.06 !important;}
html.theme-clean .hero-apple h1 span{font-family:Inter,system-ui,sans-serif !important;font-style:normal !important;font-weight:800 !important;color:var(--accent) !important;-webkit-text-fill-color:var(--accent) !important;}
html.theme-clean h2{font-size:32px !important;font-weight:700 !important;letter-spacing:-.025em !important;}
html.theme-clean h3{font-weight:650 !important;letter-spacing:-.015em !important;}
html.theme-clean .hero-copy .lead-a{font-size:18px !important;line-height:1.6 !important;color:#475569 !important;}
html.theme-clean .eyebrow-a{display:inline-flex !important;align-items:center;gap:8px;width:max-content;padding:5px 12px 5px 8px;background:var(--tint) !important;border-radius:999px;}
html.theme-clean .eyebrow-a span{color:var(--accent) !important;-webkit-text-fill-color:var(--accent) !important;font-weight:700 !important;letter-spacing:.06em;font-size:12px !important;}

/* Độ sâu nhẹ: viền mảnh cộng bóng rất mờ */
html.theme-clean .hero-copy,html.theme-clean .hero-row,html.theme-clean .tc,html.theme-clean .teaser-row,html.theme-clean .niche-row,html.theme-clean .price-card,html.theme-clean .home-try,html.theme-clean .faq-item{box-shadow:var(--shadow-md) !important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease !important;}
html.theme-clean .teaser-row:hover,html.theme-clean .price-card:hover,html.theme-clean .faq-item:hover{transform:translateY(-3px) !important;box-shadow:var(--shadow-lg) !important;border-color:#cbd5e1 !important;}
html.theme-clean .price-card.featured{border-color:var(--accent) !important;box-shadow:0 0 0 1px var(--accent),var(--shadow-lg) !important;}
html.theme-clean .stats .stat-num{color:var(--accent) !important;-webkit-text-fill-color:var(--accent) !important;font-weight:800 !important;letter-spacing:-.02em;}

/* Nút: đặc, có bóng màu nhẹ và phản hồi khi chạm */
html.theme-clean .btn-primary,html.theme-clean .btn-lg,html.theme-clean .value-btn,html.theme-clean .nav-cta{background:var(--accent) !important;box-shadow:0 1px 2px rgba(29,78,216,.35),0 6px 16px rgba(29,78,216,.22) !important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease !important;font-weight:650 !important;}
html.theme-clean .btn-primary:hover,html.theme-clean .btn-lg:hover,html.theme-clean .value-btn:hover,html.theme-clean .nav-cta:hover{background:var(--accent-dark) !important;transform:translateY(-1px) !important;box-shadow:0 2px 4px rgba(29,78,216,.4),0 10px 22px rgba(29,78,216,.28) !important;}
html.theme-clean .btn-primary:active,html.theme-clean .nav-cta:active{transform:translateY(0) !important;}
html.theme-clean .btn-ghost{box-shadow:var(--shadow-sm) !important;transition:background .15s ease,border-color .15s ease !important;}
html.theme-clean .btn-ghost:hover{background:#f8fafc !important;border-color:#94a3b8 !important;}

/* Chuyển động ngắn khi cuộn tới (chỉ trình duyệt hỗ trợ) */
@keyframes lynx-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@supports (animation-timeline: view()){
  html.theme-clean .stats .stats-grid > div,html.theme-clean .teaser-row{animation:lynx-rise linear both;animation-timeline:view();animation-range:entry 0% entry 40%;}
}
@media (prefers-reduced-motion: reduce){
  html.theme-clean *{animation:none !important;transition:none !important;}
}
@media (max-width:900px){html.theme-clean .hero-apple h1{font-size:34px !important;}html.theme-clean h2{font-size:25px !important;}}

html.theme-clean h1{font-weight:800 !important;letter-spacing:-.03em !important;font-family:Inter,system-ui,sans-serif !important;}
html.theme-clean h1 em,html.theme-clean h1 i,html.theme-clean h1 .accent,html.theme-clean h1 span{font-family:Inter,system-ui,sans-serif !important;font-style:normal !important;font-weight:800 !important;color:var(--accent) !important;-webkit-text-fill-color:var(--accent) !important;}



/* Biểu đồ tăng trưởng thật trong thẻ ví dụ */
html.theme-clean .hr-chart{margin-top:14px;padding-top:12px;border-top:1px solid #e5e7eb;}
html.theme-clean .hr-chart-head{display:flex;justify-content:space-between;align-items:baseline;font-size:12.5px;color:#475569 !important;margin-bottom:6px;}
html.theme-clean .hr-chart-head b{font-size:15px;font-weight:800;}
html.theme-clean .hr-chart-head b.up{color:#15803d !important;-webkit-text-fill-color:#15803d !important;}
html.theme-clean .hr-chart-head b.down{color:#b91c1c !important;-webkit-text-fill-color:#b91c1c !important;}
html.theme-clean .hr-chart svg{width:100%;height:110px;display:block;overflow:visible;background:transparent !important;}
html.theme-clean .hr-line{stroke-dasharray:1;stroke-dashoffset:1;animation:hr-draw 1.4s ease-out .2s forwards;}
html.theme-clean .hr-area{opacity:0;animation:hr-fade .8s ease-out 1s forwards;}
html.theme-clean .hr-dot-end{opacity:0;animation:hr-fade .4s ease-out 1.5s forwards;}
@keyframes hr-draw{to{stroke-dashoffset:0}}
@keyframes hr-fade{to{opacity:1}}

/* Dải số liệu sáng: số lớn màu nhấn xanh, nhãn xám đậm, dàn đều hết chiều rộng */
html.theme-clean .stats{margin-top:40px !important;}
html.theme-clean .stats .stats-grid{justify-content:space-between !important;padding:26px 8px !important;}
html.theme-clean .stats .stat-num{font-size:42px !important;letter-spacing:-.03em !important;}
html.theme-clean .stats .stat-label{color:#475569 !important;-webkit-text-fill-color:#475569 !important;font-size:14px !important;max-width:150px;}
html.theme-clean .stats-freshness,html.theme-clean .stats-freshness *{color:#64748b !important;-webkit-text-fill-color:#64748b !important;background:transparent !important;}
html.theme-clean .stats-freshness i{background:transparent !important;color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important;}
@media (prefers-reduced-motion: reduce){html.theme-clean .hr-line{stroke-dashoffset:0;animation:none !important;}html.theme-clean .hr-area,html.theme-clean .hr-dot-end{opacity:1;animation:none !important;}}
@media (max-width:900px){html.theme-clean .stats .stat-num{font-size:34px !important;}html.theme-clean .stats .stats-grid{gap:16px !important;justify-content:flex-start !important;}}

html.theme-clean .niche-chart:empty{display:none;}
html.theme-clean .niche-chart .hr-chart{margin:4px 0 10px;}
html.theme-clean .niche-chart-empty{margin:4px 0 10px;padding-top:10px;border-top:1px solid #e5e7eb;font-size:12.5px;color:#64748b !important;}
@media (max-width:480px){html.theme-clean [data-i18n="hero.ctaSignup"]{font-size:14.5px !important;padding-left:12px !important;padding-right:12px !important;white-space:nowrap;width:100%;}}

/* Cửa sổ đăng nhập / đăng ký */
html.theme-clean .auth-modal-overlay{background:rgba(15,23,42,.5) !important;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
html.theme-clean .auth-modal{box-shadow:0 24px 60px rgba(15,23,42,.25) !important;}
html.theme-clean .auth-gift{margin:-4px 0 16px !important;padding:9px 12px;border-radius:10px;background:#ecfdf5 !important;color:#166534 !important;font-size:13.5px;font-weight:500;line-height:1.4;}
html.theme-clean .btn-google{display:flex !important;align-items:center;justify-content:center;gap:12px;width:100%;padding:13px 16px !important;border:1.5px solid #cbd5e1 !important;border-radius:12px !important;background:#fff !important;color:#0f172a !important;-webkit-text-fill-color:#0f172a !important;font-size:15.5px !important;font-weight:600 !important;box-shadow:0 1px 2px rgba(15,23,42,.06) !important;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;}
html.theme-clean .btn-google i{display:none !important;}
html.theme-clean .btn-google::before{content:"";width:20px;height:20px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat !important;}
html.theme-clean .btn-google:hover{background:#f8fafc !important;border-color:#94a3b8 !important;box-shadow:0 4px 12px rgba(15,23,42,.1) !important;transform:translateY(-1px);}
html.theme-clean .auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0 !important;color:#64748b !important;font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;}
html.theme-clean .auth-divider::before,html.theme-clean .auth-divider::after{content:"";flex:1;height:1px;background:#e2e8f0;}
html.theme-clean .auth-divider span{background:transparent !important;padding:0 !important;}
html.theme-clean #authSubmitBtn{display:flex !important;align-items:center;justify-content:center;width:100%;padding:14px 16px !important;font-size:16px !important;text-align:center;}
html.theme-clean .auth-switch{margin-top:16px;color:#475569 !important;font-size:14px;}
html.theme-clean .auth-switch-link{color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important;font-weight:700;text-decoration:underline;cursor:pointer;}

/* Pricing và phần cuối trang: gọn hơn, chữ nhỏ lại, canh giữa đều */
html.theme-clean #pricing .section-head{max-width:620px !important;margin:0 auto 28px !important;text-align:center !important;}
html.theme-clean #pricing .section-head .eyebrow{font-size:12.5px !important;margin-bottom:8px !important;}
html.theme-clean #pricing .section-head h2{font-size:30px !important;line-height:1.2 !important;letter-spacing:-.02em !important;margin:0 0 10px !important;}
html.theme-clean #pricing .section-head > p{font-size:15.5px !important;line-height:1.6 !important;color:#475569 !important;max-width:580px;margin:0 auto 18px !important;}
html.theme-clean #pricing .callout-box{display:inline-flex !important;align-items:flex-start;gap:10px;max-width:540px;margin:0 auto !important;padding:10px 16px !important;border-radius:12px !important;background:#f8fafc !important;border:1px solid #e5e7eb !important;text-align:left;}
html.theme-clean #pricing .callout-box p{font-size:14px !important;line-height:1.5 !important;color:#334155 !important;margin:0 !important;}
html.theme-clean #pricing .callout-box i{font-size:15px;margin-top:2px;color:#64748b !important;}
html.theme-clean .final-cta{padding-top:48px !important;padding-bottom:56px !important;}
html.theme-clean .final-cta .container{max-width:620px !important;margin:0 auto !important;text-align:center !important;}
html.theme-clean .final-cta h2{font-size:28px !important;line-height:1.2 !important;letter-spacing:-.02em !important;margin:0 0 10px !important;text-align:center !important;width:100% !important;}
html.theme-clean .final-cta p{font-size:15.5px !important;line-height:1.6 !important;color:#475569 !important;max-width:560px;margin:0 auto 22px !important;text-align:center !important;}
html.theme-clean .final-cta .btn{padding:13px 26px !important;font-size:15px !important;}
html.theme-clean .finalcta-note{font-size:13px !important;color:#64748b !important;margin-top:14px !important;}
@media (max-width:900px){html.theme-clean #pricing .section-head h2{font-size:26px !important;}html.theme-clean .final-cta h2{font-size:24px !important;}}
html.theme-clean #pricing .callout-box,html.theme-clean #pricing .callout-box *{background-color:transparent !important;}
html.theme-clean #pricing .callout-box{background-color:#f8fafc !important;}

/* Chuyển trang mượt: thanh menu đứng yên, nội dung mờ dần sang trang mới (trình duyệt hỗ trợ View Transitions) */
@view-transition{navigation:auto;}
html.theme-clean body > header{view-transition-name:site-nav;}
::view-transition-group(site-nav){animation:none;}
::view-transition-old(root){animation:lynx-vt-out .16s ease-in both;}
::view-transition-new(root){animation:lynx-vt-in .24s ease-out both;}
@keyframes lynx-vt-out{to{opacity:0;}}
@keyframes lynx-vt-in{from{opacity:0;transform:translateY(6px);}}
@media (prefers-reduced-motion: reduce){@view-transition{navigation:none;}}
@supports not (view-transition-name:a){html.theme-clean body > *:not(header){animation:lynx-vt-in .25s ease-out both;}}

/* Mục menu: rê chuột / đang mở có nền nhẹ, đổi màu mượt */
html.theme-clean .nav-links a{border-radius:10px !important;transition:background-color .18s ease,color .18s ease,transform .18s ease !important;}
html.theme-clean .nav-links a:hover{background-color:#f1f5f9 !important;color:#0f172a !important;}
html.theme-clean .nav-links a:active{transform:scale(.97);}
html.theme-clean .nav-links a[aria-current="page"]{background-color:#eff6ff !important;color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important;font-weight:600 !important;}

/* Logo thanh bên: to hơn, sát lề trái hơn (chỉ trên màn hình rộng) */
@media (min-width:901px){
  html.theme-clean header .logo{font-size:26px !important;font-weight:800 !important;gap:12px !important;padding-left:2px !important;display:flex !important;align-items:center;}
  html.theme-clean header .logo .logo-icon,html.theme-clean header .logo img{width:44px !important;height:44px !important;border-radius:12px;}
  html.theme-clean .app-sidebar .sidebar-logo{gap:12px !important;padding-left:2px !important;}
  html.theme-clean .app-sidebar .sidebar-logo img{width:44px !important;height:44px !important;border-radius:12px;}
  html.theme-clean .app-sidebar .sidebar-logo strong{font-size:26px !important;font-weight:800 !important;}
}

/* Nền xanh của mục đang chọn trượt từ mục này sang mục kia (như thanh bên trong app) */
html.theme-clean .nav-links{position:relative;}
html.theme-clean .nav-links a{position:relative;z-index:1;}
html.theme-clean .nav-indicator{position:absolute;left:0;top:0;z-index:0;border-radius:10px;background:#eff6ff;pointer-events:none;opacity:0;transition:transform .32s cubic-bezier(.22,1,.36,1),width .32s cubic-bezier(.22,1,.36,1),height .32s cubic-bezier(.22,1,.36,1),opacity .2s ease;}
@media (min-width:901px){html.theme-clean .nav-links a[aria-current="page"]{background-color:transparent !important;}}
@media (max-width:900px){html.theme-clean .nav-indicator{display:none;}}
@media (prefers-reduced-motion:reduce){html.theme-clean .nav-indicator{transition:none;}}
@media (min-width:901px){html.theme-clean .nav-links a[aria-current="page"],html.theme-clean .nav-links a.active{background:transparent !important;border:0 !important;border-radius:10px !important;box-shadow:none !important;}}
@media (min-width:901px){html.theme-clean header .nav-links a[aria-current="page"],html.theme-clean header .nav-links a.active,html.theme-clean header .nav-links .active{background:transparent !important;border:0 !important;border-color:transparent !important;border-radius:10px !important;box-shadow:none !important;}}
html.theme-clean header .nav-links .nav-indicator{background-color:#eff6ff !important;box-shadow:inset 0 0 0 1px #bfdbfe;}

/* Cửa sổ thanh toán nhúng (Whop) */
.checkout-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);overflow-y:auto;}
.checkout-box{position:relative;width:min(100%,520px);max-height:calc(100vh - 32px);overflow-y:auto;background:#fff !important;border-radius:20px;padding:26px 24px 22px;box-shadow:0 24px 60px rgba(15,23,42,.3);}
.checkout-box h3{margin:0 0 6px;font-size:21px;font-weight:800;letter-spacing:-.02em;color:#0f172a !important;display:flex;align-items:baseline;gap:10px;padding-right:32px;}
.checkout-box h3 span{font-size:17px;font-weight:700;color:#1d4ed8 !important;}
.checkout-sub{margin:0 0 16px;font-size:13.5px;line-height:1.5;color:#475569 !important;}
.checkout-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:10px;background:#f1f5f9 !important;color:#334155 !important;font-size:15px;cursor:pointer;}
.checkout-close:hover{background:#e2e8f0 !important;}
.checkout-mount{min-height:240px;}
.checkout-loading{padding:60px 0;text-align:center;color:#64748b !important;font-size:14px;}
.checkout-done{text-align:center;padding:24px 8px 8px;}
.checkout-done-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:#dcfce7 !important;color:#15803d !important;font-size:28px;line-height:56px;font-weight:800;}
.checkout-done h4{margin:0 0 6px;font-size:19px;color:#0f172a !important;}
.checkout-done p{margin:0 0 18px;font-size:14px;color:#475569 !important;}
html.theme-clean .checkout-overlay{background:rgba(15,23,42,.55) !important;}
html.theme-clean .checkout-box{background:#ffffff !important;}
html.theme-clean .checkout-box *{background-color:transparent;}
html.theme-clean .checkout-box .checkout-close{background-color:#f1f5f9 !important;}
html.theme-clean .checkout-box .checkout-done-icon{background-color:#dcfce7 !important;}
html.theme-clean .checkout-box .btn-primary{background-color:#2563eb !important;color:#fff !important;}
@media (max-width:600px){.checkout-box{padding:20px 14px 14px;border-radius:16px;}}

/* Menu ngoài giống thanh bên trong app: icon + chữ, hàng đầy đủ, bo 10px; thẻ tài khoản gọn trong thanh bên */
@media (min-width:901px){
  html.theme-clean header .nav-links{width:100% !important;align-items:stretch !important;}
  html.theme-clean header .nav-links a{display:flex !important;align-items:center;gap:10px;padding:9px 12px !important;border-radius:10px !important;font-size:14.5px !important;}
  html.theme-clean header .nav-links a i{font-size:18px;width:20px;text-align:center;flex:none;color:#64748b !important;-webkit-text-fill-color:#64748b !important;background:transparent !important;}
  html.theme-clean header .nav-links a[aria-current="page"] i{color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important;}
  html.theme-clean header .nav-links .nav-indicator{box-shadow:none !important;border-radius:10px !important;}

  html.theme-clean header .nav-actions{width:100% !important;}
  html.theme-clean header .auth-widget{width:100% !important;max-width:100%;}
  html.theme-clean header a.auth-account{display:grid !important;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;row-gap:3px;width:100% !important;box-sizing:border-box;padding:10px 12px !important;border:1px solid #e5e7eb !important;border-radius:14px !important;background:#f8fafc !important;text-decoration:none;}
  html.theme-clean header a.auth-account:hover{background:#f1f5f9 !important;border-color:#cbd5e1 !important;}
  html.theme-clean header a.auth-account .auth-avatar{grid-row:1 / span 2;}
  html.theme-clean header a.auth-account .auth-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:transparent !important;font-size:14.5px;}
  html.theme-clean header a.auth-account .plan-chip{justify-self:start;max-width:100%;font-size:10.5px !important;font-weight:700;letter-spacing:.04em;padding:3px 9px !important;border-radius:999px;white-space:nowrap;background:#e2e8f0 !important;border:0 !important;color:#334155 !important;}
}
@media (min-width:901px){html.theme-clean header nav{padding-left:0 !important;padding-right:0 !important;width:100% !important;max-width:none !important;}}
@media (min-width:901px){
  html.theme-clean header .nav-links{margin:0 !important;padding:0 !important;}
  html.theme-clean header .nav-links a{border:0 !important;}
  html.theme-clean header .auth-widget{padding:0 !important;}
}
@media (min-width:901px){
  html.theme-clean header .nav-actions a.auth-account:not(.nav-cta){display:grid !important;border:1px solid #e5e7eb !important;background:#f8fafc !important;padding:10px 12px !important;color:#0f172a !important;}
  html.theme-clean header .nav-actions a.auth-account:not(.nav-cta):hover{background:#f1f5f9 !important;border-color:#cbd5e1 !important;}
  html.theme-clean header a.auth-account .auth-avatar{width:36px !important;height:36px !important;border-radius:50% !important;display:flex !important;align-items:center;justify-content:center;font-weight:700;font-size:14px;background:linear-gradient(135deg,#dbeafe,#93c5fd) !important;color:#1e3a8a !important;overflow:hidden;}
  html.theme-clean header a.auth-account .auth-avatar img{width:100%;height:100%;object-fit:cover;}
}

/* Đáy thanh bên: thẻ tài khoản / nút chính dồn xuống đáy, ngay trên là hàng liên kết pháp lý nhỏ */
@media (min-width:901px){
  html.theme-clean header nav{display:flex !important;flex-direction:column !important;height:100% !important;}
  html.theme-clean header .nav-actions{margin-top:auto !important;}
}
