/* ═══════════════════════════════════════════════════════════
   DIVERGENT — 2026 Premium Design System
   Beyond glass. Beyond flat. This is living design.
   Teal · Amber · Green · Life-giving light.
   ═══════════════════════════════════════════════════════════ */

/* === CUSTOM PROPERTIES === */
:root {
  --teal-500: #0d9488;
  --teal-400: #14b8a6;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-600: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.4);
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-glow: rgba(34, 197, 94, 0.3);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-glow: rgba(13, 148, 136, 0.15);
  --text-primary: #0c1f24;
  --text-secondary: #3d5a63;
  --text-muted: #7b9ba5;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --radius-full: 100px;
  --blur-sm: blur(12px);
  --blur-md: blur(24px);
  --blur-lg: blur(40px);
  --blur-xl: blur(60px);
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light only;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}
body { 
  background: #e8f0ee;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* === ANIMATED MESH GRADIENT BACKGROUND === */
.ts-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #e8f4f2 0%, #eef5ed 25%, #f5f1e8 50%, #edf6f4 75%, #e8f0ee 100%);
}
.ts-bg::before {
  content: '';
  position: absolute;
  width: 130vmax;
  height: 130vmax;
  top: -40%;
  left: -20%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(13, 148, 136, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(245, 158, 11, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(94, 234, 212, 0.16) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(252, 211, 77, 0.08) 0%, transparent 60%);
  animation: meshDrift 25s ease-in-out infinite alternate;
  will-change: transform;
}
.ts-bg::after {
  content: '';
  position: absolute;
  width: 100vmax;
  height: 100vmax;
  bottom: -30%;
  right: -20%;
  background:
    radial-gradient(ellipse at 60% 70%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 40%, rgba(251, 191, 36, 0.10) 0%, transparent 45%);
  animation: meshDrift2 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes meshDrift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(3%, -2%) rotate(2deg) scale(1.02); }
  66% { transform: translate(-2%, 3%) rotate(-1.5deg) scale(0.98); }
  100% { transform: translate(1%, -1%) rotate(1deg) scale(1.01); }
}
@keyframes meshDrift2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3%, 2%) rotate(-2deg); }
  100% { transform: translate(2%, -3%) rotate(1.5deg); }
}

/* === LAYOUT SHELL === */
.ts-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* === TOP HEADER BAR === */
.ts-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 4px 20px rgba(0, 0, 0, 0.03);
}
.ts-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ts-header-logo h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400), var(--amber-400));
  background-size: 200% 200%;
  animation: logoShimmer 6s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes logoShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ts-header-logo span {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.ts-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ts-header-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
}
.ts-header-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.ts-header-btn:active { transform: scale(0.95); }

/* === SECTION NAV PILLS === */
.ts-nav-pills {
  display: flex;
  gap: 7px;
  padding: 10px 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ts-nav-pills::-webkit-scrollbar { display: none; }
.ts-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: -0.1px;
}
.ts-pill:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(13, 148, 136, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.ts-pill.active {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
  color: white;
  border-color: transparent;
  box-shadow: 
    0 4px 16px var(--teal-glow),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-1px);
}
.ts-pill-emoji {
  font-size: 14px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}

/* === MAIN CONTENT AREA === */
.ts-content {
  flex: 1;
  padding: 16px 18px;
  padding-bottom: 95px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

/* ═══════════════════════════════════════════════
   GLASS CARD — The core component
   Multi-layer glass with inner light + glow border
   ═══════════════════════════════════════════════ */
.ts-card {
  position: relative;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 12px 40px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.4s var(--ease-premium);
  overflow: hidden;
}
.ts-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.8) 20%, 
    rgba(255, 255, 255, 0.95) 50%, 
    rgba(255, 255, 255, 0.8) 80%, 
    transparent);
}
.ts-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(13, 148, 136, 0.12);
  background: rgba(255, 255, 255, 0.65);
}

