/* ============================================================================
   TestPulse14 — Enterprise Design System, Fluid Scaling & Pure White/Black Theme Engine
   - Typography: 'Poppins' (UI/Headings), 'IBM Plex Sans' (Numbers/Digit 1),
     'Baloo Da 2' & 'Anek Bangla' (Bengali)
   - Strict Mode Discipline:
     * Day Mode (html:not(.dark)) -> 100% Crisp White (#FFFFFF / #F8FAFC) surfaces, dark text (#09090B)
     * Dark Mode (html.dark)      -> 100% True Obsidian Black (#000000 / #0A0A0C) surfaces, white text (#FFFFFF)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700&family=Baloo+Da+2:wght@500;600;700;800&family=IBM+Plex+Sans:wght@500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #0d9488;
  --primary-hover: #0f766e;
  --secondary-color: #09090b;
  --accent-color: #0284c7;

  /* Pure White Day Mode Default Tokens */
  --bg-color: #ffffff;
  --surface-color: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-elevated: #ffffff;
  --card-surface: #ffffff;
  --row-hover-bg: #f4f4f5;
  --text-color: #09090b;
  --text-muted: #52525b;
  --border-color: #e4e4e7;

  --btn-radius: 10px;
  --card-radius: 16px;
  --font-scale: 1;
  --glass-blur: 16px;

  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

/* True Black Dark Mode Tokens */
html.dark {
  --bg-color: #000000 !important;
  --surface-color: #0a0a0c !important;
  --surface-subtle: #121216 !important;
  --surface-elevated: #16161c !important;
  --card-surface: #0a0a0c !important;
  --row-hover-bg: #14141a !important;
  --text-color: #ffffff !important;
  --text-muted: #a1a1aa !important;
  --border-color: #222228 !important;
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 16px 36px -6px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

html:not(.dark) {
  color-scheme: light;
}

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

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-color);
  color: var(--text-color);
}

body {
  margin: 0;
  font-family: 'Poppins', 'Baloo Da 2', 'Anek Bangla', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.16s ease, color 0.16s ease;
}

html[lang='bn'] body {
  font-family: 'Baloo Da 2', 'Anek Bangla', 'Poppins', serif;
  line-height: 1.5;
}

.english-only-panel {
  font-family: 'Poppins', 'IBM Plex Sans', monospace !important;
}

