@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* ========== GOLDEN HOUR (Default) - Warm & Optimistic ========== */
:root{
  --bg: #fffdf8;
  --bg-warm: #fff9ed;
  --card: #ffffff;
  --card2: #fffcf5;
  --card-hover: #fff8e8;
  --stroke: rgba(212, 175, 85, 0.20);
  --stroke-light: rgba(212, 175, 85, 0.30);

  --text: #4a3f2a;
  --text-secondary: #6b5d42;
  --muted: #9a8a6a;

  /* Pleasant golden/amber accents - no reds */
  --rose: #e8b84a;
  --rose-soft: #f0cc78;
  --coral: #f0c060;
  --peach: #ffd88a;
  --gold: #d4a853;
  --amber: #e8b849;
  --sage: #8ac090;
  --sage-soft: #b0d8b8;
  --lavender: #c8b8d8;
  --lavender-soft: #ddd0eb;
  --sky: #88c8e0;
  --terracotta: #c9a050;

  --shadow: 0 20px 60px rgba(80, 60, 20, 0.10);
  --shadow-sm: 0 8px 24px rgba(80, 60, 20, 0.06);
  --shadow-glow: 0 8px 32px rgba(232, 184, 74, 0.22);
  --radius: 16px;
  --radius-lg: 24px;

  --gradient-primary: linear-gradient(135deg, #e8b84a 0%, #f0cc78 100%);
  --gradient-accent: linear-gradient(135deg, #c8b8d8 0%, #f0cc78 100%);
  --gradient-warm: linear-gradient(135deg, #e8b849 0%, #ffd88a 100%);
  --gradient-sage: linear-gradient(135deg, #8ac090 0%, #b0d8b8 100%);
  --gradient-sky: linear-gradient(135deg, #88c8e0 0%, #c8b8d8 100%);

  --font-display: 'Cormorant Garamond', Georgia, serif;
}

/* ========== OCEAN BREEZE - Fresh & Calming ========== */
[data-theme="ocean"] {
  --bg: #f5fbff;
  --bg-warm: #edf8ff;
  --card: #ffffff;
  --card2: #f8fcff;
  --card-hover: #e8f5ff;
  --stroke: rgba(88, 180, 220, 0.18);
  --stroke-light: rgba(88, 180, 220, 0.28);
  --text: #2a4555;
  --text-secondary: #3d6278;
  --muted: #6a9ab5;
  --rose: #58b4dc;
  --rose-soft: #88cce8;
  --coral: #70d0e8;
  --peach: #a0e0f0;
  --gold: #e0c060;
  --amber: #e8cc70;
  --sage: #68c8a0;
  --sage-soft: #98e0c0;
  --lavender: #90b8d8;
  --lavender-soft: #b8d4eb;
  --sky: #58b4dc;
  --terracotta: #48a0c8;
  --shadow: 0 20px 60px rgba(30, 80, 120, 0.10);
  --shadow-sm: 0 8px 24px rgba(30, 80, 120, 0.06);
  --shadow-glow: 0 8px 32px rgba(88, 180, 220, 0.22);
  --gradient-primary: linear-gradient(135deg, #58b4dc 0%, #70d0e8 100%);
  --gradient-accent: linear-gradient(135deg, #90b8d8 0%, #70d0e8 100%);
  --gradient-warm: linear-gradient(135deg, #e0c060 0%, #70d0e8 100%);
  --gradient-sage: linear-gradient(135deg, #68c8a0 0%, #98e0c0 100%);
  --gradient-sky: linear-gradient(135deg, #58b4dc 0%, #90b8d8 100%);
}

/* ========== MINT GARDEN - Fresh & Uplifting ========== */
[data-theme="mint"] {
  --bg: #f5fff8;
  --bg-warm: #edfff2;
  --card: #ffffff;
  --card2: #f8fff9;
  --card-hover: #e8ffed;
  --stroke: rgba(80, 200, 140, 0.18);
  --stroke-light: rgba(80, 200, 140, 0.28);
  --text: #2a4a38;
  --text-secondary: #3d6850;
  --muted: #68a080;
  --rose: #50c88c;
  --rose-soft: #80ddb0;
  --coral: #68d8a8;
  --peach: #a0f0c8;
  --gold: #d8c860;
  --amber: #e0d070;
  --sage: #50c88c;
  --sage-soft: #a0f0c8;
  --lavender: #90d0b8;
  --lavender-soft: #b8e8d0;
  --sky: #70c8c8;
  --terracotta: #40b080;
  --shadow: 0 20px 60px rgba(30, 100, 60, 0.10);
  --shadow-sm: 0 8px 24px rgba(30, 100, 60, 0.06);
  --shadow-glow: 0 8px 32px rgba(80, 200, 140, 0.22);
  --gradient-primary: linear-gradient(135deg, #50c88c 0%, #80ddb0 100%);
  --gradient-accent: linear-gradient(135deg, #90d0b8 0%, #80ddb0 100%);
  --gradient-warm: linear-gradient(135deg, #d8c860 0%, #68d8a8 100%);
  --gradient-sage: linear-gradient(135deg, #50c88c 0%, #a0f0c8 100%);
  --gradient-sky: linear-gradient(135deg, #70c8c8 0%, #90d0b8 100%);
}

/* ========== PEACH BLOSSOM - Soft & Cheerful ========== */
[data-theme="peach"] {
  --bg: #fffaf5;
  --bg-warm: #fff5ed;
  --card: #ffffff;
  --card2: #fffcf8;
  --card-hover: #fff2e8;
  --stroke: rgba(240, 180, 130, 0.20);
  --stroke-light: rgba(240, 180, 130, 0.30);
  --text: #5a4535;
  --text-secondary: #7a6050;
  --muted: #a88a70;
  --rose: #f0b082;
  --rose-soft: #f8c8a0;
  --coral: #f8c090;
  --peach: #ffd8b0;
  --gold: #e8c070;
  --amber: #f0c878;
  --sage: #98c8a0;
  --sage-soft: #b8e0c0;
  --lavender: #d8c0c8;
  --lavender-soft: #e8d8e0;
  --sky: #a0d0e0;
  --terracotta: #e0a068;
  --shadow: 0 20px 60px rgba(100, 60, 30, 0.10);
  --shadow-sm: 0 8px 24px rgba(100, 60, 30, 0.06);
  --shadow-glow: 0 8px 32px rgba(240, 176, 130, 0.22);
  --gradient-primary: linear-gradient(135deg, #f0b082 0%, #f8c8a0 100%);
  --gradient-accent: linear-gradient(135deg, #d8c0c8 0%, #f8c8a0 100%);
  --gradient-warm: linear-gradient(135deg, #e8c070 0%, #f8c090 100%);
  --gradient-sage: linear-gradient(135deg, #98c8a0 0%, #b8e0c0 100%);
  --gradient-sky: linear-gradient(135deg, #a0d0e0 0%, #d8c0c8 100%);
}

/* ========== LAVENDER DREAM - Serene & Magical ========== */
[data-theme="lavender"] {
  --bg: #fbf8ff;
  --bg-warm: #f5f0ff;
  --card: #ffffff;
  --card2: #fcfaff;
  --card-hover: #f3eeff;
  --stroke: rgba(175, 150, 210, 0.18);
  --stroke-light: rgba(175, 150, 210, 0.28);
  --text: #453858;
  --text-secondary: #5f4f78;
  --muted: #9080a8;
  --rose: #b898d8;
  --rose-soft: #d0b8e8;
  --coral: #c8a8e0;
  --peach: #e0c8f0;
  --gold: #e0c878;
  --amber: #e8d088;
  --sage: #98c8b0;
  --sage-soft: #b8e0c8;
  --lavender: #b898d8;
  --lavender-soft: #d8c8f0;
  --sky: #a8c8e8;
  --terracotta: #a080c0;
  --shadow: 0 20px 60px rgba(80, 50, 100, 0.10);
  --shadow-sm: 0 8px 24px rgba(80, 50, 100, 0.06);
  --shadow-glow: 0 8px 32px rgba(184, 152, 216, 0.22);
  --gradient-primary: linear-gradient(135deg, #b898d8 0%, #d0b8e8 100%);
  --gradient-accent: linear-gradient(135deg, #c8a8e0 0%, #d0b8e8 100%);
  --gradient-warm: linear-gradient(135deg, #e0c878 0%, #c8a8e0 100%);
  --gradient-sage: linear-gradient(135deg, #98c8b0 0%, #b8e0c8 100%);
  --gradient-sky: linear-gradient(135deg, #a8c8e8 0%, #b898d8 100%);
}

/* ========== SKY GLASS - Airy & Acrylic ========== */
[data-theme="sky"] {
  --bg: #f8fcff;
  --bg-warm: #f0f8ff;
  --card: rgba(255, 255, 255, 0.85);
  --card2: rgba(248, 252, 255, 0.90);
  --card-hover: rgba(240, 248, 255, 0.95);
  --stroke: rgba(140, 190, 230, 0.22);
  --stroke-light: rgba(140, 190, 230, 0.32);
  --text: #3a4f60;
  --text-secondary: #506878;
  --muted: #7898b0;
  --rose: #78b8e0;
  --rose-soft: #a0d0f0;
  --coral: #90c8e8;
  --peach: #b8e0f8;
  --gold: #e0cc78;
  --amber: #e8d488;
  --sage: #80c8a8;
  --sage-soft: #a8e0c8;
  --lavender: #a8c0e0;
  --lavender-soft: #c8d8f0;
  --sky: #78b8e0;
  --terracotta: #60a0c8;
  --shadow: 0 20px 60px rgba(50, 80, 120, 0.08);
  --shadow-sm: 0 8px 24px rgba(50, 80, 120, 0.05);
  --shadow-glow: 0 8px 32px rgba(120, 184, 224, 0.20);
  --gradient-primary: linear-gradient(135deg, #78b8e0 0%, #a0d0f0 100%);
  --gradient-accent: linear-gradient(135deg, #a8c0e0 0%, #a0d0f0 100%);
  --gradient-warm: linear-gradient(135deg, #e0cc78 0%, #90c8e8 100%);
  --gradient-sage: linear-gradient(135deg, #80c8a8 0%, #a8e0c8 100%);
  --gradient-sky: linear-gradient(135deg, #78b8e0 0%, #a8c0e0 100%);
}

/* ========== Theme Picker ========== */
.tm-theme-picker {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.tm-theme-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1.5px solid var(--stroke);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.tm-theme-btn:hover { border-color: var(--rose); }
.tm-theme-btn.active {
  border-color: var(--rose);
  background: var(--card-hover);
  font-weight: 700;
}
.tm-theme-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;

  background:
    radial-gradient(ellipse 900px 600px at 10% 5%, rgba(232, 184, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 800px 500px at 90% 15%, rgba(240, 204, 120, 0.10), transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 90%, rgba(200, 184, 216, 0.10), transparent 50%),
    radial-gradient(ellipse 600px 400px at 30% 60%, rgba(138, 192, 144, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

.tm-shell{
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 18px 70px;
}

.tm-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 12px;
}

.tm-brand{ display:flex; align-items:center; gap: 12px; }
.tm-logo{
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-glow);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.tm-title{
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tm-subtitle{
  margin-top: 3px;
  font-size: 12.8px;
  color: var(--muted);
}

.tm-top-actions{ display:flex; gap: 10px; }
.tm-pill{
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s;
}
.tm-pill:hover{
  background: var(--card-hover);
}
.tm-pill-primary{
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.tm-pill-primary:hover{
  transform: translateY(-1px);
}

.tm-pill-logout {
  background: transparent;
  border-color: var(--muted);
  color: var(--muted);
}

.tm-pill-logout:hover {
  background: rgba(232, 120, 138, 0.1);
  border-color: var(--rose);
  color: var(--rose);
}

.tm-tabs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px 10px;
}

.tm-tab{
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 11px 16px;
  border-radius: 12px;
  cursor:pointer;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s;
}
.tm-tab-icon {
  font-size: 16px;
  line-height: 1;
}
.tm-tab-label {
  line-height: 1;
}
.tm-tab:hover{
  color: var(--text);
  background: var(--card-hover);
}
.tm-tab.active{
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.tm-layout{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 980px){
  .tm-layout{ grid-template-columns: 1fr; }
}

.tm-sidebar{ display:flex; flex-direction:column; gap: 12px; }

.tm-card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.tm-card:hover{
  border-color: var(--stroke-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tm-card-soft{ background: var(--card2); }

.tm-card-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 12px;
}
.tm-card-note{ font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }

.tm-field{ margin-bottom: 14px; }
.tm-field label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tm-field input, .tm-field select, .tm-field textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg-warm);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus{
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 120, 138, 0.15);
}
.tm-field input::placeholder, .tm-field textarea::placeholder{
  color: var(--muted);
}
.tm-field textarea{ resize: vertical; }

.tm-actions{ display:flex; flex-direction:column; gap: 10px; }
.tm-action{
  border: 1px solid var(--stroke);
  background: var(--card-hover);
  border-radius: 12px;
  padding: 12px 14px;
  cursor:pointer;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.tm-action:hover{
  background: var(--gradient-accent);
  color: #fff;
  border-color: transparent;
}

.tm-mini{ display:flex; flex-direction:column; gap: 8px; margin-bottom: 10px; }
.tm-mini-row{ display:flex; justify-content:space-between; color: var(--text-secondary); font-size: 13px; }
.tm-badge{
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
}
.tm-badge-good{
  border-color: var(--sage);
  background: rgba(126, 176, 138, 0.15);
  color: var(--sage);
}

.tm-danger{
  width:100%;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 120, 138, 0.3);
  background: rgba(232, 120, 138, 0.1);
  cursor:pointer;
  font-weight: 700;
  color: var(--rose);
  transition: all 0.2s;
}
.tm-danger:hover{
  background: var(--rose);
  color: #fff;
}

.tm-main{ min-height: 600px; }

.tm-route{ display:none; }
.tm-route.active{ display:block; }

.tm-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 400px 250px at 10% 20%, rgba(232, 120, 138, 0.08), transparent 60%),
    radial-gradient(ellipse 350px 200px at 90% 80%, rgba(184, 165, 212, 0.08), transparent 60%),
    var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.tm-kicker{
  font-weight: 800;
  color: var(--rose);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12px;
}

.tm-h1{
  font-family: var(--font-display);
  font-size: 28px;
  margin: 8px 0;
  color: var(--text);
  font-weight: 600;
}

.tm-p{ color: var(--text-secondary); margin: 0; line-height: 1.7; font-size: 15px; }

.tm-hero-right{ display:flex; flex-direction:column; align-items:flex-end; gap: 12px; }
.tm-btn{
  border-radius: 12px;
  padding: 12px 18px;
  border: 1px solid var(--stroke);
  background: var(--card);
  cursor:pointer;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
}
.tm-btn:hover{
  background: var(--card-hover);
}
.tm-btn-primary{
  border-color: transparent;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.tm-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 120, 138, 0.30);
}
.tm-status{ font-size: 13px; color: var(--muted); }

.tm-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 980px){
  .tm-grid2{ grid-template-columns: 1fr; }
}
.tm-grid3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px){
  .tm-grid3{ grid-template-columns: 1fr; }
}

.tm-citywrap{ position: relative; }
.tm-dropdown{
  position:absolute;
  top: 72px;
  left:0; right:0;
  z-index: 100;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
}
.tm-dropdown .item{
  padding: 12px 14px;
  cursor:pointer;
  color: var(--text);
  transition: background 0.15s;
}
.tm-dropdown .item:hover{ background: rgba(232, 120, 138, 0.12); }

.tm-picked{ margin-top: 8px; font-size: 12px; color: var(--muted); }
.tm-mini-input{ margin-top: 8px; opacity: 0.95; font-size: 12px; }

.tm-toggles{
  margin-top: 14px;
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}
.tm-check{
  font-size: 14px;
  color: var(--text-secondary);
  display:flex;
  gap: 10px;
  align-items:center;
  cursor: pointer;
}
.tm-check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--rose);
}
.tm-muted{
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.tm-snapshot{ display:flex; flex-direction:column; gap: 10px; }
.tm-srow{ display:flex; justify-content:space-between; color: var(--text-secondary); font-size: 14px; }
.tm-srow b{ color: var(--text); font-weight: 700; }
.tm-divider{ height: 1px; background: var(--stroke); margin: 8px 0; }

.tm-details{
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--card-hover);
  padding: 14px 16px;
}
.tm-details summary{
  cursor:pointer;
  font-weight: 700;
  color: var(--text-secondary);
}
.tm-details[open] summary{
  color: var(--rose);
}

.tm-code{
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: var(--card-hover);
  padding: 12px;
  border-radius: 10px;
}

.tm-charts{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){
  .tm-charts{ grid-template-columns: 1fr; }
}

.tm-subtabs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tm-subtab{
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}
.tm-subtab:hover{
  color: var(--text);
}
.tm-subtab.active{
  border-color: transparent;
  background: var(--gradient-accent);
  color: #fff;
}

.tm-tabpane{ display:none; }
.tm-tabpane.active{ display:block; }

.tm-pred{
  max-height: 360px;
  overflow:auto;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(50,80,120,0.10);
  background: rgba(255,255,255,0.72);
  line-height: 1.62;
}
.tm-pred p{ margin: 10px 0; }
.tm-pred ul{ margin: 10px 0 10px 18px; }
.tm-pred li{ margin: 7px 0; }

.tm-wip{
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.tm-wip-hero{
  font-family: Fraunces, serif;
  font-size: 22px;
  margin-bottom: 8px;
}
.tm-wip-body{ color: var(--muted); }
.tm-wip-card{
  height: 160px;
  border-radius: 18px;
  margin-top: 12px;
  background:
    radial-gradient(240px 140px at 25% 35%, rgba(102,182,255,0.22), transparent 60%),
    radial-gradient(240px 140px at 70% 40%, rgba(112,227,193,0.20), transparent 60%),
    rgba(255,255,255,0.55);
  border: 1px solid rgba(50,80,120,0.10);
}
.tm-section{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(50,80,120,0.10);
  background: rgba(255,255,255,0.68);
}
.tm-section-title{
  font-weight: 1000;
  color: rgba(16,32,51,0.78);
  margin-bottom: 6px;
}

/* ---------- WIP Pages ---------- */
.tm-wip-page{
  margin-top: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.tm-wip-hero{
  display:flex;
  gap: 18px;
  align-items:center;
  padding: 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 400px 250px at 20% 30%, rgba(232, 120, 138, 0.12), transparent 60%),
    radial-gradient(ellipse 350px 220px at 80% 40%, rgba(184, 165, 212, 0.10), transparent 60%),
    var(--card-hover);
  border: 1px solid var(--stroke);
}

.tm-wip-icon{
  width: 64px; height: 64px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 16px;
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-glow);
  font-size: 28px;
  color: #fff;
}
.tm-wip-icon.pink{
  background: var(--gradient-accent);
  box-shadow: 0 12px 32px rgba(184, 165, 212, 0.30);
}
.tm-wip-icon.warm{
  background: var(--gradient-warm);
  box-shadow: 0 12px 32px rgba(232, 168, 73, 0.30);
}
.tm-wip-icon.cool{
  background: var(--gradient-sky);
  box-shadow: 0 12px 32px rgba(126, 181, 212, 0.30);
}

.tm-wip-title{
  font-family: var(--font-display);
  font-size: 26px;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}
.tm-wip-sub{
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
}

.tm-wip-grid{
  margin-top: 20px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px){
  .tm-wip-grid{ grid-template-columns: 1fr; }
}

.tm-wip-card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tm-wip-card:hover{
  border-color: var(--stroke-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tm-wip-card-title{
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11px;
}

.tm-wip-card-desc{
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.tm-wiplist{ margin-top: 12px; display:flex; flex-direction:column; gap: 10px; }
.tm-wipitem{
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--card-hover);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.tm-wipitem:hover{
  background: rgba(232, 120, 138, 0.1);
  border-color: rgba(232, 120, 138, 0.3);
  transform: translateX(4px);
}
.tm-wipitem-icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.tm-wipitem-icon.indigo{ background: rgba(184, 165, 212, 0.25); }
.tm-wipitem-icon.teal{ background: rgba(126, 176, 138, 0.25); }
.tm-wipitem-icon.pink{ background: rgba(232, 120, 138, 0.20); }
.tm-wipitem-icon.amber{ background: rgba(232, 168, 73, 0.25); }
.tm-wipitem-content{ flex: 1; }
.tm-wipitem-title{ font-weight: 600; margin-bottom: 2px; color: var(--text); }
.tm-wipitem-desc{ font-size: 12px; color: var(--muted); }

.tm-wip-input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg-warm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-wip-input:focus{
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 120, 138, 0.15);
}
.tm-wip-input::placeholder{
  color: var(--muted);
}

.tm-wip-btn{
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-glow);
}
.tm-wip-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 120, 138, 0.35);
}
.tm-wip-btn.secondary{
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: none;
  color: var(--text);
}
.tm-wip-btn.secondary:hover{
  background: var(--card-hover);
  box-shadow: var(--shadow-sm);
}

.tm-chat-container{
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--bg-warm);
  overflow: hidden;
}
.tm-chat-messages{
  height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-chat-msg{
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
}
.tm-chat-msg.user{
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.tm-chat-msg.ai{
  align-self: flex-start;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 8px 0;
  max-width: 100%;
}
.tm-chat-input-wrap{
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--stroke);
  background: var(--card);
}
.tm-chat-input{
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--bg-warm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.tm-chat-input:focus{
  border-color: var(--rose);
}
.tm-chat-send{
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tm-chat-send:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* ---------- Modal ---------- */
.tm-modal-backdrop{
  position: fixed; inset: 0;
  background: rgba(61, 44, 30, 0.25);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.tm-modal{
  position: fixed;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 26px));
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 60;
  overflow: hidden;
}
.tm-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(50,80,120,0.12);
}
.tm-modal-title{
  font-weight: 1000;
  letter-spacing: 0.4px;
}
.tm-modal-x{
  border: 1px solid rgba(50,80,120,0.14);
  background: rgba(255,255,255,0.70);
  border-radius: 14px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight: 900;
}
.tm-modal-body{ padding: 14px 16px; }
.tm-modal-list{ margin-top: 10px; display:flex; flex-direction:column; gap: 10px; }
.tm-modal-item{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(50,80,120,0.12);
  background: rgba(255,255,255,0.70);
  color: rgba(16,32,51,0.76);
}
.tm-modal-actions{
  padding: 14px 16px;
  border-top: 1px solid rgba(50,80,120,0.12);
  display:flex;
  justify-content:flex-end;
}

/* ---------- Toast ---------- */
.tm-toast{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(50,80,120,0.16);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 18px 50px rgba(16,32,51,0.18);
  z-index: 80;
  color: rgba(16,32,51,0.82);
  font-weight: 800;
  max-width: min(720px, calc(100% - 24px));
  text-align: center;
}

/* ----------------------------------------------------
   Life Reading: charts + prediction layout
-----------------------------------------------------*/
.chart{
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
  table-layout: fixed;
}
.chart td{
  border: 1px solid rgba(232, 120, 138, 0.15);
  border-radius: 12px;
  vertical-align: top;
  padding: 12px;
  height: 100px;
  background: #fffaf6;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chart td:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 120, 138, 0.15);
}
.chart td.blank{
  background: linear-gradient(135deg,
    rgba(255, 220, 200, 0.3),
    rgba(255, 200, 180, 0.2));
  border: 1px dashed rgba(232, 120, 138, 0.2);
}
.chart td.blank:hover{
  transform: none;
}
.chart td.center-blank{
  background: linear-gradient(135deg,
    #fff8f4 0%,
    #ffefe8 100%);
  border: 1px dashed rgba(232, 120, 138, 0.25) !important;
  text-align: center;
  vertical-align: middle;
}
/* Sign name: very small, top-left */
.cellhead{
  font-weight: 500;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: absolute;
  top: 6px;
  left: 8px;
}

/* Planet abbreviations: smaller, with colors */
.cellbody{
  margin-top: 18px;
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Chart cell positioning */
.chart td{
  position: relative;
}

/* ASC and PA houses - no special background, just badges */
.firsthouse-asc{
  /* No special background/border - clean look */
}
.firsthouse-pa{
  border: 2px solid rgba(27, 94, 32, 0.4) !important; /* Light green border only */
  background: transparent !important;
}

/* Tags (ASC/PA) positioned bottom-right */
.tagwrap{
  display: flex;
  gap: 4px;
  position: absolute;
  bottom: 6px;
  right: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tag{
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: transparent;
}
.tag-asc{
  background: transparent;
  color: #1a73e8; /* Blue for ASC */
  font-weight: 800;
}
.tag-pa{
  background: transparent;
  color: #1B5E20; /* Dark green for PA (shows "1") */
  font-weight: 800;
  font-size: 11px;
}

/* Planet colors in chart */
.planet-Su { color: #FFD700 !important; } /* Sun: Bright yellow */
.planet-Mo { color: #4a4a4a !important; text-shadow: 0 0 1px #fff; } /* Moon: Black/white */
.planet-Ma { color: #DC143C !important; } /* Mars: Red */
.planet-Me { color: #98D8AA !important; } /* Mercury: Whitish green */
.planet-Ju { color: #FFC107 !important; } /* Jupiter: Yellow */
.planet-Ve { color: #87CEEB !important; } /* Venus: Light blue */
.planet-Sa { color: #1a237e !important; } /* Saturn: Dark blue */
.planet-Ra { color: #00C853 !important; } /* Rahu: Bright green */
.planet-Ke { color: #8B4513 !important; } /* Ketu: Brown */

.tm-pred-tabs{ display:flex; flex-wrap: wrap; gap: 8px; }
.tm-pred-tab{
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.tm-pred-tab:hover{
  color: var(--text);
  background: var(--card-hover);
}
.tm-pred-tab.active{
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.tm-pred-pane{ display:none; margin-top: 16px; }
.tm-pred-pane.active{ display:block; }
.tm-pre{
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 520px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--card);
  padding: 16px;
  color: var(--text);
}

/* ---------- Prediction typography polish ---------- */
.tm-pre-pred{
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.02em;

  background: linear-gradient(135deg, #fefcfa, #fffaf6);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);

  padding: 24px;
  border-radius: 16px;
  color: #1a365d; /* Dark blue-black */
}

/* Headings in predictions */
.tm-pre-pred h2,
.tm-pre-pred strong {
  color: #c17f59;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  margin-bottom: 12px;
}

/* Bullet points styling */
.tm-pre-pred li,
.tm-pre-pred p {
  color: #1a365d;
}

/* make bullets feel clean */
.tm-pre-pred::selection{ background: rgba(26, 54, 93, 0.20); }

/* dasha mini table style */
.tm-mini-table{ display:flex; flex-direction:column; gap: 6px; margin-top: 12px; }

/* Expandable dasha row */
.tm-dasha-row{
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: var(--card-hover);
  overflow: hidden;
}
.tm-dasha-row summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
}
.tm-dasha-row summary::-webkit-details-marker{ display:none; }
.tm-dasha-row summary::before{
  content: "▸";
  font-size: 11px;
  margin-right: 8px;
  color: var(--text-secondary);
  transition: transform 0.15s;
}
.tm-dasha-row[open] summary::before{ transform: rotate(90deg); }
.tm-dasha-row summary b{ color: var(--rose); font-weight: 700; margin-left:auto; }
.tm-dasha-row[open] summary{ border-bottom: 1px solid var(--stroke); }

/* Timeline list inside expanded dasha row */
.tm-dasha-tl{
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
}
.tm-dasha-tl-row{
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 4px;
}
.tm-dasha-tl-row.current{
  background: rgba(126, 176, 138, 0.15);
  font-weight: 600;
  color: var(--text);
}
.tm-dasha-tl-head{
  font-weight: 700;
  color: var(--rose);
  font-size: 11px;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 2px;
}

/* Legacy compat */
.tm-mrow{
  display:flex;
  justify-content:space-between;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--card-hover);
  border-radius: 8px;
}
.tm-mrow b{ color: var(--rose); font-weight: 700; }

/* table polish */
.tm-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tm-table th, .tm-table td{
  padding: 12px 14px;
  border: 1px solid var(--stroke);
}
.tm-table th{
  background: var(--card-hover);
  font-weight: 700;
  color: var(--rose);
  text-align: left;
}
.tm-table td{
  color: var(--text);
}

.tm-row-current {
  background: rgba(126, 176, 138, 0.15);
  font-weight: 600;
}

.tm-pred-wrap { padding: 8px 4px; }
.tm-bullets{
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
}
.tm-bullets li{
  margin: 10px 0;
}
.tm-bullets li::marker{
  color: var(--rose);
}

/* ---------- Equal Chart Layout ---------- */
.two{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.two > div {
  min-width: 0;
}
@media (max-width: 980px){
  .two{ grid-template-columns: 1fr; }
}

/* ---------- Live Page Overrides ---------- */
.wrap{
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.bgGlow{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 106, 255, 0.15), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(0, 212, 170, 0.12), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.10), transparent 40%);
}

.hero{
  padding: 28px 24px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.15) 0%, rgba(0, 212, 170, 0.10) 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.heroTop{
  display: flex;
  align-items: center;
  gap: 16px;
}
.brandMark{
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--gradient-primary);
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(124, 106, 255, 0.35);
}
.heroTitle{
  font-family: Fraunces, serif;
  font-size: 28px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.heroSub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.panel{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}
.panel h2{
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mint);
}
.panel h3{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.row{ margin-bottom: 14px; }
.row label{
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.row input, .row select, .row textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8d5c4;
  background: #fffcf8;
  color: #5d4e37;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.row input:focus, .row select:focus{
  border-color: #c17f59;
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.2);
}

.grid2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 768px){
  .grid2, .grid3{ grid-template-columns: 1fr; }
}

hr{
  border: none;
  height: 1px;
  background: var(--stroke);
  margin: 20px 0;
}

.citywrap{ position: relative; }
.drop{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(30, 30, 50, 0.98);
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow-y: auto;
}
.drop .item{
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}
.drop .item:hover{
  background: rgba(124, 106, 255, 0.20);
}

.hintline{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.mutedpill{
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 106, 255, 0.15);
  color: var(--blue);
  font-size: 11px;
  margin-left: 6px;
}

.inline{ display: flex; align-items: center; }
.chk{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.chk input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

button#go{
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(124, 106, 255, 0.30);
}
button#go:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 106, 255, 0.40);
}
button#go:active{
  transform: translateY(0);
}

/* Side table */
.kv3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 768px){
  .kv3{ grid-template-columns: 1fr 1fr; }
}
.kvc{
  padding: 12px;
  border-radius: 12px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
}
.kvc .k{
  font-size: 11px;
  color: #8b7355;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.kvc .v{
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
}

/* Dasha Card */
.dashaCard{
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(255, 107, 138, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.dashaHead{ margin-bottom: 12px; }
.dashaTitle{
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
}
.dashaSub{
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.dashaGrid{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drow{
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffaf6;
  align-items: center;
}
.dk{
  font-size: 12px;
  color: #8b7355;
}
.dv{
  font-weight: 700;
  color: #5d4e37;
}
.dt{
  font-size: 11px;
  color: var(--muted);
}

.natureBox{
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 212, 170, 0.10);
  border: 1px solid rgba(0, 212, 170, 0.25);
}
.natureBox .k{
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}
.natureBox .v{
  font-size: 14px;
  font-weight: 700;
  color: var(--mint);
  margin-top: 4px;
}
.nature2{
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 12px;
}
.nature2 .k{ color: var(--muted); }

/* Charts */
.legendline{
  display: flex;
  gap: 16px;
  margin-top: 10px;
  justify-content: center;
}
.legenditem{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.dot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.asc{ background: var(--blue); }
.dot.pa{ background: var(--mint); }

/* Tabs */
.tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tab{
  padding: 10px 16px;
  border: 1px solid #e8d5c4;
  border-radius: 999px;
  background: #fffcf8;
  color: #8b7355;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover{
  background: rgba(193, 127, 89, 0.15);
  color: #5d4e37;
}
.tab.active{
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(193, 127, 89, 0.30);
}

.tabpane{ display: none; }
.tabpane.active{ display: block; }
.tabpane pre{
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  color: #5d4e37;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  max-height: 400px;
  overflow-y: auto;
}

/* Details/Analysis */
details{
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  background: #fffaf6;
  padding: 12px 14px;
}
details summary{
  cursor: pointer;
  font-weight: 700;
  color: #8b7355;
}
details pre{
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff8f0;
  color: #5d4e37;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  max-height: 300px;
  overflow-y: auto;
}

/* Chart table clean theme */
.chart td{
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
  position: relative;
}
.chart td.blank{
  background: var(--card2);
}
/* .cellhead and .cellbody already defined above */

/* ASC and PA styles */
.firsthouse-asc{
  /* No special styling - clean look */
}
.firsthouse-pa{
  border: 2px solid rgba(27, 94, 32, 0.4) !important; /* Light green border only */
  background: transparent !important;
}

/* Tag styles already defined above - these are theme overrides */
/* Using blue for ASC, green for PA */

/* Horoscope Chat */
.tm-horoscope-chat {
  margin-top: 16px;
}

/* Chat Card - Clickable to expand */
.tm-chat-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tm-chat-card:not(.fullscreen):hover {
  box-shadow: 0 8px 30px rgba(193, 127, 89, 0.15);
  transform: translateY(-2px);
}

.tm-chat-header {
  transition: all 0.3s ease;
}

.tm-chat-header-content {
  flex: 1;
}

.tm-chat-expand-hint {
  font-size: 12px;
  color: #a89a8a;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.tm-chat-card:not(.fullscreen):hover .tm-chat-expand-hint {
  opacity: 1;
}

/* Minimize Button */
.tm-chat-minimize-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-chat-minimize-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(193, 127, 89, 0.4);
}

.tm-chat-card.fullscreen .tm-chat-minimize-btn {
  display: flex;
}

/* Fullscreen Chat Mode */
.tm-chat-card.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8f0 100%);
  cursor: default;
  transform: none;
  animation: chatExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatExpand {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes chatMinimize {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
}

.tm-chat-card.fullscreen .tm-chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e8d5c4;
  background: linear-gradient(135deg, #fff 0%, #fffcf8 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tm-chat-card.fullscreen .tm-chat-note,
.tm-chat-card.fullscreen .tm-chat-expand-hint {
  display: none;
}

.tm-chat-card.fullscreen .tm-card-title {
  font-size: 20px;
}

.tm-chat-card.fullscreen .tm-horoscope-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.tm-chat-card.fullscreen .tm-chat-messages {
  flex: 1;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e8d5c4;
  margin: 0;
  padding: 24px;
}

.tm-chat-card.fullscreen .tm-chat-msg {
  max-width: 100%;
}

.tm-chat-card.fullscreen .tm-chat-msg.ai {
  background: transparent;
  border: none;
  padding: 12px 0;
}

.tm-chat-card.fullscreen .tm-chat-input-wrap {
  padding: 20px 24px;
  background: #fff;
  border-top: 1px solid #e8d5c4;
  flex-shrink: 0;
}

.tm-chat-card.fullscreen .tm-chat-input {
  padding: 18px 24px;
  font-size: 17px;
  min-height: 56px;
}

.tm-chat-card.fullscreen .tm-chat-send {
  padding: 16px 28px;
  font-size: 16px;
}

.tm-chat-card.fullscreen .tm-chat-hint {
  display: none;
}

/* Fullscreen suggestion chips - larger */
.tm-chat-card.fullscreen .tm-chat-suggestion-chip {
  padding: 12px 20px;
  font-size: 14px;
}

/* Body scroll lock when chat is fullscreen */
body.chat-fullscreen {
  overflow: hidden;
}

.tm-horoscope-chat .tm-chat-messages {
  min-height: 250px;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  margin-bottom: 12px;
}

.tm-horoscope-chat .tm-chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 10px;
  max-width: 85%;
  line-height: 1.5;
}

.tm-horoscope-chat .tm-chat-msg.user {
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.tm-horoscope-chat .tm-chat-msg.ai {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 8px 0;
  max-width: 100%;
  border-radius: 0;
}

.tm-horoscope-chat .tm-chat-thinking {
  font-style: italic;
  color: #8b7355;
}

.tm-horoscope-chat .tm-chat-input-wrap {
  display: flex;
  gap: 10px;
}

.tm-horoscope-chat .tm-chat-input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  min-height: 50px;
}

.tm-horoscope-chat .tm-chat-input:focus {
  border-color: #c17f59;
}

.tm-horoscope-chat .tm-chat-input:disabled {
  background: #f5ede5;
  color: #a89a8a;
}

.tm-horoscope-chat .tm-chat-send {
  padding: 12px 24px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tm-horoscope-chat .tm-chat-send:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-horoscope-chat .tm-chat-send:disabled {
  background: #d4c5b5;
  cursor: not-allowed;
}

/* Welcome message styling */
.tm-chat-welcome {
  background: linear-gradient(135deg, rgba(193, 127, 89, 0.08), rgba(212, 149, 108, 0.05)) !important;
  border: 1px solid rgba(193, 127, 89, 0.15);
  border-radius: 16px;
  padding: 20px !important;
}

.tm-welcome-avatar {
  font-size: 28px;
  margin-bottom: 12px;
}

.tm-welcome-greeting {
  font-size: 18px;
  font-weight: 600;
  color: #8b6543;
  margin-bottom: 12px;
}

.tm-welcome-content .chat-line {
  color: #5a4a3a;
  line-height: 1.6;
}

.tm-welcome-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  font-size: 13px;
  color: #7a6a5a;
}

.tm-hint-icon {
  font-size: 16px;
}

/* Explain toggle checkbox */
.tm-chat-explain-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  padding: 0 8px;
}

.tm-chat-explain-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--rose);
  cursor: pointer;
}

.tm-chat-explain-toggle span {
  font-weight: 500;
}

.tm-chat-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8b7355;
  text-align: center;
  font-style: italic;
}

/* Tell Me More Button */
.tm-tell-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #fff8f0;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  color: #c17f59;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-tell-more-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

.tm-tell-more-btn:disabled {
  background: #f5ede5;
  color: #a89a8a;
  border-color: #e8d5c4;
  cursor: not-allowed;
}

.tm-tell-more-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tm-singles-btn {
  background: #f8f0ff;
  border-color: #d4b8e8;
  color: #8b5ab5;
}
.tm-singles-btn:hover {
  background: #8b5ab5;
  color: #fff;
  border-color: #8b5ab5;
}

.tm-generate-report-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #fefcfa, #fff8f0);
  border: 1px solid #e8d5c4;
  border-radius: 24px;
  color: #c17f59;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.tm-generate-report-btn:hover {
  background: linear-gradient(135deg, #c17f59, #d4a853);
  color: #fff;
  border-color: #c17f59;
  box-shadow: 0 4px 14px rgba(193, 127, 89, 0.3);
}
.tm-generate-report-btn:disabled {
  background: #f5ede5;
  color: #a89a8a;
  border-color: #e8d5c4;
  cursor: not-allowed;
}

.tm-tell-more-content {
  margin-top: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fefcfa, #fffaf6);
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1a365d;
  line-height: 1.7;
  font-size: 14.5px;
}

.tm-tell-more-content strong {
  display: block;
  font-family: 'Georgia', serif;
  font-size: 14px;
  font-weight: 700;
  color: #8b5a3c;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(193, 127, 89, 0.08);
  border-left: 3px solid #c17f59;
  border-radius: 0 6px 6px 0;
}

.tm-tell-more-content strong:first-child {
  margin-top: 0;
}

.tm-tell-more-content ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.tm-tell-more-content li,
.tm-tell-more-content p {
  margin: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.7;
  color: #1a365d;
}

.tm-tell-more-content li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: #c17f59;
  font-size: 14px;
  line-height: 1.7;
}

/* Chat message formatting */
.chat-line {
  margin-bottom: 8px;
}

.chat-bullet {
  padding-left: 8px;
  margin: 6px 0;
  border-left: 2px solid #c17f59;
  color: #5d4e37;
}

.tm-chat-msg.ai .chat-bullet {
  background: transparent;
  padding: 2px 0;
  margin-left: 8px;
}

/* Chat Headers */
.chat-header {
  font-size: 15px;
  font-weight: 600;
  color: #5d4e37;
  margin: 16px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(193, 127, 89, 0.2);
}

.chat-header:first-child {
  margin-top: 4px;
}

/* Chat Line (paragraph) */
.chat-line {
  margin: 6px 0;
  line-height: 1.7;
}

/* Chat Tables */
.chat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.chat-table tr:first-child {
  background: rgba(193, 127, 89, 0.1);
  font-weight: 600;
}

.chat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(193, 127, 89, 0.1);
  vertical-align: top;
}

.chat-table tr:last-child td {
  border-bottom: none;
}

/* Key Insight Box */
.chat-key-insight {
  background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
  border: 1px solid #e8d5c4;
  border-left: 4px solid #c17f59;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-insight-icon {
  font-size: 18px;
  line-height: 1;
}

/* Suggestion Chips */
.tm-chat-suggestions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(193, 127, 89, 0.3);
}

.tm-chat-suggestions-label {
  font-size: 12px;
  color: #8b7355;
  margin-bottom: 10px;
  font-weight: 500;
}

.tm-chat-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-chat-suggestion-chip {
  background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 100%);
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #5d4e37;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  line-height: 1.4;
}

.tm-chat-suggestion-chip:hover {
  background: linear-gradient(135deg, #c17f59, #d4956c);
  border-color: #c17f59;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.2);
}

.tm-chat-suggestion-chip:active {
  transform: translateY(0);
}

/* =============================================
   My World - Photo Integrations
============================================= */
.tm-integration-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tm-integration-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  transition: all 0.2s;
}

.tm-integration-item:hover {
  border-color: #c17f59;
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.1);
}

.tm-integration-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-integration-info {
  flex: 1;
}

.tm-integration-name {
  font-weight: 600;
  color: #5d4e37;
}

.tm-integration-status {
  font-size: 12px;
  color: #8b7355;
  margin-top: 2px;
}

.tm-integration-status.connected {
  color: #7eb8a8;
}

.tm-integration-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-integration-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-integration-btn.connected {
  background: #7eb8a8;
}

/* Memories Grid */
.tm-memories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.tm-memory-placeholder {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background: #fffaf6;
  border: 2px dashed #e8d5c4;
  border-radius: 12px;
}

.tm-memory-placeholder-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.tm-memory-placeholder-text {
  color: #8b7355;
  font-size: 14px;
}

.tm-memory-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.tm-memory-item:hover {
  transform: scale(1.05);
}

.tm-memory-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-memory-insight {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #fff8f0, #fffaf6);
  border: 1px solid #e8d5c4;
  border-radius: 12px;
}

.tm-memory-insight-title {
  font-weight: 600;
  color: #c17f59;
  margin-bottom: 6px;
}

.tm-memory-insight-text {
  color: #5d4e37;
  line-height: 1.6;
}

/* Connections */
.tm-connections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.tm-connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  border-radius: 24px;
}

.tm-connection-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.tm-connection-name {
  font-weight: 500;
  color: #5d4e37;
}

.tm-connection-placeholder {
  width: 100%;
  padding: 20px;
  text-align: center;
  color: #8b7355;
  font-size: 14px;
}

/* =============================================
   Helper - Schedule & Travel
============================================= */
.tm-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.tm-schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  transition: all 0.2s;
}

.tm-schedule-item:hover {
  border-color: #c17f59;
}

.tm-schedule-item.dim {
  opacity: 0.6;
}

.tm-schedule-time {
  text-align: center;
  min-width: 50px;
}

.tm-schedule-hour {
  font-size: 16px;
  font-weight: 700;
  color: #5d4e37;
}

.tm-schedule-ampm {
  font-size: 11px;
  color: #8b7355;
}

.tm-schedule-content {
  flex: 1;
}

.tm-schedule-title {
  font-weight: 600;
  color: #5d4e37;
}

.tm-schedule-meta {
  font-size: 12px;
  color: #8b7355;
  margin-top: 2px;
}

.tm-schedule-badge {
  padding: 4px 10px;
  background: #f5ede5;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #8b7355;
}

.tm-schedule-badge.soon {
  background: rgba(193, 127, 89, 0.15);
  color: #c17f59;
}

.tm-schedule-empty {
  padding: 30px;
  text-align: center;
  color: #8b7355;
}

.tm-schedule-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* Travel Planner */
.tm-travel-quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tm-travel-btn {
  padding: 10px 16px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #5d4e37;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-travel-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

/* Tasks */
.tm-task-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.tm-task-input-wrap .tm-wip-input {
  flex: 1;
}

.tm-task-add-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-task-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 8px;
}

.tm-task-item.completed .tm-task-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.tm-task-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #c17f59;
}

.tm-task-text {
  flex: 1;
  color: #5d4e37;
}

.tm-task-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.tm-task-stat {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-task-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #c17f59;
}

.tm-task-stat-label {
  font-size: 11px;
  color: #8b7355;
  margin-top: 2px;
}

/* =============================================
   Growth - Charts & Metrics
============================================= */
.tm-growth-chart-container {
  margin-top: 16px;
  padding: 20px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 12px;
}

.tm-growth-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tm-growth-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5d4e37;
}

.tm-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Metrics */
.tm-metric-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.tm-metric-item {
  padding: 14px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-metric-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tm-metric-name {
  font-weight: 500;
  color: #5d4e37;
}

.tm-metric-value {
  font-weight: 700;
  color: #c17f59;
}

.tm-metric-bar {
  height: 8px;
  background: #f5ede5;
  border-radius: 4px;
  overflow: hidden;
}

.tm-metric-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.tm-metric-change {
  font-size: 12px;
  margin-top: 8px;
}

.tm-metric-change.positive {
  color: #7eb8a8;
}

.tm-metric-change.neutral {
  color: #8b7355;
}

.tm-metric-change.negative {
  color: #e87878;
}

/* Achievements */
.tm-achievement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tm-achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-achievement-icon {
  font-size: 24px;
}

.tm-achievement-content {
  flex: 1;
}

.tm-achievement-title {
  font-weight: 600;
  color: #5d4e37;
}

.tm-achievement-desc {
  font-size: 12px;
  color: #8b7355;
  margin-top: 2px;
}

.tm-achievement-date {
  font-size: 11px;
  color: #a89a8a;
}

/* Insights */
.tm-insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tm-insight-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, #fffaf6, #fff8f0);
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-insight-icon {
  font-size: 20px;
}

.tm-insight-text {
  flex: 1;
  color: #5d4e37;
  line-height: 1.6;
}

/* =============================================
   Social Life - Network & Connections
============================================= */

/* Network Score */
.tm-network-score {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.tm-score-circle {
  position: relative;
  width: 140px;
  height: 140px;
}

.tm-score-svg {
  width: 100%;
  height: 100%;
}

.tm-score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 36px;
  font-weight: 700;
  color: #5d4e37;
}

.tm-score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  font-size: 14px;
  color: #7eb8a8;
  font-weight: 600;
}

.tm-score-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.tm-score-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fffcf8;
  border-radius: 8px;
}

.tm-score-item-label {
  color: #5d4e37;
  font-size: 13px;
}

.tm-score-item-value {
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}

.tm-score-item-value.good {
  background: rgba(126, 184, 168, 0.15);
  color: #7eb8a8;
}

.tm-score-item-value.moderate {
  background: rgba(193, 127, 89, 0.15);
  color: #c17f59;
}

.tm-score-item-value.needs-attention {
  background: rgba(232, 120, 120, 0.15);
  color: #e87878;
}

/* Action List */
.tm-action-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tm-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  transition: all 0.2s;
}

.tm-action-item:hover {
  border-color: #c17f59;
}

.tm-action-item.priority-high {
  border-left: 3px solid #e87878;
}

.tm-action-item.priority-medium {
  border-left: 3px solid #c17f59;
}

.tm-action-item.priority-low {
  border-left: 3px solid #7eb8a8;
}

.tm-action-icon {
  font-size: 24px;
}

.tm-action-content {
  flex: 1;
}

.tm-action-title {
  font-weight: 600;
  color: #5d4e37;
}

.tm-action-desc {
  font-size: 12px;
  color: #8b7355;
  margin-top: 4px;
}

.tm-action-btn {
  padding: 6px 14px;
  background: #fff8f0;
  border: 1px solid #e8d5c4;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #c17f59;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-action-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

/* Dates List */
.tm-dates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.tm-date-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-date-cal {
  width: 50px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  border-radius: 8px;
  color: #fff;
}

.tm-date-month {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.9;
}

.tm-date-day {
  font-size: 20px;
  font-weight: 700;
}

.tm-date-content {
  flex: 1;
}

.tm-date-title {
  font-weight: 600;
  color: #5d4e37;
}

.tm-date-people {
  font-size: 12px;
  color: #8b7355;
  margin-top: 2px;
}

.tm-date-countdown {
  font-size: 12px;
  color: #c17f59;
  font-weight: 600;
}

/* Circle Tabs */
.tm-circle-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tm-circle-tab {
  padding: 8px 14px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #8b7355;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-circle-tab:hover {
  border-color: #c17f59;
  color: #c17f59;
}

.tm-circle-tab.active {
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border-color: transparent;
}

/* Person Cards */
.tm-circle-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tm-person-card {
  padding: 16px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.tm-person-card:hover {
  border-color: #c17f59;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.15);
}

.tm-person-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 10px;
}

.tm-person-name {
  font-weight: 600;
  color: #5d4e37;
  font-size: 13px;
}

.tm-person-last {
  font-size: 11px;
  color: #8b7355;
  margin-top: 4px;
}

.tm-person-platforms {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.tm-platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tm-platform-dot.instagram {
  background: linear-gradient(135deg, #F77737, #C13584);
}

.tm-platform-dot.facebook {
  background: #1877F2;
}

.tm-platform-dot.linkedin {
  background: #0A66C2;
}

.tm-platform-dot.twitter {
  background: #000;
}

.tm-platform-dot.reddit {
  background: #FF4500;
}

/* =============================================
   Share Feature
============================================= */
.tm-hero-actions {
  margin-left: auto;
}

.tm-share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 127, 89, 0.3);
}

.tm-share-icon {
  font-size: 16px;
}

.tm-share-panel {
  margin-top: 16px;
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(93, 78, 55, 0.1);
}

.tm-share-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff8f0, #fffaf6);
  border-bottom: 1px solid #e8d5c4;
}

.tm-share-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #5d4e37;
}

.tm-share-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5ede5;
  border-radius: 50%;
  font-size: 16px;
  color: #8b7355;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-share-panel-close:hover {
  background: #e8d5c4;
  color: #5d4e37;
}

.tm-share-panel-body {
  padding: 20px;
}

.tm-share-desc {
  color: #5d4e37;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tm-share-field {
  margin-bottom: 20px;
}

.tm-share-field label {
  display: block;
  font-weight: 600;
  color: #5d4e37;
  margin-bottom: 8px;
}

.tm-share-input-wrap {
  display: flex;
  gap: 10px;
}

.tm-share-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  background: #fff;
  color: #5d4e37;
  font-size: 14px;
}

.tm-share-input:focus {
  outline: none;
  border-color: #c17f59;
}

.tm-share-send-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-share-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-share-options {
  margin-bottom: 20px;
  padding: 16px;
  background: #fffaf6;
  border-radius: 10px;
}

.tm-share-option-title {
  font-weight: 600;
  color: #5d4e37;
  margin-bottom: 12px;
}

.tm-share-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #5d4e37;
  cursor: pointer;
}

.tm-share-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #c17f59;
}

.tm-share-link-section {
  padding-top: 16px;
  border-top: 1px solid #e8d5c4;
}

.tm-share-link-wrap {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.tm-share-link {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  background: #f5ede5;
  color: #8b7355;
  font-size: 13px;
}

.tm-share-copy-btn {
  padding: 12px 20px;
  background: #fff8f0;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  font-weight: 600;
  color: #c17f59;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-share-copy-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

.tm-share-note {
  font-size: 12px;
  color: #8b7355;
  margin-top: 10px;
}

/* =============================================
   Chat Minimize Button & Card Header
============================================= */
.tm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.tm-card-header > div {
  flex: 1;
}

.tm-card-header .tm-wip-card-title,
.tm-card-header .tm-card-title {
  margin-bottom: 4px;
}

.tm-card-header .tm-wip-card-desc,
.tm-card-header .tm-card-note {
  margin-bottom: 0;
}

.tm-chat-minimize {
  width: 32px;
  height: 32px;
  border: 1px solid #e8d5c4;
  background: #fffaf6;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #8b7355;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tm-chat-minimize:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

.tm-chat-container.minimized,
.tm-horoscope-chat.minimized {
  display: none;
}

/* =============================================
   Layout Fixes for All Tabs
============================================= */

/* Fix WIP page layout */
.tm-wip-page {
  padding: 20px 0;
}

/* Fix hero section alignment */
.tm-wip-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tm-wip-hero > div:first-of-type {
  flex: 1;
  min-width: 200px;
}

/* Fix grid layout */
.tm-wip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 900px) {
  .tm-wip-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix card sizing */
.tm-wip-card {
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
  overflow: hidden;
}

.tm-wip-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #5d4e37;
  margin-bottom: 6px;
}

.tm-wip-card-desc {
  font-size: 13px;
  color: #8b7355;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Fix chat container sizing */
.tm-chat-container,
.tm-horoscope-chat {
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf6;
}

.tm-chat-messages {
  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
  padding: 14px;
}

.tm-chat-input-wrap {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e8d5c4;
  background: #fff;
}

.tm-chat-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  background: #fffcf8;
  color: #5d4e37;
  font-size: 14px;
}

.tm-chat-send {
  padding: 10px 18px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fix integration list */
.tm-integration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-integration-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-integration-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tm-integration-info {
  flex: 1;
  min-width: 0;
}

.tm-integration-name {
  font-weight: 600;
  color: #5d4e37;
  font-size: 14px;
}

.tm-integration-status {
  font-size: 12px;
  color: #8b7355;
}

.tm-integration-btn {
  padding: 8px 14px;
  font-size: 12px;
  flex-shrink: 0;
}

/* Fix schedule list */
.tm-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8d5c4;
  border-radius: 8px;
}

.tm-schedule-time {
  min-width: 45px;
  flex-shrink: 0;
}

.tm-schedule-content {
  flex: 1;
  min-width: 0;
}

.tm-schedule-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-schedule-badge {
  flex-shrink: 0;
}

/* Fix task list */
.tm-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.tm-task-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

/* Fix action list */
.tm-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.tm-action-content {
  flex: 1;
  min-width: 0;
}

.tm-action-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-action-btn {
  flex-shrink: 0;
}

/* Fix dates list */
.tm-dates-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-date-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.tm-date-content {
  flex: 1;
  min-width: 0;
}

.tm-date-title {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-date-countdown {
  flex-shrink: 0;
}

/* Fix circle people grid */
.tm-circle-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.tm-person-card {
  padding: 14px 10px;
}

.tm-person-name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix travel buttons */
.tm-travel-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tm-travel-btn {
  padding: 8px 12px;
  font-size: 12px;
}

/* Fix growth chart */
.tm-growth-chart-container {
  overflow-x: auto;
}

#growthChart {
  max-width: 100%;
  height: auto;
}

/* Fix metrics */
.tm-metric-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-metric-item {
  padding: 12px;
}

/* Fix achievement list */
.tm-achievement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-achievement-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.tm-achievement-content {
  flex: 1;
  min-width: 0;
}

.tm-achievement-title {
  font-size: 14px;
}

.tm-achievement-date {
  flex-shrink: 0;
}

/* Fix insights */
.tm-insights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-insight-item {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.tm-insight-text {
  font-size: 13px;
}

/* =============================================
   Profile Photo & Birthday
============================================= */
.tm-profile-photo-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8d5c4;
}

.tm-profile-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(193, 127, 89, 0.3);
  flex-shrink: 0;
}

.tm-profile-initials {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.tm-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-profile-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-photo-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e8d5c4;
  background: #fffaf6;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-photo-btn:hover {
  background: #c17f59;
  border-color: #c17f59;
  transform: scale(1.05);
}

.tm-photo-btn.danger:hover {
  background: #e87878;
  border-color: #e87878;
}

.tm-age-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff8f0, #fffaf6);
  border: 1px solid #e8d5c4;
  border-radius: 10px;
  margin-bottom: 16px;
}

.tm-age-label {
  font-size: 13px;
  color: #8b7355;
}

.tm-age-value {
  font-size: 24px;
  font-weight: 700;
  color: #c17f59;
}

.tm-age-suffix {
  font-size: 13px;
  color: #8b7355;
  font-style: italic;
}

/* Large Profile Photo Section */
.tm-profile-photo-large {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tm-profile-photo-large .tm-profile-photo {
  width: 120px;
  height: 120px;
  box-shadow: 0 8px 25px rgba(193, 127, 89, 0.35);
}

.tm-profile-photo-large .tm-profile-initials {
  font-size: 48px;
}

.tm-profile-photo-actions-large {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.tm-photo-btn-large {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e8d5c4;
  background: #fffaf6;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #5d4e37;
}

.tm-photo-btn-large:hover {
  background: #c17f59;
  border-color: #c17f59;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.3);
}

.tm-photo-btn-large.danger:hover {
  background: #e87878;
  border-color: #e87878;
}

.tm-photo-btn-icon {
  font-size: 14px;
}

.tm-photo-btn-text {
  font-weight: 500;
}

/* Birthday & Age Row */
.tm-birthday-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff8f0, #fffaf6);
  border: 1px solid #e8d5c4;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tm-birthday-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-birthday-label {
  font-size: 11px;
  color: #8b7355;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-birthday-value {
  font-size: 16px;
  font-weight: 600;
  color: #5d4e37;
}

.tm-age-display-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  border-radius: 12px;
}

.tm-age-value-large {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.tm-age-display-inline .tm-age-suffix {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
}

/* Focus Labels */
.tm-focus-hint {
  font-size: 13px;
  color: #a89a8a;
  font-style: italic;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8f4f0, #f5ede5);
  border: 1px dashed #e8d5c4;
  border-radius: 12px;
  text-align: center;
  margin-top: 8px;
}

.tm-focus-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tm-focus-label {
  padding: 8px 14px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  border: 1px solid #c17f59;
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  cursor: default;
  transition: all 0.2s;
  user-select: none;
  box-shadow: 0 2px 8px rgba(193, 127, 89, 0.25);
}

.tm-focus-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(193, 127, 89, 0.35);
}

/* Optional label styling */
.tm-optional {
  font-size: 11px;
  color: #a89a8a;
  font-weight: 400;
}

/* Field note styling */
.tm-field-note {
  font-size: 11px;
  color: #a89a8a;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* =============================================
   Collapsible Sections
============================================= */
.tm-card-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tm-card-header-mini > div {
  flex: 1;
}

.tm-section-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid #e8d5c4;
  background: #fffaf6;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #8b7355;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tm-section-toggle:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

.tm-collapsible-content {
  margin-top: 16px;
  transition: all 0.3s ease;
}

.tm-collapsible-content.minimized {
  display: none;
}

.tm-card-inputs {
  background: linear-gradient(135deg, #fff8f0, #fffcf8);
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* Ensure cards after birth inputs don't overlap the city dropdown */
.tm-card-inputs + .tm-card {
  position: relative;
  z-index: 1;
}

.tm-field-row {
  display: flex;
  gap: 10px;
}

/* =============================================
   Input Summary (Main Content)
============================================= */
.tm-input-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tm-input-group {
  padding: 14px;
  background: #fffaf6;
  border: 1px solid #e8d5c4;
  border-radius: 10px;
}

.tm-input-group-title {
  font-size: 12px;
  font-weight: 700;
  color: #c17f59;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e6dc;
}

.tm-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.tm-input-label {
  font-size: 13px;
  color: #8b7355;
}

.tm-input-value {
  font-size: 14px;
  font-weight: 600;
  color: #5d4e37;
}

.tm-input-value.highlight {
  color: #c17f59;
  background: rgba(193, 127, 89, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
}

/* =============================================
   Disclaimer Section
============================================= */
.tm-disclaimer {
  background: var(--card2);
  border-top: 1px solid var(--stroke);
  padding: 32px 24px;
  margin-top: 40px;
}

.tm-disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
}

.tm-disclaimer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px 0;
  text-align: center;
}

.tm-disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.tm-disclaimer ul {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.tm-disclaimer li {
  margin-bottom: 4px;
}

.tm-disclaimer strong {
  color: var(--text-secondary);
}

.tm-disclaimer-highlight {
  background: var(--bg-warm);
  border-left: 3px solid var(--rose);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin: 12px 0;
}

.tm-disclaimer-age {
  font-size: 10px;
  font-style: italic;
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

/* =============================================
   Chat Invitation
============================================= */
.tm-chat-invitation {
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--card) 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.tm-chat-invitation-icon {
  font-size: 36px;
  margin-bottom: 12px;
  animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.tm-chat-invitation-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 18px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tm-chat-invitation-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s ease;
}

.tm-chat-invitation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* =============================================
   Footer
============================================= */
.tm-footer {
  background: linear-gradient(135deg, #5d4e37, #8b7355);
  padding: 40px 24px;
  margin-top: 40px;
}

.tm-footer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tm-footer-message {
  margin-bottom: 24px;
}

.tm-footer-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.tm-footer-message p {
  color: #fff8f0;
  font-size: 16px;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
  opacity: 0.95;
}

.tm-footer-love {
  color: #d4c5b5;
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 248, 240, 0.15);
}

.tm-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-footer-links span {
  color: #c4b8aa;
  font-size: 12px;
}

.tm-footer-dot {
  opacity: 0.4;
}

/* =============================================
   Fortune Hero Layout Fix
============================================= */
.tm-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-wip-icon.fortune {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.tm-wip-icon.vault {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

.tm-wip-icon.evolution {
  background: linear-gradient(135deg, #e67e22, #f39c12);
}

/* =============================================
   My Vault Section
============================================= */
.tm-vault-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tm-vault-cat {
  padding: 10px 18px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-cat:hover {
  color: var(--text);
  background: var(--card-hover);
  border-color: var(--stroke-light);
}

.tm-vault-cat.active {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

/* Upload Zone */
.tm-vault-upload-card {
  min-height: 300px;
}

.tm-vault-upload-zone {
  border: 2px dashed var(--stroke-light);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
  transition: all 0.3s;
  cursor: pointer;
}

.tm-vault-upload-zone:hover,
.tm-vault-upload-zone.dragover {
  border-color: #3498db;
  background: linear-gradient(135deg, #eef6fc, #e8f4fd);
}

.tm-vault-upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.tm-vault-upload-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tm-vault-upload-or {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tm-vault-browse-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-browse-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.tm-vault-upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}

/* Upload Form */
.tm-vault-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.tm-vault-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.tm-vault-cancel-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-cancel-btn:hover {
  background: var(--card-hover);
}

.tm-vault-save-btn {
  flex: 2;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Quick Access */
.tm-vault-quick-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-vault-quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  transition: all 0.2s;
}

.tm-vault-quick-item:hover {
  border-color: var(--stroke-light);
  box-shadow: var(--shadow-sm);
}

.tm-vault-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.tm-vault-quick-icon.identity {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.tm-vault-quick-icon.financial {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.tm-vault-quick-info {
  flex: 1;
  min-width: 0;
}

.tm-vault-quick-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.tm-vault-quick-meta {
  font-size: 12px;
  color: var(--muted);
}

.tm-vault-view-btn {
  padding: 8px 16px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-view-btn:hover {
  color: var(--text);
  background: var(--card-hover);
}

/* Document Grid */
.tm-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tm-vault-doc-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
}

.tm-vault-doc-card:hover {
  border-color: var(--stroke-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.tm-vault-doc-preview {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa, #e8ecf1);
}

.tm-vault-doc-icon {
  font-size: 40px;
  opacity: 0.8;
}

.tm-vault-doc-info {
  padding: 14px;
}

.tm-vault-doc-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 14px;
}

.tm-vault-doc-category {
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #3498db, #2980b9);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 8px;
}

.tm-vault-doc-expiry {
  font-size: 12px;
  color: var(--muted);
}

.tm-vault-expiry-label {
  opacity: 0.7;
}

.tm-vault-expiry-date {
  font-weight: 600;
}

.tm-vault-doc-actions {
  display: flex;
  border-top: 1px solid var(--stroke);
}

.tm-vault-action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-vault-action-btn:hover {
  background: var(--card-hover);
}

.tm-vault-action-btn.danger:hover {
  background: #fee;
}

.tm-vault-action-btn:not(:last-child) {
  border-right: 1px solid var(--stroke);
}

/* Add Document Card */
.tm-vault-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-style: dashed;
  cursor: pointer;
  background: linear-gradient(135deg, #fafafa, #f5f5f5);
}

.tm-vault-add-card:hover {
  border-color: #3498db;
  background: linear-gradient(135deg, #eef6fc, #e8f4fd);
}

.tm-vault-add-icon {
  font-size: 36px;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0.5;
}

.tm-vault-add-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Expiring List */
.tm-vault-expiring-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-vault-expiring-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.tm-vault-expiring-item.warning {
  background: linear-gradient(135deg, #fff8e8, #fffdf5);
  border-color: #f0c36d;
}

.tm-vault-expiring-icon {
  font-size: 24px;
}

.tm-vault-expiring-info {
  flex: 1;
}

.tm-vault-expiring-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.tm-vault-expiring-date {
  font-size: 12px;
  color: var(--muted);
}

.tm-vault-renew-btn {
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tm-vault-renew-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, #e8788a, #f08873);
  border-color: transparent;
}

.tm-vault-no-expiring {
  text-align: center;
  padding: 30px;
}

.tm-vault-no-expiring-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tm-vault-no-expiring-text {
  color: var(--muted);
}

/* Security Section */
.tm-vault-security {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tm-vault-security-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  border: 1px solid var(--stroke);
  border-radius: 10px;
}

.tm-vault-security-icon {
  font-size: 20px;
}

.tm-vault-security-info {
  flex: 1;
}

.tm-vault-security-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.tm-vault-security-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Vault Stats */
.tm-vault-stats {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.tm-vault-stat {
  flex: 1;
  text-align: center;
}

.tm-vault-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
}

.tm-vault-stat-label {
  font-size: 12px;
  color: var(--muted);
}

/* =============================================
   Auth Screen
============================================= */
.tm-auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background:
    radial-gradient(ellipse 900px 600px at 10% 5%, rgba(232, 120, 138, 0.15), transparent 50%),
    radial-gradient(ellipse 800px 500px at 90% 15%, rgba(255, 176, 148, 0.12), transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 90%, rgba(184, 165, 212, 0.15), transparent 50%),
    var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 40px 20px;
  padding-top: max(40px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.tm-auth-container {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(60, 40, 20, 0.15);
  padding: 40px;
  padding-top: 30px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}
@media (max-width: 480px) {
  .tm-auth-container {
    padding: 24px 20px;
    border-radius: 20px;
  }
}

.tm-auth-header {
  margin-bottom: 32px;
}

.tm-auth-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(232, 120, 138, 0.35);
  font-size: 32px;
  color: #fff;
  margin: 0 auto 20px;
}

.tm-auth-title {
  font-family: var(--font-display);
  font-size: 32px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px;
}

.tm-auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Auth Options */
.tm-auth-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.tm-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.tm-auth-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 8px 25px rgba(232, 120, 138, 0.35);
}

.tm-auth-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(232, 120, 138, 0.45);
}

.tm-auth-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--stroke);
}

.tm-auth-btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--stroke-light);
}

.tm-auth-btn-icon {
  font-size: 20px;
}

/* Auth Form */
.tm-auth-form {
  text-align: left;
}

.tm-auth-form-header {
  text-align: center;
  margin-bottom: 24px;
}

.tm-auth-form-header h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin: 0 0 6px;
}

.tm-auth-form-header p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.tm-auth-field {
  margin-bottom: 18px;
}

.tm-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tm-auth-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--stroke);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  transition: all 0.2s;
  box-sizing: border-box;
}

.tm-auth-field input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 120, 138, 0.15);
}

.tm-auth-field input::placeholder {
  color: var(--muted);
}

/* Signup city autocomplete */
.tm-auth-citywrap {
  position: relative;
}

.tm-auth-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
  max-height: 200px;
  overflow-y: auto;
}

.tm-auth-dropdown .item {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s;
}

.tm-auth-dropdown .item:hover {
  background: rgba(88, 180, 220, 0.15);
}

.tm-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.tm-auth-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rose);
}

.tm-auth-checkbox label {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.tm-auth-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(232, 120, 138, 0.3);
}

.tm-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 120, 138, 0.4);
}

.tm-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tm-auth-status-section {
  margin: 20px 0 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(232, 120, 138, 0.05);
  border: 1px solid rgba(232, 120, 138, 0.12);
}

.tm-auth-status-intro {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}

.tm-auth-field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--stroke);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  transition: all 0.2s;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.tm-auth-field select:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(232, 120, 138, 0.15);
}

.tm-auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.tm-auth-switch a {
  color: var(--rose);
  text-decoration: none;
  font-weight: 600;
}

.tm-auth-switch a:hover {
  text-decoration: underline;
}

.tm-auth-back {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.tm-auth-back:hover {
  color: var(--text);
}

/* Social Sign In */
.tm-auth-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tm-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--stroke);
  background: var(--card);
  color: var(--text);
}

.tm-social-btn:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.tm-social-btn.google:hover {
  border-color: #4285F4;
}

.tm-social-btn.facebook:hover {
  border-color: #1877F2;
}

.tm-social-btn.apple:hover {
  border-color: #000;
}

.tm-auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.tm-auth-divider::before,
.tm-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.tm-auth-divider span {
  padding: 0 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Auth Footer */
.tm-auth-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.tm-auth-footer p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.tm-auth-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-auth-badge {
  font-size: 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f8f4f0, #f5ede5);
  border-radius: 20px;
  color: var(--muted);
}

/* =============================================
   Helper - New Layout with Central Chat
============================================= */
.tm-helper-connect-bar {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.tm-connect-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #5d4e37;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-connect-pill:hover {
  border-color: #c17f59;
  background: #fff8f0;
  transform: translateY(-1px);
}

.tm-connect-pill svg {
  flex-shrink: 0;
}

/* Main Chat Window */
.tm-helper-main-chat {
  margin-top: 20px;
  margin-bottom: 24px;
}

.tm-helper-chat-card {
  background: #fffcf8;
  border: 2px solid #e8d5c4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(93, 78, 55, 0.1);
}

.tm-helper-chat-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff8f0, #fffaf6);
  border-bottom: 1px solid #e8d5c4;
}

.tm-helper-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #5d4e37;
}

.tm-helper-chat-icon {
  font-size: 24px;
}

.tm-helper-chat-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #8b7355;
}

.tm-helper-chat-body {
  background: #fffaf6;
}

.tm-helper-messages {
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  padding: 20px 24px;
}

.tm-helper-messages .tm-chat-msg {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 16px;
  max-width: 85%;
}

.tm-helper-messages .tm-chat-msg.ai {
  background: #fff;
  border: 1px solid #e8d5c4;
}

.tm-helper-messages .tm-chat-msg-header {
  font-weight: 600;
  color: #5d4e37;
  margin-bottom: 10px;
  font-size: 15px;
}

.tm-helper-quick-actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid #e8d5c4;
  background: #fff8f0;
  flex-wrap: wrap;
}

.tm-quick-action-btn {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #e8d5c4;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #5d4e37;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-quick-action-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
  transform: translateY(-1px);
}

.tm-helper-chat-input {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e8d5c4;
  background: #fff;
}

.tm-helper-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #e8d5c4;
  border-radius: 24px;
  background: #fffcf8;
  color: #5d4e37;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.tm-helper-input:focus {
  border-color: #c17f59;
}

.tm-helper-send {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
}

/* Helper Bottom Panels */
.tm-helper-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .tm-helper-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tm-helper-panels {
    grid-template-columns: 1fr;
  }
}

.tm-helper-panel {
  background: #fffcf8;
  border: 1px solid #e8d5c4;
  border-radius: 16px;
  padding: 18px;
  transition: all 0.2s;
}

.tm-helper-panel:hover {
  border-color: rgba(193, 127, 89, 0.4);
  box-shadow: 0 4px 20px rgba(93, 78, 55, 0.08);
}

.tm-helper-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.tm-helper-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #5d4e37;
}

.tm-helper-panel-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, #c17f59, #d4956c);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-task-count {
  padding: 4px 10px;
  background: rgba(193, 127, 89, 0.15);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #c17f59;
}

.tm-task-list-compact .tm-task-item {
  padding: 8px 10px;
  font-size: 13px;
}

.tm-task-list-compact .tm-task-checkbox {
  width: 16px;
  height: 16px;
}

/* Event Planner Panel */
.tm-event-planner {
  margin-top: 8px;
}

.tm-event-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tm-event-btn {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e8d5c4;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: #5d4e37;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-event-btn:hover {
  background: #c17f59;
  color: #fff;
  border-color: #c17f59;
}

.tm-event-recent {
  padding-top: 12px;
  border-top: 1px solid #e8d5c4;
}

.tm-event-recent-title {
  font-size: 11px;
  font-weight: 600;
  color: #8b7355;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tm-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fffaf6;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #5d4e37;
  cursor: pointer;
  transition: background 0.2s;
}

.tm-event-item:hover {
  background: rgba(193, 127, 89, 0.1);
}

.tm-event-icon {
  font-size: 14px;
}

.tm-event-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =============================================
   My World - Treasured Moments (Enhanced)
============================================= */
.tm-moments-card {
  grid-column: 1 / -1;
}

.tm-moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.tm-moment-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(93, 78, 55, 0.1);
}

.tm-moment-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(193, 127, 89, 0.2);
}

.tm-moment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-moment-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
}

.tm-moment-caption {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.tm-moment-date {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 4px;
}

.tm-sample-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #8b7355;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-moments-connect-prompt {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f8f4f0, #f5ede5);
  border: 1px dashed #e8d5c4;
  border-radius: 12px;
  text-align: center;
}

.tm-moments-connect-prompt p {
  margin: 0;
  font-size: 13px;
  color: #8b7355;
  font-style: italic;
}

/* ---------- Premium Badge ---------- */
.tm-premium-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8788a 0%, #d4a853 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Sub-tabs (within prediction panes) ---------- */
.tm-subtab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tm-subtab {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--card);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.tm-subtab:hover {
  color: var(--text);
  background: var(--card-hover);
}

.tm-subtab.active {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 165, 212, 0.25);
}

.tm-subpane {
  display: none;
}

.tm-subpane.active {
  display: block;
}

/* ---------- Subscription Modal ---------- */
.tm-sub-modal-hero {
  padding: 16px 0 12px;
}

.tm-sub-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
}