/* === CARD GRID === */
.ts-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}
@media (min-width: 480px) {
  .ts-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════
   FEATURE CARD — Grid items with inner glow
   ═══════════════════════════════════════════════ */
.ts-feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
  overflow: hidden;
}
.ts-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: radial-gradient(ellipse at 50% 0%, rgba(13, 148, 136, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ts-feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.ts-feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(13, 148, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(255, 255, 255, 0.7);
}
.ts-feature-card:hover::before { opacity: 1; }
.ts-feature-card:active {
  transform: translateY(-1px) scale(0.97);
  transition-duration: 0.1s;
}
.ts-feature-icon {
  font-size: 34px;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
  transition: transform 0.4s var(--ease-bounce);
}
.ts-feature-card:hover .ts-feature-icon {
  transform: scale(1.15) translateY(-2px);
}
.ts-feature-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.ts-feature-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.3;
  font-weight: 500;
}

/* === SECTION HEADER === */
.ts-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 2px;
}
.ts-section-title {
  font-size: 21px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.7px;
}
.ts-section-action {
  font-size: 13px;
  font-weight: 650;
  color: var(--teal-500);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(13, 148, 136, 0.07);
  transition: all 0.3s var(--ease-premium);
  border: 1px solid rgba(13, 148, 136, 0.1);
}
.ts-section-action:hover {
  background: rgba(13, 148, 136, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

/* ═══════════════════════════════════════════════
   POST CARD — Social feed posts
   ═══════════════════════════════════════════════ */
.ts-post {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 28px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.35s var(--ease-premium);
}
.ts-post:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 44px rgba(0, 0, 0, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}
.ts-post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
}
.ts-post-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-300), var(--amber-400));
  background-size: 200% 200%;
  animation: avatarShimmer 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.2);
}
@keyframes avatarShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ts-post-meta {
  flex: 1;
  min-width: 0;
}
.ts-post-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.2px;
}
.ts-post-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.3px;
}
.ts-badge-verified {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(94, 234, 212, 0.15));
  color: var(--teal-500);
}
.ts-badge-business {
  background: linear-gradient(135deg, rgba(245, 178, 65, 0.12), rgba(252, 211, 77, 0.15));
  color: #a16207;
}
.ts-post-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
  font-weight: 500;
}
.ts-post-body {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 450;
}
.ts-post-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d5f0ed, #dff0d8, #fef3c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.ts-post-actions {
  display: flex;
  padding: 8px 12px;
  gap: 3px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}
.ts-post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-premium);
}
.ts-post-action:hover {
  background: rgba(13, 148, 136, 0.06);
  color: var(--teal-500);
  transform: translateY(-1px);
}
.ts-post-action-icon {
  font-size: 18px;
}

/* ═══════════════════════════════════════════════
   SIDE STREETS EARNING CARDS
   ═══════════════════════════════════════════════ */
.ts-earn-card {
  position: relative;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(28px) saturate(175%);
  -webkit-backdrop-filter: blur(28px) saturate(175%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 28px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 20px;
  cursor: pointer;
  transition: all 0.4s var(--ease-premium);
  overflow: hidden;
}
.ts-earn-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--earn-color, var(--teal-500)), var(--earn-color, var(--teal-300)), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.8;
}
.ts-earn-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 44px rgba(13, 148, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(13, 148, 136, 0.15);
}
.ts-earn-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.ts-earn-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(94, 234, 212, 0.12));
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.08);
  transition: transform 0.4s var(--ease-bounce);
}
.ts-earn-card:hover .ts-earn-icon {
  transform: scale(1.1) rotate(-3deg);
}
.ts-earn-info h3 {
  font-size: 16px;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.ts-earn-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 450;
}
.ts-earn-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ts-earn-stat {
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 650;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === COMMITMENT VIEW === */
.ts-commit {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(36px) saturate(185%);
  -webkit-backdrop-filter: blur(36px) saturate(185%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 28px;
  margin-bottom: 16px;
}
.ts-commit h2 {
  font-size: 24px;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.7px;
}
.ts-commit-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
  font-weight: 450;
}

/* === INFO ROWS === */
.ts-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.ts-info-row:last-child { border-bottom: none; }
.ts-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ts-info-icon.green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.15)); }
.ts-info-icon.amber { background: linear-gradient(135deg, rgba(245, 178, 65, 0.1), rgba(252, 211, 77, 0.15)); }
.ts-info-icon.red { background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(248, 113, 113, 0.12)); }
.ts-info-icon.teal { background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(94, 234, 212, 0.15)); }
.ts-info-label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.ts-info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   BUTTONS — Premium with glow
   ═══════════════════════════════════════════════ */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  letter-spacing: -0.2px;
  position: relative;
  overflow: hidden;
}
.ts-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.ts-btn-primary {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500), var(--teal-400));
  color: white;
  box-shadow: 
    0 4px 16px var(--teal-glow),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.ts-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 28px var(--teal-glow),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  filter: brightness(1.05);
}
.ts-btn-primary:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}
.ts-btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ts-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.ts-btn-full { width: 100%; }
.ts-btn-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* === STATUS PILLS === */
.ts-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ts-status-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(74, 222, 128, 0.15));
  color: #16a34a;
}
.ts-status-paused {
  background: linear-gradient(135deg, rgba(245, 178, 65, 0.1), rgba(252, 211, 77, 0.15));
  color: #a16207;
}
.ts-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* === STATS BAR === */
.ts-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ts-stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 16px;
  text-align: center;
  overflow: hidden;
}
.ts-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
  border-radius: 0 0 4px 4px;
  opacity: 0.6;
}
.ts-stat-value {
  font-size: 28px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1.5px;
}
.ts-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   QUICK JOBS
   ═══════════════════════════════════════════════ */
