/* =============================================================================
   TS Klientų Portalas — portal.css
   Mobile-first. Desktop overrides live in the @media section at the bottom.
   Design tokens and component rhythm are ported verbatim from the design
   source (ts-portal-final.html). Do not re-interpret.
   ============================================================================= */

#ts-portal-root {
  --bg: #F4F1EB;
  --cream: #FAF6EE;
  --surface: #fff;
  --ink: #1A1714;
  --ink2: #3D3630;
  --ink3: #6B6259;
  --ink4: #9C9389;
  --ink5: #C4BDB5;
  --forest: #2D5A3D;
  --forest-d: #1B4430;
  --forest-l: #E8F0EB;
  --forest-xl: #F2F7F4;
  --sage: #7A9B84;
  --amber: #C4A265;
  --amber-l: #F5EFE3;
  --rose: #B85A5F;
  --rose-l: #FBF0F0;
  --dark: #0C0B09;
  --dark2: #131210;
  --dark3: #1B1917;
  --serif: 'Domine', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 20px;
  --rs: 14px;
  --rx: 8px;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
#ts-portal-root *, #ts-portal-root *::before, #ts-portal-root *::after { box-sizing: border-box; margin: 0; padding: 0; }
#ts-portal-root ::selection { background: var(--forest); color: #fff; }
#ts-portal-root img { max-width: 100%; height: auto; display: block; }

/* Keyframes */
@keyframes tsp-fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tsp-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tsp-drawRing { from { stroke-dashoffset: var(--full); } to { stroke-dashoffset: var(--target); } }
@keyframes tsp-lineGrow { from { width: 0; } to { width: var(--w, 48px); } }

/* =============================================================================
   Toast
   ============================================================================= */

.tsp-toast { position: fixed; bottom: 90px; left: 50%; z-index: 9999; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 14px 28px; font-size: 13px; font-weight: 500;
  border-radius: 100px; pointer-events: none; opacity: 0; transition: all .4s cubic-bezier(.16,1,.3,1);
  white-space: nowrap; box-shadow: 0 12px 40px rgba(0,0,0,.25); max-width: calc(100vw - 48px); text-align: center; }
.tsp-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.tsp-toast.err { background: var(--rose); }

/* =============================================================================
   Shell
   ============================================================================= */

.tsp-app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }

/* =============================================================================
   Login screen
   ============================================================================= */

.tsp-login { min-height: 100vh; min-height: 100dvh; background: linear-gradient(178deg, #0B0A08, #121110 50%, #1A1816);
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 32px; }
.tsp-login-inner { width: 100%; max-width: 360px; text-align: center; }
.tsp-login-brand { font-size: 9px; letter-spacing: 6px; text-transform: uppercase; color: var(--amber);
  opacity: .5; margin-bottom: 32px; font-weight: 400; }
.tsp-login-title { font-family: var(--serif); font-size: 36px; font-weight: 500; color: #fff; line-height: 1.1;
  margin-bottom: 16px; letter-spacing: -.5px; }
.tsp-login-sub { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 36px; }
.tsp-login-form label { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 500; margin-bottom: 8px; text-align: left; }
.tsp-login-form input[type="email"] { width: 100%; padding: 16px 20px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 15px; font-family: var(--sans);
  border-radius: var(--rx); outline: none; transition: border-color .2s; }
.tsp-login-form input[type="email"]:focus { border-color: var(--amber); }
.tsp-login-btn { margin-top: 16px; width: 100%; padding: 17px 28px; background: var(--amber); color: var(--dark);
  border: none; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; cursor: pointer; border-radius: var(--rs); transition: all .15s; }
.tsp-login-btn:hover { background: #D4B378; }
.tsp-login-btn:active { transform: scale(.98); }
.tsp-login-btn[disabled] { opacity: .6; cursor: wait; }
.tsp-login-err { margin-top: 16px; font-size: 13px; color: var(--rose); font-family: var(--serif); font-style: italic; min-height: 20px; }
.tsp-login-foot { margin-top: 48px; font-size: 11px; color: rgba(255,255,255,.25); line-height: 1.7; }

/* =============================================================================
   Skeleton (initial load)
   ============================================================================= */

.tsp-skel { padding: 48px 24px; display: grid; gap: 16px; animation: tsp-fadeIn .3s ease both; }
.tsp-skel-bar { height: 14px; background: linear-gradient(90deg, var(--cream) 0%, rgba(0,0,0,.04) 50%, var(--cream) 100%);
  background-size: 200% 100%; border-radius: var(--rx); animation: tsp-shimmer 1.4s linear infinite; }
.tsp-skel-bar.t1 { width: 40%; }
.tsp-skel-bar.t2 { width: 60%; height: 32px; }
.tsp-skel-block { height: 160px; background: var(--cream); border-radius: var(--r); }
@keyframes tsp-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* =============================================================================
   Bottom nav (mobile)
   ============================================================================= */

.tsp-bnav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%;
  max-width: 480px; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,.05); display: flex; z-index: 100; padding: 8px 0 env(safe-area-inset-bottom,10px); }
.tsp-bnav-i { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; cursor: pointer; background: none; border: none; font-family: var(--sans);
  color: var(--ink4); transition: color .15s; -webkit-tap-highlight-color: transparent; position: relative; }
.tsp-bnav-i.on { color: var(--forest); }
.tsp-bnav-i.on .tsp-bnav-ic { background: var(--forest); color: #fff; }
.tsp-bnav-ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; transition: all .2s; }
.tsp-bnav-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }
.tsp-bnav-l { font-size: 9px; letter-spacing: .8px; text-transform: uppercase; font-weight: 500; }