.tm-sub-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}

.tm-sub-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tm-sub-feature span {
  color: var(--rose);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Bullet marker polish ---------- */
.tm-bullets li::marker {
  color: var(--rose);
}

/* ========== COOKIE CONSENT BANNER ========== */
.tm-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 16px 24px;
  z-index: 9990;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.tm-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tm-cookie-text {
  flex: 1;
  min-width: 300px;
}

.tm-cookie-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.tm-cookie-text p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.tm-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.tm-cookie-btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.tm-cookie-btn-secondary {
  background: var(--card2);
  color: var(--text-secondary);
  border: 1px solid var(--stroke);
}

.tm-cookie-btn-secondary:hover {
  background: var(--card-hover);
}

.tm-cookie-btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.tm-cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.tm-cookie-link {
  font-size: 12px;
  color: var(--rose);
  text-decoration: underline;
  flex-shrink: 0;
}

/* ========== BIOMETRIC CONSENT MODAL ========== */
.consent-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.consent-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.consent-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.consent-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.consent-header {
  padding: 24px 24px 0;
  text-align: center;
}

.consent-header-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.consent-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
}

.consent-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.consent-body {
  padding: 24px;
}

.consent-info-box {
  background: var(--bg-warm);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.consent-info-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-info-box ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.consent-info-box li {
  margin-bottom: 6px;
}

.consent-info-box.biometric {
  background: #f8f0ff;
  border-color: var(--lavender);
}

.consent-info-box.transfer {
  background: #fff8e8;
  border-color: var(--gold);
}

.consent-checkboxes {
  margin: 24px 0;
}

.consent-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-checkbox-item:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.consent-checkbox-item.checked {
  border-color: var(--sage);
  background: rgba(138, 192, 144, 0.1);
}

.consent-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--sage);
  cursor: pointer;
}