.ts-job-card {
  position: relative;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.35s var(--ease-premium);
  overflow: hidden;
}
.ts-job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal-400), var(--green-400));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.3s;
}
.ts-job-card:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.05),
    0 16px 40px rgba(13, 148, 136, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.ts-job-card:hover::before { opacity: 1; }
.ts-job-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ts-job-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.ts-job-pay {
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(74, 222, 128, 0.12));
  padding: 4px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
}
.ts-job-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  font-weight: 450;
}
.ts-job-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ts-job-tag {
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  background: rgba(13, 148, 136, 0.06);
  color: var(--teal-500);
  border: 1px solid rgba(13, 148, 136, 0.08);
}

/* ═══════════════════════════════════════════════
   CO-HOST SIDEBAR
   ═══════════════════════════════════════════════ */
.ts-cohost {
  position: fixed;
  right: -340px;
  top: 0;
  bottom: 0;
  width: 340px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(50px) saturate(190%);
  -webkit-backdrop-filter: blur(50px) saturate(190%);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: -12px 0 50px rgba(0, 0, 0, 0.08);
  z-index: 200;
  transition: right 0.45s var(--ease-premium);
  padding: 24px;
  overflow-y: auto;
}
.ts-cohost.open { right: 0; }
.ts-cohost-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-300), var(--amber-400));
  background-size: 200% 200%;
  animation: avatarShimmer 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.25);
}
.ts-cohost h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.ts-cohost p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 450;
}
.ts-cohost-tip {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(94, 234, 212, 0.08));
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  border-left: 3px solid var(--teal-400);
  font-weight: 450;
}

/* ═══════════════════════════════════════════════
   COMPOSE MODAL
   ═══════════════════════════════════════════════ */
.ts-compose-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}
.ts-compose-modal {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  padding: 24px;
  animation: slideUp 0.35s var(--ease-premium);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.08);
}
.ts-compose-textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  resize: none;
  outline: none;
  font-family: inherit;
  font-weight: 450;
}
.ts-compose-textarea::placeholder {
  color: var(--text-muted);
}
.ts-compose-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.ts-compose-tool-btns {
  display: flex;
  gap: 6px;
}
.ts-compose-tool-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s var(--ease-premium);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-compose-tool-btn:hover {
  background: rgba(13, 148, 136, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════
   BOTTOM NAVIGATION — Floating glass bar
   ═══════════════════════════════════════════════ */
.ts-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
}
.ts-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-premium);
  min-width: 52px;
  position: relative;
}
.ts-nav-item:hover {
  background: rgba(13, 148, 136, 0.05);
}
.ts-nav-item.active {
  background: rgba(13, 148, 136, 0.08);
}
.ts-nav-item.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-500));
  border-radius: 0 0 4px 4px;
}
.ts-nav-item.active .ts-nav-icon {
  color: var(--teal-500);
  filter: drop-shadow(0 1px 4px var(--teal-glow));
}
.ts-nav-item.active .ts-nav-label {
  color: var(--teal-500);
}
.ts-nav-icon {
  font-size: 21px;
  transition: all 0.3s var(--ease-bounce);
  color: var(--text-muted);
}
.ts-nav-item.active .ts-nav-icon {
  transform: scale(1.1) translateY(-1px);
}
.ts-nav-label {
  font-size: 10px;
  font-weight: 650;
  color: var(--text-muted);
  letter-spacing: 0.1px;
}

