:host,
lg2-tallikaveri-bootstrap {
  --lg-blue: #079bd3;
  --lg-blue-hover: #0788ba;
  --lg-blue-light: #4bb9e6;
  --lg-bg: #40515d;
  --lg-header: #24333d;
  --lg-surface: #4a5c69;
  --lg-surface-2: #526572;
  --lg-text: #ffffff;
  --lg-muted: #b8c3ca;
  --lg-border: rgba(255,255,255,.10);
  --lg-success: #64d38a;
  --lg-warning: #d8ad55;
  --lg-danger: #ff7777;
  --lg-radius: 14px;
  --lg-nav-height: 68px;
  --lg-content-width: 820px;

  display: block;
  width: 100%;
  max-width: var(--lg-content-width);
  margin-inline: auto;
  color: var(--lg-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* =========================================================
   PAGE + SECTION RHYTHM — same geometry as booking/demo
   ========================================================= */

.tk-page {
  width: 100%;
  padding: 24px 16px calc(var(--lg-nav-height) + 52px);
}

.tk-section {
  position: relative;
  margin-bottom: 112px;
  padding-top: 20px;
  scroll-margin-top: 26px;
}

.tk-section:first-child {
  padding-top: 0;
}

.tk-section + .tk-section::before {
  content: "";
  position: absolute;
  top: -56px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--lg-blue) 0 92px,
    rgba(255,255,255,.15) 92px 100%
  );
}

.tk-section-kicker {
  margin: 0 0 8px;
  color: #d6dde1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tk-section-title {
  margin: 0 0 8px;
  color: var(--lg-text);
  font-size: clamp(26px, 6vw, 30px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.tk-section-intro {
  margin: 0 0 18px;
  color: var(--lg-muted);
  line-height: 1.55;
}

/* =========================================================
   BADGES
   ========================================================= */

.tk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--lg-text);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tk-badge--ok {
  border-color: rgba(100,211,138,.28);
  background: rgba(100,211,138,.10);
  color: #d7f7e1;
}

.tk-badge--neutral {
  color: var(--lg-muted);
}

/* =========================================================
   SUMMARY — exact demo card composition
   ========================================================= */

.tk-summary-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.tk-summary-title {
  margin: 0;
  color: var(--lg-text);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.035em;
}

.tk-summary-card,
.tk-coupon,
.tk-visit-card,
.tk-member-card {
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius);
  background: var(--lg-surface);
}

.tk-summary-card {
  overflow: hidden;
}

.tk-summary-main {
  padding: 20px 18px 18px;
}

.tk-summary-lead {
  color: var(--lg-text);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-transform: capitalize;
}

.tk-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0;
}

.tk-stat {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}

.tk-stat dt {
  display: block;
  margin: 0 0 3px;
  color: var(--lg-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tk-stat dd {
  display: block;
  margin: 0;
  color: var(--lg-text);
  font-size: 24px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.tk-next-box {
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(7,155,211,.38);
  border-radius: 10px;
  background: rgba(7,155,211,.12);
}

.tk-next-box small {
  display: block;
  color: #cfeef9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tk-next-box strong {
  display: block;
  margin-top: 3px;
  color: var(--lg-text);
  font-size: 18px;
}

.tk-summary-footer {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.08);
}

.tk-summary-footer p {
  margin: 0;
  color: rgba(255,255,255,.60);
  font-size: 12.5px;
  line-height: 1.5;
}

.tk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* =========================================================
   COUPONS
   ========================================================= */

.tk-coupons {
  display: grid;
  gap: 10px;
}

.tk-coupon {
  padding: 16px;
}

.tk-coupon-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--lg-text);
}

.tk-coupon-value {
  margin-top: 8px;
  color: var(--lg-text);
  font-size: 26px;
  font-weight: 850;
}

.tk-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.tk-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 8px;
  background: rgba(0,0,0,.10);
  color: var(--lg-text);
  font-weight: 800;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

.tk-coupon-note {
  margin: 10px 0 0;
}