.consent-checkbox-item label {
  flex: 1;
  cursor: pointer;
}

.consent-checkbox-item label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.consent-checkbox-item label span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.consent-checkbox-item.required label strong::after {
  content: " *";
  color: #e74c3c;
}

.consent-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 12px;
}

.consent-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.consent-btn-cancel {
  background: var(--card2);
  color: var(--text-secondary);
  border: 1px solid var(--stroke);
}

.consent-btn-cancel:hover {
  background: var(--card-hover);
}

.consent-btn-confirm {
  background: var(--gradient-primary);
  color: white;
}

.consent-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.consent-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-legal-text {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.consent-legal-text a {
  color: var(--rose);
  text-decoration: underline;
}

.consent-success {
  text-align: center;
  padding: 40px 24px;
}

.consent-success-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
}

.consent-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 8px;
}

.consent-success p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========== AVATAR SECTION ========== */
.tm-wip-icon.avatar {
  background: linear-gradient(135deg, #b898d8, #9a7bc4);
}

.tm-avatar-status-card {
  background: linear-gradient(135deg, #f8f0ff 0%, #fff 100%);
}

.tm-avatar-status {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tm-avatar-status-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.tm-avatar-status-info {
  flex: 1;
  min-width: 200px;
}

.tm-avatar-status-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.tm-avatar-status-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.tm-avatar-ready-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
  border-color: var(--sage);
}

.tm-avatar-preview-section {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.tm-avatar-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tm-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-avatar-preview-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  padding: 4px;
  text-align: center;
}

.tm-avatar-info {
  flex: 1;
  min-width: 200px;
}

.tm-avatar-info-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage);
}