/* === COMPOSE FAB === */
.ts-fab {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500), var(--teal-400));
  color: white;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 
    0 6px 24px var(--teal-glow),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease-premium);
  z-index: 90;
}
.ts-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 
    0 8px 32px var(--teal-glow),
    0 0 40px rgba(13, 148, 136, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.ts-fab:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}

/* === RULES BANNER === */
.ts-rules-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(245, 178, 65, 0.05), rgba(94, 234, 212, 0.06));
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.1);
  overflow: hidden;
}
.ts-rules-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-400), var(--amber-400), var(--green-400));
  opacity: 0.6;
}
.ts-rules-banner h3 {
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.ts-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.ts-rule-check {
  color: var(--teal-500);
  font-weight: 700;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════
   SKILLS ACADEMY
   ═══════════════════════════════════════════════ */
.ts-skill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
}
.ts-skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.15);
}
.ts-skill-thumb {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(94, 234, 212, 0.15), rgba(34, 197, 94, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-bounce);
}
.ts-skill-card:hover .ts-skill-thumb {
  transform: scale(1.08) rotate(2deg);
}
.ts-skill-info h4 {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.ts-skill-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  font-weight: 450;
}
.ts-skill-meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.ts-skill-meta span {
  font-size: 11px;
  font-weight: 650;
  color: var(--teal-500);
  background: rgba(13, 148, 136, 0.06);
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(13, 148, 136, 0.08);
}

/* ═══════════════════════════════════════════════
   LIVE STREAM CARD
   ═══════════════════════════════════════════════ */
.ts-live-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.35s var(--ease-premium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.ts-live-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12);
}
.ts-live-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f2b30, #0d3d3a, #134e4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.ts-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  animation: livePulse 2s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 2px 20px rgba(239, 68, 68, 0.6); }
}
.ts-live-viewers {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ts-live-info {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ts-live-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.ts-live-creator {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   GONG SHOW
   ═══════════════════════════════════════════════ */
.ts-gong-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.05);
  transition: all 0.35s var(--ease-premium);
}
.ts-gong-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 28px rgba(0, 0, 0, 0.06),
    0 20px 50px rgba(0, 0, 0, 0.07);
}
.ts-gong-video {
  width: 100%;
  aspect-ratio: 9/12;
  background: linear-gradient(135deg, #1a0a3e, #2d1b69, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.ts-gong-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 18px;
}
.ts-gong-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.35s var(--ease-bounce);
  position: relative;
  overflow: hidden;
}
.ts-gong-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}
.ts-gong-btn:hover {
  transform: scale(1.2) translateY(-3px);
}
.ts-gong-btn:active {
  transform: scale(0.9);
  transition-duration: 0.1s;
}
.ts-gong-gong {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.15));
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
}
.ts-gong-crown {
  background: linear-gradient(135deg, rgba(245, 178, 65, 0.1), rgba(252, 211, 77, 0.18));
  box-shadow: 0 4px 16px rgba(245, 178, 65, 0.12);
}

/* ═══════════════════════════════════════════════
   PROFILE / MY SQUARE
   ═══════════════════════════════════════════════ */
