@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');
:root{
  --bg-start:#0f0f0f;--bg-end:#1a1a1a;--accent:#E7B8B3;--accent-2:#C79DD7;--glass:rgba(255,255,255,.08);--glass-border:rgba(255,255,255,.15);--text:#ffffff;--muted:#cccccc;
}
html,body{background:radial-gradient(60% 60% at 50% 0%, #0A0A0A 0%, #141414 100%);color:var(--text);font-family:'Poppins','Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow-x:hidden;}
/* Hide scrollbars for app-like experience */
html::-webkit-scrollbar,body::-webkit-scrollbar{width:0px;background:transparent;}
html{scrollbar-width:none;-ms-overflow-style:none;}
body{scrollbar-width:none;-ms-overflow-style:none;}
*::-webkit-scrollbar{width:0px;background:transparent;}
*{scrollbar-width:none;-ms-overflow-style:none;} 
.glass-card{background:var(--glass);border:1px solid var(--glass-border);backdrop-filter:blur(15px);border-radius:24px;box-shadow:0 8px 32px rgba(0,0,0,.4),0 4px 16px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.1);animation:fadeUp .4s ease both} 
.glow-border{position:relative} .glow-border:before{content:"";position:absolute;inset:0;border-radius:24px;padding:1px;background:linear-gradient(135deg,var(--accent-2),var(--accent));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none}
.btn-primary{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:#222;border:none;border-radius:16px;padding:12px 20px;font-weight:600;box-shadow:0 4px 15px rgba(231,184,179,.3),inset 0 1px 0 rgba(255,255,255,.3);transition:transform .2s,box-shadow .2s}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(231,184,179,.4),inset 0 1px 0 rgba(255,255,255,.4)}
.title-gradient{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:#222;border-radius:20px}
.progress-bar-container{background:rgba(255,255,255,.1);overflow:hidden;border-radius:10px;height:24px;width:100%;position:relative}
.progress-bar{background:linear-gradient(90deg,var(--accent-2),var(--accent));height:100%;transition:width .6s ease;box-shadow:0 0 12px rgba(199,157,215,.45);min-width:2px}
.ring{--p:0;position:relative;width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--accent) calc(var(--p)*1%), rgba(255,255,255,.25) 0);margin:0 auto 8px;display:flex;align-items:center;justify-content:center;}
.ring:after{content:"";position:absolute;inset:8px;border-radius:50%;background:rgba(255,255,255,.08);z-index:1;}
.ring-emoji{position:relative;z-index:2;font-size:20px;}
/* Existing selectors enhancement */
.page-title,.welcome-banner,.progress-section,.plan-section,.week-card,.chat-window,.input-area,.resources-grid .card,.profile-card{border-radius:24px}
.page-title,.welcome-banner{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:#222}
.message-bubble.user{background:linear-gradient(135deg,var(--accent-2),var(--accent));color:#222}
.message-bubble.coach{background:rgba(255,255,255,.15);}
.bottom-nav{background:rgba(34,34,34,.85);backdrop-filter:blur(12px);border-top:1px solid var(--glass-border);box-shadow:0 -6px 18px rgba(0,0,0,.4)}
.workout-summary-card{margin:12px 0;padding:16px}
.workout-summary-grid{display:flex;gap:12px;justify-content:space-between}
.summary-chip{flex:1;background:rgba(255,255,255,.08);padding:12px;border-radius:14px;border-left:3px solid var(--accent)}
.calendar-wrap{background: rgba(25,25,25,0.6); border: 1px solid rgba(255,192,203,0.2); border-radius: 24px; padding: 16px; margin: 0 20px 20px; box-shadow: 0 0 25px rgba(231,184,179,0.25), 0 0 50px rgba(199,157,215,0.15); backdrop-filter: blur(15px); position: relative;}
.calendar-header{margin-bottom: 12px; text-align: center;}
.calendar-title{color:#E7B8B3; font-size:18px; font-weight:600; margin:0 0 8px; text-shadow: 0 0 15px rgba(199,157,215,0.5); cursor: pointer; transition: opacity 0.2s;}
.calendar-title:hover{opacity: 0.8;}
.calendar-gradient-line{height:2px; background: linear-gradient(90deg, #ff9ebb, #b07bff); border-radius:1px; box-shadow: 0 0 10px rgba(255,158,187,0.4);}
.calendar-overlay{position:absolute; inset:0; background:rgba(10,10,10,0.85); backdrop-filter:blur(8px); border-radius:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; z-index:10;}
.lock-icon{font-size:48px; opacity:0.8;}
.unlock-btn{background: linear-gradient(135deg, #ff9ebb, #b07bff); color:#111; font-weight:700; text-decoration:none; padding:12px 20px; border-radius:16px; display:inline-block; box-shadow: 0 8px 25px rgba(231,184,179,0.4); transition:transform .2s,box-shadow .2s;}
.unlock-btn:hover{transform:translateY(-2px); box-shadow: 0 10px 30px rgba(231,184,179,0.5);} 
.calendar-strip{display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; -webkit-overflow-scrolling:touch;} 
.day-pill{min-width:64px; padding:10px 12px; border-radius:14px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:#ddd; text-align:center; flex:0 0 auto; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;} 
.day-pill:hover{ transform: translateY(-2px); } 
.day-pill.active{ color:#fff; border: 2px solid transparent; background: linear-gradient(#1f1f1f, #1f1f1f) padding-box, linear-gradient(135deg, #ff9ebb, #b07bff) border-box; box-shadow: 0 6px 20px rgba(231,184,179,.35), 0 0 30px rgba(176,123,255,.25);} 
.slot-grid{ margin-top:8px; display:flex; flex-wrap:wrap; gap:8px;} 
.slot-btn{ padding:10px 12px; border-radius:12px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); color:#eee; font-size:12px; transition: transform .15s ease, box-shadow .2s ease;} 
.slot-btn:hover{ transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.35) } 
.empty-msg{ color:#bbb; font-size:12px; padding:8px 2px }
/* Calendar pills (if present in DOM) */
.calendar-strip .day,
.week-strip .day,
.calendar .day{
  background:linear-gradient(135deg,rgba(199,157,215,.25),rgba(231,184,179,.25));
  border:1px solid var(--glass-border);border-radius:16px;padding:8px 10px;color:var(--text);
  box-shadow:0 4px 14px rgba(231,184,179,.2);transition:transform .15s, box-shadow .15s
}
.calendar-strip .day.active,
.week-strip .day.active,
.calendar .day.active{outline:2px solid var(--accent);box-shadow:0 0 18px rgba(231,184,179,.45)}
.calendar-strip .day:hover,
.week-strip .day:hover,
.calendar .day:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(231,184,179,.35)}

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

.summary-value{font-size:20px; font-weight:700; color:#fff; margin-top:4px;}
.progress-section,.plan-section{border-radius:24px; box-shadow: 0 0 20px rgba(255,180,220,0.2), inset 0 1px 0 rgba(255,255,255,0.1);}
.day-title-glow{font-size:24px; font-weight:700; color:#E7B8B3; text-shadow: 0 0 15px rgba(199,157,215,0.5); margin-bottom:16px; text-align: center;}
.plan-block{background:rgba(255,255,255,0.05); padding:12px; border-radius:12px; margin-bottom:12px; border-left:3px solid var(--accent);}
.full-day-workout{margin-top:20px; padding:16px;}
.full-day-workout h3{color:#E7B8B3; font-size:18px; margin-bottom:12px; text-shadow: 0 0 10px rgba(199,157,215,0.3); text-align: center;}
#full-workout-content ul{list-style:none; padding:0; margin:0;}
#full-workout-content ul li{background:rgba(255,255,255,0.05); padding:12px; border-radius:12px; margin-bottom:10px; border-left:3px solid var(--accent); color:#ddd; line-height:1.6;}
#full-workout-content ul li:last-child{margin-bottom:0;}
#full-workout-content ul li strong{color:#E7B8B3;}
.no-plan-notice{padding:20px; text-align:center; color:#999; font-style:italic;}

/* === Maddie Fit Home Redesign Add-on === */

.page-content {
  padding: 80px 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  backdrop-filter: blur(12px);
  padding: 10px 0;
}
.top-tabs nav {
  display: flex;
  gap: 24px;
}
.top-tabs .tab {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border .2s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.top-tabs .tab:focus,
.top-tabs .tab:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.top-tabs .tab.active {
  color: var(--accent);
  border-color: var(--accent);
}
.top-tabs .tab:hover { color: var(--accent-2); }

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  text-align: center;
}

.progress-text {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: var(--muted);
}
.progress-section {
  text-align: center;
}

.today-workout h2 {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 6px;
  text-align: center;
}
.today-workout h4 {
  color: var(--muted);
  margin-bottom: 14px;
}
.full-btn {
  width: 100%;
  margin-top: 14px;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.stat-card {
  flex: 1;
  align-items: center;
  text-align: center;
  padding: 14px 0;
}
.stat-card h4 {
  color: var(--accent);
  margin: 6px 0;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all .2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}
.bottom-nav .nav-item:focus,
.bottom-nav .nav-item:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: var(--accent);
}
.bottom-nav .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
}

/* Utility classes */
.hidden { display: none !important; }

/* Fade / slide animation */
@keyframes fadeUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}
.fade-up { animation: fadeUp .6s ease both; }
