/* =====================================================================
   Nếp Sao — hộp thành viên, khung đăng nhập (trang + modal), trang lập lá số.
   Nạp sau nepsao.css (dùng chung biến --ns-*).
   ===================================================================== */
.ns-ico { width: 18px; height: 18px; flex: none; display: block; }

/* ---------- Hộp thành viên trên header ---------- */
.ns-member { position: relative; }
.ns-member__btn { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--ns-border); background: #fff; cursor: pointer; font-family: var(--ns-sans); transition: border-color .2s, box-shadow .2s; max-width: 260px; }
.ns-member__btn:hover, .ns-member.is-open .ns-member__btn { border-color: rgba(27, 67, 50, .35); box-shadow: 0 2px 10px -2px rgba(27, 67, 50, .12); }
.ns-member__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ns-jade); color: var(--ns-gold-light); font-family: var(--ns-serif); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: inset 0 0 0 2px rgba(197, 155, 39, .45); }
.ns-member__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; text-align: left; line-height: 1.25; }
.ns-member__name { font-size: 13px; font-weight: 600; color: var(--ns-jade-dark); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-member__plan { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .03em; padding: 1px 8px; border-radius: 999px; background: #f5f5f4; color: #57534e; white-space: nowrap; }
.ns-member__plan.is-jade { background: #ecfdf5; color: var(--ns-jade); }
.ns-member__plan.is-gold { background: #fef3c7; color: var(--ns-gold-dark); border: 1px solid #fde68a; }
.ns-member__plan.is-gold::before { content: "✦"; color: var(--ns-gold); }
.ns-member__caret { width: 14px; height: 14px; color: var(--ns-ink-light); transition: transform .2s; flex: none; }
.ns-member.is-open .ns-member__caret { transform: rotate(180deg); }
.ns-member__menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: #fff; border: 1px solid var(--ns-border); border-radius: 14px; box-shadow: 0 16px 36px -10px rgba(27, 67, 50, .22); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.ns-member.is-open .ns-member__menu { opacity: 1; visibility: visible; transform: none; }
.ns-member__head { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--ns-border-light); }
.ns-member__head b { font-family: var(--ns-serif); font-size: 15px; color: var(--ns-jade-dark); }
.ns-member__head span { font-size: 12px; color: var(--ns-ink-light); overflow: hidden; text-overflow: ellipsis; }
.ns-member__head .ns-member__plan { align-self: flex-start; margin-top: 6px; }
.ns-member__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--ns-ink) !important; text-decoration: none !important; }
.ns-member__menu a:hover { background: var(--ns-paper); color: var(--ns-jade) !important; }
.ns-member__menu a.is-upgrade { color: var(--ns-gold-dark) !important; font-weight: 600; background: #fffbeb; margin: 4px 0; }
.ns-member__menu a.is-logout { color: var(--ns-ink-light) !important; border-top: 1px solid var(--ns-border-light); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; }
@media (max-width: 899px) { .ns-member { display: none; } }

/* ---------- Thương hiệu trên khung đăng nhập ---------- */
.ns-auth-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; position: relative; z-index: 1; }
.ns-auth-brand__seal { width: 48px; height: 48px; border-radius: 16px; background: var(--ns-jade); color: #fbf9f6; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px -2px rgba(27, 67, 50, .35); margin-bottom: 12px; }
.ns-auth-brand__seal .ns-ico { width: 24px; height: 24px; }
.ns-auth-brand h1, .ns-auth-brand h2 { font-family: var(--ns-serif); font-weight: 700; font-size: 24px; letter-spacing: .1em; color: var(--ns-jade); margin: 0; line-height: 1.3; }
.ns-auth-brand p { font-family: var(--ns-serif); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ns-gold-dark); margin: 4px 0 0; font-weight: 500; }

/* ---------- Khung đăng nhập dùng chung ---------- */
.ns-auth { position: relative; z-index: 1; font-family: var(--ns-sans); }
.ns-auth [hidden] { display: none !important; }
.ns-auth__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 24px; background: #f1ede4; border-radius: 12px; }
.ns-auth__tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ns-muted); font: 500 14px var(--ns-sans); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.ns-auth__tab .ns-ico { width: 16px; height: 16px; }
.ns-auth__tab:hover { color: var(--ns-jade); }
.ns-auth__tab.is-active { background: var(--ns-jade); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.ns-auth__msg { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.55; background: #ecfdf5; border: 1px solid #a7f3d0; color: var(--ns-jade); }
.ns-auth__msg.is-error { background: var(--ns-cinnabar-bg); border-color: #fecaca; color: var(--ns-cinnabar); }
.ns-auth__social { margin-bottom: 4px; }
.ns-auth__divider { position: relative; display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #717973; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ns-auth__divider::before, .ns-auth__divider::after { content: ""; flex: 1; height: 1px; background: #e5e0d8; }
.ns-auth__form { display: grid; gap: 16px; margin: 0; }
.ns-field { display: grid; gap: 6px; }
.ns-field label, .ns-field__row label { font-size: 12px; font-weight: 600; color: var(--ns-jade); margin: 0; }
.ns-field__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ns-input { position: relative; display: flex; align-items: center; }
.ns-input > .ns-ico { position: absolute; left: 14px; width: 18px; height: 18px; color: #717973; pointer-events: none; }
.ns-input input { width: 100%; height: 46px; margin: 0; padding: 0 44px 0 42px; border: 1px solid rgba(228, 226, 223, .9); border-radius: 12px; background: #f5f3f0; color: #1b1c1a; font: 400 14px var(--ns-sans); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.ns-input input::placeholder { color: #a8aea9; }
.ns-input input:focus { outline: none; background: #fff; border-color: rgba(27, 67, 50, .45); box-shadow: 0 0 0 3px rgba(27, 67, 50, .1); }
.ns-input__eye { position: absolute; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #717973; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ns-input__eye:hover, .ns-input__eye.is-on { color: var(--ns-jade); }
.ns-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.55; color: #414844; cursor: pointer; margin: 0; }
.ns-check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--ns-jade); flex: none; }
.ns-check a { color: var(--ns-jade) !important; text-decoration: underline !important; font-weight: 500; }
.ns-link-btn { border: 0; background: none; padding: 0; font: 500 12px var(--ns-sans); color: var(--ns-gold-dark) !important; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.ns-link-btn:hover { color: var(--ns-jade) !important; }
.ns-link-btn.is-strong { font-weight: 600; color: var(--ns-jade) !important; }
.ns-auth__submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 16px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--ns-jade); color: #fff !important; font: 600 14px var(--ns-sans); letter-spacing: .02em; text-decoration: none !important; cursor: pointer; box-shadow: 0 4px 10px -2px rgba(27, 67, 50, .35); transition: background-color .2s, box-shadow .2s; }
.ns-auth__submit:hover { background: #143427; box-shadow: 0 8px 18px -4px rgba(27, 67, 50, .4); }
.ns-auth__submit .ns-ico { width: 16px; height: 16px; transition: transform .2s; }
.ns-auth__submit:hover .ns-ico { transform: translateX(3px); }
.ns-auth__submit:disabled { opacity: .7; cursor: wait; }
.ns-auth__submit.is-busy span::after { content: "…"; }
.ns-auth__switch { text-align: center; font-size: 12px; color: #414844; margin: 4px 0 0; }
.ns-auth__lost-head b { display: block; font-family: var(--ns-serif); font-size: 18px; color: var(--ns-jade-dark); }
.ns-auth__lost-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--ns-ink-light); }
.ns-auth__assure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid #e5e0d8; font-size: 12px; color: #717973; text-align: center; }
.ns-auth__assure .ns-ico { width: 15px; height: 15px; color: var(--ns-gold-dark); }
.ns-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Trang đăng nhập ---------- */
.ns-authpage { position: relative; overflow: hidden; padding: 48px 16px 64px; display: flex; justify-content: center; }
@media (min-width: 1024px) { .ns-authpage { padding: 64px 16px 80px; } }
.ns-authpage__wheel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: .25; color: #e4e2df; }
.ns-authpage__wheel svg { width: 720px; height: 720px; max-width: none; animation: ns-spin 240s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ns-authpage__wheel svg { animation: none; } }
.ns-authpage__inner { position: relative; z-index: 1; width: 100%; max-width: 490px; }
.ns-authpage__card { background: #fff; padding: 28px; border-radius: 18px; border: 1px solid rgba(231, 229, 228, .8); box-shadow: 0 20px 40px -12px rgba(120, 113, 108, .25); }
@media (min-width: 640px) { .ns-authpage__card { padding: 36px; } }
.ns-welcome { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ns-welcome__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ns-jade); color: var(--ns-gold-light); font-family: var(--ns-serif); font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px rgba(197, 155, 39, .45); margin-bottom: 14px; }
.ns-welcome h2 { font-family: var(--ns-serif); font-size: 22px; color: var(--ns-jade-dark); margin: 0; }
.ns-welcome__plan { margin: 8px 0 0; display: inline-block; padding: 3px 12px; border-radius: 999px; background: #fef3c7; color: var(--ns-gold-dark); font-size: 12px; font-weight: 600; border: 1px solid #fde68a; }
.ns-welcome__email { margin: 8px 0 0; font-size: 13px; color: var(--ns-ink-light); }
.ns-welcome__actions { width: 100%; display: grid; gap: 10px; margin-top: 24px; }
.ns-welcome__actions .ns-btn { width: 100%; }

/* ---------- Modal ---------- */
.ns-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; opacity: 0; transition: opacity .2s; }
.ns-modal.is-open { opacity: 1; }
.ns-modal[hidden] { display: none; }
.ns-modal__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ns-modal__dialog { position: relative; width: 100%; max-width: 480px; margin: auto; background: #fff; border: 1px solid #e5e0d8; border-radius: 18px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3); padding: 24px; overflow: hidden; transform: translateY(10px) scale(.98); transition: transform .25s ease; }
@media (min-width: 640px) { .ns-modal__dialog { padding: 32px; } }
.ns-modal.is-open .ns-modal__dialog { transform: none; }
.ns-modal__glow1 { position: absolute; top: -96px; right: -96px; width: 208px; height: 208px; border-radius: 50%; background: linear-gradient(135deg, rgba(197, 155, 39, .1), #f7f5f0, transparent); filter: blur(40px); pointer-events: none; }
.ns-modal__glow2 { position: absolute; bottom: -80px; left: -80px; width: 192px; height: 192px; border-radius: 50%; background: linear-gradient(45deg, rgba(27, 67, 50, .1), #f7f5f0, transparent); filter: blur(40px); pointer-events: none; }
.ns-modal__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f7f5f0; color: #5c6962; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background-color .2s, color .2s; }
.ns-modal__close:hover { background: #eae6dd; color: var(--ns-jade); }
html.ns-modal-open { overflow: hidden; }

/* =====================================================================
   TRANG LẬP LÁ SỐ (giao diện form theo thiết kế; lá số hiện bên dưới)
   ===================================================================== */
.tuvi-template-app { padding: 0 0 56px; }
.tuvi-app .ns-chartpage { position: relative; max-width: 1376px; padding-top: 40px; }
@media (min-width: 768px) { .tuvi-app .ns-chartpage { padding-top: 64px; } }
.ns-chartpage__aura { position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: 0; overflow: hidden; }
.ns-chartpage__aura i { position: absolute; border-radius: 50%; filter: blur(48px); }
.ns-chartpage__aura i:nth-child(1) { top: -96px; left: 50%; transform: translateX(-50%); width: 850px; height: 500px; max-width: 100%; background: linear-gradient(to bottom, rgba(27, 67, 50, .08), rgba(197, 155, 39, .06), transparent); border-radius: 0; }
.ns-chartpage__aura i:nth-child(2) { top: 33%; left: 40px; width: 384px; height: 384px; background: rgba(45, 106, 79, .05); }
.ns-chartpage__aura i:nth-child(3) { top: 50%; right: 40px; width: 320px; height: 320px; background: rgba(197, 155, 39, .05); }
.ns-chartpage > *:not(.ns-chartpage__aura) { position: relative; z-index: 1; }

.tuvi-app .ns-chartpage__head { text-align: center; max-width: 768px; margin: 0 auto 40px; padding: 0 16px; }
@media (min-width: 768px) { .tuvi-app .ns-chartpage__head { margin-bottom: 48px; } }
.ns-chartpage__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: rgba(27, 67, 50, .05); border: 1px solid rgba(27, 67, 50, .2); color: var(--ns-jade); margin-bottom: 16px; font-family: var(--ns-sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ns-chartpage__pill span[aria-hidden] { color: var(--ns-gold); font-size: 13px; letter-spacing: 0; }
.tuvi-app .ns-chartpage__head h1 { font-family: var(--ns-serif); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; color: var(--ns-jade); margin: 0 0 12px; }
@media (min-width: 768px) { .tuvi-app .ns-chartpage__head h1 { font-size: 48px; } }
.tuvi-app .ns-chartpage__head p { font-family: var(--ns-sans); font-size: 15px; line-height: 1.7; color: #5c6962; max-width: 42rem; margin: 0 auto; }

/* Thẻ form */
.ns-formcard { position: relative; max-width: 768px; margin: 0 auto; background: linear-gradient(to bottom, #fff, #faf8f4); border-radius: 18px; border: 1px solid rgba(27, 67, 50, .15); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .08), 0 8px 10px -6px rgba(0, 0, 0, .06); padding: 24px; overflow: hidden; }
@media (min-width: 640px) { .ns-formcard { padding: 40px; } }
@media (min-width: 768px) { .ns-formcard { padding: 48px; } }
.ns-formcard__corner { position: absolute; width: 24px; height: 24px; border-color: rgba(27, 67, 50, .25); border-style: solid; border-width: 0; pointer-events: none; }
.ns-formcard__corner.is-tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 2px; }
.ns-formcard__corner.is-tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 2px; }
.ns-formcard__corner.is-bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 2px; }
.ns-formcard__corner.is-br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 2px; }
.ns-formcard__mark { position: absolute; top: -40px; right: -40px; width: 288px; height: 288px; opacity: .045; color: var(--ns-jade); pointer-events: none; }

.tuvi-app form.ns-chartform { position: relative; z-index: 1; display: grid; gap: 24px; padding: 0; grid-template-columns: 1fr; font-family: var(--ns-sans); }
.tuvi-app .ns-chartform label { display: block; font-size: inherit; color: inherit; margin: 0; }
.ns-cf-field { display: grid; gap: 8px; min-width: 0; }
.ns-cf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tuvi-app .ns-chartform .ns-cf-label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ns-jade); }
.ns-cf-label svg, .ns-cf-input svg, .ns-cf-year svg, .ns-cf-findhour svg, .ns-cf-note svg, .ns-cf-submit svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ns-cf-label svg { width: 18px; height: 18px; color: var(--ns-gold); }
.ns-cf-hint { font-size: 12px; font-style: italic; color: #7b8981; }
.ns-cf-tz { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7b8981; }
.ns-cf-sub { display: block; font-size: 12px; font-weight: 500; color: #5c6962; padding-left: 4px; margin-bottom: 4px; }

.ns-cf-input { position: relative; }
.ns-cf-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #7b8981; pointer-events: none; }
.tuvi-app .ns-chartform input[type=text], .tuvi-app .ns-chartform input[type=number], .tuvi-app .ns-chartform select { width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid rgba(27, 67, 50, .2); border-radius: 12px; background-color: #fdfcf9; color: #1e2825; font: 500 15px var(--ns-sans); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); transition: border-color .2s, box-shadow .2s; }
.tuvi-app .ns-chartform .ns-cf-input input { padding-left: 44px; font-weight: 400; }
.tuvi-app .ns-chartform input::placeholder { color: rgba(123, 137, 129, .6); }
.tuvi-app .ns-chartform input:focus, .tuvi-app .ns-chartform select:focus { outline: none; border-color: var(--ns-jade); box-shadow: 0 0 0 3px rgba(27, 67, 50, .15); }
.tuvi-app .ns-chartform select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' stroke='%231b4332' stroke-width='1.8' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }

.ns-cf-grid2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .ns-cf-grid2 { grid-template-columns: 1fr 1fr; } }
.ns-cf-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .ns-cf-grid4 { grid-template-columns: .8fr 1fr .9fr 1.4fr; } }
.ns-cf-time { display: flex; align-items: center; gap: 4px; }
.ns-cf-time > span { color: #7b8981; font-weight: 600; }
.tuvi-app .ns-chartform .ns-cf-time select { padding: 0 24px 0 10px; background-position: right 6px center; }

.ns-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #f1ede4; border: 1px solid rgba(27, 67, 50, .1); border-radius: 12px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); }
.ns-seg label { position: relative; cursor: pointer; }
.ns-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ns-seg span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #5c6962; transition: background-color .2s, color .2s, box-shadow .2s; text-align: center; }
.ns-seg span small { font-size: 12px; opacity: .8; }
.ns-seg label:hover span { color: var(--ns-jade); background: rgba(255, 255, 255, .5); }
.ns-seg input:checked + span { background: var(--ns-jade); color: #fff; font-weight: 600; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .12); }
.ns-seg input:focus-visible + span { outline: 2px solid var(--ns-gold); outline-offset: 2px; }

.ns-cf-under { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; }
.ns-cf-hourmode { display: inline-flex; gap: 4px; padding: 3px; background: #f7f5f0; border: 1px solid rgba(27, 67, 50, .1); border-radius: 999px; }
.ns-cf-hourmode label { cursor: pointer; }
.ns-cf-hourmode input { position: absolute; opacity: 0; pointer-events: none; }
.ns-cf-hourmode span { display: block; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: #5c6962; transition: background-color .2s, color .2s; }
.ns-cf-hourmode input:checked + span { background: #fff; color: var(--ns-jade); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ns-cf-hourmode input:focus-visible + span { outline: 2px solid var(--ns-gold); }
.tuvi-app .ns-chartform .ns-cf-hourhint { margin: 0; font-size: 12px; color: var(--ns-gold-dark); }

.ns-cf-check { display: inline-flex !important; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.55; color: #5c6962 !important; cursor: pointer; }
.ns-cf-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ns-jade); flex: none; }
.ns-cf-check a { color: var(--ns-jade) !important; text-decoration: underline !important; font-weight: 500; }

.ns-cf-year { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 12px; background: #f7f5f0; border: 1px solid rgba(27, 67, 50, .1); }
@media (min-width: 640px) { .ns-cf-year { flex-direction: row; align-items: center; justify-content: space-between; } }
.ns-cf-year__text { display: flex; align-items: center; gap: 12px; }
.ns-cf-year__text .ns-cf-hint { display: block; font-style: normal; font-size: 12px; color: #5c6962; }
.ns-cf-year__icon { width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid rgba(27, 67, 50, .15); display: flex; align-items: center; justify-content: center; color: var(--ns-jade); flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ns-cf-year__icon svg { width: 20px; height: 20px; }
.ns-cf-year__ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tuvi-app .ns-chartform .ns-cf-year__ctrl input { width: 120px; height: 42px; background: #fff; border-radius: 9px; text-align: center; }
.ns-cf-findhour { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; background: #fff; border: 1px solid rgba(27, 67, 50, .2); font-size: 12px; font-weight: 600; color: var(--ns-jade) !important; text-decoration: none !important; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: background-color .2s, color .2s; }
.ns-cf-findhour svg { width: 16px; height: 16px; color: var(--ns-gold); transition: transform .3s, color .2s; }
.ns-cf-findhour:hover { background: var(--ns-jade); color: #fff !important; }
.ns-cf-findhour:hover svg { color: #fff; transform: rotate(45deg); }

.ns-cf-actions { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
@media (min-width: 640px) { .ns-cf-actions { flex-direction: row; } }
.tuvi-app .ns-cf-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 40px; border-radius: 999px; border: 1px solid rgba(197, 155, 39, .3); background: linear-gradient(to right, #143427, #1b4332, #2d6a4f); color: #fff; font: 700 16px var(--ns-sans); letter-spacing: .03em; cursor: pointer; box-shadow: 0 10px 15px -3px rgba(27, 67, 50, .25); transition: box-shadow .2s, filter .2s, transform .1s; }
@media (min-width: 640px) { .tuvi-app .ns-cf-submit { width: auto; } }
.ns-cf-submit:hover { filter: brightness(1.1); box-shadow: 0 20px 25px -5px rgba(27, 67, 50, .35); }
.ns-cf-submit:active { transform: scale(.97); }
.ns-cf-submit__icon { width: 26px; height: 26px; border-radius: 50%; background: rgba(197, 155, 39, .2); display: flex; align-items: center; justify-content: center; }
.ns-cf-submit__icon svg { width: 16px; height: 16px; fill: #e6c875; stroke: none; transition: transform .3s; }
.ns-cf-submit:hover .ns-cf-submit__icon svg { transform: rotate(45deg); }
.ns-cf-submit__arrow { width: 20px; height: 20px; transition: transform .2s; }
.ns-cf-submit:hover .ns-cf-submit__arrow { transform: translateX(4px); }
.ns-cf-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #f1ede4; border: 1px solid rgba(27, 67, 50, .1); font-size: 12px; font-weight: 500; color: #5c6962; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); }
.ns-cf-status span { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 2px #6ee7b7; animation: ns-pulse 2s ease-in-out infinite; }
@keyframes ns-pulse { 50% { opacity: .5; } }
.tuvi-app .ns-cf-sample { justify-self: center; border: 0; background: none; padding: 0; font: 500 13px var(--ns-sans); color: var(--ns-gold-dark); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; width: auto; height: auto; }
.tuvi-app .ns-cf-sample:hover { color: var(--ns-jade); }
.tuvi-app .ns-chartform .form-error { margin: 0; }

.ns-cf-notes { max-width: 896px; margin: 48px auto 0; padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .ns-cf-notes { grid-template-columns: repeat(3, 1fr); } }
.ns-cf-note { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(27, 67, 50, .1); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: box-shadow .2s; }
.ns-cf-note:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .08); }
.ns-cf-note__icon { width: 40px; height: 40px; border-radius: 9px; background: rgba(27, 67, 50, .05); border: 1px solid rgba(27, 67, 50, .15); display: flex; align-items: center; justify-content: center; color: var(--ns-jade); flex: none; }
.ns-cf-note__icon svg { width: 22px; height: 22px; }
.tuvi-app .ns-cf-note h2 { font-family: var(--ns-sans); font-size: 15px; font-weight: 600; color: var(--ns-jade); margin: 0 0 4px; letter-spacing: 0; }
.tuvi-app .ns-cf-note p { font-size: 13px; line-height: 1.65; color: #5c6962; margin: 0; }