.ts-profile-header {
  text-align: center;
  padding: 20px;
}
.ts-profile-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-300), var(--amber-400), var(--green-400));
  background-size: 300% 300%;
  animation: avatarShimmer 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  font-weight: 700;
  margin: 0 auto 14px;
  box-shadow: 
    0 6px 24px rgba(13, 148, 136, 0.25),
    0 0 0 3px rgba(255, 255, 255, 0.5);
}
.ts-profile-name {
  font-size: 22px;
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.ts-profile-handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}
.ts-profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 18px;
}
.ts-profile-stat { text-align: center; }
.ts-profile-stat-val {
  font-size: 22px;
  font-weight: 850;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.ts-profile-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS — Premium choreography
   ═══════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cardIn {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.ts-animate-in {
  animation: cardIn 0.5s var(--ease-premium) forwards;
  opacity: 0;
}
.ts-animate-in:nth-child(1) { animation-delay: 0.04s; }
.ts-animate-in:nth-child(2) { animation-delay: 0.08s; }
.ts-animate-in:nth-child(3) { animation-delay: 0.12s; }
.ts-animate-in:nth-child(4) { animation-delay: 0.16s; }
.ts-animate-in:nth-child(5) { animation-delay: 0.20s; }
.ts-animate-in:nth-child(6) { animation-delay: 0.24s; }
.ts-animate-in:nth-child(7) { animation-delay: 0.28s; }
.ts-animate-in:nth-child(8) { animation-delay: 0.32s; }
.ts-animate-in:nth-child(9) { animation-delay: 0.36s; }
.ts-animate-in:nth-child(10) { animation-delay: 0.40s; }

/* === EMPTY STATES === */
.ts-empty {
  text-align: center;
  padding: 60px 20px;
}
.ts-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}
.ts-empty h3 {
  font-size: 20px;
  font-weight: 850;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.ts-empty p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 450;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13, 148, 136, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13, 148, 136, 0.3); }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .ts-header { padding: 8px 14px; }
  .ts-content { padding: 12px 12px; padding-bottom: 88px; }
  .ts-nav-pills { padding: 8px 12px; gap: 6px; }
  .ts-pill { padding: 6px 13px; font-size: 12px; }
  .ts-card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ts-feature-card { padding: 18px 12px 15px; }
  .ts-feature-icon { font-size: 28px; }
  .ts-commit { padding: 20px; }
  .ts-stats-bar { grid-template-columns: 1fr 1fr; }
  .ts-card { padding: 16px; border-radius: 20px; }
}

/* === BACK BUTTON === */
.ts-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.3s var(--ease-premium);
}
.ts-back:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ═══════════════════════════════════════════════
   FUND, HOST, REWARDS SECTIONS
   ═══════════════════════════════════════════════ */

/* === GIFT EFFECT ANIMATIONS === */
@keyframes dove-rise {
  0% { opacity: 0; transform: translateY(40px) scale(0.5); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(-60px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-120px) scale(0.8); }
}
@keyframes golden-ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; border-width: 4px; }
  60% { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(3); opacity: 0; border-width: 1px; }
}
@keyframes house-build {
  0% { opacity: 0; transform: scale(0.2) translateY(40px); }
  30% { opacity: 1; transform: scale(0.6) translateY(10px); }
  50% { transform: scale(1) translateY(0); }
  70% { transform: scale(1.15) translateY(-10px); }
  100% { opacity: 0; transform: scale(1.3) translateY(-40px); }
}
@keyframes star-connect {
  0% { opacity: 0; transform: rotate(0deg) scale(0.3); }
  30% { opacity: 1; transform: rotate(90deg) scale(1); }
  60% { transform: rotate(180deg) scale(1.2); }
  100% { opacity: 0; transform: rotate(360deg) scale(0.5); }
}
@keyframes teal-wave {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 0.7; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1.5); }
}
.gift-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.golden-ripple-anim { animation: golden-ripple 1.5s ease-out forwards; }

/* === IMPACT COUNTER === */
.impact-counter {
  font-variant-numeric: tabular-nums;
  transition: all 0.3s ease;
  display: inline-block;
}

/* === DONATE MODAL === */
.donate-modal { animation: slideUp 0.35s var(--ease-premium); }
.donate-modal-overlay { animation: fadeIn 0.2s ease-out; }

/* === RULE CARDS (Host Section) === */
.rule-card {
  transition: all 0.3s var(--ease-premium);
}
.rule-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
}

/* === CREDIT CARDS (Rewards Section) === */
.credit-card {
  transition: all 0.3s var(--ease-premium);
}
.credit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* === FUND SUBSCRIBE INPUT === */
.fund-sub-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  outline: none;
}

/* === RESPONSIVE — New Sections === */
@media (max-width: 480px) {
  .gift-overlay div[style*="fontSize: 80"] { font-size: 56px !important; }
  .donate-modal { padding: 20px !important; }
}

/* === TAG LIST === */
.ts-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ts-tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  background: rgba(13, 148, 136, 0.06);
  color: var(--teal-500);
  border: 1px solid rgba(13, 148, 136, 0.08);
}

/* === DIVIDER === */
.ts-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.1), transparent);
  margin: 16px 0;
}

/* === TOOLTIP === */
.ts-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  cursor: help;
}

/* ═══════════════════════════════════════════════
   PARTICLE ANIMATIONS
   ═══════════════════════════════════════════════ */
.particle-layer { pointer-events: none; }
.particle { display: inline-block; }