.tk-history-group {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.tk-history-group .tk-coupon {
  opacity: .72;
}

/* =========================================================
   MONTHS + VISITS
   ========================================================= */

.tk-month-block + .tk-month-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.tk-month-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.tk-month-title {
  margin: 0;
  color: var(--lg-text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: capitalize;
}

.tk-month-meta {
  color: var(--lg-muted);
  font-size: 12px;
}

.tk-month-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.tk-month-stats .tk-stat dd {
  font-size: 20px;
}

.tk-subgroup {
  margin-top: 22px;
}

.tk-subtitle {
  margin: 0 0 10px;
  color: #d6dde1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tk-visits {
  display: grid;
  gap: 10px;
}

.tk-visit-card {
  padding: 15px;
}

.tk-visit-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.tk-visit-main {
  min-width: 0;
}

.tk-visit-main strong {
  display: block;
  color: var(--lg-text);
  font-size: 15px;
}

.tk-visit-time {
  display: block;
  margin-top: 3px;
  color: var(--lg-muted);
  font-size: 12.5px;
}

.tk-visit-points {
  margin-top: 10px;
  color: var(--lg-blue-light);
  font-weight: 800;
}

.tk-visit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =========================================================
   MEMBERSHIP
   ========================================================= */

.tk-member-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

.tk-member-card {
  padding: 15px;
}

.tk-member-card small {
  display: block;
  margin-bottom: 3px;
  color: var(--lg-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tk-member-card strong {
  display: block;
  color: var(--lg-text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tk-contract-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid var(--lg-border);
  border-radius: 11px;
  background: var(--lg-surface);
}

.tk-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--lg-text);
}

.tk-toggle input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--lg-blue);
}

.tk-toggle-copy {
  min-width: 0;
}

.tk-toggle-copy strong,
.tk-toggle-copy > span {
  display: block;
}

.tk-toggle-copy > span {
  margin-top: 5px;
}

.tk-danger-zone {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.tk-confirm-panel {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255,119,119,.24);
  border-radius: 10px;
  background: rgba(255,119,119,.08);
}

.tk-confirm-panel p {
  margin: 0;
  color: #ffd7d7;
  font-size: 13px;
  line-height: 1.5;
}

.tk-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* =========================================================
   BUTTONS + UTILITIES
   ========================================================= */

.tk-button,
.tk-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tk-button {
  border: 1px solid var(--lg-blue);
  background: var(--lg-blue);
}

.tk-button--secondary,
.tk-secondary {
  border: 1px solid rgba(255,255,255,.10);
  background: var(--lg-surface-2);
}

.tk-button--link {
  margin-top: 12px;
}

.tk-danger {
  border-color: rgba(255,119,119,.45);
  background: rgba(255,119,119,.14);
  color: #ffd0d0;
}

.tk-refresh-helper {
  min-height: 34px;
  padding: 6px 10px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  color: var(--lg-muted);
  font-size: 12px;
  font-weight: 750;
}

.tk-button:disabled,
.tk-secondary:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.tk-muted {
  color: var(--lg-muted);
}

.tk-small {
  font-size: 12.5px;
}

.tk-status {
  color: rgba(255,255,255,.55);
  font-size: 11.5px;
}

.tk-message {
  margin: 16px 0 0;
  padding: 14px 15px;
  border: 1px solid var(--lg-border);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: var(--lg-muted);
}

.tk-message--review {
  border-color: rgba(216,173,85,.30);
  background: rgba(216,173,85,.10);
  color: #f0dfb1;
}

/* =========================================================
   FIXED BOTTOM NAVIGATION — 4 equal permanent items
   ========================================================= */

.tk-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: none;
}

.tk-nav-inner {
  width: min(100%,760px);
  height: var(--lg-nav-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: rgba(36,51,61,.97);
  box-shadow: 0 -12px 35px rgba(0,0,0,.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
}

.tk-nav-link {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--lg-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  user-select: none;
}

.tk-nav-link + .tk-nav-link {
  border-left: 1px solid rgba(255,255,255,.06);
}

.tk-nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26%;
  right: 26%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--lg-blue);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}

.tk-nav-link.is-active {
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(7,155,211,.13),
    transparent 80%
  );
}

.tk-nav-link.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.tk-nav-icon {
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tk-nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   RECOVERY / LINK REQUEST — retained from current production UX
   ========================================================= */

.tk-recovery {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(20px,4vw,32px);
  border: 1px solid rgba(7,155,211,.24);
  border-radius: 15px;
  background: linear-gradient(
    120deg,
    rgba(7,155,211,.10),
    rgba(7,155,211,.015)
  );
}

.tk-kicker {
  margin: 0 0 8px;
  color: #d6dde1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tk-title {
  margin: 0;
  color: #fff;
  font-size: clamp(32px,7vw,42px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.tk-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.tk-form input,
.tk-form select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(0,0,0,.09);
  color: #fff;
}

.tk-form input::placeholder {
  color: rgba(255,255,255,.48);
}

.tk-form select option {
  background: #28343e;
  color: #fff;
}

/* =========================================================
   FOCUS + HOVER
   ========================================================= */

.tk-button:focus-visible,
.tk-secondary:focus-visible,
.tk-nav-link:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(75,185,230,.75);
  outline-offset: 2px;
}

@media (hover:hover) and (pointer:fine) {
  .tk-button:hover:not(:disabled) {
    background: var(--lg-blue-hover);
    border-color: var(--lg-blue-hover);
  }

  .tk-secondary:hover:not(:disabled),
  .tk-button--secondary:hover:not(:disabled) {
    border-color: rgba(7,155,211,.50);
    background: rgba(7,155,211,.12);
    color: #fff;
  }

  .tk-danger:hover:not(:disabled) {
    border-color: rgba(255,119,119,.62);
    background: rgba(255,119,119,.22);
  }

  .tk-nav-link:hover {
    color: #fff;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width:769px) {
  :host,
  lg2-tallikaveri-bootstrap {
    --lg-nav-height: 72px;
  }

  .tk-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tk-nav-link {
    font-size: 10.5px;
  }
}

@media (max-width:640px) {
  .tk-summary-grid,
  .tk-month-stats,
  .tk-member-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tk-visit-top,
  .tk-coupon-top {
    flex-direction: column;
  }

  .tk-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tk-code-row .tk-button {
    width: 100%;
  }

  .tk-confirm-actions {
    flex-direction: column;
  }

  .tk-confirm-actions .tk-button,
  .tk-confirm-actions .tk-secondary {
    width: 100%;
  }
}

@media (max-width:480px) {
  .tk-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tk-summary-grid,
  .tk-month-stats,
  .tk-member-grid {
    grid-template-columns: 1fr;
  }

  .tk-nav-link {
    font-size: 9.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