/* =============================================================================
   Buttons
   ============================================================================= */

.tsp-btn { font-family: var(--sans); cursor: pointer; border: none; font-size: 11px; letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 600; border-radius: var(--rs); transition: all .15s;
  -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 17px 28px; }
.tsp-btn:active { transform: scale(.97); }
.tsp-btn-f { background: var(--forest); color: #fff; width: 100%; }
.tsp-btn-f:hover { background: var(--forest-d); }
.tsp-btn-d { background: var(--ink); color: #fff; width: 100%; }

/* =============================================================================
   Hero
   ============================================================================= */

.tsp-hero { min-height: 100vh; min-height: 100dvh; background: linear-gradient(178deg, #0B0A08, #121110 50%, #1A1816);
  display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tsp-hero::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(196,162,101,.06), transparent 55%),
              radial-gradient(ellipse at 20% 85%, rgba(45,90,61,.04), transparent 45%);
  pointer-events: none; }
.tsp-hero-gold { height: 1px; background: linear-gradient(90deg, transparent 15%, var(--amber) 50%, transparent 85%); opacity: .5; }
.tsp-hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 80px 32px 40px; position: relative; z-index: 1; }
.tsp-hero-brand { font-size: 9px; letter-spacing: 6px; text-transform: uppercase; color: var(--amber);
  opacity: .4; text-align: center; margin-bottom: 56px; animation: tsp-fadeUp .8s ease .3s both; font-weight: 400; }
.tsp-hero-greeting { text-align: center; margin-bottom: 40px; animation: tsp-fadeUp .8s ease .45s both; }
.tsp-hero-hello { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 14px; letter-spacing: .2px; font-weight: 300; }
.tsp-hero-name { font-family: var(--serif); font-size: 50px; font-weight: 500; color: #fff; line-height: 1; margin-bottom: 24px; letter-spacing: -1px; }
.tsp-hero-statement { font-family: var(--serif); font-size: 16px; font-weight: 400; color: rgba(255,255,255,.5); line-height: 1.6; font-style: italic; max-width: 320px; margin: 0 auto; }
.tsp-hero-statement b { color: rgba(255,255,255,.8); font-weight: 500; font-style: normal; }
.tsp-hero-div { width: 40px; height: 1px; margin: 36px auto; background: var(--amber); opacity: .25; animation: tsp-lineGrow 1s ease .7s both; --w: 40px; }

.tsp-hero-rings { display: flex; justify-content: center; gap: 32px; margin-bottom: 44px; animation: tsp-fadeUp .8s ease .85s both; }
.tsp-hr { text-align: center; width: 92px; }
.tsp-hr-ring { width: 68px; height: 68px; margin: 0 auto 12px; position: relative; }
.tsp-hr-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tsp-hr-ring-bg { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 2; }
.tsp-hr-ring-fill { fill: none; stroke-width: 2; stroke-linecap: round; animation: tsp-drawRing 2s cubic-bezier(.16,1,.3,1) 1.1s both; }
.tsp-hr-ring-fill.active { stroke: var(--sage); }
.tsp-hr-ring-fill.partial { stroke: var(--amber); }
.tsp-hr-ring-fill.locked { stroke: rgba(255,255,255,.06); }
.tsp-hr-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; }
.tsp-hr-icon svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tsp-hr.locked .tsp-hr-icon svg { stroke: rgba(255,255,255,.3); }
.tsp-hr-label { font-size: 10.5px; color: rgba(255,255,255,.55); line-height: 1.35; font-weight: 400; }
.tsp-hr-status { font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; margin-top: 5px; }
.tsp-hr-status.active { color: var(--sage); }
.tsp-hr-status.partial { color: var(--amber); }
.tsp-hr-status.locked { color: rgba(255,255,255,.2); }

.tsp-hero-stats { text-align: center; animation: tsp-fadeUp .8s ease 1s both; margin-bottom: 32px; }
.tsp-hero-stats-row { display: inline-flex; gap: 32px; padding: 16px 32px; border-radius: 100px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; justify-content: center; }
.tsp-hs { text-align: center; }
.tsp-hs-v { font-family: var(--mono); font-size: 16px; color: rgba(255,255,255,.7); font-weight: 500; letter-spacing: .5px; }
.tsp-hs-l { font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,.18); margin-top: 3px; font-weight: 500; }

.tsp-hero-scroll { text-align: center; padding-bottom: 32px; animation: tsp-fadeUp .8s ease 1.15s both; }
.tsp-hero-scroll-line { width: 1px; height: 32px; background: linear-gradient(180deg, rgba(196,162,101,.25), transparent); margin: 0 auto 8px; }
.tsp-hero-scroll-t { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.15); font-weight: 500; }

/* =============================================================================
   Whats-next (A segment only)
   ============================================================================= */

.tsp-whats-next { background: var(--cream); padding: 64px 24px; position: relative; overflow: hidden; }
.tsp-whats-next::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1px; height: 32px; background: linear-gradient(180deg, transparent, var(--amber)); opacity: .3; }
.tsp-wn-eyebrow { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--amber); text-align: center; margin-bottom: 18px; font-weight: 500; }
.tsp-wn-title { font-family: var(--serif); font-size: 28px; font-weight: 500; text-align: center; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.3px; }
.tsp-wn-intro { font-size: 14px; color: var(--ink3); line-height: 1.8; text-align: center; max-width: 360px; margin: 0 auto 40px; font-weight: 400; }