@keyframes particleSparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
  25% { opacity: 0.8; transform: scale(1.2) translateY(-10px); }
  50% { opacity: 0.4; transform: scale(0.8) translateY(-20px); }
  75% { opacity: 0.7; transform: scale(1) translateY(-5px); }
}
@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-40px) translateX(15px); opacity: 0.6; }
  50% { transform: translateY(-80px) translateX(-10px); opacity: 0.4; }
  75% { transform: translateY(-120px) translateX(20px); opacity: 0.5; }
  100% { transform: translateY(-160px) translateX(0); opacity: 0; }
}
@keyframes particleDrift {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(50vh) translateX(40px) rotate(180deg); opacity: 0.4; }
  90% { opacity: 0.2; }
  100% { transform: translateY(100vh) translateX(-20px) rotate(360deg); opacity: 0; }
}
@keyframes particleWave {
  0% { transform: translateX(-100px) scaleX(0.5); opacity: 0; }
  30% { opacity: 0.3; }
  50% { transform: translateX(0) scaleX(1.5); opacity: 0.5; }
  70% { opacity: 0.3; }
  100% { transform: translateX(100px) scaleX(0.5); opacity: 0; }
}
@keyframes particleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  20% { opacity: 0.9; transform: scale(1.3); }
  40% { opacity: 0.2; transform: scale(0.7); }
  60% { opacity: 0.8; transform: scale(1.1); }
  80% { opacity: 0.1; transform: scale(0.5); }
}
.particle-sparkle { animation: particleSparkle var(--dur, 6s) ease-in-out infinite; }
.particle-float { animation: particleFloat var(--dur, 8s) ease-in-out infinite; }
.particle-drift { animation: particleDrift var(--dur, 12s) linear infinite; }
.particle-wave { animation: particleWave var(--dur, 10s) ease-in-out infinite; }
.particle-twinkle { animation: particleTwinkle var(--dur, 4s) ease-in-out infinite; }

/* ═══════════════════════════════════════════════
   SNAP & TRANSFORM EFFECTS
   ═══════════════════════════════════════════════ */
@keyframes snapFlash {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes snapRipple {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.4) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 0; }
}
@keyframes envMorph {
  0% { filter: blur(0px) saturate(1); }
  50% { filter: blur(4px) saturate(1.5); }
  100% { filter: blur(0px) saturate(1); }
}

/* === ENVIRONMENT CARD === */
.env-card-hover:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════
   CO-HOST ORB (legacy — kept for compatibility)
   ═══════════════════════════════════════════════ */
.cohost-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 30%, #5eead4 55%, #0d9488 75%, #7c3aed);
  box-shadow:
    0 0 35px rgba(245,158,11,0.35),
    0 0 60px rgba(13,148,136,0.3),
    0 0 90px rgba(245,158,11,0.15),
    0 0 120px rgba(124,58,237,0.1),
    inset 0 0 20px rgba(255,255,255,0.35);
  animation: orbPulse 3s ease-in-out infinite, orbFloat 6s ease-in-out infinite;
  margin: 0 auto 16px;
  position: relative;
}
.cohost-orb::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: -8px; bottom: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  animation: orbAura 4s ease-in-out infinite;
}
.cohost-orb::after {
  content: '';
  position: absolute;
  top: 12px; left: 18px;
  width: 22px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  filter: blur(4px);
  transform: rotate(-25deg);
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes orbFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}
@keyframes orbAura {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* === VIEW TRANSITIONS === */
@supports (view-transition-name: env-transition) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.4s;
  }
  ::view-transition-new(root) {
    animation-name: envMorph;
  }
}

/* ═══════════════════════════════════════════════
   SELECTION & FOCUS
   ═══════════════════════════════════════════════ */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: var(--text-primary);
}
:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}
input, textarea, select {
  font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal-400) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1) !important;
}

/* ═══════════════════════════════════════════════
   PREMIUM TOUCHES
   ═══════════════════════════════════════════════ */

/* Smooth transitions on all interactive elements */
a, button, [role="button"] {
  transition: all 0.25s var(--ease-premium);
}

/* Subtle text shadow on headers for depth */
h1, h2, h3 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Tap highlight for mobile */
@media (hover: none) {
  * { -webkit-tap-highlight-color: rgba(13, 148, 136, 0.08); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