.tm-avatar-info-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.tm-avatar-info-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tm-avatar-persona {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.tm-avatar-persona-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.tm-avatar-persona-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.tm-avatar-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.tm-avatar-upload-section {
  margin-top: 16px;
}

.tm-avatar-upload-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.tm-avatar-upload-zone {
  border: 2px dashed var(--stroke);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.tm-avatar-upload-zone:hover {
  border-color: var(--rose);
  background: rgba(193, 127, 89, 0.05);
}

.tm-avatar-upload-zone.dragover {
  border-color: var(--rose);
  background: rgba(193, 127, 89, 0.1);
}

.tm-avatar-upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.tm-avatar-upload-text {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.tm-avatar-upload-or {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tm-avatar-browse-btn {
  padding: 8px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-avatar-browse-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.tm-avatar-upload-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}

.tm-avatar-photo-preview {
  margin-top: 16px;
  text-align: center;
}

.tm-avatar-photo-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tm-avatar-remove-btn {
  margin-top: 10px;
  padding: 6px 16px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-avatar-remove-btn:hover {
  background: #fee2e2;
}

.tm-avatar-voice-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tm-avatar-voice-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-avatar-voice-btn:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.tm-avatar-voice-btn.secondary {
  background: transparent;
}

.tm-avatar-voice-icon {
  font-size: 20px;
}

.tm-avatar-voice-or {
  font-size: 12px;
  color: var(--muted);
}

.tm-avatar-recording {
  margin-top: 16px;
  padding: 20px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
}

.tm-recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tm-recording-dot {
  width: 12px;
  height: 12px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Pulse highlight for attention */
.pulse-highlight {
  animation: pulse-glow 0.5s ease-in-out 3;
  box-shadow: 0 0 0 4px rgba(232, 120, 138, 0.6);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232, 120, 138, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(232, 120, 138, 0.3); }
}

.tm-recording-text {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tm-recording-script {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px;
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.tm-recording-actions {
  text-align: center;
}

.tm-avatar-voice-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.tm-voice-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text);
}

.tm-voice-preview-icon {
  font-size: 20px;
}

.tm-avatar-voice-preview audio {
  width: 100%;
  margin-bottom: 10px;
}

/* Avatar Description Prompt */
.tm-avatar-prompt-section {
  margin-top: 12px;
}

.tm-avatar-prompt-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tm-avatar-prompt-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.tm-avatar-prompt-input:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.15);
}

.tm-avatar-prompt-hints {
  margin-top: 12px;
}

.tm-prompt-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.tm-prompt-hint strong {
  color: var(--text-secondary);
}

.tm-prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-prompt-example {
  padding: 6px 12px;
  background: var(--bg-warm);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.tm-prompt-example:hover {
  background: var(--card-hover);
  border-color: var(--rose);
  color: var(--text);
}

.tm-prompt-example:active {
  transform: scale(0.97);
}

.tm-avatar-submit-section {
  margin-top: 24px;
  text-align: center;
}

.tm-btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.tm-avatar-submit-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* Video Gallery */
/* ========== MY VIDEO READINGS SECTION ========== */
.tm-video-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.tm-video-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--stroke);
}

.tm-video-empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.tm-video-empty-text {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}

.tm-video-empty-hint {
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* Video Item Card */
.tm-video-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tm-video-item:hover {
  border-color: var(--rose);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Video Thumbnail */
.tm-video-thumb {
  width: 160px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
}

.tm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.9;
}

.tm-video-play-btn:hover {
  background: rgba(0,0,0,0.5);
  opacity: 1;
  transform: scale(1.1);
}

/* Video Info */
.tm-video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tm-video-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.tm-video-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tm-video-expiry {
  font-size: 12px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Video Action Buttons */
.tm-video-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.tm-video-action-btn {
  padding: 8px 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tm-video-action-btn:hover {
  border-color: var(--rose);
  background: var(--card);
  transform: translateY(-1px);
}

.tm-video-action-btn[data-action="play"] {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.tm-video-action-btn[data-action="play"]:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
}

/* Pending/Processing video states */
.tm-video-thumb.tm-video-pending {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tm-video-spinner {
  font-size: 28px;
  animation: pulse 1.5s ease-in-out infinite;
}

.tm-video-pending-text {
  font-size: 11px;
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tm-video-progress {
  width: 80%;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.tm-video-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.tm-video-progress-text {
  font-size: 10px;
  color: white;
  font-weight: 700;
  margin-top: 4px;
}

.tm-video-time-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Failed video state */
.tm-video-thumb.tm-video-failed {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-video-failed-icon {
  font-size: 28px;
}

/* Status badges */
.tm-video-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-video-status-badge.pending {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--rose) 100%);
  color: white;
}

.tm-video-status-badge.pending::before {
  content: "⏳";
  font-size: 12px;
}

/* Responsive - Mobile */
@media (max-width: 600px) {
  .tm-video-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .tm-video-thumb {
    width: 100%;
    height: 140px;
  }

  .tm-video-actions {
    justify-content: stretch;
  }

  .tm-video-action-btn {
    flex: 1;
    justify-content: center;
  }
}

.tm-video-status-badge.failed {
  background: #e74c3c;
  color: white;
}

/* Video Generation UI */
.tm-video-option-section {
  margin-top: 16px;
}

.tm-video-option-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.tm-video-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.tm-video-topic-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--card2);
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tm-video-topic-btn:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.tm-video-topic-btn.active {
  border-color: var(--rose);
  background: rgba(232, 184, 74, 0.1);
}

.tm-topic-icon {
  font-size: 28px;
}

.tm-topic-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.tm-topic-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.tm-video-topic-selected {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tm-video-topic-clear {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}

.tm-video-topic-clear:hover {
  border-color: var(--rose);
  color: var(--text);
}

.tm-video-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tm-video-style-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card2);
  border: 2px solid var(--stroke);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.tm-video-style-btn:hover {
  border-color: var(--rose);
}

.tm-video-style-btn.active {
  border-color: var(--rose);
  background: rgba(232, 184, 74, 0.1);
}

.tm-style-icon {
  font-size: 18px;
}

.tm-video-custom-scripts {
  display: grid;
  gap: 14px;
}

.tm-field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.tm-video-generate-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tm-video-generate-note {
  font-size: 12px;
  color: var(--muted);
  width: 100%;
  margin-top: 8px;
}

.tm-script-preview {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-warm);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.tm-script-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}

.tm-script-preview-close {
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
}

.tm-script-preview-close:hover {
  border-color: var(--rose);
  color: var(--text);
}

.tm-script-preview-content {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

.tm-script-preview-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
}

/* Consent Info Grid */
.tm-consent-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.tm-consent-info-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.tm-consent-info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tm-consent-info-content {
  flex: 1;
}

.tm-consent-info-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.tm-consent-info-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.tm-consent-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Footer link styles */
.tm-footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.tm-footer-link:hover {
  color: var(--rose);
  text-decoration: underline;
}

/* Button variants */
.tm-btn-secondary {
  background: var(--card2);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.tm-btn-secondary:hover {
  background: var(--card-hover);
  border-color: var(--rose);
}

.tm-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.tm-btn-danger:hover {
  background: #fee2e2;
}

/* ============================================================
   LIFE EVOLUTION TRACKER
============================================================ */

/* Elements Display - Radar + List */
.tm-elements-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .tm-elements-display {
    grid-template-columns: 1fr;
  }
}

/* Radar Chart Container */
.tm-radar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.tm-radar-container canvas {
  max-width: 100%;
  height: auto;
}

.tm-overall-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.tm-overall-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--rose);
}

.tm-overall-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Elements List */
.tm-elements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-element-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: all 0.2s;
}

.tm-element-item:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.tm-element-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tm-element-info {
  flex: 1;
  min-width: 0;
}

.tm-element-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.tm-element-desc {
  font-size: 11px;
  color: var(--muted);
}

.tm-element-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--rose);
  min-width: 36px;
  text-align: right;
}