.tsp-timeline { position: relative; padding: 0 0 0 56px; margin-bottom: 36px; }
.tsp-timeline::before { content: ''; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, var(--sage), var(--amber) 33%, var(--forest) 66%, var(--ink)); opacity: .3; }
.tsp-tp { position: relative; padding: 20px 22px; margin-bottom: 12px; background: #fff; border-radius: var(--rs); box-shadow: 0 2px 12px rgba(0,0,0,.04); border-left: 3px solid; }
.tsp-tp.p1 { border-left-color: var(--sage); }
.tsp-tp.p2 { border-left-color: var(--amber); }
.tsp-tp.p3 { border-left-color: var(--forest); }
.tsp-tp.p4 { border-left-color: var(--ink); }
.tsp-tp-icon { position: absolute; left: -48px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 8px rgba(0,0,0,.06); z-index: 1; }
.tsp-tp-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tsp-tp.p1 .tsp-tp-icon svg { stroke: var(--sage); }
.tsp-tp.p2 .tsp-tp-icon svg { stroke: var(--amber); }
.tsp-tp.p3 .tsp-tp-icon svg { stroke: var(--forest); }
.tsp-tp.p4 .tsp-tp-icon svg { stroke: var(--ink); }
.tsp-tp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 10px; }
.tsp-tp-days { font-family: var(--mono); font-size: 10px; color: var(--ink4); letter-spacing: 1.2px; font-weight: 500; }
.tsp-tp-tag { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; }
.tsp-tp.p1 .tsp-tp-tag { color: var(--sage); }
.tsp-tp.p2 .tsp-tp-tag { color: var(--amber); }
.tsp-tp.p3 .tsp-tp-tag { color: var(--forest); }
.tsp-tp.p4 .tsp-tp-tag { color: var(--ink); }
.tsp-tp-title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; letter-spacing: -.2px; }
.tsp-tp-desc { font-size: 13px; color: var(--ink3); line-height: 1.75; }

.tsp-consistency { background: var(--dark); color: #fff; border-radius: var(--r); padding: 32px 28px; text-align: center; position: relative; overflow: hidden; }
.tsp-consistency::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(196,162,101,.06), transparent 55%); pointer-events: none; }
.tsp-cc-ey { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; font-weight: 500; position: relative; }
.tsp-cc-t { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.3; margin-bottom: 14px; letter-spacing: -.2px; position: relative; }
.tsp-cc-t i { font-style: italic; color: var(--amber); font-weight: 400; }
.tsp-cc-d { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; max-width: 340px; margin: 0 auto; position: relative; }

/* =============================================================================
   Actives (dark section) — ingredients strip
   ============================================================================= */

