/* =========================================================
   TIGER — COMPLETE DESIGN SYSTEM & STYLESHEET
========================================================= */

:root{
  --yellow: #FFB800;
  --yellow-dark: #E6A300;
  --yellow-light: #FFF7DE;
  --black: #111318;
  --text: #1F2328;
  --muted: #656D76;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-light: #FAFAFA;
  --border: #E8E8E8;
  --green: #31A852;
  --blue: #3987E8;
  --purple: #7567D9;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.08);
}

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}

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

button{
  cursor: pointer;
}

a{
  text-decoration: none;
  color: inherit;
}

/* =========================================================
   HEADER
========================================================= */

.header{
  height: 76px;
  border-bottom: 1px solid #eeeeee;
  background: white;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner{
  width: min(1440px, 94%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  cursor: pointer;
}

.logo-tiger{
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow-light);
  font-size: 27px;
}

.logo-text{
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-sub{
  color: #E49D00;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav button, .nav .nav-link{
  border: none;
  background: none;
  color: #171717;
  font-weight: 500;
  position: relative;
  padding: 27px 0;
  cursor: pointer;
  transition: color .2s;
}

.nav button:hover, .nav .nav-link:hover{
  color: var(--yellow-dark);
}

.nav button.active, .nav .nav-link.active{
  font-weight: 750;
  color: #111;
}

.nav button.active::after, .nav .nav-link.active::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions #authButtons { display: flex; gap: 8px; }

.icon-btn{
  width: 42px;
  height: 42px;
  border: 0;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.icon-btn:hover{
  background: #f4f4f4;
}

.notif-dot{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
}

.btn{
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 750;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .2s ease;
  cursor: pointer;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn-primary{
  background: var(--yellow);
  color: #111;
}

.btn-primary:hover{
  background: var(--yellow-dark);
}

.btn-outline{
  background: white;
  border: 1px solid #D9D9D9;
  color: #111;
}

.btn-outline:hover{
  background: #f9f9f9;
  border-color: #aaa;
}

.btn-dark{
  background: var(--black);
  color: white;
}

.btn-dark:hover{
  background: #2a2c33;
}

.btn-ghost{
  background: transparent;
  color: #444;
  padding: 8px 14px;
  border-radius: 8px;
}

.btn-ghost:hover{
  background: #f0f0f0;
}

.btn-lg{
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 12px;
}

.w-full{
  width: 100%;
}

.mobile-menu{
  display: none;
  border: none;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

.mobile-hamburger{
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 1100;
  transition: background 0.2s ease;
}

.mobile-hamburger:hover{
  background: var(--bg-light);
}

.mobile-hamburger span{
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.mobile-hamburger.open span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.mobile-hamburger.open span:nth-child(2){
  opacity: 0;
}

.mobile-hamburger.open span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

[data-theme="dark"] .mobile-hamburger span{
  background-color: #F3F4F6;
}

[data-theme="dark"] .mobile-hamburger:hover{
  background: #1F2937;
}

/* User Menu in Header */
.user-menu{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 25px;
  cursor: pointer;
  background: white;
  user-select: none;
}

.user-avatar-sm{
  width: 34px;
  height: 34px;
  background: var(--yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  overflow: hidden;
  border: 1.5px solid var(--yellow);
  flex-shrink: 0;
}
.user-avatar-sm img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-name-header{
  font-size: 13px;
  font-weight: 700;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown{
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px 0;
  z-index: 1100;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.user-dropdown.open{
  display: block;
}

.user-dropdown button{
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border: none;
  background: none;
  cursor: pointer;
}

.user-dropdown button:hover{
  background: #FFF7DE;
  color: #111;
}

.user-dropdown hr{
  border: none;
  border-top: 1px solid #eee;
  margin: 6px 0;
}

.user-dropdown .logout-btn{
  color: #EF4444;
}

.user-dropdown .logout-btn:hover{
  background: #FEE2E2;
}

/* =========================================================
   PAGE SYSTEM
========================================================= */

.page{
  display: none;
  animation: pageFadeIn .25s ease;
}

.page.active{
  display: block;
}

@keyframes pageFadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =========================================================
   HERO
========================================================= */

.hero{
  background: #fff;
  overflow: hidden;
}

.hero-inner{
  width: min(1460px, 95%);
  margin: auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  align-items: center;
  gap: 32px;
}

.hero-copy{
  padding: 60px 0;
}

.hero h1{
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -3px;
  font-weight: 850;
  margin-bottom: 25px;
}

.hero h1 span, .hero h1 .highlight{
  color: var(--yellow);
}

.hero-description, .hero-desc{
  max-width: 650px;
  font-size: 19px;
  color: #454545;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions{
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-trust{
  margin-top: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 700px;
  border: 1px solid var(--yellow);
  border-radius: 14px;
  overflow: hidden;
}

.trust-item{
  padding: 18px 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.trust-item + .trust-item{
  border-left: 1px solid var(--yellow);
}

.trust-icon{
  font-size: 28px;
}

.trust-title{
  font-weight: 750;
  font-size: 14px;
}

.trust-text{
  color: var(--muted);
  font-size: 12px;
}

/* HERO VISUAL */

.hero-visual{
  position: relative;
  min-height: 570px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle{
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #FFD65A 0%, #FFC62C 55%, #FFF0BD 56%, #FFF0BD 100%);
  position: absolute;
}

.hero-person{
  position: relative;
  z-index: 2;
  width: 430px;
  height: 490px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 170px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.12));
  user-select: none;
}

.hero-card{
  position: absolute;
  z-index: 5;
  background: white;
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(0,0,0,.1);
  padding: 18px 20px;
  width: 230px;
  cursor: pointer;
  transition: transform .2s ease;
}

.hero-card:hover{
  transform: scale(1.04);
}

.hero-card strong{
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 6px;
}

.hero-card small{
  color: var(--yellow-dark);
  font-weight: 750;
  font-size: 12px;
}

.hero-card.one, .hero-card.card-one{
  top: 90px;
  right: 10px;
}

.hero-card.two, .hero-card.card-two{
  top: 240px;
  right: -15px;
}

.hero-card.three, .hero-card.card-three{
  bottom: 80px;
  right: 40px;
}

/* =========================================================
   FEATURES STRIP
========================================================= */

.features, .features-grid{
  width: min(1400px, 94%);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature, .feature-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon, .feature-icon-circle{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.feature h3, .feature-item h4{
  font-size: 16px;
  font-weight: 750;
  margin-bottom: 4px;
}

.feature p, .feature-item p{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* =========================================================
   SECTIONS & CONTAINERS
========================================================= */

.section{
  padding: 70px 0;
}

.section.light{
  background: #FFFFFF;
  border-top: 1px solid #F2F2F2;
  border-bottom: 1px solid #F2F2F2;
}

.container, .container-wide{
  width: min(1400px, 94%);
  margin: auto;
}

.section-heading{
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2{
  font-size: 34px;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  font-weight: 850;
}

.section-heading p{
  color: var(--muted);
  font-size: 15px;
}

/* =========================================================
   MISSION CARDS GRID (HOME & RESOURCES)
========================================================= */

.mission-grid, .mission-cards-grid, .mission-cats-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mission-card, .mission-cat-card, .mcat-card{
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 22px;
  background: white;
  min-height: 220px;
  transition: .2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.mission-card:hover, .mission-cat-card:hover, .mcat-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}

.mission-icon, .mcat-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFF7DE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.mission-card h3, .mission-cat-card h3, .mcat-card h3{
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 10px;
}

.mission-card p, .mission-cat-card p, .mcat-card p{
  color: var(--muted);
  font-size: 13px;
  flex-grow: 1;
  line-height: 1.5;
}

.mission-link, .mcat-link{
  margin-top: 18px;
  color: #E9A500;
  font-size: 13px;
  font-weight: 750;
}

/* =========================================================
   HOW TIGER WORKS (STEPS)
========================================================= */

.how, .how-box{
  background: #FFF9E8;
  border: 1px solid #F1D98E;
  border-radius: 18px;
  padding: 42px;
}

.steps, .steps-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step, .step-item{
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after, .step-item:not(:last-child)::after{
  content: '→';
  position: absolute;
  right: -20px;
  top: 32px;
  color: #999;
  font-size: 24px;
}

.step-arrow{
  display: none;
}

.step-number, .step-num{
  width: 35px;
  height: 35px;
  margin: 0 auto 12px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-icon, .step-icon-lg{
  font-size: 36px;
  margin-bottom: 12px;
}

.step h3, .step-item h4{
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 8px;
}

.step p, .step-item p{
  font-size: 12px;
  color: #666;
}

/* =========================================================
   STATS
========================================================= */

.stats, .stats-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.community-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.community-stats .stat-item { min-width: 0; border-bottom: 1px solid var(--border); }
.community-stats .stat-item strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.community-stats .stat-item .community-no-data { font-size: 19px; color: var(--muted); }
.community-status { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 0; }
.community-methodology { margin: 16px 0 28px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.community-methodology summary { cursor: pointer; color: var(--text); font-weight: 700; }
.community-methodology p { margin-top: 10px; }
.community-reviews-section { margin-top: 30px; }
.community-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.community-review-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.community-review-stars { color: #926700; font-weight: 750; margin-bottom: 12px; }
.community-review-copy { font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.community-review-footer { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.community-review-footer strong { color: var(--text); }
.community-empty { grid-column: 1 / -1; padding: 24px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); line-height: 1.7; }
.community-review-editor { margin-top: 24px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-light); }
.community-review-editor form { max-width: 680px; }
.community-review-editor [hidden] { display: none !important; }
.community-review-editor form > label { display: block; margin: 14px 0 8px; font-size: 13px; font-weight: 650; }
.community-review-editor select, .community-review-editor textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--text); font: inherit; }
.community-review-editor textarea { resize: vertical; }
.community-review-editor form > .community-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.6; }
.community-consent input { margin-top: 4px; flex: 0 0 auto; }
.expert-card-intro { min-width: 0; flex: 1; }
.expert-card-copy { font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-grow: 1; line-height: 1.6; }
.expert-verified-mark { color: #3987e8; font-size: 14px; }
@media (max-width: 900px) {
  .stats-row.community-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .stats-row.community-stats, .community-reviews-grid { grid-template-columns: 1fr; }
  .community-stats .stat-item + .stat-item { border-left: 0; }
  .community-review-editor { padding: 20px 16px; }
}

.stat, .stat-item{
  padding: 25px;
  text-align: center;
}

.stat + .stat, .stat-item + .stat-item{
  border-left: 1px solid #ddd;
}

.stat strong, .stat-item strong{
  display: block;
  font-size: 28px;
  font-weight: 850;
  margin-bottom: 5px;
}

.stat span, .stat-item span{
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   TESTIMONIAL & QUOTE
========================================================= */

.testimonial, .testimonial-card{
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}

.quote, .quote-text{
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 20px;
}

.quote-mark{
  color: var(--yellow);
  font-size: 40px;
  font-weight: 900;
  line-height: 0;
  margin-right: 4px;
}

.person, .person-row{
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar, .avatar-circle{
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eee, #bbb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* =========================================================
   CTA BANNER
========================================================= */

.cta, .cta-banner{
  margin-top: 50px;
  background: linear-gradient(90deg, #FFB900, #FFC927);
  border-radius: 20px;
  padding: 38px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-mascot{
  font-size: 45px;
}

.cta h2, .cta-text h2{
  font-size: 28px;
  font-weight: 850;
  margin-bottom: 5px;
  color: #111;
}

.cta p, .cta-text p{
  font-size: 15px;
  color: #333;
}

/* =========================================================
   MISSIONS PAGE & DASHBOARD LAYOUT
========================================================= */

.dashboard, .dashboard-layout{
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 76px);
  background: #FFFFFF;
}

.sidebar{
  background: white;
  border-right: 1px solid var(--border);
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
}

.sidebar .btn{
  width: 100%;
  margin-bottom: 25px;
}

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-item, .sidebar-item{
  padding: 12px 15px;
  border-radius: 9px;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}

.side-item:hover, .side-item.active, .sidebar-item:hover, .sidebar-item.active{
  background: #FFF7DE;
  color: #111;
  font-weight: 750;
}

.sidebar-help{
  margin-top: auto;
  background: #FFF9E8;
  border: 1px solid #F1D98E;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: 30px;
}

.sidebar-help strong{
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.sidebar-help p{
  font-size: 12px;
  color: var(--muted);
}

.dashboard-main{
  padding: 40px;
}

.dashboard-title, .dashboard-top-bar{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-title h1, .dashboard-top-bar h1{
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -1.5px;
}

.dashboard-title p, .dashboard-top-bar p{
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Mission Builder */
.mission-builder, .mission-builder-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
  margin-bottom: 35px;
  box-shadow: var(--shadow);
}

textarea{
  width: 100%;
  min-height: 140px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  resize: vertical;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color .2s;
}

textarea:focus{
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

.textarea-footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 16px;
}

.char-count{
  font-size: 12px;
  color: var(--muted);
}

.builder-side{
  background: #FFF9E8;
  border-radius: 12px;
  padding: 20px;
}

.builder-side h3, .builder-side h4{
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 15px;
}

.check, .checklist li{
  margin: 10px 0;
  font-size: 13px;
  color: #444;
  list-style: none;
}

/* Recommended missions row */
.recommended-section{
  margin-bottom: 35px;
}

.section-row-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-row-header h2{
  font-size: 20px;
  font-weight: 800;
}

.btn-link{
  background: none;
  border: none;
  color: #E49D00;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}

.rec-missions-row, .recommended-missions-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.rec-card, .rec-mission-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}

.rec-card:hover, .rec-mission-card:hover{
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.rec-icon{
  width: 36px;
  height: 36px;
  background: #FFF7DE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.rec-card h4, .rec-mission-card h4{
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 4px;
}

.rec-card p, .rec-mission-card p{
  font-size: 11px;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 8px;
}

.rec-meta{
  font-size: 10px;
  color: #E49D00;
  font-weight: 750;
}

/* User Missions Table */
.my-missions-section{
  margin-top: 30px;
}

.missions-tabs-header, .missions-tabs{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title{
  font-size: 20px;
  font-weight: 800;
}

.tab-group{
  display: flex;
  gap: 8px;
}

.tab{
  background: white;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.tab.active{
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  font-weight: 750;
}

.table-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-head, .table-row{
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.1fr .7fr 1.2fr .9fr 42px;
  gap: 15px;
  align-items: center;
  padding: 18px 22px;
}

.table-head{
  background: #FAFAFA;
  color: #777;
  font-size: 11px;
  font-weight: 750;
}

.table-row{
  border-top: 1px solid #eee;
  font-size: 13px;
  transition: background .15s;
}

.table-row:hover{
  background: #FAFAFA;
}

.table-empty{
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.table-empty span{
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.status{
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 750;
}

.status-progress{
  background: #FFF5D6;
  color: #B45309;
}

.status-pending{
  background: #E8F1FF;
  color: #3476D0;
}

.status-complete{
  background: #E5F6E8;
  color: #2A8A43;
}

.progress{
  height: 7px;
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
}

.progress span{
  display: block;
  height: 100%;
  background: var(--yellow);
}

/* =========================================================
   EXPERTS PAGE
========================================================= */

.experts-header, .experts-header-section{
  background: #FFFFFF;
  padding: 40px 0 25px;
}

.experts-header-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: center;
}

.experts-header-main .section-heading.left-align {
  text-align: left;
  margin-bottom: 18px;
}

.experts-header-main .search-bar-wrap {
  margin: 0 0 16px 0;
  max-width: 100%;
}

.experts-header-main .filter-chips.left-align {
  justify-content: flex-start;
  margin: 14px 0;
}

.experts-header-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.super-tiger-img {
  width: 100%;
  max-width: 270px;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.07));
}

@media (max-width: 900px) {
  .experts-header-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .experts-header-mascot {
    display: none;
  }
  .experts-header-main {
    min-width: 0;
    width: 100%;
  }
  .experts-header-main .section-heading.left-align {
    text-align: center;
  }
  .experts-header-main .filter-chips.left-align {
    justify-content: flex-start;
  }
}

.search, .search-bar, .search-bar-wrap{
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  position: relative;
}

.search input, .search-bar input, .search-bar-wrap input{
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 20px 14px 45px;
  outline: none;
  font-size: 14px;
}

.search input:focus, .search-bar input:focus, .search-bar-wrap input:focus{
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.2);
}

.search-icon, .search-icon-svg{
  position: absolute;
  left: 17px;
  top: 15px;
  color: #999;
}

.filters, .filter-chips{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.filter, .chip{
  border: 1px solid #ddd;
  background: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.filter.active, .chip.active{
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  font-weight: 750;
}

.expert-grid, .experts-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.expert-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: white;
  padding: 22px;
  transition: .2s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.expert-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.expert-top{
  display: flex;
  gap: 14px;
  align-items: center;
}

.expert-avatar{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eee, #aaa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.expert-card h3{
  font-size: 15px;
  font-weight: 750;
}

.expert-role{
  font-size: 12px;
  color: var(--muted);
}

.rating{
  margin: 14px 0;
  color: #D89200;
  font-size: 13px;
  font-weight: 700;
}

.expert-price{
  font-size: 20px;
  font-weight: 850;
  margin-bottom: 16px;
}

.expert-price span{
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   HOW PAGE
========================================================= */

.how-hero{
  padding: 60px 0 40px;
  background: #FFFFFF;
}

.how-hero h1{
  font-size: 48px;
  letter-spacing: -2px;
  font-weight: 850;
}

.how-hero-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.route, .route-card{
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.route-step{
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.route-step + .route-step{
  border-left: 1px solid #eee;
}

.route-number, .route-num{
  width: 35px;
  height: 35px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 800;
}

.route-step h3, .route-step h4{
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 750;
}

.route-step p{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Example mission breakdown */
.example, .example-card, .example-mission-card{
  margin-top: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 35px;
  box-shadow: var(--shadow);
}

.example h2, .example-card h2, .example-mission-card h2{
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 850;
}

.example-grid, .example-steps, .example-steps-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.example-step, .ex-step{
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.example-step strong, .ex-step strong{
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.example-step p, .ex-step p{
  color: var(--muted);
  font-size: 12px;
  flex-grow: 1;
}

.example-expert, .ex-expert{
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.example-summary-row{
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 25px 0 20px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   PRICING
========================================================= */

.pricing-header-wrap {
  position: relative;
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pricing-header-wrap .section-heading {
  margin-bottom: 0;
  text-align: center;
}

.pricing-mascot-box {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.tiger-fast-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.06));
  transition: transform 0.25s ease;
}

.tiger-fast-img:hover {
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 900px) {
  .pricing-header-wrap {
    flex-direction: column;
  }
  .pricing-mascot-box {
    position: static;
    transform: none;
    margin-top: 10px;
  }
  .tiger-fast-img {
    width: 100px;
    height: 100px;
  }
}

.pricing-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.pricing-card{
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 35px;
  position: relative;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pricing-card.featured{
  border-color: var(--yellow);
  box-shadow: 0 10px 40px rgba(255, 184, 0, 0.2);
}

.pricing-popular, .pricing-badge{
  position: absolute;
  top: -12px;
  right: 25px;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
}

.price-tag, .price-display{
  font-size: 32px;
  font-weight: 850;
  margin: 15px 0;
}

.pricing-features{
  list-style: none;
  margin: 20px 0;
  flex-grow: 1;
}

.pricing-features li{
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f4f4f4;
}

.expert-pricing, .expert-pricing-section{
  margin-top: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.expert-pricing-card{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  background: #FFF9E8;
  border: 1px solid #F1D98E;
  border-radius: 16px;
  padding: 30px;
}

/* =========================================================
   MESSAGES & CHAT
========================================================= */

.messages-list{
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.message-item{
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background .2s;
}

.message-item:hover{
  background: #FAFAFA;
}

.msg-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.msg-info{
  flex-grow: 1;
}

.msg-info strong{
  font-size: 15px;
  display: block;
}

.msg-info p{
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.msg-time{
  font-size: 11px;
  color: var(--muted);
}

/* IA Chat Box */
.ia-chat-box{
  max-height: 350px;
  min-height: 250px;
  overflow-y: auto;
  padding: 15px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ia-message{
  display: flex;
}

.ia-user{
  justify-content: flex-end;
}

.ia-bot{
  justify-content: flex-start;
}

.ia-msg-bubble{
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.ia-user .ia-msg-bubble{
  background: var(--yellow);
  color: #111;
  border-bottom-right-radius: 4px;
}

.ia-bot .ia-msg-bubble{
  background: white;
  border: 1px solid #ddd;
  color: #222;
  border-bottom-left-radius: 4px;
}

.ia-input-row{
  display: flex;
  gap: 10px;
}

.ia-input-row input{
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 16px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer{
  background: #111318;
  color: white;
  padding: 55px 0 25px;
  margin-top: 60px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 50px;
}

.footer h3, .footer h4{
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: 750;
  color: white;
}

.footer p, .footer li{
  color: #aaa;
  font-size: 13px;
}

.footer ul{
  list-style: none;
}

.footer li{
  margin: 8px 0;
}

.footer a{
  color: #aaa;
  transition: color .2s;
}

.footer a:hover{
  color: var(--yellow);
}

.social-links{
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-icon{
  width: 32px;
  height: 32px;
  background: #222;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ddd;
}

.footer-bottom{
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 12px;
}

/* =========================================================
   MODALS
========================================================= */

.modal, .modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal.active, .modal-overlay.active{
  display: flex;
  animation: modalFadeIn .2s ease;
}

@keyframes modalFadeIn{
  from{ opacity: 0; transform: scale(.97); }
  to{ opacity: 1; transform: scale(1); }
}

.modal-box{
  background: white;
  width: min(540px, 100%);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box-lg{
  width: min(680px, 100%);
}

.modal-box-xl{
  width: min(850px, 100%);
}

.modal-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-head h2{
  font-size: 22px;
  font-weight: 850;
}

.modal-close, .close{
  border: none;
  background: #eee;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s;
}

.modal-close:hover, .close:hover{
  background: #ddd;
}

/* Forms inside Modals */
.form-group{
  margin-bottom: 16px;
}

.form-group label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error{
  background: #FEE2E2;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.form-hint{
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 15px;
}

.link-btn{
  background: none;
  border: none;
  color: var(--yellow-dark);
  font-weight: 750;
  cursor: pointer;
}

.demo-hint{
  margin-top: 14px;
  padding: 10px;
  background: #F3F4F6;
  border-radius: 8px;
  font-size: 11px;
  color: #555;
  text-align: center;
}

.input-with-toggle, .input-with-icon{
  position: relative;
}

.toggle-pwd{
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Role Selector Cards */
.role-selector{
  margin-bottom: 20px;
}

.role-label{
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.role-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-card{
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.role-card:hover{
  border-color: var(--yellow);
}

.role-card.active{
  border-color: var(--yellow);
  background: #FFF9E8;
}

.role-icon{
  font-size: 24px;
  margin-bottom: 4px;
}

.role-card strong{
  display: block;
  font-size: 13px;
  font-weight: 750;
}

.role-card p{
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

.role-badge{
  display: inline-block;
  background: var(--yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.notice{
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.notice-warning{
  background: #FFF5D6;
  border: 1px solid #F1D98E;
  color: #92400E;
}

/* Payment Modal */
.payment-summary{
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.payment-row, .payment-summary-row{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.secure-note, .payment-secure-note{
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 12px 0 16px;
}

/* Template List Modal */
.template-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-item{
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
}

.template-item:hover{
  border-color: var(--yellow);
  background: #FFF9E8;
}

.template-icon{
  width: 40px;
  height: 40px;
  background: #FFF5D6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Toast Container */
.toast-container{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast{
  background: white;
  border-left: 4px solid var(--yellow);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  animation: toastSlide .3s ease;
}

.toast.error{
  border-left-color: #EF4444;
}

.toast.info{
  border-left-color: var(--blue);
}

@keyframes toastSlide{
  from{ transform: translateX(100%); opacity: 0; }
  to{ transform: translateX(0); opacity: 1; }
}

/* Notifications Panel */
.notif-panel{
  position: fixed;
  top: 76px;
  right: 20px;
  width: 320px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  padding: 16px;
}

.notif-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* =========================================================
   BOTTOM MOBILE NAVIGATION BAR (FOR CELLPHONES)
========================================================= */

.bottom-nav{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: white;
  border-top: 1px solid var(--border);
  z-index: 1500;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  transition: transform 0.25s ease;
}

body.in-active-chat .bottom-nav{
  transform: translateY(100%);
}

.bottom-nav-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .2s;
  flex: 1;
  max-width: 80px;
}

.bottom-nav-item.active{
  color: #111;
  font-weight: 850;
}

.bottom-nav-item.active svg{
  stroke: var(--yellow-dark);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1600;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.open{
  display: block;
  opacity: 1;
}

/* Mobile Slide-in Drawer */
.mobile-nav-dropdown{
  display: flex;
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: white;
  border-left: 1px solid var(--border);
  padding: 20px 20px 30px;
  flex-direction: column;
  gap: 6px;
  box-shadow: -8px 0 35px rgba(0,0,0,.15);
  z-index: 1700;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-dropdown.open{
  right: 0;
}

.mobile-drawer-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.drawer-close-btn{
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.drawer-close-btn:hover{
  background: #E5E7EB;
}

.mobile-nav-dropdown .nav-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-dropdown .nav-link:hover,
.mobile-nav-dropdown .nav-link.active{
  background: var(--yellow-light);
  color: #92400E;
  font-weight: 750;
}

.mobile-nav-dropdown .nav-link.active::after{
  display: none;
}

.mobile-nav-auth{
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.no-scroll{
  overflow: hidden !important;
}

/* Keep the drawer's access buttons above the fixed bottom navigation. */
body.no-scroll .header { z-index: 1800; }
.mobile-nav-dropdown > * { flex-shrink: 0; }

/* =========================================================
   RESPONSIVE MEDIA QUERIES
========================================================= */

@media(max-width: 1100px){
  .nav{
    gap: 20px;
  }
  .mission-grid, .mission-cards-grid, .mission-cats-grid{
    grid-template-columns: repeat(3, 1fr);
  }
  .expert-grid, .experts-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description, .hero-desc{
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions{
    justify-content: center;
  }
  .hero-visual{
    min-height: 500px;
  }
  .features, .features-strip, .features-grid{
    grid-template-columns: 1fr;
  }
  .steps, .steps-row{
    grid-template-columns: 1fr;
  }
  .step:not(:last-child)::after, .step-item:not(:last-child)::after{
    content: '↓';
    right: auto;
    left: 50%;
    top: auto;
    bottom: -25px;
  }
  .stats, .stats-row{
    grid-template-columns: repeat(3, 1fr);
  }
  .route, .route-card{
    grid-template-columns: 1fr;
  }
  .route-step + .route-step{
    border-left: none;
    border-top: 1px solid #eee;
  }
  .example-grid, .example-steps, .example-steps-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid{
    grid-template-columns: 1fr;
  }
  .expert-pricing-card{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 800px){
  .header{
    height: 64px;
    padding: 0 12px;
  }
  .header-inner{
    width: 100%;
    gap: 8px;
  }
  .logo{
    min-width: 0 !important;
    gap: 8px;
  }
  .logo-img{
    height: 38px !important;
  }
  .header-actions{
    margin-left: auto;
    gap: 6px;
  }
  .header-actions .icon-btn{
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .header-actions #authButtons{
    display: none;
  }
  .user-menu{
    padding: 4px 10px;
    gap: 6px;
    max-width: 140px;
  }
  .user-name-header{
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }
  .nav{
    display: none;
  }
  .mobile-hamburger{
    display: flex;
  }
  .bottom-nav{
    display: flex;
  }
  body{
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .notif-dropdown{
    width: min(340px, calc(100vw - 20px)) !important;
    right: -10px !important;
  }
  .user-dropdown{
    right: 0 !important;
    width: min(240px, calc(100vw - 20px)) !important;
  }

  /* Modal Responsive Sizing */
  .modal-overlay{
    padding: 12px !important;
    align-items: flex-end !important;
  }
  .modal-box{
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px 16px !important;
    border-radius: 20px 20px 16px 16px !important;
    max-height: 93vh !important;
  }
  .modal-head{
    margin-bottom: 14px;
  }
  .modal-head h2, .modal-head h3{
    font-size: 18px !important;
  }
  .modal-close{
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .role-cards{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .modal-grid-2col{
    grid-template-columns: 1fr !important;
  }

  /* Prevent iOS Safari input auto-zoom */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  select,
  textarea{
    font-size: 16px !important;
  }

  /* Stepper */
  .onboarding-stepper{
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  .step-indicator{
    font-size: 11px;
    gap: 5px;
  }
  .step-indicator .step-num{
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  /* Hero Section */
  .hero h1{
    font-size: 36px;
    letter-spacing: -1.5px;
    line-height: 1.15;
  }
  .hero-copy{
    padding: 28px 0 16px;
  }
  .hero-actions{
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn{
    width: 100%;
  }
  .hero-circle{
    width: min(280px, 80vw);
    height: min(280px, 80vw);
  }
  .hero-person{
    width: min(280px, 80vw);
    height: 300px;
    font-size: 90px;
  }
  .hero-card{
    width: 175px;
    padding: 12px;
  }
  .hero-trust{
    grid-template-columns: 1fr;
  }
  .trust-item + .trust-item{
    border-left: none;
    border-top: 1px solid var(--yellow);
  }

  /* Grids & Cards */
  .mission-grid, .mission-cards-grid, .mission-cats-grid{
    grid-template-columns: 1fr;
  }
  .rec-missions-row, .recommended-missions-row{
    grid-template-columns: 1fr;
  }
  .stats, .stats-row{
    grid-template-columns: 1fr 1fr;
  }
  .stat + .stat, .stat-item + .stat-item{
    border-left: none;
  }
  .testimonial, .testimonial-card{
    grid-template-columns: 1fr;
  }
  .cta, .cta-banner{
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 18px;
  }
  .dashboard, .dashboard-layout{
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .sidebar{
    display: none !important;
  }
  .dashboard-main{
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .dashboard-title, .dashboard-top-bar{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100% !important;
    min-width: 0 !important;
  }
  .dashboard-title h1, .dashboard-top-bar h1{
    font-size: 26px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  .mission-builder, .mission-builder-card{
    grid-template-columns: minmax(0, 1fr) !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 14px !important;
  }
  .builder-main, .builder-side{
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .mission-generate-actions{
    flex-direction: column;
    width: 100%;
  }
  .mission-generate-actions .btn{
    width: 100%;
  }
  .rec-missions-row, .recommended-missions-row{
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .rec-card{
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px !important;
  }
  .missions-tools-strip{
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .missions-tools-strip-text{
    min-width: 0 !important;
    width: 100% !important;
  }
  .missions-tools-pills{
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .missions-tool-pill-btn{
    flex-shrink: 0 !important;
    font-size: 12px !important;
  }
  .missions-dashboard-grid{
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .my-missions-section, .next-step-widget, .next-step-card{
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .next-step-card{
    padding: 18px 14px !important;
  }
  .next-step-box, .impact-section{
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .impact-list{
    min-width: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
  }
  .impact-item{
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .missions-tabs-header{
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .tab-group{
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .tab-group::-webkit-scrollbar{
    display: none !important;
  }
  .tab-btn{
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Mis Misiones Table to Mobile Cards */
  .table-card{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow-x: visible !important;
  }
  .table-head{
    display: none !important;
  }
  .table-head, .table-row{
    min-width: 0 !important;
  }
  .table-row{
    display: flex !important;
    flex-direction: column !important;
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: var(--shadow) !important;
    gap: 10px !important;
  }
  .table-row > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Experts Page */
  .expert-grid, .experts-grid{
    grid-template-columns: 1fr;
  }
  .filter-chips, .resources-filters-scroll{
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    max-height: none !important;
    padding: 8px 2px 12px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .filter-chips::-webkit-scrollbar,
  .resources-filters-scroll::-webkit-scrollbar{
    display: none !important;
  }
  .chip, .resources-filter-pill{
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .resources-catalog-grid{
    grid-template-columns: 1fr !important;
  }

  /* Pricing */
  .pricing-card{
    padding: 22px 18px !important;
  }
  .billing-toggle-wrap{
    flex-wrap: wrap;
    gap: 8px !important;
  }

  /* Chat Master-Detail for Mobile */
  .chat-layout{
    display: block !important;
    height: calc(100vh - 145px) !important;
    height: calc(100dvh - 145px) !important;
    position: relative;
    overflow: hidden;
  }
  .chat-sidebar{
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
  }
  .chat-panel{
    display: none;
    width: 100% !important;
    height: 100% !important;
    border-radius: 14px;
  }
  .chat-layout.has-active-chat .chat-sidebar{
    display: none !important;
  }
  .chat-layout.has-active-chat .chat-panel{
    display: flex !important;
    flex-direction: column;
  }
  .btn-chat-back{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    margin-right: 8px;
    color: var(--text);
  }
  .chat-panel-top{
    padding: 12px 14px;
  }
  .chat-input-row{
    padding: 10px 12px;
  }

  /* Settings Mobile Tabs */
  .settings-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .settings-sidebar{
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .settings-sidebar::-webkit-scrollbar{
    display: none;
  }
  .settings-nav-btn{
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 10px 14px !important;
  }

  /* Toasts */
  .toast-container{
    top: 14px !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    align-items: center !important;
  }
  .toast{
    width: 100% !important;
    max-width: 440px !important;
    box-sizing: border-box !important;
  }

  /* Roadmap & Step Cards */
  .roadmap-container{
    padding: 16px 12px !important;
  }
  .roadmap-header .roadmap-title{
    font-size: 20px !important;
  }
  .step-card-header{
    flex-wrap: wrap;
    gap: 10px;
  }
  .step-duration-badge{
    order: 3;
    width: auto;
    font-size: 11px;
    padding: 3px 10px;
  }
  .step-card-footer{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .step-expert-action-buttons{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .step-expert-action-buttons button{
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
  .step-card-actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .step-complete-check{
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .step-date-picker{
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border);
  }
  .step-card-actions button{
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .example-grid, .example-steps, .example-steps-grid{
    grid-template-columns: 1fr;
  }
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom{
    flex-direction: column;
    gap: 10px;
  }
  .form-row{
    grid-template-columns: 1fr;
  }
}

@media(max-width: 500px){
  .hero h1{
    font-size: 30px;
    letter-spacing: -1px;
  }
  .section{
    padding: 35px 0;
  }
  .section-heading h2{
    font-size: 24px;
  }
  .stats, .stats-row{
    grid-template-columns: 1fr;
  }
  .stat + .stat, .stat-item + .stat-item{
    border-top: 1px solid #ddd;
  }
  .footer-grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   IMAGE ASSETS — imagenesalpha
========================================================= */

/* Header Logo */
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Hero real photo */
.hero-photo {
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  border: none;
  outline: none;
  box-shadow: none;
  filter: none;
  border-radius: 0;
  background: transparent;
}

.hero-visual {
  position: relative;
  min-height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Roadmap illustration */
.roadmap-img {
  width: 100%;
  max-width: 820px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 32px;
  border-radius: 16px;
}

/* CTA mascot image (replaces emoji) */
.cta-mascot-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
}

/* Sidebar mascot (Tiger with headset) */
.sidebar-help-mascot-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

/* Modal mascot (Tiger thumbs up with sunglasses) */
.modal-mascot-img {
  width: 58px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

/* Custom illustration icons from imagenespeque */
.mcat-icon img,
.feature-icon-circle img,
.feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.rec-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.step-icon-lg img,
.step-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Mobile logo */
@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
  .hero-photo {
    max-width: 100%;
  }
  .cta-mascot-img {
    width: 80px;
    height: 80px;
  }
  .sidebar-help-mascot-img {
    width: 70px;
    height: 70px;
  }
  .modal-mascot-img {
    width: 46px;
    max-height: 42px;
  }
}

/* =========================================================
   MISSIONS DASHBOARD 2-COL GRID & "TU PRÓXIMO PASO" WIDGET
========================================================= */

.missions-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .missions-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Next Step Card */
.next-step-widget {
  width: 100%;
}

.next-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

/* Next Step Inside Box */
.next-step-box {
  background: #FFFFFF;
  border: 1px solid #EFEFEF;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}

.next-step-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.calendar-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFF7DE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.next-step-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  display: block;
  margin-bottom: 4px;
}

.next-step-text p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.next-step-btn {
  font-weight: 750;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
}

/* Impact of missions */
.impact-section {
  border-top: 1px solid #F0F0F0;
  padding-top: 20px;
}

.impact-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}

.impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.impact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.impact-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F6F7F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
  min-width: 38px;
}

.impact-lbl {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   CALENDAR & AGENDA SCHEDULER MODAL
========================================================= */

.calendar-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .calendar-modal-body {
    grid-template-columns: 1fr;
  }
}

.calendar-pane {
  background: #FAFAFA;
  border: 1px solid #EBEBEB;
  border-radius: 14px;
  padding: 18px;
}

.calendar-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-nav-bar strong {
  font-weight: 800;
  color: var(--black);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.calendar-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 750;
  color: #888;
  margin-bottom: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 10px;
  background: white;
  border: 1px solid #E8E8E8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  user-select: none;
}

.calendar-day:hover {
  border-color: var(--yellow);
  background: #FFFDF5;
  transform: scale(1.04);
}

.calendar-day.today {
  border-color: var(--yellow);
  font-weight: 850;
  color: #B45309;
  background: #FFFBEA;
}

.calendar-day.selected {
  background: var(--yellow);
  color: var(--black);
  font-weight: 850;
  border-color: var(--yellow-dark);
}

.calendar-day.other-month {
  opacity: 0.35;
  background: #F7F7F7;
  cursor: default;
}

.calendar-day-dots {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}

.calendar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.calendar-dot.session { background: #FFB800; }
.calendar-dot.task { background: #31A852; }
.calendar-dot.interview { background: #3987E8; }

.calendar-legend {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #E0E0E0;
  flex-wrap: wrap;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.legend-dot.session { background: #FFB800; }
.legend-dot.task { background: #31A852; }
.legend-dot.interview { background: #3987E8; }

/* Agenda pane */
.agenda-pane {
  display: flex;
  flex-direction: column;
}

.agenda-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.agenda-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--black);
}

.new-event-form {
  background: #FFFDF5;
  border: 1px solid #F5E6BA;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  animation: fadeIn .2s ease;
}

.new-event-form h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #92400E;
}

.agenda-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.agenda-item {
  background: white;
  border: 1px solid #EBEBEB;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s;
}

.agenda-item:hover {
  border-color: var(--yellow);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.agenda-item.completed {
  opacity: 0.6;
  background: #F9F9F9;
}

.agenda-item.completed .agenda-item-title {
  text-decoration: line-through;
}

.agenda-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agenda-item-check {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--yellow-dark);
}

.agenda-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.agenda-item-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.agenda-item-type {
  font-size: 10px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.agenda-item-type.session { background: #FFF7DE; color: #B45309; }
.agenda-item-type.task { background: #E6F4EA; color: #137333; }
.agenda-item-type.interview { background: #E8F1FF; color: #1A73E8; }
.agenda-item-type.review { background: #F3E8FD; color: #7627BB; }

.agenda-item-del {
  background: none;
  border: none;
  color: #DC2626;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
}

.agenda-item-del:hover {
  opacity: 1;
}

.agenda-empty {
  text-align: center;
  padding: 30px 10px;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   EXPERT BADGES & PROFILE PHOTO
========================================================= */

.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
  white-space: nowrap;
}

.official-badge {
  background: #FFF5D6;
  color: #92400E;
  border: 1.5px solid #FFB800;
}

.demo-badge {
  background: #EDE9FE;
  color: #5B21B6;
  border: 1.5px solid #7C3AED;
}

.expert-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

/* Badge filter active state */
.badge-filter-btn.active {
  background: var(--yellow) !important;
  border-color: var(--yellow-dark) !important;
  color: #111 !important;
}

.badge-filter-btn:hover {
  background: var(--yellow-light) !important;
}

/* =========================================================
   MULTI-STEP ONBOARDING SYSTEM
========================================================= */

.onboarding-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  flex: 1;
}

.step-indicator .step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #4B5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-indicator.active .step-num {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 0 0 3px var(--yellow-light);
}

.step-indicator.completed .step-num {
  background: var(--green);
  color: #fff;
}

.step-indicator.active {
  color: var(--black);
}

.onboarding-step {
  display: none;
  animation: fadeInStep 0.25s ease forwards;
}

.onboarding-step.active {
  display: block;
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.radio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.radio-card-item {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  user-select: none;
}

.radio-card-item:hover {
  border-color: var(--yellow);
  background: var(--bg-light);
}

.radio-card-item.active {
  border-color: var(--yellow-dark);
  background: var(--yellow-light);
  box-shadow: 0 2px 10px rgba(255,184,0,0.15);
}

.radio-card-item .radio-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.radio-card-item strong {
  display: block;
  font-size: 13px;
  color: var(--black);
}

.age-calc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  margin-top: 6px;
}

.work-item-box {
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.btn-remove-work {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-remove-work:hover {
  background: #FCA5A5;
}

.official-upgrade-box {
  background: linear-gradient(135deg, #FFFDF5 0%, #FFF5D6 100%);
  border: 2px solid var(--yellow);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255,184,0,0.12);
}

.official-benefit-list {
  list-style: none;
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.official-benefit-list li {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #78350F;
  font-weight: 600;
}

.onboarding-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.job-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 12px;
}

.job-status-badge.current {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.job-status-badge.past {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.work-current-radio {
  accent-color: #16A34A;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.day-chip {
  padding: 7px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.day-chip:hover {
  border-color: var(--yellow);
  background: var(--bg-light);
}


.day-chip.active {
  background: var(--yellow);
  border-color: var(--yellow-dark);
  color: #111;
  box-shadow: 0 2px 8px rgba(255,184,0,0.22);
}

/* =========================================================
   TERMS & CONDITIONS CHECKBOX ROW
========================================================= */
.terms-check-row {
  margin: 12px 0 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 10px 14px;
}

.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1F2937;
  line-height: 1.5;
}

.terms-check-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
  cursor: pointer;
}

/* =========================================================
   CHAT LAYOUT — MESSAGES PAGE
========================================================= */
.chat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  height: calc(100vh - 200px);
  min-height: 500px;
}

/* ── Sidebar ── */
.chat-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
  font-size: 14px;
}

#chatConversationList {
  overflow-y: auto;
  flex: 1;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.chat-conv-item:hover,
.chat-conv-item.active {
  background: var(--yellow-light);
}

.conv-last-msg {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin: 0;
}

.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.unread-badge {
  background: var(--yellow);
  color: #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
}

/* ── Main Panel ── */
.chat-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-none-selected {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
  padding: 32px;
}

.chat-none-mascot-img {
  width: 280px;
  height: 280px;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.chat-message-panel {
  flex-direction: column;
  flex: 1;
  display: flex;
  height: 100%;
}

/* Header bar */
.chat-panel-top {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
  flex-shrink: 0;
}

.chat-panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-online-dot {
  font-size: 11px;
  color: var(--green);
  display: block;
}

/* Messages area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #FAFAFA;
}

.chat-empty-messages {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: auto;
}

.chat-setup-notice {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: auto;
  max-width: 280px;
  line-height: 1.6;
}

/* Message bubbles */
.chat-message {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 75%;
}

.chat-msg-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-other {
  align-self: flex-start;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-msg-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.chat-bubble {
  padding: 9px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-msg-mine .chat-bubble {
  background: var(--yellow);
  color: #111;
  border-bottom-right-radius: 4px;
}

.chat-msg-other .chat-bubble {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg-time {
  font-size: 10px;
  color: var(--muted);
  align-self: flex-end;
}

/* Input row */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-row input:focus {
  border-color: var(--yellow);
}

.chat-send-btn {
  border-radius: 50% !important;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

/* ── Mobile chat layout: Master-Detail is handled in the main mobile query ── */

/* =========================================================
   TIGER AI — ESTILOS DE INTELIGENCIA ARTIFICIAL
========================================================= */

/* ── Botones IA ── */
.btn-tiger-primary {
  background: var(--yellow);
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-tiger-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-tiger-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-tiger-outline {
  background: transparent;
  border: 2px solid var(--yellow);
  color: #111;
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn-tiger-outline:hover { background: var(--yellow-light); }

.btn-tiger-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
.btn-tiger-ghost:hover { background: #f5f5f5; }

/* ── Date Input ── */
.tiger-date-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.tiger-date-input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,184,0,.15); }

/* ── Modales ── */
.tiger-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeInOverlay .2s ease;
}
@keyframes fadeInOverlay { from { opacity:0; } to { opacity:1; } }

.tiger-modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: slideUpModal .25s ease;
}
@keyframes slideUpModal { from { transform: translateY(24px); opacity:0; } to { transform: translateY(0); opacity:1; } }

.tiger-modal-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--black); }
.tiger-modal-box p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.reminder-modal .reminder-icon { font-size: 48px; margin-bottom: 12px; }
.reminder-plan-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.reminder-step-badge {
  background: var(--yellow-light);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.step-num-small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.reminder-date { font-size: 13px; margin-bottom: 20px; }
.reminder-actions { display: flex; flex-direction: column; gap: 10px; }

/* ── Roadmap Container ── */
.roadmap-container {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 20px 0;
}

.roadmap-header { margin-bottom: 24px; }
.roadmap-title { font-size: 22px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.roadmap-summary { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.roadmap-meta { display: flex; gap: 20px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.roadmap-meta strong { color: var(--text); }

.roadmap-progress-bar-wrap { margin-top: 12px; }
.roadmap-progress-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.roadmap-progress-bar { background: #f0f0f0; border-radius: 99px; height: 8px; overflow: hidden; }
.roadmap-progress-fill { height: 100%; background: linear-gradient(90deg, var(--yellow), var(--yellow-dark)); border-radius: 99px; transition: width .4s ease; }

.roadmap-steps-label { font-size: 15px; font-weight: 700; color: var(--black); margin: 20px 0 14px; }

/* ── Step Cards ── */
.roadmap-step-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s, opacity .2s;
}
.roadmap-step-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.roadmap-step-card.step-completed { border-color: #31a852; background: #f0fdf4; opacity: .85; }

.step-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-completed .step-number-badge { background: #31a852; color: #fff; }

.step-card-info { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.step-description { font-size: 13px; color: var(--muted); }

.step-duration-badge {
  background: var(--yellow-light);
  color: #92400e;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.expert-assignable, .sessions-info { font-size: 12px; color: var(--muted); }
.expert-assignable strong, .sessions-info strong { color: var(--text); }

.step-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.step-complete-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.step-complete-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--yellow); cursor: pointer; }

.step-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.roadmap-divider { border: none; border-top: 1px dashed var(--border); margin: 24px 0; }
.roadmap-result-section { margin-top: 24px; }

/* ── Chat IA de Diagnóstico (dentro de Misiones) ── */
.ai-chat-panel {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 420px;
  max-height: 420px;
  box-shadow: var(--shadow);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef3c7, #fef9e7);
  border-bottom: 1px solid #fde68a;
}
.ai-avatar { font-size: 32px; }
.ai-avatar-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #FCD34D; flex-shrink: 0; }
.ai-chat-header strong { font-size: 15px; color: var(--black); }
.ai-chat-header p { font-size: 12px; color: var(--muted); margin: 0; }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}
.ai-msg-user {
  align-items: flex-end;
}
.ai-msg-model {
  align-items: flex-start;
}

.ai-msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.ai-msg-user .ai-msg-bubble { background: var(--yellow); color: #111; border-bottom-right-radius: 4px; }
.ai-msg-model .ai-msg-bubble { background: #f5f5f5; color: var(--text); border-bottom-left-radius: 4px; }

.ai-chat-input-row {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.ai-chat-input-row input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.ai-chat-input-row input:focus { border-color: var(--yellow); }

/* ── Asistente IA en Chat ── */
.ai-support-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 10px;
}
.ai-support-welcome h4 { font-size: 18px; font-weight: 700; }
.ai-support-welcome p { color: var(--muted); font-size: 14px; max-width: 300px; }

.ai-quick-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.ai-suggestion-chip {
  background: var(--yellow-light);
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.ai-suggestion-chip:hover { background: #fde68a; }

.ai-reply-bubble { display: flex; align-items: flex-start; gap: 10px; }
.ai-msg-text { font-size: 14px; line-height: 1.6; background: #f9f9f9; padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px; }

.ai-empty-state, .ai-error { text-align: center; padding: 40px; color: var(--muted); font-size: 14px; }
.ai-error { color: #ef4444; }

/* ── Typing dots animation ── */
@keyframes blink { 0%,100%{opacity:0;} 50%{opacity:1;} }
.typing-dots { display: inline-block; animation: blink 1.2s infinite; }
/* Notificaciones Dropdown */
.header-actions { position: relative; }
.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 120px;
  width: 320px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  overflow: hidden;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fdfdfd;
}
.notif-header h4 { margin: 0; font-size: 14px; font-weight: 700; }
.notif-list {
  max-height: 350px;
  overflow-y: auto;
}
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.notif-item:hover { background: #f9f9f9; }
.notif-item.unread { background: #fdfce8; }
.notif-item h5 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.notif-item p { margin: 0; font-size: 12px; color: var(--muted); }
.notif-empty {
  padding: 30px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   FEATURES STRIP & ABOUT TIGER INTEGRATED LAYOUT
========================================================= */
.features-strip {
  padding: 10px 0 60px 0;
  width: 100%;
}

.features-about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}

.features-left-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.feature-card-item {
  background: #FFFDF9;
  border: 1.5px solid #F6E6B8;
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.04);
}

.feature-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
  background: #FFFFFF;
}

.feature-card-item .feature-icon-circle {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FFF7DE;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card-item .feature-icon-circle img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feature-card-item h4 {
  font-size: 15.5px;
  font-weight: 750;
  margin-bottom: 5px;
  color: #111318;
}

.feature-card-item p {
  color: #4B5563;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.about-tiger-card {
  background: #FFFFFF;
  border: 1.5px solid #F1D98E;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(230, 163, 0, 0.08);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-tiger-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.14) 0%, rgba(255, 184, 0, 0) 70%);
  pointer-events: none;
}

.about-tiger-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF7DE;
  color: #92400E;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  border: 1px solid #FCD34D;
}

.about-tiger-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 850;
  letter-spacing: -1px;
  color: #111318;
  line-height: 1.2;
  margin-bottom: 8px;
}

.about-tiger-lead {
  font-size: 15.5px;
  font-weight: 700;
  color: #111318;
  line-height: 1.45;
  margin-bottom: 16px;
}

.about-tiger-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #111318;
  font-size: 13.5px;
  line-height: 1.62;
}

.about-tiger-paragraphs p {
  margin: 0;
}

.about-tiger-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-tiger-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-tiger-img-backdrop {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFF9E8 0%, #FFF0BD 100%);
  border: 2px solid #FDE68A;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-tiger-img-backdrop:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.18);
}

.about-tiger-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

@media (max-width: 1100px) {
  .features-about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .features-left-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .features-left-stack {
    grid-template-columns: 1fr;
  }
  .about-tiger-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }
  .about-tiger-img-wrapper {
    order: -1;
  }
  .about-tiger-img-backdrop {
    max-width: 280px;
  }
}

/* Pricing Billing Cycle Switch */
.switch input:checked + .slider {
  background-color: var(--yellow) !important;
}
.switch input:checked + .slider:before {
  transform: translateX(24px) !important;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Expert Preference Toggle Buttons */
.btn-toggle-expert {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-toggle-expert.active {
  background: #FFFFFF;
  color: #111827;
  font-weight: 750;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* =========================================================
   TIGER DARK MODE SYSTEM ([data-theme="dark"])
========================================================= */

[data-theme="dark"] {
  --yellow: #FFB800;
  --yellow-dark: #FFA000;
  --yellow-light: #2A2312;
  --black: #F3F4F6;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --white: #161B22;
  --bg: #0D1117;
  --bg-light: #161B22;
  --border: #30363D;
  --shadow: 0 4px 20px rgba(0,0,0,.6);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.8);
}

[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--text);
}

/* Header & Navigation in Dark Mode */
[data-theme="dark"] .header {
  background-color: #161B22;
  border-bottom-color: #30363D;
}
[data-theme="dark"] .mobile-nav-backdrop {
  background: rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .mobile-nav-dropdown {
  background-color: #161B22;
  border-left-color: #30363D;
  box-shadow: -8px 0 35px rgba(0,0,0,0.6);
}
[data-theme="dark"] .mobile-drawer-header {
  border-bottom-color: #30363D;
}
[data-theme="dark"] .drawer-close-btn {
  background: #21262D;
  color: #F0F6FC;
}
[data-theme="dark"] .drawer-close-btn:hover {
  background: #30363D;
}
[data-theme="dark"] .mobile-nav-auth {
  border-top-color: #30363D;
}
[data-theme="dark"] .mobile-nav-dropdown .nav-link {
  color: #E2E8F0;
}
[data-theme="dark"] .mobile-nav-dropdown .nav-link:hover,
[data-theme="dark"] .mobile-nav-dropdown .nav-link.active {
  background: #21262D;
  color: var(--yellow);
}
[data-theme="dark"] .bottom-nav {
  background-color: #161B22;
  border-top-color: #30363D;
}
[data-theme="dark"] .bottom-nav-item {
  color: #8B949E;
}
[data-theme="dark"] .bottom-nav-item.active {
  color: var(--yellow);
}
[data-theme="dark"] .bottom-nav-item.active svg {
  stroke: var(--yellow);
}
[data-theme="dark"] .btn-chat-back {
  background: #21262D;
  color: #F0F6FC;
}
[data-theme="dark"] .table-row {
  background: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .nav-link {
  color: var(--text);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--yellow);
}

/* Sections & Backgrounds in Dark Mode */
[data-theme="dark"] .section,
[data-theme="dark"] .section.light,
[data-theme="dark"] .section.alt {
  background-color: var(--bg) !important;
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at top right, #241E10 0%, #0D1117 60%);
}

/* Cards & Containers in Dark Mode */
[data-theme="dark"] .card,
[data-theme="dark"] .feature-card-item,
[data-theme="dark"] .about-tiger-card,
[data-theme="dark"] .mcat-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .agenda-item,
[data-theme="dark"] .calendar-container,
[data-theme="dark"] .modal-box,
[data-theme="dark"] .notif-dropdown,
[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .ai-chat-panel,
[data-theme="dark"] .tiger-modal-box {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: var(--text) !important;
}

[data-theme="dark"] .about-tiger-paragraphs p,
[data-theme="dark"] .about-tiger-lead,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .mcat-card p {
  color: #C9D1D9 !important;
}

[data-theme="dark"] .about-tiger-img-backdrop {
  background: linear-gradient(145deg, #2D2413 0%, #161B22 100%) !important;
  border-color: #4A3E1F !important;
}

/* Inputs & Form Controls in Dark Mode */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #0D1117 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #6E7681 !important;
}

[data-theme="dark"] .btn-outline {
  border-color: #30363D;
  color: #F3F4F6;
  background: transparent;
}
[data-theme="dark"] .btn-outline:hover {
  background: #21262D;
  border-color: var(--yellow);
  color: var(--yellow);
}

/* User Menu & Dropdown */
[data-theme="dark"] .user-dropdown button {
  color: #F3F4F6;
}
[data-theme="dark"] .user-dropdown button:hover {
  background-color: #21262D;
}
[data-theme="dark"] .user-dropdown hr {
  border-color: #30363D;
}

/* Onboarding & Roles */
[data-theme="dark"] .role-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .role-card strong {
  color: #F3F4F6;
}
[data-theme="dark"] .role-card p {
  color: #9CA3AF;
}
[data-theme="dark"] .role-card.active,
[data-theme="dark"] .role-card.selected {
  background-color: #252014 !important;
  border-color: var(--yellow) !important;
}

/* Calendar & Agenda */
[data-theme="dark"] .calendar-day {
  background-color: #161B22;
  border-color: #30363D;
  color: #F3F4F6;
}
[data-theme="dark"] .calendar-day.other-month {
  color: #484F58;
}
[data-theme="dark"] .calendar-day.selected {
  border-color: var(--yellow);
  background-color: #252014;
}
[data-theme="dark"] .agenda-empty {
  color: #9CA3AF;
}
[data-theme="dark"] .agenda-item {
  border-color: #30363D !important;
}

/* ── HEADER USER PILL & NOTIFICATIONS IN DARK MODE ── */
[data-theme="dark"] .user-menu {
  background-color: #21262D !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .user-name-header {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .user-menu:hover {
  background-color: #30363D !important;
}
[data-theme="dark"] .icon-btn {
  background-color: #21262D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .icon-btn:hover {
  background-color: #30363D !important;
}
[data-theme="dark"] .icon-btn svg {
  stroke: #F3F4F6 !important;
}

/* ── MESSAGES & REALTIME CHAT IN DARK MODE ── */
[data-theme="dark"] .chat-sidebar {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .chat-sidebar-header {
  background-color: #21262D !important;
  border-bottom-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .chat-conv-item {
  border-bottom-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .chat-conv-item:hover,
[data-theme="dark"] .chat-conv-item.active {
  background-color: #2A2312 !important;
}
[data-theme="dark"] .chat-panel {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .chat-panel-top {
  background-color: #21262D !important;
  border-bottom-color: #30363D !important;
}
[data-theme="dark"] .chat-panel-top strong,
[data-theme="dark"] #chatPanelName {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .chat-none-selected {
  background-color: #161B22 !important;
  color: #9CA3AF !important;
}
[data-theme="dark"] .chat-none-selected h3 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .chat-messages-area {
  background-color: #0D1117 !important;
}
[data-theme="dark"] .chat-msg-other .chat-bubble {
  background-color: #21262D !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .chat-msg-mine .chat-bubble {
  background-color: var(--yellow) !important;
  color: #111318 !important;
}
[data-theme="dark"] .chat-msg-avatar {
  background-color: #21262D !important;
}
[data-theme="dark"] .chat-input-row {
  background-color: #161B22 !important;
  border-top-color: #30363D !important;
}
[data-theme="dark"] .chat-input-row input {
  background-color: #0D1117 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .messages-list {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .message-item {
  border-bottom-color: #30363D !important;
}
[data-theme="dark"] .message-item:hover {
  background-color: #21262D !important;
}
[data-theme="dark"] .ia-chat-box {
  background-color: #0D1117 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .ia-bot .ia-msg-bubble {
  background-color: #21262D !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}

/* ── TIGER ESTRATEGA IA CHAT PANEL (ROADMAP & DIAGNOSIS) IN DARK MODE ── */
[data-theme="dark"] .ai-chat-panel {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .ai-chat-header {
  background: linear-gradient(135deg, #241C0A, #161B22) !important;
  border-bottom: 1px solid #30363D !important;
}
[data-theme="dark"] .ai-chat-header strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .ai-chat-header p {
  color: #9CA3AF !important;
}
[data-theme="dark"] .ai-chat-messages {
  background-color: #0D1117 !important;
}
[data-theme="dark"] .ai-msg-user .ai-msg-bubble {
  background-color: var(--yellow) !important;
  color: #111318 !important;
}
[data-theme="dark"] .ai-msg-model .ai-msg-bubble {
  background-color: #21262D !important;
  border: 1px solid #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .ai-chat-input-row {
  background-color: #161B22 !important;
  border-top-color: #30363D !important;
}
[data-theme="dark"] .ai-chat-input-row input {
  background-color: #0D1117 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .ai-chat-input-row input:focus {
  border-color: var(--yellow) !important;
}
[data-theme="dark"] .ai-chat-input-row button,
[data-theme="dark"] #ai-diag-send {
  background-color: var(--yellow) !important;
  color: #111318 !important;
  font-weight: 800 !important;
  border: none !important;
}
[data-theme="dark"] .ai-chat-input-row button:hover,
[data-theme="dark"] #ai-diag-send:hover {
  background-color: var(--yellow-dark) !important;
}

/* ── PRICING IN DARK MODE ── */
[data-theme="dark"] .pricing-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .pricing-card.featured {
  border-color: var(--yellow) !important;
  box-shadow: 0 10px 40px rgba(255, 184, 0, 0.15) !important;
}
[data-theme="dark"] .pricing-card h3,
[data-theme="dark"] .price-tag {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .pricing-features li {
  border-bottom-color: #21262D !important;
  color: #D1D5DB !important;
}
[data-theme="dark"] .expert-pricing,
[data-theme="dark"] .expert-pricing-section {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-pricing h2 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-pricing-card {
  background-color: #221C11 !important;
  border-color: #4A3C1A !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-pricing-card h3,
[data-theme="dark"] .expert-pricing-card .price-tag {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-pricing-card p {
  color: #D1D5DB !important;
}

/* ── EXPERTS PAGE IN DARK MODE ── */
[data-theme="dark"] .experts-header,
[data-theme="dark"] .experts-header-section {
  background-color: #0D1117 !important;
}
[data-theme="dark"] .expert-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-card:hover {
  border-color: var(--yellow) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .expert-card h3,
[data-theme="dark"] .expert-price {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .expert-avatar {
  background: linear-gradient(135deg, #2D333B, #1C2128) !important;
}
[data-theme="dark"] .search-bar-wrap {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .search-bar-wrap input {
  background-color: transparent !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .filter-chips .chip,
[data-theme="dark"] .badge-filter-btn {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #9CA3AF !important;
}
[data-theme="dark"] .filter-chips .chip.active,
[data-theme="dark"] .badge-filter-btn.active {
  background-color: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #111318 !important;
}

/* ── MISSIONS PAGE & ROADMAP IN DARK MODE ── */
[data-theme="dark"] .dashboard-layout {
  color: #F3F4F6;
}
[data-theme="dark"] .sidebar {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .sidebar-item {
  color: #9CA3AF !important;
}
[data-theme="dark"] .sidebar-item:hover,
[data-theme="dark"] .sidebar-item.active {
  background-color: #21262D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .sidebar-help {
  background-color: #21262D !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .sidebar-help strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .mission-builder,
[data-theme="dark"] .mission-builder-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .mission-builder h3,
[data-theme="dark"] .mission-builder-card h3 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .mission-builder textarea,
[data-theme="dark"] .mission-builder-card textarea {
  background-color: #0D1117 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .mission-builder textarea:focus,
[data-theme="dark"] .mission-builder-card textarea:focus {
  border-color: var(--yellow) !important;
}
[data-theme="dark"] .builder-side {
  background-color: #21262D !important;
  border: 1px solid #30363D !important;
  color: #D1D5DB !important;
}
[data-theme="dark"] .builder-side h4 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .checklist li,
[data-theme="dark"] .check {
  color: #C9D1D9 !important;
}
[data-theme="dark"] .btn-toggle-expert {
  color: #9CA3AF !important;
  background: transparent !important;
}
[data-theme="dark"] .btn-toggle-expert.active {
  background: var(--yellow) !important;
  color: #111318 !important;
}
[data-theme="dark"] .table-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .table-head {
  background-color: #21262D !important;
  color: #9CA3AF !important;
  border-bottom-color: #30363D !important;
}
[data-theme="dark"] .table-row {
  border-bottom-color: #21262D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .table-row:hover {
  background-color: #1F242C !important;
}
[data-theme="dark"] .next-step-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .widget-title,
[data-theme="dark"] .impact-title,
[data-theme="dark"] .next-step-text strong,
[data-theme="dark"] .impact-val {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .next-step-box {
  background-color: #21262D !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .calendar-icon-circle {
  background-color: #2D2413 !important;
}
[data-theme="dark"] .impact-section {
  border-top-color: #30363D !important;
}
[data-theme="dark"] .impact-icon-box {
  background-color: #21262D !important;
}
[data-theme="dark"] .impact-icon-box svg {
  stroke: #F3F4F6 !important;
}
[data-theme="dark"] .roadmap-container {
  background-color: #161B22 !important;
  border: 1px solid #30363D !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5) !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .roadmap-title {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .roadmap-summary {
  color: #C9D1D9 !important;
}
[data-theme="dark"] .roadmap-meta {
  color: #9CA3AF !important;
}
[data-theme="dark"] .roadmap-meta strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .roadmap-progress-label {
  color: #9CA3AF !important;
}
[data-theme="dark"] .roadmap-progress-bar {
  background-color: #21262D !important;
}
[data-theme="dark"] .roadmap-steps-label {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .roadmap-step-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .roadmap-step-card:hover {
  border-color: var(--yellow) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .roadmap-step-card.step-completed {
  border-color: #31a852 !important;
  background: #11261a !important;
}
[data-theme="dark"] .step-title {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .step-description {
  color: #9CA3AF !important;
}
[data-theme="dark"] .step-duration-badge {
  background-color: #2D2413 !important;
  color: var(--yellow) !important;
}
[data-theme="dark"] .step-card-footer {
  border-top-color: #30363D !important;
}
[data-theme="dark"] .expert-assignable,
[data-theme="dark"] .sessions-info {
  color: #9CA3AF !important;
}
[data-theme="dark"] .expert-assignable strong,
[data-theme="dark"] .sessions-info strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .step-complete-check {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .step-date-picker {
  color: #9CA3AF !important;
}
/* Mission Details Modal in Dark Mode */
.mission-modal-meta-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px;
  background: #FFF9E8;
  border-radius: 12px;
  border: 1px solid #F1D98E;
  color: #78350F;
}
.mission-modal-meta-banner strong {
  color: #1F2328;
}
.mission-modal-progress-box {
  margin-bottom: 20px;
  background: #FAFAFA;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
[data-theme="dark"] .mission-modal-meta-banner {
  background: linear-gradient(135deg, #2D2413 0%, #1E1A11 100%) !important;
  border-color: #4A3E1F !important;
  color: #E5E7EB !important;
}
[data-theme="dark"] .mission-modal-meta-banner strong {
  color: #FFB800 !important;
}
[data-theme="dark"] .mission-modal-progress-box {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] #missionModalProgressLabel {
  color: #F3F4F6 !important;
}

/* ── TOASTS & FLOATING NOTIFICATIONS IN DARK MODE ── */
[data-theme="dark"] .toast {
  background-color: #21262D !important;
  color: #F3F4F6 !important;
  border: 1px solid #30363D !important;
  border-left: 4px solid var(--yellow) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .toast.error {
  border-left-color: #EF4444 !important;
}
[data-theme="dark"] .toast.info {
  border-left-color: var(--yellow) !important;
}
[data-theme="dark"] .toast.success {
  border-left-color: #31A852 !important;
}
[data-theme="dark"] .notif-panel {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .tab-group .tab {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #9CA3AF !important;
}
[data-theme="dark"] .tab-group .tab.active {
  background-color: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #111318 !important;
}
[data-theme="dark"] .rec-card,
[data-theme="dark"] .rec-mission-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .rec-card:hover,
[data-theme="dark"] .rec-mission-card:hover {
  border-color: var(--yellow) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}
[data-theme="dark"] .rec-card h4,
[data-theme="dark"] .rec-mission-card h4 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .rec-card p,
[data-theme="dark"] .rec-mission-card p {
  color: #9CA3AF !important;
}
[data-theme="dark"] .rec-icon {
  background-color: #2D2413 !important;
  color: var(--yellow) !important;
}
[data-theme="dark"] .rec-arrow {
  color: var(--muted) !important;
}
[data-theme="dark"] .missions-tools-strip {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08) 0%, rgba(22, 27, 34, 0.6) 100%) !important;
  border-color: rgba(255, 184, 0, 0.25) !important;
}
[data-theme="dark"] .missions-tool-pill-btn {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .missions-tool-pill-btn:hover {
  border-color: var(--yellow) !important;
  background-color: #252014 !important;
}
[data-theme="dark"] .dashboard,
[data-theme="dark"] .dashboard-layout {
  background-color: #0D1117 !important;
}
[data-theme="dark"] .dashboard-main {
  background-color: #0D1117 !important;
}
[data-theme="dark"] .dashboard-title h1,
[data-theme="dark"] .dashboard-top-bar h1 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .section-row-header h2,
[data-theme="dark"] .section-title {
  color: #F3F4F6 !important;
}

/* ── HOW IT WORKS & HOME IN DARK MODE ── */
[data-theme="dark"] .how-hero {
  background-color: #0D1117 !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .route,
[data-theme="dark"] .route-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .route-step + .route-step {
  border-left-color: #30363D !important;
}
[data-theme="dark"] .route-step h3,
[data-theme="dark"] .route-step h4 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .example,
[data-theme="dark"] .example-card,
[data-theme="dark"] .example-mission-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .example-step,
[data-theme="dark"] .ex-step {
  border-color: #30363D !important;
  background-color: #21262D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .example-step strong,
[data-theme="dark"] .ex-step strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .example-expert,
[data-theme="dark"] .ex-expert {
  color: var(--yellow) !important;
}
[data-theme="dark"] .how,
[data-theme="dark"] .how-box {
  background-color: #221C11 !important;
  border-color: #4A3C1A !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .how-box .step-item h4 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .testimonial,
[data-theme="dark"] .testimonial-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .stat-item {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .stat-item strong {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .features-strip {
  background-color: transparent !important;
}
[data-theme="dark"] .feature-card-item {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .feature-card-item h4 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .about-tiger-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .about-tiger-title {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .about-tiger-lead {
  color: var(--yellow) !important;
}
[data-theme="dark"] .mcat-card {
  background-color: #161B22 !important;
  border-color: #30363D !important;
}
[data-theme="dark"] .mcat-card h3 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #241C0A 0%, #161B22 100%) !important;
  border: 1px solid #4A3E1F !important;
  color: #F3F4F6 !important;
}
[data-theme="dark"] .cta-text h2 {
  color: #F3F4F6 !important;
}
[data-theme="dark"] .cta-text p {
  color: #E5E7EB !important;
}
[data-theme="dark"] .cta-banner .btn-dark,
[data-theme="dark"] .btn-dark {
  background: var(--yellow) !important;
  color: #111318 !important;
  font-weight: 800 !important;
  border: none !important;
}
[data-theme="dark"] .cta-banner .btn-dark:hover,
[data-theme="dark"] .btn-dark:hover {
  background: var(--yellow-dark) !important;
  color: #111318 !important;
  transform: translateY(-1px);
}
[data-theme="dark"] .footer {
  background-color: #0A0D12 !important;
  border-top: 1px solid #30363D !important;
}
[data-theme="dark"] .footer-bottom {
  border-top-color: #21262D !important;
}

/* =========================================================
   THEME TOGGLE BUTTON
========================================================= */

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.theme-toggle-btn:hover {
  border-color: var(--yellow);
  background: var(--yellow-light);
  transform: rotate(15deg);
}

/* =========================================================
   ENHANCED NOTIFICATIONS DROPDOWN & BADGES
========================================================= */

.notif-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
[data-theme="dark"] .notif-badge-count {
  border-color: #161B22;
}

.notif-dropdown {
  position: absolute;
  top: 54px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 30px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  z-index: 1200;
  overflow: hidden;
  animation: notifFadeIn 0.2s ease-out;
}
@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #FAFAFA;
}
[data-theme="dark"] .notif-header {
  background: #1C2128;
  border-bottom-color: #30363D;
}
.notif-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notif-list {
  max-height: 420px;
  overflow-y: auto;
}

/* Notification Item Card */
.notif-card {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
  position: relative;
}
.notif-card:hover {
  background: #F9FAFB;
}
[data-theme="dark"] .notif-card:hover {
  background: #1F242C !important;
}

.notif-card.unread {
  background: #FFFDF5;
  border-left: 3.5px solid var(--yellow);
}
[data-theme="dark"] .notif-card.unread {
  background: #211E14 !important;
  border-left: 3.5px solid var(--yellow);
}

.notif-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-type-tag {
  font-size: 10.5px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.notif-type-deadline {
  background: #FEE2E2;
  color: #991B1B;
}
[data-theme="dark"] .notif-type-deadline {
  background: #451A1A;
  color: #FCA5A5;
}
.notif-type-meeting {
  background: #E0E7FF;
  color: #3730A3;
}
[data-theme="dark"] .notif-type-meeting {
  background: #1E2548;
  color: #A5B4FC;
}
.notif-type-chat {
  background: #E0F2FE;
  color: #0369A1;
}
[data-theme="dark"] .notif-type-chat {
  background: #0C344E;
  color: #7DD3FC;
}

.notif-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.notif-msg {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 8px 0;
}

.notif-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.notif-email-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: #059669;
  font-weight: 600;
}
[data-theme="dark"] .notif-email-tag {
  color: #34D399;
}

.notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.notif-action-btn {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.notif-action-btn:hover {
  opacity: 0.9;
}

.notif-sim-panel {
  padding: 10px 14px;
  background: #F3F4F6;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
[data-theme="dark"] .notif-sim-panel {
  background: #1C2128;
  border-top-color: #30363D;
}

/* =========================================================
   LINKED EMAIL & QUICK LOGIN ACCOUNTS
========================================================= */

.quick-accounts-box {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}
[data-theme="dark"] .quick-accounts-box {
  background: #1F242C;
  border-color: #30363D;
}

.quick-account-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
[data-theme="dark"] .quick-account-pill {
  background: #161B22;
  border-color: #30363D;
}
.quick-account-pill:hover {
  border-color: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.linked-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
[data-theme="dark"] .linked-email-badge {
  background: #064E3B;
  color: #6EE7B7;
  border-color: #047857;
}

/* Google Sign-In Button & Auth Dividers */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(60,64,67,0.08);
}
.btn-google:hover {
  background: #F8FAFC;
  border-color: #C2C7D0;
  box-shadow: 0 2px 6px rgba(60,64,67,0.15);
}
[data-theme="dark"] .btn-google {
  background: #161B22;
  color: #E6EDF3;
  border-color: #30363D;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[data-theme="dark"] .btn-google:hover {
  background: #21262D;
  border-color: #484F58;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.auth-divider span {
  padding: 0 12px;
}

/* Access controls: compact visual size with room to tap on a phone. */
#loginModal .login-remember { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
#loginModal .login-remember input { flex: 0 0 16px; }
#loginModal .login-remember label { font-size: 12px; color: var(--muted); cursor: pointer; margin: 0; }
#loginModal .login-remember label span { display: block; font-size: 11px; margin-top: 2px; }
#loginModal .login-code-hint { margin-top: 12px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--muted); }
#loginModal .login-recovery-link { display: block; margin: 4px auto 0; font-size: 13px; }

@media (max-width: 600px) {
  #loginModal { padding: 10px !important; }
  #loginModal .modal-box { padding: 18px 16px !important; max-height: calc(100dvh - 20px) !important; }
  #loginModal .modal-head { gap: 8px; margin-bottom: 16px; }
  #loginModal .modal-head > div { gap: 10px !important; min-width: 0; }
  #loginModal .modal-head h2 { font-size: 18px; line-height: 1.3; }
  #loginModal .modal-head p { font-size: 12px !important; }
  #loginModal .modal-mascot-img { width: 36px; max-height: 36px; }
  #loginModal .modal-close { flex: 0 0 44px; width: 44px; height: 44px; background: transparent; font-size: 15px; }
  #loginModal .btn, #loginModal .btn-google, #mobileNavAuth .btn, .auth-security-dialog .btn {
    min-height: 44px; padding: 9px 14px; font-size: 14px; line-height: 1.4; border-radius: 10px;
  }
  #loginModal .btn:hover, .auth-security-dialog .btn:hover { transform: none; }
  #loginModal .auth-divider { margin: 12px 0; font-size: 11px; }
  #loginModal .auth-divider span { padding: 0 8px; }
  #loginModal .form-group { margin-bottom: 12px; }
  #loginModal .form-group input:not([type=checkbox]):not([type=radio]) { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; font-size: 16px; }
  #loginModal #loginPassword { padding-right: 50px; }
  #loginModal .toggle-pwd { top: 0; right: 0; width: 44px; height: 100%; display: grid; place-items: center; font-size: 16px; }
  #loginModal .login-remember { min-height: 44px; margin-bottom: 10px; }
  #loginModal .form-hint { margin-top: 8px; font-size: 12px; }
  #loginModal .link-btn { min-height: 44px; padding: 8px 6px; font-size: 13px; line-height: 1.4; }
  #loginModal .login-code-hint { margin-top: 6px; }
  #loginModal .login-recovery-link { margin-top: 0; }
  #loginModal :is(button,input):focus-visible, .auth-security-dialog :is(button,input):focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: 3px; }
  .security-dialog.auth-security-dialog { margin: auto; padding: 20px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .security-dialog.auth-security-dialog input { min-width: 0; min-height: 44px; padding: 9px 12px; font-size: 16px; }
  .auth-security-dialog h2 { font-size: 20px; }
  .auth-security-dialog p { font-size: 13px; }
}

.google-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #E8F0FE;
  color: #1A73E8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
[data-theme="dark"] .google-tag-pill {
  background: #1E293B;
  color: #60A5FA;
}

/* =========================================================
   SETTINGS & PREFERENCES PAGE STYLES (#settings)
========================================================= */

.settings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: flex-start;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
  }
  .settings-sidebar {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .settings-sidebar::-webkit-scrollbar {
    display: none !important;
  }
  .settings-nav-btn {
    flex-shrink: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

.settings-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.settings-nav-btn:hover {
  background: var(--bg-light);
  color: var(--text);
}

.settings-nav-btn.active {
  background: var(--yellow-light);
  color: var(--black);
  font-weight: 750;
  box-shadow: inset 3px 0 0 var(--yellow-dark);
}

.settings-content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

@media (max-width: 600px) {
  .settings-content-card {
    padding: 20px 16px;
  }
}

.theme-choice-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.theme-choice-card:hover {
  border-color: var(--yellow) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="dark"] .theme-choice-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* =========================================================
   RESOURCES & TEMPLATES LIBRARY STYLES (#resources)
========================================================= */

.resources-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.resources-search-bar:focus-within {
  border-color: var(--yellow-dark);
}
.resources-search-bar input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--text);
}

.resources-filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.resources-filter-pill {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.resources-filter-pill:hover {
  background: var(--bg-light);
  color: var(--text);
}
.resources-filter-pill.active {
  background: var(--yellow);
  color: #111;
  font-weight: 750;
  border-color: var(--yellow);
}

.resources-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
[data-theme="dark"] .resource-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.resource-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.resource-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.resource-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.resource-badge.notion {
  background: #E0E7FF;
  color: #3730A3;
}
.resource-badge.prompts {
  background: #FEF3C7;
  color: #92400E;
}
.resource-badge.checklists {
  background: #DCFCE7;
  color: #166534;
}
.resource-badge.career {
  background: #FCE7F3;
  color: #9D174D;
}
.resource-badge.finance {
  background: #E0F2FE;
  color: #0369A1;
}

.resource-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}
.resource-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.resource-tag {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-light);
  padding: 2px 7px;
  border-radius: 6px;
}

.resource-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.resource-time {
  font-size: 11.5px;
  color: var(--muted);
}
.resource-action-btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Modal Preview Box */
.resource-preview-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow-y: auto;
  color: var(--text);
  margin-bottom: 18px;
}

/* Contextual Tools Banner in Missions */
.missions-tools-strip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.missions-tools-strip-text h4 {
  font-size: 15.5px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--text);
}
.missions-tools-strip-text p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}
.missions-tools-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.missions-tool-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}
.missions-tool-pill-btn:hover {
  border-color: var(--yellow);
  background: #FFFBEB;
  transform: translateY(-1px);
}

/* ── Price Filters & Step Expert Actions ── */
.price-filter-btn {
  transition: all 0.15s ease;
  font-family: inherit;
}
.price-filter-btn:hover {
  border-color: var(--yellow) !important;
  background: #FFFBEB !important;
}
.price-filter-btn.active {
  background: var(--yellow) !important;
  border-color: var(--yellow-dark) !important;
  color: #111 !important;
}

.btn-step-action-view:hover {
  background: #FDE68A !important;
  border-color: #D97706 !important;
  transform: translateY(-1px);
}
.btn-step-action-change:hover {
  background: #E2E8F0 !important;
  border-color: #94A3B8 !important;
  transform: translateY(-1px);
}

.change-expert-card:hover {
  border-color: var(--yellow) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

/* ── Modal Fullscreen (Pantalla Completa) & AI Chat Enhancements ── */
.btn-modal-fullscreen {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s ease;
  user-select: none;
}
.btn-modal-fullscreen:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
  transform: translateY(-1px);
}
.btn-modal-fullscreen.active {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}

.modal-box.modal-fullscreen {
  width: 96vw !important;
  max-width: 96vw !important;
  height: 94vh !important;
  max-height: 94vh !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 28px !important;
  transition: all .25s ease-in-out !important;
}

.modal-box.modal-fullscreen .modal-head {
  margin-bottom: 14px !important;
  flex-shrink: 0;
}

.modal-box.modal-fullscreen #tigerIAContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 !important;
}

.modal-box.modal-fullscreen #missionPlanContent {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.modal-box.modal-fullscreen .ai-chat-panel {
  height: 100% !important;
  max-height: calc(94vh - 120px) !important;
  flex: 1 !important;
  border-radius: 14px;
}

.modal-box.modal-fullscreen .ai-chat-messages {
  flex: 1 !important;
  font-size: 15px !important;
  padding: 20px 24px !important;
}

.modal-box.modal-fullscreen .ai-msg-bubble {
  max-width: 85% !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  padding: 12px 18px !important;
}

.ai-msg-bubble {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 82%;
}

.ai-chat-panel {
  height: 500px;
  max-height: 72vh;
}

/* Dark theme support for fullscreen */
[data-theme="dark"] .btn-modal-fullscreen {
  background: #21262D;
  border-color: #30363D;
  color: #C9D1D9;
}
[data-theme="dark"] .btn-modal-fullscreen:hover {
  background: #30363D;
  border-color: #58A6FF;
  color: #58A6FF;
}
[data-theme="dark"] .btn-modal-fullscreen.active {
  background: #2D2413;
  border-color: #F59E0B;
  color: #FCD34D;
}

/* ──────────────────────────────────────────────────────────
   Misiones: Estado en Progreso y Respuestas Punto por Punto
   ────────────────────────────────────────────────────────── */

/* Botón Misión en Progreso */
#generateBtn.btn-in-progress {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  animation: pulseSubtle 2.5s infinite;
}
@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Botón Generar otra misión */
#btnStartNewMission {
  border: 1.5px solid #EF4444 !important;
  color: #DC2626 !important;
  background: #FEF2F2 !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all .2s ease;
}
#btnStartNewMission:hover {
  background: #FEE2E2 !important;
  border-color: #DC2626 !important;
  color: #991B1B !important;
  transform: translateY(-1px);
}

/* Contenedor de preguntas punto por punto */
.ai-points-container {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 680px;
  align-self: flex-start !important;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.textarea-filled-highlight {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
  background-color: #FFFDF5 !important;
  transition: all 0.3s ease;
}

.ai-points-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-points-badge {
  background: #EEF2FF;
  color: #4338CA;
  font-weight: 750;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid #C7D2FE;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-points-hint {
  font-size: 12px;
  color: #64748B;
  font-style: italic;
}

.ai-points-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-point-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.ai-point-card:focus-within {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.ai-point-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.ai-point-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #F59E0B;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-point-titles {
  display: flex;
  flex-direction: column;
}

.ai-point-title {
  font-size: 13.5px;
  font-weight: 750;
  color: #1E293B;
}

.ai-point-question {
  font-size: 13px;
  color: #475569;
  margin-top: 2px;
  line-height: 1.4;
}

.ai-point-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 8px 34px;
}

.ai-point-chip {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 4px 11px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.ai-point-chip:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

.ai-point-chip.selected {
  background: #EFF6FF !important;
  border-color: #3B82F6 !important;
  color: #1D4ED8 !important;
  font-weight: 700 !important;
}

.ai-point-input-wrap {
  margin-left: 34px;
}

.ai-point-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  background: #FAFAFA;
  box-sizing: border-box;
  font-family: inherit;
  transition: all .15s ease;
  color: #0F172A;
}

.ai-point-input:focus {
  background: #FFFFFF;
  border-color: #F59E0B;
  outline: none;
}

.ai-points-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-submit-points {
  background: #F59E0B;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-submit-points:hover {
  background: #D97706;
}

.btn-submit-points:active {
  transform: scale(0.98);
}

.ai-points-note {
  font-size: 11.5px;
  color: #64748B;
}

.ai-points-container.submitted {
  background: #F8FAFC;
  opacity: 0.94;
}

.ai-points-container.submitted .ai-point-chip {
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
}

.ai-points-container.submitted .ai-point-input {
  background: #F1F5F9;
  cursor: default;
  color: #64748B;
}

.ai-points-container.submitted .ai-points-badge {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

.points-submitted-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #DCFCE7;
  color: #166534;
  font-weight: 750;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 14px;
  border: 1px solid #86EFAC;
}

/* Temas oscuros */
[data-theme="dark"] .ai-points-container {
  background: #1E293B;
  border-color: #334155;
}
[data-theme="dark"] .ai-point-card {
  background: #0F172A;
  border-color: #334155;
}
[data-theme="dark"] .ai-point-title {
  color: #F1F5F9;
}
[data-theme="dark"] .ai-point-question {
  color: #CBD5E1;
}
[data-theme="dark"] .ai-point-chip {
  background: #1E293B;
  border-color: #475569;
  color: #E2E8F0;
}
[data-theme="dark"] .ai-point-chip.selected {
  background: #1E3A8A !important;
  border-color: #3B82F6 !important;
  color: #93C5FD !important;
}
[data-theme="dark"] .ai-point-input {
  background: #1E293B;
  border-color: #475569;
  color: #F8FAFC;
}
[data-theme="dark"] .ai-points-hint,
[data-theme="dark"] .ai-points-note {
  color: #94A3B8;
}
[data-theme="dark"] #btnStartNewMission {
  background: #3B1212 !important;
  border-color: #EF4444 !important;
  color: #FCA5A5 !important;
}

/* =========================================================
   RESOURCES & MARKDOWN MODAL ENHANCEMENTS
========================================================= */
.resource-badge.tips {
  background: #FEF08A;
  color: #854D0E;
}

.resource-preview-box.markdown-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1F2937;
}

[data-theme="dark"] .resource-preview-box.markdown-body {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.resource-preview-box.markdown-body h1,
.resource-preview-box.markdown-body h2,
.resource-preview-box.markdown-body h3,
.resource-preview-box.markdown-body h4 {
  font-weight: 800;
  color: inherit;
  margin-top: 18px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.resource-preview-box.markdown-body h1 { font-size: 20px; border-bottom: 1px solid #E5E7EB; padding-bottom: 6px; }
.resource-preview-box.markdown-body h2 { font-size: 17px; }
.resource-preview-box.markdown-body h3 { font-size: 15px; }

.resource-preview-box.markdown-body p {
  margin: 8px 0;
  line-height: 1.6;
}

.resource-preview-box.markdown-body ul,
.resource-preview-box.markdown-body ol {
  padding-left: 22px;
  margin: 8px 0;
}

.resource-preview-box.markdown-body li {
  margin-bottom: 4px;
}

.resource-preview-box.markdown-body blockquote {
  border-left: 4px solid var(--yellow, #F59E0B);
  background: #FFFDF5;
  padding: 10px 14px;
  margin: 12px 0;
  border-radius: 0 8px 8px 0;
  color: #92400E;
  font-size: 13.5px;
}

[data-theme="dark"] .resource-preview-box.markdown-body blockquote {
  background: #1E293B;
  color: #FDE68A;
  border-left-color: #F59E0B;
}

.resource-preview-box.markdown-body code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
  font-size: 12.5px;
}

[data-theme="dark"] .resource-preview-box.markdown-body code {
  background: #334155;
  color: #93C5FD;
}

.resource-preview-box.markdown-body pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12.5px;
  margin: 10px 0;
}

.resource-preview-box.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.resource-preview-box.markdown-body th,
.resource-preview-box.markdown-body td {
  border: 1px solid #E5E7EB;
  padding: 8px 10px;
  text-align: left;
}

.resource-preview-box.markdown-body th {
  background: #F3F4F6;
  font-weight: 750;
}

[data-theme="dark"] .resource-preview-box.markdown-body th {
  background: #1E293B;
  border-color: #334155;
}

[data-theme="dark"] .resource-preview-box.markdown-body td {
  border-color: #334155;
}

/* =========================================================
   CATEGORY & PROFESSIONS INFO MODAL & BUTTONS
========================================================= */
.category-info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.8px solid currentColor;
  background: transparent;
  color: #4B5563;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  vertical-align: middle;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-info-icon-btn:hover {
  color: #111827;
  background: #F3F4F6;
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

[data-theme="dark"] .category-info-icon-btn {
  color: #9CA3AF;
}

[data-theme="dark"] .category-info-icon-btn:hover {
  color: #F9FAFB;
  background: #374151;
}

.btn-category-guide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.btn-category-guide:hover {
  background: #FFFBEB;
  border-color: var(--yellow-dark, #D97706);
  color: #92400E;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-category-guide {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}

[data-theme="dark"] .btn-category-guide:hover {
  background: #2D3748;
  border-color: #F59E0B;
  color: #FDE68A;
}

.category-modal-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.category-modal-card:hover {
  border-color: var(--yellow, #F59E0B);
  background: #FFFDF5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

[data-theme="dark"] .category-modal-card {
  background: #0F172A;
  border-color: #334155;
}

[data-theme="dark"] .category-modal-card:hover {
  background: #1E293B;
  border-color: #F59E0B;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* =========================================================
   EXPERT SUBROLES & SPECIALTIES STYLING
========================================================= */
.category-subroles-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.category-subrole-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 14px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #374151;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  text-decoration: none;
}

.category-subrole-badge:hover {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
  transform: translateY(-1px);
}

.category-subrole-badge.active,
.category-subrole-badge.exp-subrole-pill.active {
  background: var(--yellow);
  border-color: var(--yellow-dark, #D97706);
  color: #111;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .category-subrole-badge {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}

[data-theme="dark"] .category-subrole-badge:hover {
  background: #334155;
  border-color: #F59E0B;
  color: #FDE68A;
}

[data-theme="dark"] .category-subrole-badge.active,
[data-theme="dark"] .category-subrole-badge.exp-subrole-pill.active {
  background: var(--yellow);
  border-color: #F59E0B;
  color: #111;
}

.subrole-chips-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.subrole-chips-wrap::-webkit-scrollbar {
  display: none;
}

.subrole-chip {
  font-size: 12px !important;
  padding: 5px 12px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  color: #475569 !important;
  border-radius: 16px !important;
  font-weight: 650 !important;
}

.subrole-chip:hover {
  background: #FFFBEB !important;
  border-color: #FCD34D !important;
  color: #92400E !important;
}

.subrole-chip.active {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #78350F !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .subrole-chip {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #94A3B8 !important;
}

[data-theme="dark"] .subrole-chip:hover {
  background: #1E293B !important;
  border-color: #F59E0B !important;
  color: #FDE68A !important;
}

[data-theme="dark"] .subrole-chip.active {
  background: #1E293B !important;
  border-color: #F59E0B !important;
  color: #FDE68A !important;
}

.expert-subrole-tag {
  display: inline-block;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="dark"] .expert-subrole-tag {
  background: #1E293B;
  border-color: #4A3E1F;
  color: #FDE68A;
}


.security-dialog { border: 1px solid #ddd; border-radius: 16px; padding: 24px; max-width: 440px; width: calc(100% - 32px); }
.security-dialog::backdrop { background: rgba(0,0,0,.55); }
.beta-payment-banner { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 16px; padding:12px 20px; background:#fff3cd; color:#714b06; font-size:13px; border-bottom:1px solid #e6be65; }
.beta-payment-banner[hidden] { display:none; }
.beta-payment-banner button,.beta-terms-link { background:transparent; border:0; color:inherit; text-decoration:underline; cursor:pointer; font:inherit; }
.beta-payment-notice { padding:14px; border:1px solid #e6be65; border-radius:10px; background:#fff8e5; color:#714b06; font-size:13px; line-height:1.6; margin:12px 0; }
.beta-card-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; border:1px solid var(--border); border-radius:12px; padding:14px; margin-bottom:12px; }
.beta-card-fields legend { font-weight:700; padding:0 6px; }
.beta-card-fields label { display:flex; flex-direction:column; gap:5px; font-size:12px; min-width:0; }
.beta-card-fields label:first-of-type,.beta-card-fields label:nth-of-type(3) { grid-column:1/-1; }
.beta-card-fields input,.beta-card-fields select { width:100%; min-width:0; padding:10px; border:1px solid var(--border); border-radius:8px; background:var(--bg-light); color:var(--text); box-sizing:border-box; }
.beta-card-fields input[readonly] { opacity:.8; }
.beta-consent { display:flex; align-items:flex-start; gap:9px; font-size:13px; line-height:1.5; margin:14px 0; }
.beta-consent input[type=checkbox] { width:18px; height:18px; flex:0 0 18px; margin-top:2px; }
.beta-dialog { max-height:85vh; overflow-y:auto; }
.beta-receipt-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:14px; border-bottom:1px solid var(--border); font-size:13px; }
.beta-receipt-row > small, .beta-receipt-row > details { flex:0 0 100%; min-width:0; overflow-wrap:anywhere; }
.beta-receipt-row > details > summary, .beta-calculator > summary { cursor:pointer; font-weight:700; padding:10px 0; }
.beta-financial-dashboard { margin:18px 0; width:100%; }
.beta-money-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:12px; margin:14px 0; }
.beta-money-card { display:flex; flex-direction:column; gap:8px; padding:16px; background:#fffdf5; border:1px solid #e6be65; border-radius:12px; }
.beta-money-card span { color:#714b06; font-size:12px; line-height:1.5; }
.beta-money-card strong { font-size:21px; color:#111318; }
.beta-financial-detail { background:#fafafa; border:1px solid var(--border); border-radius:12px; padding:16px; margin:12px 0; width:100%; box-sizing:border-box; }
.beta-financial-detail h4 { margin:0 0 12px; font-size:14px; }
.beta-money-rows { margin:12px 0; }
.beta-money-rows > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:7px 0; border-bottom:1px solid var(--border); }
.beta-money-rows dt { font-size:13px; overflow-wrap:anywhere; }
.beta-money-rows dd { margin:0; font-size:13px; font-variant-numeric:tabular-nums; text-align:right; flex-shrink:0; }
.beta-money-total { font-weight:800; color:#714b06; }
.beta-money-policy { color:var(--muted); font-size:12px; line-height:1.65; overflow-wrap:anywhere; margin:10px 0; }
.beta-calculator { width:100%; padding:14px; border:1px solid var(--border); border-radius:12px; margin:12px 0; box-sizing:border-box; }
.beta-calculator-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:12px; align-items:end; }
.beta-calculator-form label { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.beta-calculator-form input { width:100%; min-width:0; box-sizing:border-box; border:1px solid var(--border); border-radius:8px; padding:10px; font:inherit; }
.beta-card-data { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); gap:12px; }
.beta-card-preview { display:flex; flex-direction:column; gap:22px; padding:22px; min-height:135px; border-radius:18px; margin:12px 0; color:#241600; background:linear-gradient(135deg,#ffd65b,#fff2ad); box-shadow:0 8px 22px #0001; }
.beta-card-preview strong { font-size:20px; overflow-wrap:anywhere; }.beta-card-preview small { letter-spacing:1px; }.beta-card-preview span { font-size:17px; font-variant-numeric:tabular-nums; }
.beta-card-ocean { background:linear-gradient(135deg,#0d5169,#278bb0);color:white; }.beta-card-midnight { background:linear-gradient(135deg,#141b2c,#384360);color:white; }
.chat-payment-actions { padding:10px 16px; border-bottom:1px solid var(--border); display:flex; flex-wrap:wrap; gap:8px; }
@media (max-width:440px) { .beta-financial-detail { padding:12px; } .beta-money-rows > div { gap:8px; } .beta-money-rows dt,.beta-money-rows dd { font-size:12px; } }
.security-dialog form { display: flex; flex-direction: column; gap: 12px; }
.security-dialog input { padding: 12px; border: 1px solid #bbb; border-radius: 8px; }
.security-dialog [role=alert] { color: #b91c1c; }
.expert-correction-dialog { max-width: 680px; max-height: 85vh; overflow-y: auto; }
.expert-correction-dialog label { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.expert-correction-dialog textarea { min-height: 90px; padding: 12px; border: 1px solid #bbb; border-radius: 8px; font: inherit; }
.expert-correction-dialog fieldset { min-width: 0; border: 1px solid #ddd; border-radius: 12px; padding: 16px; margin: 12px 0; }
.expert-correction-dialog input[type=checkbox] { align-self: flex-start; }

/* Expert profile: readable credentials and a clear next step. */
#expertProfileModal .modal-box { width: min(980px, 100%); padding: 28px; background: var(--white, #fff); }
#expertProfileModal .modal-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.expert-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 24px; color: var(--text); }
.expert-detail-main { min-width: 0; }
.expert-detail-hero { display: flex; align-items: center; gap: 18px; padding: 20px; margin-bottom: 18px; border-radius: 18px; background: var(--bg-light, #f9fafb); }
.expert-detail-avatar { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 22px; background: #fff4d0; display: grid; place-items: center; font-size: 32px; overflow: hidden; border: 2px solid #f4cf71; }
.expert-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-detail-hero h3 { font-size: 20px; line-height: 1.3; margin: 9px 0 5px; }
.expert-detail-badge { display: inline-block; padding: 5px 9px; border-radius: 8px; color: #116443; background: #e6f5ed; font-size: 11px; font-weight: 750; }
.expert-detail-badge.demo { color: #805900; background: #fff0c2; }
.expert-detail-muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.expert-detail-section { padding: 20px; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; }
.expert-detail-section h3 { font-size: 15px; margin: 0 0 14px; }
.expert-detail-copy { font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.expert-detail-highlight { padding: 14px; margin-top: 16px; border-left: 3px solid #e7b934; border-radius: 0 10px 10px 0; background: var(--bg-light); font-size: 14px; line-height: 1.7; }
.expert-detail-kicker { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1px; font-weight: 800; margin-bottom: 8px; }
.expert-detail-timeline { border-left: 2px solid var(--border); margin-left: 5px; padding-left: 18px; }
.expert-detail-record { position: relative; padding: 0 0 20px; }
.expert-detail-record:last-child { padding-bottom: 0; }
.expert-detail-record::before { content: ''; width: 8px; height: 8px; border: 3px solid var(--white, #fff); background: #d9a51a; border-radius: 50%; position: absolute; left: -25px; top: 3px; }
.expert-detail-record h4 { font-size: 14px; margin-bottom: 5px; }
.expert-detail-record .expert-detail-copy { margin-top: 8px; }
.expert-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.expert-detail-tags span { background: var(--bg-light); border: 1px solid var(--border); padding: 6px 10px; border-radius: 20px; font-size: 12px; }
.expert-detail-booking { padding: 22px; border: 1px solid #e8cb76; border-radius: 18px; background: var(--white, #fff); box-shadow: 0 8px 24px rgba(75,55,0,.06); }
.expert-detail-price { font-size: 32px; font-weight: 850; letter-spacing: -1px; line-height: 1.3; }
.expert-detail-availability { font-size: 12px; padding: 12px 0; line-height: 1.6; border-top: 1px solid var(--border); margin-top: 14px; }
.expert-detail-cta { width: 100%; margin: 18px 0 12px; justify-content: center; }
.expert-detail-mobile-cta { display: none; border: none; background: transparent; color: var(--text); text-decoration: underline; padding: 8px 0 0; font-size: 12px; font-weight: 700; cursor: pointer; }

.message-view-tabs { display: flex; gap: 6px; width: 100%; }
.message-view-tabs button { flex: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--text); padding: 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.message-view-tabs button[aria-pressed=true] { background: var(--yellow); border-color: var(--yellow); color: #25210f; }
.request-list-help { font-size: 12px; color: var(--muted); line-height: 1.7; padding: 16px; }
.request-list-item { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 16px; background: var(--white); border: 0; border-bottom: 1px solid var(--border); color: var(--text); cursor: pointer; }
.request-list-item[aria-current=true] { background: var(--yellow-light); border-left: 3px solid var(--yellow); }
.request-list-item span { font-size: 11px; color: var(--muted); }
.request-list-item .request-list-direction { font-size: 10px; letter-spacing: .7px; font-weight: 800; }
.request-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: var(--muted); }
.request-list-pages { display: flex; justify-content: space-around; gap: 8px; padding: 12px; font-size: 11px; }
.service-request-panel { padding: 22px; height: 100%; overflow-y: auto; background: var(--bg-light); }
.service-request-panel[hidden] { display: none; }
.request-back { padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; margin-bottom: 16px; }
.service-request-card { max-width: 660px; margin: auto; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); color: var(--text); box-shadow: 0 10px 30px rgba(49,41,10,.04); }
.service-request-header { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.service-request-avatar { width: 62px; height: 62px; flex: 0 0 62px; display: grid; place-items: center; font-size: 28px; background: var(--yellow-light); border-radius: 18px; }
.service-request-header h2 { font-size: 21px; margin-bottom: 4px; }
.service-request-header p { color: var(--muted); font-size: 12px; }
.service-request-status { display: inline-block; padding: 7px 11px; font-size: 11px; font-weight: 750; border-radius: 10px; background: #fff0c4; color: #765000; margin-bottom: 24px; }
.service-request-status.accepted { background: #e1f5eb; color: #156645; }
.service-request-status.rejected { background: #fceaea; color: #a33e3e; }
.service-request-card h3 { font-size: 14px; margin-bottom: 10px; }
.service-request-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 15px; }
.service-request-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.service-request-facts div { background: var(--bg-light); border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.service-request-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.service-request-facts dd { font-size: 14px; font-weight: 700; margin: 0; }
.service-request-explanation { color: var(--muted); font-size: 12px; line-height: 1.7; padding-top: 16px; border-top: 1px solid var(--border); }
.service-request-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.service-request-waiting { padding: 16px; border-radius: 12px; background: var(--yellow-light); font-size: 13px; line-height: 1.7; margin-top: 20px; }
.request-reject-form { margin-top: 16px; }
.request-reject-form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.request-reject-form textarea { padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--white); min-height: 90px; font: inherit; }
.request-reject-form button { margin-top: 12px; }

#profile > .section > .container { max-width: 1060px !important; display: flex; flex-direction: column; }
#profileReviewHost { order: 1; }
#profileReviewHost .profile-card { margin: 24px 0; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); }
#profileReviewHost h3 { margin-bottom: 10px; }
#profileReviewHost p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-bottom: 12px; }
#profileReviewHost button { margin: 8px 10px 0 0; }
#profileReviewHost:has(.needs-correction:not([hidden])) { order: -1; }
#profileReviewHost .needs-correction { border-color: #e4b85d; background: var(--yellow-light); }
.verification-feedback { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); margin: 16px 0; color: var(--text); }
.verification-feedback[hidden] { display: none; }
.verification-feedback p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
.profile-welcome { display: flex; align-items: center; gap: 24px; padding: 32px 38px; border: 1px solid #edce73; border-radius: 26px; overflow: hidden; background: linear-gradient(120deg,#fff7db,#ffeeb2); color: #33260a; margin-bottom: 22px; }
.profile-welcome-copy { flex: 1; min-width: 0; }
.profile-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; }
.profile-welcome .profile-eyebrow { color: #897031; }
.profile-welcome h1 { font-size: clamp(26px,4vw,36px); font-weight: 850; letter-spacing: -.8px; margin-bottom: 12px; }
.profile-welcome p { max-width: 550px; font-size: 14px; line-height: 1.8; color: #6d592a; }
.profile-welcome-mascot { width: 165px; height: 180px; object-fit: contain; flex: 0 0 165px; filter: drop-shadow(0 10px 12px rgba(117,74,0,.1)); }
.profile-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.profile-welcome-actions .btn-outline { background: rgba(255,255,255,.7); border-color: #d7b760; color: #443207; }
.profile-overview { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 22px; }
.profile-overview article { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--white); color: var(--text); }
.profile-overview h2 { font-size: 19px; line-height: 1.4; margin-bottom: 10px; }
.profile-overview p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.profile-completion progress { width: 100%; height: 9px; margin: 20px 0 8px; border: 0; border-radius: 6px; accent-color: #e7b926; }
.profile-completion progress::-webkit-progress-bar { background: var(--bg-light); border-radius: 6px; }
.profile-completion progress::-webkit-progress-value { background: #e7b926; border-radius: 6px; }
.profile-completion strong { font-size: 11px; color: var(--muted); }
.profile-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-checklist span { padding: 5px 9px; font-size: 11px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); }
.profile-checklist .done { color: #17664a; background: #eaf6ef; border-color: #cce8d8; }
.profile-next-step .btn { margin-top: 18px; font-size: 12px; }
.profile-settings-surface { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--white); color: var(--text); }
.profile-identity { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 22px; }
.profile-identity h2 { font-size: 22px; }
.profile-accordion { border: 1px solid var(--border); border-radius: 14px; margin: 12px 0; overflow: hidden; }
.profile-accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 18px; font-size: 14px; font-weight: 750; background: var(--bg-light); cursor: pointer; }
.profile-accordion summary::-webkit-details-marker { display: none; }
.profile-accordion[open] .profile-accordion-arrow { transform: rotate(45deg); }
.profile-accordion-content { padding: 20px; }
.profile-verification-summary { padding: 16px 20px; border-radius: 14px; background: var(--yellow-light); margin-bottom: 18px; font-size: 13px; }
.profile-verification-summary span { font-weight: 750; }
.profile-verification-summary p { margin-top: 6px; line-height: 1.7; }
.profile-help-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.profile-help-grid article { border: 1px solid var(--border); border-radius: 18px; background: var(--white); color: var(--text); padding: 22px; }
.profile-help-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow-light); margin-bottom: 14px; font-size: 20px; }
.profile-help-grid h3 { font-size: 14px; margin-bottom: 9px; }
.profile-help-grid p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.profile-help-link { padding: 0; margin-top: 14px; background: none; border: 0; color: var(--text); font-size: 12px; font-weight: 750; text-decoration: underline; cursor: pointer; }
[data-theme=dark] .profile-welcome { background: linear-gradient(120deg,#342b15,#493814); border-color: #72581a; color: #fff1bf; }
[data-theme=dark] .profile-welcome p,[data-theme=dark] .profile-welcome .profile-eyebrow { color: #decb99; }
@media(max-width:700px) {
  .service-request-panel { padding: 12px; }
  .service-request-card { padding: 20px; }
  .service-request-header h2 { font-size: 18px; }
  .service-request-actions .btn { width: 100%; justify-content: center; }
  .profile-welcome { padding: 24px; gap: 10px; align-items: flex-start; }
  .profile-welcome-mascot { width: 70px; height: 105px; flex-basis: 70px; }
  .profile-welcome-actions .btn { font-size: 12px; }
  .profile-overview,.profile-help-grid { grid-template-columns: 1fr; }
  .profile-settings-surface { padding: 16px; }
  .profile-accordion-content { padding: 14px; }
}
.expert-detail-small { font-size: 12px; color: var(--muted); line-height: 1.7; }
.expert-detail-steps { list-style: decimal; padding: 18px 0 0 20px; margin-top: 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.6; }
.expert-detail-steps li { padding-bottom: 9px; }
.expert-detail-rating { color: #986c00; font-weight: 750; margin-bottom: 10px; }
.expert-detail-review { padding: 12px 0; font-size: 13px; border-top: 1px solid var(--border); }
.expert-detail-review p { margin-top: 6px; line-height: 1.7; }
.expert-enquiry-form { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.expert-enquiry-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 650; }
.expert-enquiry-form input, .expert-enquiry-form textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; color: var(--text); background: var(--white, #fff); }
.expert-enquiry-estimate { background: var(--bg-light); border-radius: 8px; padding: 12px; margin-top: 14px; font-size: 12px; line-height: 1.7; }
.expert-enquiry-message { font-size: 12px; line-height: 1.6; margin: 12px 0; }
.expert-enquiry-message.error { color: #b91c1c; }
.expert-enquiry-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
@media (max-width: 760px) {
  #expertProfileModal .modal-box { padding: 20px; }
  .expert-detail-layout { grid-template-columns: 1fr; gap: 4px; }
  .expert-detail-hero { padding: 16px; gap: 12px; }
  .expert-detail-hero h3 { font-size: 18px; }
  .expert-detail-avatar { width: 60px; height: 60px; flex-basis: 60px; border-radius: 16px; }
  .expert-detail-section { padding: 16px; }
  .expert-detail-booking { margin-top: 10px; }
  .expert-detail-mobile-cta { display: inline-block; }
}
[hidden] { display: none !important; }

/* Profile surfaces — scoped to public expert details and personal account only. */
#profileContent, #expertModalContent {
  --profile-radius: 22px;
  --profile-soft: var(--bg-light);
  --profile-accent: var(--yellow-light);
  overflow-wrap: anywhere;
}
#profile > .section { padding-top: 36px; }
#profile > .section > .container { max-width: 1180px !important; }
#profileContent .profile-welcome {
  padding: 32px 36px; gap: 40px; border: 1px solid var(--border);
  border-top: 4px solid var(--yellow); border-radius: var(--profile-radius);
  background: var(--white); color: var(--text); box-shadow: var(--shadow);
  margin-bottom: 28px;
}
#profileContent .profile-welcome h1.profile-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px;
  font-weight: 750; color: var(--muted); margin: 0 0 20px;
}
#profileContent .profile-identity { padding: 0; margin-bottom: 16px; }
#profileContent .profile-identity > div { min-width: 0; }
#profileContent .profile-identity > div > div:last-child { min-width: 0; }
#profileContent .profile-identity h2 { font-size: clamp(23px, 3vw, 32px); letter-spacing: -.8px; line-height: 1.2; }
#profileContent .profile-welcome .profile-greeting { color: var(--muted); font-size: 13px; max-width: 530px; }
#profileContent .profile-welcome-actions { margin-top: 20px; }
#profileContent .profile-welcome-actions .btn-outline { background: var(--white); color: var(--text); border-color: var(--border); }
#profileContent .profile-stats { display: grid; gap: 0; min-width: 200px; border-left: 1px solid var(--border); padding-left: 32px; }
#profileContent .profile-stats > div { display: flex; align-items: center; gap: 16px; border: 0 !important; background: transparent !important; padding: 12px 0 !important; text-align: left !important; }
#profileContent .profile-stats strong { min-width: 55px; font-size: 25px !important; font-variant-numeric: tabular-nums; }
#profileContent .profile-stats span { font-size: 12px !important; }
.profile-workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 28px; }
#profileContent .profile-overview { display: flex; flex-direction: column; gap: 20px; margin: 0; min-width: 0; }
.profile-section-nav { display: flex; flex-direction: column; padding: 4px 0 20px; border-bottom: 1px solid var(--border); gap: 4px; }
.profile-section-nav .profile-eyebrow { margin: 0 14px 12px; }
.profile-section-nav button { display: flex; align-items: center; text-align: left; border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; }
.profile-section-nav button::after { content: '↗'; margin-left: auto; padding-left: 10px; }
.profile-section-nav button:hover { color: var(--text); background: var(--bg-light); }
.profile-section-nav button[aria-expanded=true] { color: var(--text); background: var(--yellow-light); border-color: var(--yellow); }
#profileContent .profile-overview article { padding: 22px; border-radius: 16px; box-shadow: none; }
#profileContent .profile-overview h2 { font-size: 18px; letter-spacing: -.4px; }
#profileContent .profile-overview p { font-size: 12px; }
#profileContent .profile-next-step { background: var(--bg-light); border-color: transparent; }
#profileContent .profile-settings-surface { padding: 0; background: transparent; border: 0; border-radius: 0; min-width: 0; }
#profileContent .profile-accordion { margin: 0 0 16px; background: var(--white); border-radius: 18px; scroll-margin-top: 100px; }
#profileContent .profile-accordion > summary { background: var(--white); gap: 14px; padding: 22px 24px; }
#profileContent .profile-accordion > summary:hover { background: var(--bg-light); }
.profile-section-number { width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg-light); color: var(--muted); border: 1px solid var(--border); border-radius: 10px; font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.profile-section-label { display: flex; flex-direction: column; flex: 1; gap: 3px; min-width: 0; }
.profile-section-label strong { font-size: 15px; }
.profile-section-label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.profile-accordion-arrow { color: var(--muted); transition: transform .15s ease; }
#profileContent .profile-accordion[open] > summary { border-bottom: 1px solid var(--border); }
#profileContent .profile-accordion[open] .profile-section-number { color: var(--text); background: var(--yellow-light); border-color: var(--yellow); }
#profileContent .profile-accordion-content { padding: 24px; }
#profileContent .form-group { margin-bottom: 22px !important; min-width: 0; }
#profileContent .form-group > label { font-size: 13px !important; font-weight: 650 !important; margin-bottom: 8px !important; }
#profileContent :is(input:not([type=checkbox]):not([type=file]), textarea, select) {
  min-width: 0; max-width: 100%; min-height: 44px; padding: 11px 13px !important;
  border: 1px solid var(--border) !important; border-radius: 10px !important;
  background: var(--white) !important; color: var(--text) !important; font-size: 14px !important;
}
#profileContent textarea { line-height: 1.7; }
#profileContent .form-row { gap: 18px; }
#profileContent .btn, #expertProfileModal .btn { min-height: 44px; }
#profileContent .profile-alert-preferences { padding: 18px !important; }
#profileContent .profile-alert-preferences label { padding: 10px 0; line-height: 1.65; align-items: flex-start !important; }
#profileContent .profile-alert-preferences input { flex: 0 0 18px; width: 18px !important; height: 18px !important; margin-top: 2px; }
#profileContent .linked-email-badge { max-width: 100%; white-space: normal; }
#profileContent .profile-save-actions { align-items: center; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border); }
.profile-save-status { flex: 1; font-size: 12px; line-height: 1.6; color: var(--muted); }
.profile-save-status.error { color: #b42318; }
#profileContent .profile-account-options { padding: 22px !important; box-shadow: none !important; background: var(--bg-light) !important; }
#profileContent .profile-account-options > div { min-width: 0; align-items: flex-start !important; }
#profileContent .profile-account-options > div > div:first-child { flex-shrink: 0; }
#profileContent .profile-session-actions { flex-wrap: wrap; padding: 6px 0; }
#profileContent .profile-help-grid { gap: 28px; padding-top: 26px; margin-top: 30px; border-top: 1px solid var(--border); }
#profileContent .profile-help-grid article { border: 0; background: transparent; padding: 0; }
#profileContent .profile-help-icon { width: 32px; height: 32px; font-size: 16px; margin-bottom: 12px; }
#profileContent .profile-help-link { text-decoration: none; min-height: 32px; }
#profileContent .profile-help-link:hover { text-decoration: underline; }
#expertProfileModal .modal-box { width: min(1060px, 100%); padding: 0; border-radius: 24px; overflow-x: hidden; }
#expertProfileModal .modal-head { margin: 0; padding: 18px 28px; border-bottom: 1px solid var(--border); }
#expertProfileModal .modal-head h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); }
#expertProfileModal .modal-close { flex-shrink: 0; width: 40px; height: 40px; }
#expertModalContent { padding: 28px; }
#expertModalContent[aria-busy=true] { padding: 64px 28px; color: var(--muted); }
#expertModalContent .expert-detail-hero { margin: 0 0 28px; padding: 28px; gap: 24px; border: 1px solid var(--border); border-radius: var(--profile-radius); background: linear-gradient(115deg,var(--yellow-light),var(--white) 75%); }
#expertModalContent .expert-detail-avatar { width: 108px; height: 108px; flex-basis: 108px; border-radius: 28px; border: 4px solid var(--white); outline: 1px solid var(--border); box-shadow: 0 6px 20px #00000008; font-size: 44px; }
.expert-detail-intro { min-width: 0; }
.expert-detail-name { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.8px; margin: 10px 0 6px; }
.expert-detail-specialty { font-size: 16px; font-weight: 650; margin-bottom: 5px; }
#expertModalContent .expert-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
#expertModalContent .expert-detail-section { padding: 4px 0 24px; margin-bottom: 24px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
#expertModalContent .expert-detail-section:last-child { border-bottom: 0; margin-bottom: 0; }
#expertModalContent .expert-detail-section h3 { font-size: 16px; margin-bottom: 16px; }
#expertModalContent .expert-detail-highlight { border-left-color: var(--yellow); padding: 16px 18px; }
#expertModalContent .expert-detail-sidebar { min-width: 0; }
#expertModalContent .expert-detail-booking { padding: 24px; border-color: var(--border); border-top: 3px solid var(--yellow); border-radius: 18px; box-shadow: var(--shadow); background: var(--bg-light); }
#expertModalContent .expert-detail-price { font-size: 36px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
#expertModalContent .expert-detail-kicker { font-size: 10px; letter-spacing: 1.2px; }
#expertModalContent .expert-detail-cta { margin-top: 20px; }
#expertModalContent .expert-detail-steps { padding-left: 22px; font-size: 12px; }
#expertModalContent .expert-detail-steps li { padding-left: 4px; padding-bottom: 12px; }
#expertModalContent .expert-detail-steps li::marker { color: var(--text); font-weight: 750; }
#expertModalContent .expert-detail-booking { scroll-margin-top: 20px; }
#profileContent :is(button, input, textarea, select, summary):focus-visible,
#expertProfileModal :is(button, input, textarea):focus-visible {
  outline: 3px solid var(--yellow-dark); outline-offset: 3px; box-shadow: 0 0 0 5px var(--white);
}
#profileContent button:disabled, #expertProfileModal button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
#profileContent .btn:active, #expertProfileModal .btn:active { transform: translateY(1px); }
[data-theme=dark] #profileContent .profile-welcome { background: var(--white); color: var(--text); }
[data-theme=dark] .profile-save-status.error { color: #ffaba3; }
[data-theme=dark] #profileContent .day-chip:not(.active) { background: var(--bg-light); color: var(--text); border-color: var(--border); }
@media (max-width: 900px) {
  .profile-workspace { grid-template-columns: 220px minmax(0,1fr); gap: 20px; }
  #profileContent .profile-welcome { padding: 28px; gap: 24px; }
  #profileContent .profile-stats { min-width: 165px; padding-left: 24px; }
  #profileContent .profile-accordion-content { padding: 20px; }
  #profileContent .profile-email-row { grid-template-columns: minmax(0,1fr) !important; }
  #profileContent .form-row { grid-template-columns: minmax(0,1fr); flex-direction: column; }
  #expertModalContent .expert-detail-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
}
@media (max-width: 760px) {
  #profile > .section { padding-top: 22px; }
  .profile-workspace { display: flex; flex-direction: column; gap: 22px; }
  #profileContent .profile-overview, #profileContent .profile-settings-surface { width: 100%; }
  #profileContent .profile-overview { display: contents; }
  .profile-section-nav { order: -2; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 0; padding: 0; gap: 8px; }
  .profile-section-nav .profile-eyebrow { grid-column: 1 / -1; margin-left: 0; }
  .profile-section-nav button { border-color: var(--border); padding: 12px; font-size: 12px; }
  #profileContent .profile-settings-surface { order: -1; }
  #profileContent .profile-overview article { width: 100%; }
  #profileContent .profile-welcome { flex-direction: column; align-items: stretch; padding: 24px; gap: 24px; }
  #profileContent .profile-stats { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--border); min-width: 0; }
  #profileContent .profile-stats > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 0 6px !important; }
  #profileContent .profile-stats strong { min-width: 0; font-size: 22px !important; }
  #profileContent .profile-stats span { font-size: 11px !important; }
  #profileContent .profile-identity > div { gap: 14px !important; }
  #profileContent .profile-accordion > summary { padding: 18px; }
  #profileContent .profile-help-grid { grid-template-columns: 1fr; gap: 24px; }
  #expertProfileModal .modal-box { padding: 0; border-radius: 20px; }
  #expertProfileModal .modal-head { padding: 14px 20px; }
  #expertModalContent { padding: 20px; }
  #expertModalContent .expert-detail-hero { padding: 20px; gap: 18px; align-items: flex-start; }
  #expertModalContent .expert-detail-avatar { width: 72px; height: 72px; flex-basis: 72px; border-radius: 20px; font-size: 30px; }
  #expertModalContent .expert-detail-layout { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #expertModalContent .expert-detail-booking { margin-top: 0; }
  #expertModalContent .expert-detail-mobile-cta { display: inline-block; text-align: left; min-height: 44px; font-size: 13px; }
}
@media (max-width: 440px) {
  #profileContent .profile-welcome { padding: 20px; }
  #profileContent .profile-welcome-actions { flex-direction: column; }
  #profileContent .profile-welcome-actions .btn { width: 100%; justify-content: center; }
  #profileContent .profile-accordion-content { padding: 16px; }
  #profileContent .profile-accordion-content [style*="min-width:200px"] { min-width: 0 !important; flex-basis: 100% !important; }
  #profileContent .profile-accordion-content [style*="minmax("] { grid-template-columns: minmax(0,1fr) !important; }
  #profileContent .profile-save-actions .btn { width: 100%; justify-content: center; }
  #profileContent .profile-session-actions .btn { flex: 1; font-size: 12px; }
  #expertModalContent { padding: 16px; }
  #expertModalContent .expert-detail-hero { flex-direction: column; padding: 20px; }
  #expertModalContent .expert-detail-name { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  #profileContent *, #expertProfileModal * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