.tm-element-trend {
  font-size: 12px;
  min-width: 40px;
  text-align: right;
}

.tm-element-trend.up {
  color: #10B981;
}

.tm-element-trend.down {
  color: #EF4444;
}

.tm-element-trend.neutral {
  color: var(--muted);
}

/* Auto-balance Notice */
.tm-autobalance-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(232, 184, 74, 0.1);
  border: 1px solid rgba(232, 184, 74, 0.3);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text);
}

.tm-notice-icon {
  font-size: 16px;
}

/* Premium Badge */
.tm-premium-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.tm-premium-icon {
  font-size: 14px;
}

/* ============================================================
   DAILY CHECK-IN
============================================================ */

.tm-checkin-card {
  min-height: 400px;
}

.tm-checkin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tm-checkin-tab {
  padding: 8px 14px;
  background: var(--card2);
  border: 2px solid var(--stroke);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-checkin-tab:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.tm-checkin-tab.active {
  border-color: var(--rose);
  background: rgba(232, 184, 74, 0.15);
}

.tm-checkin-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  min-height: 80px;
}

.tm-checkin-preset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-checkin-preset:hover {
  border-color: var(--rose);
}

.tm-checkin-preset.checked {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10B981;
}

.tm-checkin-preset.checked::after {
  content: '✓';
  color: #10B981;
  font-weight: bold;
}