/* Crystal-Clear Digit "1" Numeric Typography */
.num-font {
  font-family: 'IBM Plex Sans', 'Baloo Da 2', monospace !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================================
   UNIFIED CONTAINER GEOMETRY (100% IDENTICAL LEFT/RIGHT EDGES IN EN & বাংলা)
   ============================================================================ */
.tp-container,
header > .max-w-7xl,
main .max-w-7xl,
footer > .max-w-7xl,
#top-announcement-banner > .max-w-7xl {
  width: 100% !important;
  max-width: min(96vw, var(--site-max-width, 1760px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(0.85rem, 2vw, 2rem) !important;
  padding-right: clamp(0.85rem, 2vw, 2rem) !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  .tp-container,
  header > .max-w-7xl,
  main .max-w-7xl,
  footer > .max-w-7xl,
  #top-announcement-banner > .max-w-7xl {
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

/* Responsive Wide Workspace Layout Grid (Sidebar + Full-Width Main Content) */
.ws-layout-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1.25rem !important;
  align-items: start !important;
}

@media (min-width: 768px) {
  .ws-layout-grid {
    grid-template-columns: 248px minmax(0, 1fr) !important;
    gap: 1.35rem !important;
  }
}

@media (min-width: 1024px) {
  .ws-layout-grid {
    grid-template-columns: 272px minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 1440px) {
  .ws-layout-grid {
    grid-template-columns: 292px minmax(0, 1fr) !important;
    gap: 1.75rem !important;
  }
}

.ws-layout-grid > aside,
.ws-layout-grid > main {
  grid-column: auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

/* ============================================================================
   SEGMENTED LANGUAGE SWITCHER (EN / বাংলা) & SEGMENTED THEME SWITCHER (DAY / DARK)
   ============================================================================ */
.tp-lang-segmented,
.tp-theme-segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 34px;
  width: 148px;
  min-width: 148px;
  padding: 3px;
  border-radius: var(--btn-radius, 10px);
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
  gap: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.tp-profile-dropdown .tp-theme-segmented,
.tp-profile-dropdown .tp-lang-segmented {
  display: inline-grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 148px !important;
  min-width: 148px !important;
  height: 34px !important;
}

.tp-segmented-full {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  height: 38px !important;
  padding: 3px !important;
}

.tp-lang-segmented:hover,
.tp-theme-segmented:hover {
  border-color: var(--primary-color);
}

.tp-lang-seg,
.tp-theme-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  width: 100%;
  padding: 0 8px;
  border-radius: calc(var(--btn-radius, 10px) - 3px);
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.tp-lang-seg.active,
.tp-theme-seg.active {
  background-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.32);
}

/* ============================================================================
   ENTERPRISE DATA TABLES & DARK-MODE-SAFE ROW HOVER
   ============================================================================ */
.tp-table-row {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.12s ease;
}

.tp-table-row:hover,
html:not(.dark) tbody tr:hover {
  background-color: #f8fafc !important;
}

html.dark .tp-table-row:hover,
html.dark tbody tr:hover,
html.dark tr.hover\:bg-slate-50:hover,
html.dark tr.hover\:bg-slate-50\/70:hover,
html.dark tr.hover\:bg-slate-50\/80:hover,
html.dark .hover\:bg-slate-50:hover,
html.dark .hover\:bg-slate-50\/70:hover,
html.dark .hover\:bg-slate-50\/80:hover,
html.dark .hover\:bg-slate-100:hover {
  background-color: #14141a !important;
  color: #ffffff !important;
}

/* ============================================================================
   FLUID SCALING & ZERO TWO-LINE TEXT WRAPPING (clamp + nowrap)
   ============================================================================ */
.btn-fluid,
.tab-fluid,
.badge-fluid,
.nav-item-fluid {
  white-space: nowrap !important;
  font-size: clamp(0.74rem, 1.5vw, 0.83rem);
  padding: clamp(0.42rem, 1vw, 0.58rem) clamp(0.72rem, 1.4vw, 1rem);
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 0.65vw, 0.42rem);
  line-height: 1.2;
  font-weight: 600;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.btn-fluid:active,
.tab-fluid:active {
  transform: scale(0.98);
}

.single-line-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-display-title {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-display-title,
.section-heading {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Responsive Auto-Fit Grids */
.tp-auto-grid,
.app-grid-fluid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(1rem, 1.8vw, 1.35rem);
}

#landing-app-grid.app-grid-fluid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

#available-apps-grid.app-grid-fluid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

/* ============================================================================
   CARDS, SURFACES & INTERACTIVE CONTAINERS
   ============================================================================ */
.tp-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: clamp(1rem, 1.8vw, 1.35rem);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.tp-card-interactive {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: clamp(1.05rem, 1.8vw, 1.35rem);
  box-shadow: var(--shadow-soft);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tp-card-interactive:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.hero-mesh-bg,
.bg-grid-pattern {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--primary-color) 12%, transparent) 0px, transparent 42%),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--accent-color) 10%, transparent) 0px, transparent 42%),
    linear-gradient(to right, color-mix(in srgb, var(--primary-color) 12%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--primary-color) 12%, transparent) 1px, transparent 1px),
    linear-gradient(to right, color-mix(in srgb, var(--text-color) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text-color) 4%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 144px 144px, 144px 144px, 28.8px 28.8px, 28.8px 28.8px;
}

.hero-system-lines-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-mesh-bg > .max-w-7xl {
  position: relative;
  z-index: 1;
}

.profile-hero-banner {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(2, 132, 199, 0.05) 100%);
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

html.dark .profile-hero-banner {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(2, 132, 199, 0.08) 100%) !important;
  background-color: #0d0d12 !important;
  border-bottom: 1px solid #222228 !important;
}

.profile-telemetry-strip {
  background-color: #ffffff;
}

html.dark .profile-telemetry-strip {
  background-color: #0a0a0c !important;
}

html.dark .profile-telemetry-strip > div {
  background-color: #0a0a0c !important;
  border-color: #222228 !important;
}

/* App Store Icon Monograms */
.app-monogram {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff !important;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  letter-spacing: -0.02em;
}