.tsp-actives { background: var(--dark); padding: 48px 0 40px; position: relative; overflow: hidden; color: #fff; }
.tsp-actives::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(45,90,61,.06), transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(196,162,101,.04), transparent 50%); pointer-events: none; }
.tsp-actives-head { padding: 0 24px 22px; position: relative; }
.tsp-actives-ey { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; font-weight: 500; }
.tsp-actives-title { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.4px; margin-bottom: 12px; color: #fff; }
.tsp-actives-sub { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.75; max-width: 340px; }
.tsp-actives-sub b { color: var(--amber); font-weight: 500; }
.tsp-actives-scroll { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 24px 8px; position: relative; }
.tsp-actives-scroll::-webkit-scrollbar { display: none; }
.tsp-act-c { min-width: 170px; max-width: 180px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: var(--rs); overflow: hidden; flex-shrink: 0; }
.tsp-act-c-img { width: 100%; height: 110px; overflow: hidden; position: relative; }
.tsp-act-c-img img { width: 100%; height: 100%; object-fit: cover; }
.tsp-act-c-body { padding: 14px 14px 16px; }
.tsp-act-c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 4px; }
.tsp-act-c-name { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.25; color: #fff; }
.tsp-act-c-badge { font-size: 7px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.tsp-act-c-badge.primary { background: rgba(45,90,61,.3); color: #8FCC9F; }
.tsp-act-c-badge.stability { background: rgba(196,162,101,.25); color: #D4B878; }
.tsp-act-c-badge.control { background: rgba(139,115,195,.2); color: #B8A4DB; }
.tsp-act-c-badge.protect { background: rgba(122,155,132,.25); color: #9BB8A3; }
.tsp-act-c-desc { font-size: 11px; color: rgba(255,255,255,.45); line-height: 1.55; }
.tsp-actives-count { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; margin-top: 4px; }
.tsp-actives-count-v { font-family: var(--serif); font-size: 18px; color: #fff; font-weight: 500; }
.tsp-actives-count-l { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .5px; }

/* =============================================================================
   Last order + Product cards
   ============================================================================= */

.tsp-lo-sec { background: var(--bg); padding: 40px 24px 24px; }
.tsp-sec-label { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--ink4); font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.tsp-sec-label::after { content: ''; flex: 1; height: 1px; background: var(--ink5); opacity: .3; }
.tsp-lo-card { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.03); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.tsp-lo-number { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; margin-bottom: 4px; color: var(--ink2); }
.tsp-lo-date { font-size: 12px; color: var(--ink4); }
.tsp-lo-items { font-size: 12px; color: var(--ink3); margin-top: 8px; line-height: 1.6; }
.tsp-lo-status { font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 7px 14px; border-radius: 100px; white-space: nowrap; }
.tsp-lo-status.completed,
.tsp-lo-status.delivered { background: var(--forest-l); color: var(--forest); }
.tsp-lo-status.processing,
.tsp-lo-status.on-hold { background: var(--amber-l); color: #8B7340; }

.tsp-prod-sec { background: var(--bg); padding: 8px 24px 40px; }
.tsp-pcard { background: #fff; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.03); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.tsp-pcard.no-detail { cursor: default; }
.tsp-pcard:not(.no-detail):active { transform: scale(.99); }
.tsp-pcard-sum { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.tsp-pcard-img { width: 68px; height: 68px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--cream); }
.tsp-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tsp-pcard-info { flex: 1; min-width: 0; }
.tsp-pcard-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsp-pcard-role { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--forest); font-weight: 700; }
.tsp-pcard-stage { font-size: 10px; color: var(--ink4); margin-top: 4px; font-style: italic; font-family: var(--serif); }
.tsp-pcard-arr { color: var(--ink5); font-size: 14px; flex-shrink: 0; margin-left: 4px; }

/* =============================================================================
   Product detail overlay (mobile: fullscreen)
   ============================================================================= */

.tsp-pd-overlay { position: fixed; inset: 0; z-index: 200; background: var(--bg); overflow-y: auto;
  -webkit-overflow-scrolling: touch; opacity: 0; transform: scale(.96); transition: all .35s cubic-bezier(.16,1,.3,1);
  pointer-events: none; }
.tsp-pd-overlay.on { opacity: 1; transform: scale(1); pointer-events: auto; }
.tsp-pd-inner { max-width: 480px; margin: 0 auto; }
.tsp-pd-close { position: sticky; top: 0; z-index: 10; padding: 16px 20px; display: flex; justify-content: flex-end; }
.tsp-pd-close-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink3); backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tsp-pd-photo { width: 100%; aspect-ratio: 1/1; overflow: hidden; position: relative; }
.tsp-pd-photo img { width: 100%; height: 100%; object-fit: cover; }
.tsp-pd-photo-grad { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.tsp-pd-photo-tag { position: absolute; top: 16px; left: 16px; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 100px; backdrop-filter: blur(8px); font-weight: 500; }

.tsp-pd-body { padding: 0 28px 120px; margin-top: -24px; position: relative; }
.tsp-pd-ey { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 600; margin-bottom: 12px; }
.tsp-pd-h { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; margin-bottom: 8px; letter-spacing: -.3px; }
.tsp-pd-line { font-size: 13px; color: var(--ink4); margin-bottom: 14px; }
.tsp-pd-role { display: inline-block; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; color: var(--forest); background: var(--forest-l); padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; }

.tsp-pd-sci { display: flex; gap: 10px; margin-bottom: 28px; }
.tsp-pd-sc { flex: 1; background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--rs); padding: 22px 16px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.tsp-pd-sc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.tsp-pd-sc.forest::before { background: var(--forest); }
.tsp-pd-sc.amber::before { background: var(--amber); }
.tsp-pd-sc-v { font-family: var(--serif); font-size: 34px; font-weight: 500; margin-bottom: 4px; line-height: 1; }
.tsp-pd-sc-l { font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink4); font-weight: 500; }
.tsp-pd-sc-d { font-size: 10px; color: var(--ink4); margin-top: 6px; line-height: 1.4; }

.tsp-pd-journey { background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--r); padding: 28px 22px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-pd-jt { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.tsp-pd-jt::after { content: ''; flex: 1; height: 1px; background: var(--forest-l); }
.tsp-jm { display: flex; gap: 16px; padding: 16px 0; }
.tsp-jm + .tsp-jm { border-top: 1px solid rgba(0,0,0,.05); }
.tsp-jm-day { width: 48px; flex-shrink: 0; text-align: center; }
.tsp-jm-dn { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.tsp-jm-dl { font-size: 8px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink5); margin-top: 2px; }
.tsp-jm-body { flex: 1; }
.tsp-jm-t { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.tsp-jm-s { font-size: 12px; color: var(--ink4); line-height: 1.6; }
.tsp-jm-st { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.tsp-jm-st svg { width: 12px; height: 12px; }
.tsp-jm-st.done { background: var(--forest-l); color: var(--forest); }
.tsp-jm-st.soon { background: var(--amber-l); color: var(--amber); }
.tsp-jm-st.future { background: rgba(0,0,0,.03); color: var(--ink5); }
.tsp-jm-reassure { background: rgba(196,162,101,.06); border-left: 2px solid var(--amber); padding: 14px 16px; margin-top: 16px; border-radius: 0 var(--rx) var(--rx) 0; }
.tsp-jm-reassure p { font-size: 12px; color: var(--ink3); line-height: 1.7; font-style: italic; font-family: var(--serif); }

.tsp-pd-sl { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tsp-pd-sl::after { content: ''; flex: 1; height: 1px; background: var(--forest-l); }

.tsp-ing-scroll { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -28px; padding: 0 28px 8px; }
.tsp-ing-scroll::-webkit-scrollbar { display: none; }
.tsp-ing-c { min-width: 180px; max-width: 200px; background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--rs); overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.tsp-ing-c-img { width: 100%; height: 110px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--cream); }
.tsp-ing-c-img img { width: 100%; height: 100%; object-fit: cover; }
.tsp-ing-c-body { padding: 14px 16px 16px; }
.tsp-ing-c-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 4px; }
.tsp-ing-c-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.tsp-ing-c-desc { font-size: 11px; color: var(--ink4); line-height: 1.55; }
.tsp-ing-c-badge { font-size: 7px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 3px 8px; border-radius: 100px; white-space: nowrap; }
.tsp-ing-c-badge.primary { background: var(--forest-l); color: var(--forest); }
.tsp-ing-c-badge.stability { background: var(--amber-l); color: #8B7340; }
.tsp-ing-c-badge.control { background: #EDE8F5; color: #5B4A8A; }
.tsp-ing-c-badge.protect { background: #E8F0EB; color: #3D7A54; }

.tsp-pd-usage { background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-us { display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; }
.tsp-us + .tsp-us { border-top: 1px solid rgba(0,0,0,.05); }
.tsp-us-n { width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.tsp-us-t { font-size: 13px; color: var(--ink2); line-height: 1.7; padding-top: 5px; flex: 1; }

.tsp-duk { background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--rs); margin-bottom: 6px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.02); }
.tsp-duk-q { padding: 16px 18px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; justify-content: space-between; align-items: center; -webkit-tap-highlight-color: transparent; color: var(--ink); }
.tsp-duk-q::after { content: '+'; font-size: 16px; color: var(--ink5); transition: transform .2s; font-weight: 300; }
.tsp-duk-q.on::after { transform: rotate(45deg); }
.tsp-duk-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: all .3s ease; }
.tsp-duk-a.on { padding: 0 18px 16px; max-height: 400px; }
.tsp-duk-a p { font-size: 12px; color: var(--ink3); line-height: 1.7; }

.tsp-help-cta { background: #fff; border: 1px solid rgba(45,90,61,.1); border-radius: var(--r); padding: 28px 24px; margin-top: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-help-cta-t { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 8px; font-weight: 500; text-align: center; }
.tsp-help-cta-p { font-size: 12px; color: var(--ink4); margin-bottom: 20px; line-height: 1.7; text-align: center; }
.tsp-help-form input, .tsp-help-form textarea { width: 100%; padding: 13px 16px; border: 1px solid rgba(0,0,0,.08); font-size: 13px; font-family: var(--sans); background: var(--cream); margin-bottom: 10px; outline: none; border-radius: var(--rx); transition: border-color .2s; color: var(--ink); }
.tsp-help-form input:focus, .tsp-help-form textarea:focus { border-color: var(--forest); }
.tsp-help-form textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* =============================================================================
   Progress tab
   ============================================================================= */

.tsp-prog-hero { background: linear-gradient(178deg, #0B0A08, #121110); padding: 32px 24px 40px; color: #E8E4E0; position: relative; overflow: hidden; }
.tsp-prog-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(45,90,61,.05), transparent 55%); pointer-events: none; }
.tsp-prog-content { background: var(--bg); padding: 24px 24px 100px; color: var(--ink); position: relative; }
.tsp-th-ey { font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase; color: rgba(255,255,255,.3); font-weight: 500; margin-bottom: 10px; position: relative; z-index: 1; }
.tsp-th-h { font-family: var(--serif); font-size: 32px; color: #fff; font-weight: 500; line-height: 1.1; letter-spacing: -.5px; position: relative; z-index: 1; }
.tsp-th-p { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 10px; position: relative; z-index: 1; line-height: 1.75; max-width: 360px; }

.tsp-insight { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--r); padding: 28px 24px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-insight-ey { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 700; margin-bottom: 14px; }
.tsp-insight-t { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.45; margin-bottom: 12px; letter-spacing: -.2px; }
.tsp-insight-p { font-size: 13px; color: var(--ink3); line-height: 1.8; }
.tsp-insight-p b { color: var(--ink); font-weight: 600; }

.tsp-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.tsp-sc { background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--r); padding: 24px 16px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-sc-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 12px; }
.tsp-sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tsp-sc-ring-bg { fill: none; stroke: rgba(0,0,0,.06); stroke-width: 4; }
.tsp-sc-ring-fill { fill: none; stroke-width: 4; stroke-linecap: round; animation: tsp-drawRing 1.8s cubic-bezier(.16,1,.3,1) .3s both; }
.tsp-sc-ring-fill.forest { stroke: var(--forest); }
.tsp-sc-ring-fill.amber { stroke: var(--amber); }
.tsp-sc-ring-fill.sage { stroke: var(--sage); }
.tsp-sc-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink); }
.tsp-sc-label { font-size: 11px; color: var(--ink4); margin-bottom: 4px; font-weight: 500; }
.tsp-sc-micro { font-size: 10px; color: var(--forest); line-height: 1.5; margin-top: 6px; font-family: var(--serif); font-style: italic; font-weight: 500; }

.tsp-predict { background: linear-gradient(145deg, rgba(196,162,101,.12), rgba(196,162,101,.03)); border: 1px solid rgba(196,162,101,.25); border-radius: var(--r); padding: 28px 22px; margin-bottom: 16px; position: relative; overflow: hidden; }
.tsp-predict::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(196,162,101,.05), transparent 65%); pointer-events: none; }
.tsp-predict-ey { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: #8B7340; font-weight: 700; margin-bottom: 14px; position: relative; }
.tsp-predict-t { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 20px; letter-spacing: -.2px; position: relative; }
.tsp-predict-rows { display: flex; flex-direction: column; gap: 14px; position: relative; }
.tsp-predict-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.06); gap: 12px; }
.tsp-predict-row:last-child { border-bottom: none; }
.tsp-predict-label { font-size: 12px; color: var(--ink3); font-weight: 500; }
.tsp-predict-val { font-family: var(--mono); font-size: 13px; color: #8B7340; font-weight: 600; white-space: nowrap; }
.tsp-predict-footer { font-size: 11px; color: var(--ink4); line-height: 1.7; margin-top: 20px; text-align: center; font-style: italic; font-family: var(--serif); position: relative; }

.tsp-bench { background: linear-gradient(145deg, var(--forest), var(--forest-d)); color: #fff; border-radius: var(--r); padding: 32px 28px; margin-bottom: 16px; text-align: center; position: relative; overflow: hidden; }
.tsp-bench-big { font-family: var(--serif); font-size: 56px; font-weight: 400; color: var(--sage); line-height: 1; margin-bottom: 10px; letter-spacing: -1px; }
.tsp-bench-p { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.8; position: relative; }
.tsp-bench-p b { color: #fff; font-weight: 600; }

.tsp-sci-note { background: #fff; border: 1px solid rgba(0,0,0,.04); border-radius: var(--r); padding: 32px 26px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-sci-ey { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 700; margin-bottom: 16px; }
.tsp-sci-q { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink2); line-height: 1.65; margin-bottom: 22px; font-weight: 400; letter-spacing: -.1px; }
.tsp-sci-auth { display: flex; align-items: center; gap: 12px; }
.tsp-sci-av { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.tsp-sci-n { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .2px; }
.tsp-sci-r { font-size: 10px; color: var(--ink4); margin-top: 2px; }

.tsp-normalize { background: var(--amber-l); border-left: 3px solid var(--amber); border-radius: 0 var(--rx) var(--rx) 0; padding: 20px 24px; margin-bottom: 16px; }
.tsp-normalize-t { font-family: var(--serif); font-size: 14px; color: var(--ink2); line-height: 1.7; font-style: italic; font-weight: 500; }

.tsp-srt { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--r); padding: 22px 24px; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; margin-bottom: 16px; transition: all .2s; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-srt:active { background: var(--cream); }
.tsp-srt-ey { font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 10px; }
.tsp-srt-t { font-family: var(--serif); font-size: 17px; color: var(--ink2); line-height: 1.4; margin-bottom: 6px; font-weight: 400; }
.tsp-srt-p { font-size: 11px; color: var(--ink4); line-height: 1.6; }

.tsp-sr-card { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--r); padding: 28px 24px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-sr-title { font-family: var(--serif); font-size: 22px; color: var(--ink); text-align: center; margin-bottom: 6px; font-weight: 500; }
.tsp-sr-sub { font-size: 12px; color: var(--ink4); text-align: center; margin-bottom: 24px; font-style: italic; font-family: var(--serif); }
.tsp-sr-scale { margin-bottom: 20px; }
.tsp-sr-sh { display: flex; justify-content: space-between; margin-bottom: 8px; }
.tsp-sr-sl { font-size: 13px; color: var(--ink3); font-weight: 500; }
.tsp-sr-sv { font-family: var(--serif); font-size: 22px; color: var(--forest); font-weight: 600; }
.tsp-sr-scale input[type=range] { width: 100%; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(0,0,0,.08); border-radius: 2px; outline: none; }
.tsp-sr-scale input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--forest); cursor: pointer; box-shadow: 0 2px 12px rgba(45,90,61,.3); }
.tsp-sr-scale input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: none; border-radius: 50%; background: var(--forest); cursor: pointer; }
.tsp-sr-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--ink5); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

.tsp-tl-sec { margin-top: 8px; }
.tsp-tl { position: relative; padding-left: 24px; margin-top: 16px; }
.tsp-tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: rgba(0,0,0,.1); }
.tsp-tl-i { position: relative; padding-bottom: 20px; }
.tsp-tl-i:last-child { padding-bottom: 0; }
.tsp-tl-dot { position: absolute; left: -24px; top: 5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--forest); background: var(--bg); }
.tsp-tl-i:first-child .tsp-tl-dot { background: var(--forest); }
.tsp-tl-date { font-family: var(--mono); font-size: 10px; color: var(--ink4); }
.tsp-tl-text { font-size: 12px; color: var(--ink3); line-height: 1.6; margin-top: 2px; }
.tsp-tl-text b { color: var(--ink); font-weight: 600; }

/* =============================================================================
   Goals block
   ============================================================================= */

.tsp-goals { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: var(--r); padding: 24px 22px; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-goals-ey { font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--forest); font-weight: 700; margin-bottom: 12px; }
.tsp-goals-title { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.35; margin-bottom: 8px; letter-spacing: -.2px; color: var(--ink); }
.tsp-goals-intro { font-size: 13px; color: var(--ink3); line-height: 1.7; margin-bottom: 20px; }
.tsp-goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.tsp-gg { background: var(--cream); border-radius: var(--rs); padding: 16px 14px; text-align: center; position: relative; border: 1px solid transparent; }
.tsp-gg.active { background: var(--forest-l); border-color: rgba(45,90,61,.15); }
.tsp-gg.gap { background: #fff; border-color: rgba(196,162,101,.2); }
.tsp-gg-icon { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tsp-gg.active .tsp-gg-icon { background: var(--forest); color: #fff; }
.tsp-gg.gap .tsp-gg-icon { background: var(--amber-l); color: var(--amber); }
.tsp-gg-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tsp-gg-label { font-size: 10.5px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 4px; }
.tsp-gg-status { font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.tsp-gg.active .tsp-gg-status { color: var(--forest); }
.tsp-gg.gap .tsp-gg-status { color: var(--amber); }

.tsp-gap-rec { background: linear-gradient(145deg, rgba(196,162,101,.1), rgba(196,162,101,.02)); border: 1px solid rgba(196,162,101,.22); border-radius: var(--r); padding: 16px; display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.tsp-gap-rec-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--cream); }
.tsp-gap-rec-img img { width: 100%; height: 100%; object-fit: cover; }
.tsp-gap-rec-body { flex: 1; min-width: 0; }
.tsp-gap-rec-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.tsp-gap-rec-why { font-size: 7.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #8B7340; font-weight: 700; background: var(--amber-l); padding: 3px 8px; border-radius: 100px; }
.tsp-gap-rec-name { font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tsp-gap-rec-desc { font-size: 11px; color: var(--ink4); line-height: 1.5; margin-bottom: 8px; }
.tsp-gap-rec-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tsp-gap-rec-now { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--forest); }
.tsp-gap-rec-was { font-size: 11px; color: var(--ink5); text-decoration: line-through; }
.tsp-gap-rec-disc { font-size: 9px; letter-spacing: .5px; font-weight: 700; color: var(--amber); background: var(--amber-l); padding: 2px 7px; border-radius: 100px; text-transform: uppercase; }
.tsp-gap-rec-add { background: var(--ink); color: #fff; border: none; padding: 11px 14px; font-size: 9px; letter-spacing: 1px; font-weight: 700; cursor: pointer; border-radius: var(--rx); white-space: nowrap; font-family: var(--sans); flex-shrink: 0; text-transform: uppercase; }
.tsp-gap-rec-add:active { transform: scale(.95); }

.tsp-goals-social { background: var(--forest-xl); border-left: 3px solid var(--forest); border-radius: 0 var(--rx) var(--rx) 0; padding: 16px 20px; margin-top: 14px; }
.tsp-goals-social p { font-size: 12px; color: var(--ink2); line-height: 1.65; font-style: italic; font-family: var(--serif); }
.tsp-goals-social b { color: var(--forest); font-weight: 600; font-style: normal; }

/* =============================================================================
   Tavo kelias (archive)
   ============================================================================= */

.tsp-tab-header { background: linear-gradient(178deg, #0B0A08, #121110); padding: 32px 24px 40px; position: relative; overflow: hidden; }
.tsp-tab-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(196,162,101,.04), transparent 50%); pointer-events: none; }

.tsp-archive { background: var(--bg); padding: 16px 24px 100px; }
.tsp-oc { background: #fff; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-oc-header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,.04); gap: 10px; }
.tsp-oc-number { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.tsp-oc-date { font-size: 11px; color: var(--ink4); margin-top: 2px; }
.tsp-oc-status { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.tsp-oc-status.completed { background: var(--forest-l); color: var(--forest); }
.tsp-oc-status.processing,
.tsp-oc-status.on-hold { background: var(--amber-l); color: #8B7340; }

.tsp-oc-hint { padding: 12px 20px 0; font-size: 11px; color: var(--ink4); font-style: italic; font-family: var(--serif); line-height: 1.5; }
.tsp-oc-prods { padding: 8px 20px 16px; }
.tsp-oc-prod { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.04); }
.tsp-oc-prod:last-child { border-bottom: none; }
.tsp-oc-prod.oos { opacity: .5; }
.tsp-oc-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink5); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; -webkit-tap-highlight-color: transparent; background: #fff; margin-top: 10px; }
.tsp-oc-check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity .15s; stroke-linecap: round; stroke-linejoin: round; }
.tsp-oc-check.on { background: var(--forest); border-color: var(--forest); }
.tsp-oc-check.on svg { opacity: 1; }
.tsp-oc-check.disabled { cursor: not-allowed; background: var(--ink5); border-color: var(--ink5); }
.tsp-oc-prod-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--cream); }
.tsp-oc-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.tsp-oc-prod-body { flex: 1; min-width: 0; }
.tsp-oc-prod-name { font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.tsp-oc-prod-sub { font-size: 11px; color: var(--ink4); }
.tsp-oc-prod-oos { display: inline-block; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink4); background: rgba(0,0,0,.06); padding: 2px 7px; border-radius: 100px; margin-left: 6px; }
.tsp-oc-prod-prices { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.tsp-oc-prod-now { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--forest); }
.tsp-oc-prod-was { font-size: 11px; color: var(--ink5); text-decoration: line-through; }
.tsp-oc-prod-disc { font-size: 9px; letter-spacing: .5px; font-weight: 700; color: var(--amber); background: var(--amber-l); padding: 2px 7px; border-radius: 100px; text-transform: uppercase; }

.tsp-oc-summary { padding: 16px 20px; background: var(--cream); border-top: 1px solid rgba(0,0,0,.04); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tsp-oc-summary-label { font-size: 11px; color: var(--ink4); font-weight: 500; }
.tsp-oc-summary-total { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }

.tsp-oc-cta { padding: 14px 20px; background: var(--forest); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s; border: none; width: 100%; color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.tsp-oc-cta:hover { background: var(--forest-d); }
.tsp-oc-cta[disabled] { background: var(--ink5); cursor: not-allowed; }
.tsp-oc-repeat { padding: 12px 20px; background: var(--dark); text-align: center; cursor: pointer; border: none; width: 100%; color: #fff; font-family: var(--sans); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.tsp-oc-repeat:hover { background: var(--dark2); }

/* =============================================================================
   Profile
   ============================================================================= */

.tsp-profile { background: var(--bg); padding: 16px 24px 100px; }
.tsp-pf-card { background: #fff; border-radius: var(--r); padding: 22px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.tsp-pf-loyalty { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.tsp-pf-loyalty-l p:first-child { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.tsp-pf-loyalty-l p:last-child { font-size: 12px; color: var(--ink4); }
.tsp-pf-loyalty-code { font-family: var(--mono); font-size: 14px; font-weight: 600; letter-spacing: 3px; padding: 10px 18px; border: 1.5px dashed var(--amber); color: var(--amber); cursor: pointer; border-radius: var(--rx); background: var(--amber-l); }
.tsp-pf-ref { background: linear-gradient(170deg, var(--dark), var(--dark2)); color: #E8E4E0; padding: 36px 26px; text-align: center; border-radius: var(--r); margin-bottom: 12px; position: relative; overflow: hidden; }
.tsp-pf-ref h3 { font-family: var(--serif); font-size: 26px; color: #fff; margin-bottom: 12px; font-weight: 400; letter-spacing: -.3px; }
.tsp-pf-ref p { font-size: 13px; color: rgba(255,255,255,.35); margin-bottom: 24px; line-height: 1.8; }
.tsp-pf-ref-box { background: rgba(255,255,255,.04); padding: 22px; border-radius: var(--rs); border: 1px solid rgba(255,255,255,.05); }
.tsp-pf-ref-code { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: 6px; color: var(--amber); margin-bottom: 12px; }
.tsp-pf-ref button { font-family: var(--sans); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); background: rgba(196,162,101,.1); padding: 12px 28px; cursor: pointer; border: none; font-weight: 700; border-radius: var(--rx); }
.tsp-pf-logout { text-align: center; padding: 28px 0; }
.tsp-pf-logout button { font-family: var(--sans); background: none; border: none; color: var(--ink5); font-size: 11px; cursor: pointer; letter-spacing: 1px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.tsp-pf-logout button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================================
   Tablet (768–1023px): slight widening, same single-column layout
   ============================================================================= */

@media (min-width: 768px) {
  .tsp-app { max-width: 640px; }
  .tsp-bnav { max-width: 640px; }
  .tsp-pd-inner { max-width: 640px; }
}

/* =============================================================================
   Desktop (≥1024px): sidebar layout + top pill nav
   ============================================================================= */

@media (min-width: 1024px) {
  .tsp-app { max-width: 1160px; padding: 24px 32px 48px; }

  /* Swap bottom nav for a top pill nav. */
  .tsp-bnav {
    position: sticky; top: 24px; left: auto; transform: none; max-width: 100%;
    background: rgba(255,255,255,.9); border-radius: 100px; padding: 8px 10px;
    border: 1px solid rgba(0,0,0,.05); box-shadow: 0 6px 24px rgba(0,0,0,.06);
    width: fit-content; margin: 0 auto 24px; z-index: 150;
  }
  .tsp-bnav-i { flex: 0 0 auto; flex-direction: row; padding: 10px 18px; gap: 10px; border-radius: 100px; }
  .tsp-bnav-i.on { background: var(--forest); color: #fff; }
  .tsp-bnav-i.on .tsp-bnav-ic { background: transparent; }
  .tsp-bnav-ic { width: 22px; height: 22px; border-radius: 8px; }
  .tsp-bnav-ic svg { width: 16px; height: 16px; }
  .tsp-bnav-l { font-size: 11px; letter-spacing: .5px; text-transform: none; font-weight: 600; }

  /* Content grid: 60/40 split, hero/progress/archive on the left, sticky sidebar on the right. */
  .tsp-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .tsp-layout-wide { grid-template-columns: 1fr; } /* for full-width tabs like progress-hero */
  .tsp-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
  .tsp-side-card { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }

  /* Hero on desktop: wider, flat. Journey rings horizontal row. */
  .tsp-hero { min-height: 520px; border-radius: var(--r); overflow: hidden; }
  .tsp-hero-body { padding: 64px 48px; max-width: 900px; margin: 0 auto; }
  .tsp-hero-name { font-size: 72px; }
  .tsp-hero-rings { gap: 56px; }
  .tsp-hero-scroll { display: none; } /* no "scroll" hint on desktop */

  /* Product cards: 2 per row on desktop. */
  .tsp-prod-sec { padding: 8px 0 40px; }
  .tsp-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Actives carousel → horizontal grid (desktop doesn't need horiz-scroll). */
  .tsp-actives { border-radius: var(--r); padding: 48px; }
  .tsp-actives-head { padding: 0 0 22px; }
  .tsp-actives-scroll { padding: 0; overflow: visible; flex-wrap: wrap; gap: 16px; }
  .tsp-act-c { min-width: 0; flex: 1 1 180px; max-width: 220px; }
  .tsp-actives-count { padding: 20px 0 0; }

  /* Product detail: modal instead of fullscreen. */
  .tsp-pd-overlay { background: rgba(20,19,17,.6); padding: 48px; backdrop-filter: blur(6px); }
  .tsp-pd-inner { max-width: 720px; background: var(--bg); border-radius: var(--r); overflow: hidden; margin: 0 auto; box-shadow: 0 40px 80px rgba(0,0,0,.3); }

  /* Scores: 4 across instead of 2. */
  .tsp-scores { grid-template-columns: repeat(4, 1fr); }

  /* Goals grid: stays 2x2 but slightly larger cells. */
  .tsp-goals-grid { grid-template-columns: repeat(4, 1fr); }

  /* Login page: limit gradient to viewport center. */
  .tsp-login { min-height: 80vh; border-radius: var(--r); max-width: 520px; margin: 48px auto; }
}