.tm-preset-emoji {
  font-size: 16px;
}

.tm-preset-label {
  font-weight: 500;
}

.tm-preset-points {
  color: var(--muted);
  font-size: 11px;
}

/* Custom Check-in */
.tm-checkin-custom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.tm-checkin-custom-header {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tm-checkin-custom-input {
  display: flex;
  gap: 8px;
}

.tm-checkin-custom-input input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
}

.tm-checkin-custom-input input[type="number"] {
  width: 70px;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  text-align: center;
}

/* Today's Check-ins */
.tm-today-checkins {
  margin-top: 20px;
  padding: 14px;
  background: var(--bg-warm);
  border-radius: var(--radius);
}

.tm-today-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.tm-today-points {
  color: var(--rose);
  font-weight: 700;
}

.tm-today-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.tm-today-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--card2);
  border-radius: var(--radius);
  font-size: 12px;
}

.tm-today-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-today-item-points {
  color: #10B981;
  font-weight: 600;
}

.tm-today-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
}

.tm-today-item-remove:hover {
  color: #EF4444;
}

.tm-empty-checkins {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}

/* ============================================================
   EVOLUTION JOURNEY CHART
============================================================ */

.tm-journey-card {
  min-height: 400px;
}

.tm-journey-range {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.tm-range-btn {
  padding: 8px 16px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-range-btn:hover {
  border-color: var(--rose);
}

.tm-range-btn.active {
  background: var(--rose);
  border-color: var(--rose);
  color: white;
}

.tm-journey-chart-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin: 16px 0;
}

.tm-journey-chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.tm-journey-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tm-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
}