.app-monogram[data-tone="0"] { background: linear-gradient(135deg, #0d9488, #0284c7); }
.app-monogram[data-tone="1"] { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.app-monogram[data-tone="2"] { background: linear-gradient(135deg, #7c3aed, #c026d3); }
.app-monogram[data-tone="3"] { background: linear-gradient(135deg, #ea580c, #e11d48); }
.app-monogram[data-tone="4"] { background: linear-gradient(135deg, #059669, #0d9488); }
.app-monogram[data-tone="5"] { background: linear-gradient(135deg, #0284c7, #2563eb); }

/* Custom Switch Toggle */
.tp-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.tp-toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tp-toggle-slider {
  width: 2.55rem;
  height: 1.4rem;
  background-color: #d4d4d8;
  border-radius: 9999px;
  position: relative;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

html.dark .tp-toggle-slider {
  background-color: #27272a;
}

.tp-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  background-color: #ffffff;
  border-radius: 9999px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.tp-toggle-switch input:checked + .tp-toggle-slider {
  background-color: var(--primary-color);
}

.tp-toggle-switch input:checked + .tp-toggle-slider::after {
  transform: translateX(1.15rem);
}

/* Buttons */
.btn-primary-brand {
  background-color: var(--primary-color);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.btn-primary-brand:hover {
  background-color: var(--primary-hover);
}

.btn-secondary-surface {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary-surface:hover {
  background-color: var(--surface-subtle);
  border-color: var(--primary-color);
}

/* Unified Dual Launch Action Buttons (Android & Browser Testing) */
.tp-launch-action-btn {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border: 1px solid var(--primary-hover) !important;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--primary-color) 35%, transparent);
  transition: all 0.16s ease;
  text-decoration: none;
  cursor: pointer;
}

.tp-launch-action-btn:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.tp-launch-action-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Progress Bars */
.tp-progress-track,
.day-progress-track {
  width: 100%;
  height: 0.48rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.tp-progress-fill,
.day-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 14-Day Streak Grid Pills (2 Rows x 7 Days — Clean Weekly Matrix, Zero Squishing) */
.streak-grid-14 {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.streak-day-cell {
  height: 2.15rem;
  border-radius: 0.5rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}

.streak-day-cell.day-done {
  background-color: rgba(13, 148, 136, 0.14);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

html.dark .streak-day-cell.day-done {
  background-color: rgba(20, 184, 166, 0.22) !important;
  color: #2dd4bf !important;
  border-color: #14b8a6 !important;
}

.streak-day-cell.day-current {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.28);
}

/* ============================================================================
   COLLAPSIBLE FAQ ACCORDION
   ============================================================================ */
.tp-faq-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.18s ease;
}

.tp-faq-item:hover {
  border-color: var(--primary-color);
}

.tp-faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.tp-faq-body {
  padding: 0.85rem 1.2rem 1.1rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
}

/* ============================================================================
   GLASS HEADER & MOBILE BOTTOM BAR
   ============================================================================ */
.tp-glass-bar {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border-color);
}

html.dark .tp-glass-bar {
  background-color: rgba(0, 0, 0, 0.92) !important;
  border-color: #222228 !important;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 24px -6px rgba(0, 0, 0, 0.08);
}

html.dark .mobile-bottom-nav {
  box-shadow: 0 -8px 28px -4px rgba(0, 0, 0, 0.78);
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  position: relative;
  transition: color 0.16s ease, transform 0.14s ease;
}

.mobile-nav-item:active {
  transform: scale(0.95);
}

.mobile-nav-icon-wrap {
  width: 2.65rem;
  height: 1.7rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.mobile-nav-item.active .mobile-nav-icon-wrap {
  background-color: rgba(13, 148, 136, 0.15);
  color: var(--primary-color);
}

html.dark .mobile-nav-item.active {
  color: #2dd4bf !important;
}

html.dark .mobile-nav-item.active .mobile-nav-icon-wrap {
  background-color: rgba(45, 212, 191, 0.18);
  color: #2dd4bf;
}

.mobile-nav-fab {
  width: 2.75rem;
  height: 2.05rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 6px 14px -3px rgba(13, 148, 136, 0.45);
}

.mobile-nav-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-size: 0.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Horizontal Scroll-Snap Mobile Screen Switcher Pills */
.mobile-screen-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0;
}

.mobile-screen-pills::-webkit-scrollbar {
  display: none;
}

/* Executive Header Profile Dropdown Popover */
.tp-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: 310px;
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 0.85rem;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.22);
  z-index: 60;
}

html.dark .tp-profile-dropdown {
  background-color: #0b0b0e !important;
  border-color: #222228 !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.78);
}

.tp-profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-color);
  transition: background-color 0.14s ease, color 0.14s ease;
  cursor: pointer;
  text-align: left;
}

.tp-profile-menu-item:hover {
  background-color: var(--surface-elevated);
  color: var(--primary-color);
}

.tp-profile-menu-item.active-item {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(13, 148, 136, 0.28);
  color: var(--primary-color);
  font-weight: 700;
}

@media (max-width: 639px) {
  .tp-profile-dropdown {
    width: min(300px, calc(100vw - 1.5rem));
    right: 0;
  }
  #site-main-header .tp-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    gap: 0.5rem !important;
  }
}

/* Modal Backdrop & Sheet */
.tp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .tp-modal-backdrop {
    align-items: center;
    padding: 1.25rem;
  }
}

.tp-modal-sheet {
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .tp-modal-sheet {
    border-radius: 18px;
  }
}

.tp-modal-sheet-lg {
  width: min(980px, 96vw) !important;
  max-width: 980px !important;
}

/* Executive App Publishing Studio Cards & Controls */
.pub-section-card {
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.15rem;
}

html.dark .pub-section-card {
  background-color: #111116 !important;
  border-color: #24242e !important;
}

.pub-question-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: border-color 0.15s ease;
}

html.dark .pub-question-card {
  background-color: #0b0b0f !important;
  border-color: #252530 !important;
}

.pub-slot-preset-btn {
  padding: 0.42rem 0.75rem;
  border-radius: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pub-slot-preset-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-color);
}

.pub-slot-preset-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

/* ============================================================================
   ENTERPRISE ADMIN SIDEBAR (ADAPTS 100% TO DAY WHITE & DARK BLACK!)
   ============================================================================ */
.admin-sidebar,
.enterprise-sidebar {
  width: 100%;
  background-color: var(--surface-color) !important;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  color: var(--text-color);
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

@media (min-width: 1024px) {
  .admin-sidebar,
  .enterprise-sidebar {
    width: 260px;
    min-height: 100vh;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

.admin-sidebar .admin-nav-btn,
.enterprise-sidebar .enterprise-nav-btn {
  color: var(--text-muted);
  padding: 0.55rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.admin-sidebar .admin-nav-btn:hover,
.enterprise-sidebar .enterprise-nav-btn:hover {
  background-color: var(--surface-subtle);
  color: var(--text-color);
}

.admin-sidebar .admin-nav-btn.active,
.enterprise-sidebar .enterprise-nav-btn.active {
  background-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.35);
}

/* Workspace Left Sidebar Navigation Item */
.ws-sidebar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.ws-sidebar-nav-btn:hover {
  background-color: var(--surface-subtle);
  color: var(--text-color);
  border-color: var(--border-color);
}

.ws-sidebar-nav-btn.active {
  background-color: rgba(13, 148, 136, 0.11);
  color: var(--primary-color) !important;
  border-color: rgba(13, 148, 136, 0.35);
  font-weight: 700;
}

html.dark .ws-sidebar-nav-btn.active {
  background-color: rgba(20, 184, 166, 0.18) !important;
  color: #2dd4bf !important;
  border-color: rgba(45, 212, 191, 0.38) !important;
}

/* Profile Sub-Navigation Bar */
.prof-subtab-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  background-color: var(--surface-subtle);
  border: 1px solid var(--border-color);
}

.prof-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.prof-subtab-btn:hover {
  color: var(--text-color);
}

.prof-subtab-btn.active {
  background-color: var(--surface-color);
  color: var(--primary-color) !important;
  border-color: var(--border-color);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html.dark .prof-subtab-btn.active {
  background-color: #16161d !important;
  color: #2dd4bf !important;
  border-color: #2c2c35 !important;
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

/* Form Controls */
.tp-input,
.tp-select,
.tp-textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
  background-color: var(--surface-color);
  color: var(--text-color);
  border-color: var(--border-color);
}

.tp-input,
.tp-select,
.tp-textarea {
  width: 100%;
  padding: 0.56rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 0.6rem;
  font-family: inherit;
  font-size: 0.84rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-input:focus,
.tp-select:focus,
.tp-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ============================================================================
   STRICT DAY (WHITE) & NIGHT (TRUE BLACK) UTILITY OVERRIDES
   ============================================================================ */
html.dark,
html.dark body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

html:not(.dark),
html:not(.dark) body {
  background-color: #ffffff !important;
  color: #09090b !important;
}

html.dark .tp-card,
html.dark .tp-card-interactive,
html.dark .tp-faq-item,
html.dark .tp-modal-sheet,
html.dark .enterprise-sidebar,
html.dark .admin-sidebar,
html.dark footer,
html.dark header {
  background-color: #0a0a0c !important;
  border-color: #222228 !important;
  color: #ffffff !important;
}

html.dark .bg-white,
html.dark [class*="bg-white/"] {
  background-color: #0a0a0c !important;
}

html.dark .bg-slate-50,
html.dark [class*="bg-slate-50/"],
html.dark .bg-slate-100,
html.dark [class*="bg-slate-100/"],
html.dark .bg-slate-200,
html.dark [class*="bg-slate-200/"] {
  background-color: #121216 !important;
}

html.dark .bg-slate-300 {
  background-color: #27272f !important;
}

html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
html.dark .divide-slate-300 > :not([hidden]) ~ :not([hidden]),
html.dark [class*="divide-slate-"] > :not([hidden]) ~ :not([hidden]) {
  border-color: #222228 !important;
}

html.dark .divide-teal-200 > :not([hidden]) ~ :not([hidden]),
html.dark [class*="divide-teal-200/"] > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(20, 184, 166, 0.28) !important;
}

html.dark .bg-teal-50,
html.dark [class*="bg-teal-50/"],
html.dark .bg-teal-100,
html.dark [class*="bg-teal-100/"],
html.dark .bg-emerald-50,
html.dark [class*="bg-emerald-50/"],
html.dark .bg-emerald-100 {
  background-color: rgba(13, 148, 136, 0.14) !important;
}

html.dark .bg-amber-50,
html.dark [class*="bg-amber-50/"],
html.dark .bg-amber-100 {
  background-color: rgba(217, 119, 6, 0.14) !important;
}

html.dark .bg-rose-50,
html.dark [class*="bg-rose-50/"],
html.dark .bg-rose-100,
html.dark .bg-red-50,
html.dark [class*="bg-red-50/"],
html.dark .bg-red-100 {
  background-color: rgba(225, 29, 72, 0.14) !important;
}

html.dark .bg-sky-50,
html.dark [class*="bg-sky-50/"],
html.dark .bg-sky-100,
html.dark .bg-indigo-50,
html.dark [class*="bg-indigo-50/"],
html.dark .bg-indigo-100,
html.dark .bg-violet-50 {
  background-color: rgba(14, 165, 233, 0.14) !important;
}

html.dark [class*="hover:bg-slate-"]:hover,
html.dark [class*="hover:bg-rose-"]:hover,
html.dark [class*="hover:!bg-rose-"]:hover {
  background-color: #16161e !important;
}

html.dark .ring-white {
  --tw-ring-color: #0a0a0c !important;
}

html.dark .border-white {
  border-color: #0a0a0c !important;
}

html.dark .text-slate-950,
html.dark .text-slate-900,
html.dark .text-slate-800 {
  color: #ffffff !important;
}

html.dark .text-slate-700,
html.dark .text-slate-600 {
  color: #d4d4d8 !important;
}

html.dark .text-slate-500,
html.dark .text-slate-400 {
  color: #a1a1aa !important;
}

html.dark .text-teal-950,
html.dark .text-teal-900,
html.dark .text-teal-800,
html.dark .text-teal-700,
html.dark .text-teal-600 {
  color: #2dd4bf !important;
}

html.dark .text-emerald-950,
html.dark .text-emerald-900,
html.dark .text-emerald-800,
html.dark .text-emerald-700,
html.dark .text-emerald-600 {
  color: #34d399 !important;
}

html.dark .text-amber-900,
html.dark .text-amber-800,
html.dark .text-amber-700,
html.dark .text-amber-600 {
  color: #fbbf24 !important;
}

html.dark .text-rose-950,
html.dark .text-rose-900,
html.dark .text-rose-800,
html.dark .text-rose-700,
html.dark .text-rose-600,
html.dark .text-rose-500,
html.dark .text-red-950,
html.dark .text-red-900,
html.dark .text-red-800,
html.dark .text-red-700,
html.dark .text-red-600 {
  color: #fb7185 !important;
}

html.dark .text-sky-900,
html.dark .text-sky-800,
html.dark .text-sky-700,
html.dark .text-sky-600,
html.dark .text-indigo-900,
html.dark .text-indigo-800,
html.dark .text-indigo-700,
html.dark .text-indigo-600 {
  color: #38bdf8 !important;
}

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark [class*="border-slate-200/"],
html.dark .border-slate-300 {
  border-color: #222228 !important;
}

html.dark .border-teal-100,
html.dark .border-teal-200,
html.dark [class*="border-teal-200/"],
html.dark .border-teal-300,
html.dark .border-emerald-200 {
  border-color: rgba(20, 184, 166, 0.35) !important;
}

html.dark .border-sky-200,
html.dark .border-indigo-200,
html.dark .border-violet-200 {
  border-color: rgba(56, 189, 248, 0.35) !important;
}

html.dark .border-amber-200,
html.dark .border-amber-300 {
  border-color: rgba(245, 158, 11, 0.35) !important;
}

html.dark .border-rose-200,
html.dark .border-red-200,
html.dark .border-red-300 {
  border-color: rgba(244, 63, 94, 0.35) !important;
}