.tm-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ============================================================
   PREMIUM STORAGE
============================================================ */

.tm-storage-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card2) 100%);
}

.tm-storage-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .tm-storage-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tm-storage-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: var(--card2);
  border: 2px solid var(--stroke);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}

.tm-storage-option:hover {
  border-color: var(--rose);
}

.tm-storage-option.recommended {
  border-color: var(--rose);
  background: rgba(232, 184, 74, 0.05);
}

.tm-storage-option.active {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.tm-storage-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--rose);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  text-transform: uppercase;
}

.tm-storage-plan {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tm-storage-duration {
  font-size: 20px;
  font-weight: 800;
  color: var(--rose);
  margin-bottom: 4px;
}

.tm-storage-price {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tm-storage-btn {
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.tm-storage-btn:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

.tm-storage-btn.active {
  background: #10B981;
  border-color: #10B981;
  color: white;
  cursor: default;
}

.tm-storage-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--stroke);
}

.tm-storage-stat {
  text-align: center;
}

.tm-storage-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--rose);
}

.tm-storage-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   RECOMMENDATIONS
============================================================ */

.tm-recommendations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.tm-recommendation-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.tm-recommendation-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.tm-recommendation-content {
  flex: 1;
}

.tm-recommendation-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.tm-recommendation-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   READINGS HISTORY
============================================================ */

.tm-readings-history {
  margin-top: 16px;
}

.tm-readings-empty {
  text-align: center;
  padding: 40px 20px;
}

.tm-readings-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.tm-readings-empty-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tm-readings-empty-hint {
  font-size: 13px;
  color: var(--muted);
}

.tm-reading-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-reading-item:hover {
  border-color: var(--rose);
}

.tm-reading-date {
  min-width: 80px;
  text-align: center;
}

.tm-reading-date-day {
  font-size: 24px;
  font-weight: 700;
  color: var(--rose);
}

.tm-reading-date-month {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.tm-reading-info {
  flex: 1;
}

.tm-reading-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.tm-reading-summary {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.tm-reading-scores {
  display: flex;
  gap: 8px;
}

.tm-reading-score {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
}

.tm-reading-actions {
  display: flex;
  gap: 8px;
}

.tm-reading-action-btn {
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.tm-reading-action-btn:hover {
  border-color: var(--rose);
}

/* ========== Compact Astrological Data Section ========== */
.tm-card-compact {
  padding: 14px;
}

.tm-card-compact .tm-card-title {
  font-size: 12px;
  margin-bottom: 8px;
}

.tm-card-compact .tm-card-note {
  font-size: 11px;
  margin-bottom: 6px;
}

.tm-card-compact .tm-snapshot {
  gap: 6px;
}

.tm-card-compact .tm-srow {
  font-size: 12px;
  padding: 2px 0;
}

.tm-card-compact .tm-srow b {
  font-size: 12px;
}

.tm-card-compact .tm-subtitle {
  font-size: 10px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.tm-card-compact .tm-divider {
  margin: 6px 0;
}

.tm-card-compact .tm-grid2 {
  gap: 12px;
}

.tm-card-compact .tm-mrow {
  font-size: 12px;
  padding: 6px 10px;
}

/* Mobile-friendly snapshot layout */
@media (max-width: 640px) {
  .tm-card-compact .tm-grid2 {
    grid-template-columns: 1fr;
  }

  .tm-card-compact .tm-srow {
    font-size: 11px;
  }
}

/* ========== Profile Section with Edit Buttons ========== */
.tm-profile-section {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.tm-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tm-profile-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tm-profile-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: var(--card-hover);
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.tm-profile-row-info {
  flex: 1;
}

.tm-profile-row-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.tm-profile-row-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tm-profile-edit-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}

.tm-profile-edit-btn:hover {
  border-color: var(--rose);
  background: var(--card-hover);
}

/* ========== Questions Remaining Display ========== */
.tm-questions-remaining {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(126, 176, 138, 0.15);
  border: 1px solid rgba(126, 176, 138, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--sage);
}

.tm-questions-remaining.warning {
  background: rgba(232, 168, 73, 0.15);
  border-color: rgba(232, 168, 73, 0.3);
  color: var(--amber);
}

.tm-questions-remaining.depleted {
  background: rgba(232, 120, 138, 0.15);
  border-color: rgba(232, 120, 138, 0.3);
  color: var(--rose);
}

.tm-upgrade-link {
  color: var(--rose);
  text-decoration: underline;
  cursor: pointer;
  font-size: 11px;
  margin-left: 8px;
}

.tm-upgrade-link:hover {
  opacity: 0.8;
}

/* ========== Loading Overlay - Consulting the Stars ========== */
.tm-loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 32, 44, 0.95), rgba(45, 55, 72, 0.95));
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tm-loading-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.tm-loading-content {
  text-align: center;
  color: #fff;
  padding: 40px;
}

.tm-loading-icon {
  font-size: 64px;
  animation: loadingPulse 2s ease-in-out infinite;
  margin-bottom: 20px;
}

.tm-loading-stars {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.tm-loading-stars span {
  font-size: 24px;
  animation: loadingTwinkle 1.5s ease-in-out infinite;
}

.tm-loading-stars span:nth-child(2) {
  animation-delay: 0.3s;
}

.tm-loading-stars span:nth-child(3) {
  animation-delay: 0.6s;
}

.tm-loading-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffd700, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-loading-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.tm-loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tm-loading-dots span {
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  animation: loadingBounce 1.4s ease-in-out infinite;
}

.tm-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.tm-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loadingTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes loadingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ========== Mobile-First Layout Overrides ========== */

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .tm-shell {
    padding: 12px 12px 80px;
  }

  .tm-topbar {
    padding: 8px 8px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tm-brand {
    gap: 8px;
  }

  .tm-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
  }

  .tm-title {
    font-size: 20px;
  }

  .tm-subtitle {
    display: none;
  }

  .tm-top-actions {
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
  }

  .tm-pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  .tm-hero {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    align-items: stretch;
  }

  .tm-hero-left {
    flex-direction: column;
    gap: 12px;
  }

  .tm-wip-icon.fortune {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .tm-kicker {
    font-size: 10px;
  }

  .tm-h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  .tm-p {
    font-size: 13px;
  }

  .tm-hero-right {
    align-items: stretch;
  }

  .tm-btn-primary {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 14px;
    width: 100%;
  }

  .tm-card {
    padding: 12px;
    border-radius: 12px;
  }

  .tm-card-title {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .tm-card-note {
    font-size: 11px;
  }

  /* Profile section mobile */
  .tm-profile-section {
    padding: 12px;
  }

  .tm-profile-row {
    padding: 10px 12px;
  }

  .tm-profile-row-label {
    font-size: 9px;
  }

  .tm-profile-row-value {
    font-size: 12px;
  }

  .tm-profile-edit-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* Chat card mobile */
  .tm-chat-card {
    margin-top: 12px !important;
  }

  .tm-chat-messages {
    height: 300px;
    padding: 12px;
  }

  .tm-chat-input-wrap {
    padding: 10px 12px;
  }

  .tm-chat-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .tm-chat-send {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;
  }

  /* Astrological data compact */
  .tm-card-compact .tm-srow {
    font-size: 11px;
    padding: 3px 0;
  }

  .tm-card-compact .tm-srow b {
    font-size: 11px;
  }

  .tm-card-compact .tm-grid2 {
    gap: 10px;
  }

  /* Touch-friendly targets */
  .tm-btn,
  .tm-pill,
  .tm-action {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tm-section-toggle {
    width: 32px;
    height: 32px;
    font-size: 16px;
    min-height: 32px;
  }
}

/* ========== Welcome Message Enhanced ========== */
.tm-chat-welcome {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(193, 127, 89, 0.05)) !important;
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  max-width: 100% !important;
}

.tm-welcome-avatar {
  font-size: 32px;
  margin-bottom: 8px;
}

.tm-welcome-greeting {
  font-size: 16px;
  font-weight: 700;
  color: #c17f59;
  margin-bottom: 8px;
}

.tm-welcome-content .chat-line {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.tm-welcome-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.tm-hint-icon {
  font-size: 16px;
}

/* ========== iOS Safe Areas ========== */
@supports (padding-top: env(safe-area-inset-top)) {
  .tm-shell {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .tm-loading-overlay {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ========== Collapsible Sections Mobile ========== */
.tm-collapsible-content.minimized {
  display: none;
}

.tm-collapsible-content {
  display: block;
}

/* Smooth transition for collapsible sections */
.tm-card-header-mini {
  cursor: pointer;
}

.tm-section-toggle {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s;
}

.tm-section-toggle:hover {
  background: var(--card-hover);
  color: var(--rose);
}

/* ========== Profile Card Styles ========== */
.tm-card-profile {
  transition: all 0.3s ease;
}

.tm-profile-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-hover);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.tm-profile-summary {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.tm-profile-form-section {
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  margin-top: 12px;
}

.tm-profile-form-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Profile card on mobile */
@media (max-width: 768px) {
  .tm-profile-avatar-mini {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .tm-profile-summary {
    font-size: 10px;
    max-width: 150px;
  }
}
