/* ============================================================
   CLASSIC FITNESS — exercises.css
   Matches your Inter / dark theme design system exactly
   ============================================================ */

/* ── NAV ACCENT ─────────────────────────── */
.nav-link-exercises        { color: #e65c00 !important; font-weight: 700; }
.nav-link-exercises.active-page {
  background: linear-gradient(135deg,#e65c00,#f9d423);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* ── HERO ────────────────────────────────── */
.ex-hero {
  position:relative; padding:60px 0 40px; overflow:hidden;
  background:linear-gradient(135deg,#0a0a0a 0%,#1a1008 50%,#0f0a00 100%);
  border-bottom:1px solid rgba(230,92,0,.15);
}
.ex-hero-bg {
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%,rgba(230,92,0,.12) 0%,transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%,rgba(249,212,35,.06) 0%,transparent 70%);
}
.ex-hero-content { position:relative; z-index:1; text-align:center; padding:0 16px; }
.ex-hero-badge {
  display:inline-block; padding:6px 16px; border-radius:999px;
  background:rgba(230,92,0,.15); border:1px solid rgba(230,92,0,.35);
  color:#f9a826; font-size:13px; font-weight:600; margin-bottom:20px;
}
.ex-hero-content h1 {
  font-size:clamp(32px,6vw,56px); font-weight:900; color:#fff;
  margin:0 0 16px; line-height:1.1;
}
.ex-hero-content p {
  font-size:16px; color:rgba(255,255,255,.72);
  max-width:620px; margin:0 auto 32px; line-height:1.7;
}
.ex-hero-stats {
  display:inline-flex; align-items:center; flex-wrap:wrap;
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
  border-radius:16px; padding:20px 32px;
}
.ex-hero-stat         { text-align:center; padding:0 24px; }
.ex-hero-stat-num     { display:block; font-size:28px; font-weight:800; color:#e65c00; }
.ex-hero-stat-lbl     { display:block; font-size:12px; color:rgba(255,255,255,.5); margin-top:4px; text-transform:uppercase; letter-spacing:.5px; }
.ex-hero-stat-divider { width:1px; height:40px; background:rgba(255,255,255,.1); }

/* ── MAIN ────────────────────────────────── */
.ex-section    { background:#0d0d0d; min-height:60vh; }
.ex-app-wrap   { max-width:1280px; margin:0 auto; padding:0 16px 60px; }

/* ── STICKY FILTER BAR ───────────────────── */
.ex-filterbar {
  position:sticky; top:56px; z-index:95;
  background:rgba(13,13,13,.98); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.07); padding:14px 0;
}
/* Ensure select dropdown opens on top of everything below */
.ex-filter-group { position: relative; z-index: 96; }
.ex-filterbar-inner {
  display:flex; flex-direction:column; gap:10px;
  max-width:1280px; margin:0 auto; padding:0 16px;
}
.ex-search-wrap { position:relative; width:100%; }
.ex-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); font-size:16px; pointer-events:none; }
.ex-search-input {
  width:100%; padding:12px 40px 12px 42px; box-sizing:border-box;
  border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06); color:#fff;
  font-size:15px; font-family:'Inter',sans-serif; outline:none;
  transition:border-color .2s;
}
.ex-search-input:focus     { border-color:rgba(230,92,0,.5); }
.ex-search-input::placeholder { color:rgba(255,255,255,.4); }
.ex-search-clear {
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:rgba(255,255,255,.5); cursor:pointer; padding:4px 6px; font-size:16px;
}
.ex-filter-row {
  display:flex; align-items:center; justify-content:flex-start;
  gap:8px; flex-wrap:nowrap; /* keep on one line on desktop */
}
.ex-count-badge {
  padding:6px 14px; border-radius:999px;
  background:rgba(230,92,0,.12); border:1px solid rgba(230,92,0,.25);
  color:#f9a826; font-size:13px; font-weight:600; white-space:nowrap;
  flex-shrink:0;
}
.ex-filter-group { display:flex; gap:8px; flex-wrap:nowrap; flex-shrink:0; }
.ex-select {
  padding:8px 32px 8px 12px; border-radius:10px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:#fff;
  font-size:13px; font-family:'Inter',sans-serif; outline:none; cursor:pointer;
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
}
.ex-select:focus { border-color:rgba(230,92,0,.4); }
.ex-select option { background:#1a1a1a; color:#fff; }

/* ── BODY PART TABS ──────────────────────── */
.ex-tabs-wrap {
  padding:16px 0 6px;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:none; -ms-overflow-style:none;
}
.ex-tabs-wrap::-webkit-scrollbar { display:none; }
.ex-tabs {
  display:flex; gap:8px;
  padding-bottom:6px; padding-top:4px;
  min-width:max-content;
}
.ex-tab {
  padding:9px 18px; border-radius:999px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.7); font-size:13px; font-weight:600;
  font-family:'Inter',sans-serif; cursor:pointer; white-space:nowrap;
  transition:all .2s; outline:none;
}
.ex-tab:hover { border-color:rgba(230,92,0,.4); color:#fff; background:rgba(230,92,0,.08); }
.ex-tab.active {
  background:linear-gradient(135deg,#e65c00,#f9a826);
  border-color:transparent; color:#fff;
  box-shadow:0 4px 14px rgba(230,92,0,.35);
}

/* ── GRID ────────────────────────────────── */
.ex-grid-wrap { padding-top:24px; }
.ex-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:18px; }

/* ── CARD ────────────────────────────────── */
.ex-card {
  border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.04);
  cursor:pointer; transition:transform .18s,border-color .18s,box-shadow .18s;
  animation:cardIn .35s ease both;
}
.ex-card:hover { transform:translateY(-5px); border-color:rgba(230,92,0,.35); box-shadow:0 8px 32px rgba(230,92,0,.12); }
@keyframes cardIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.ex-card-thumb {
  position:relative; width:100%; aspect-ratio:4/3;
  background:#111; overflow:hidden; display:flex; align-items:center; justify-content:center;
}
.ex-card-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.ex-card:hover .ex-card-thumb img { transform:scale(1.04); }
.ex-card-no-gif {
  width:100%; height:100%; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  background:linear-gradient(135deg,#141414,#1e1408);
  color:rgba(255,255,255,.25); font-size:12px; gap:8px;
}
.ex-card-no-gif-icon { font-size:36px; opacity:.4; }

.ex-card-diff-badge {
  position:absolute; top:10px; right:10px; padding:3px 10px;
  border-radius:999px; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
}
.ex-card-diff-badge.beginner     { background:rgba(34,197,94,.2);  color:#4ade80; border:1px solid rgba(34,197,94,.3); }
.ex-card-diff-badge.intermediate { background:rgba(250,204,21,.2); color:#fde047; border:1px solid rgba(250,204,21,.3); }
.ex-card-diff-badge.advanced     { background:rgba(239,68,68,.2);  color:#f87171; border:1px solid rgba(239,68,68,.3); }

.ex-card-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0); transition:background .2s;
  display:flex; align-items:center; justify-content:center;
}
.ex-card:hover .ex-card-overlay { background:rgba(0,0,0,.35); }
.ex-card-play {
  width:44px; height:44px; border-radius:50%;
  background:rgba(230,92,0,.9); color:#fff; font-size:18px;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:scale(.7); transition:all .2s;
}
.ex-card:hover .ex-card-play { opacity:1; transform:scale(1); }

.ex-card-meta { padding:14px; }
.ex-card-name {
  font-size:14px; font-weight:700; color:#fff; margin:0 0 6px;
  text-transform:capitalize; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.ex-card-target { font-size:12px; color:rgba(255,255,255,.5); margin:0 0 10px; text-transform:capitalize; }
.ex-card-chips  { display:flex; gap:6px; flex-wrap:wrap; }
.ex-card-chip {
  padding:3px 9px; border-radius:999px; font-size:11px; font-weight:600;
  background:rgba(230,92,0,.12); border:1px solid rgba(230,92,0,.2); color:#f9a826;
}

/* ── LOADING / EMPTY ─────────────────────── */
.ex-loading { text-align:center; padding:60px 20px; color:rgba(255,255,255,.5); }
.ex-spinner {
  width:40px; height:40px; margin:0 auto 16px;
  border:3px solid rgba(255,255,255,.1); border-top-color:#e65c00;
  border-radius:50%; animation:spin .8s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }
.ex-empty { text-align:center; padding:60px 20px; color:rgba(255,255,255,.5); }
.ex-empty-icon { font-size:48px; margin-bottom:16px; }
.ex-empty h3   { color:#fff; margin:0 0 8px; }
.ex-empty p    { margin:0 0 20px; }
.ex-clear-btn {
  padding:10px 24px; border-radius:10px; font-family:'Inter',sans-serif;
  background:rgba(230,92,0,.15); border:1px solid rgba(230,92,0,.3);
  color:#f9a826; font-weight:600; cursor:pointer;
}
.ex-clear-btn:hover { background:rgba(230,92,0,.25); }

/* ── LOAD MORE ───────────────────────────── */
.ex-loadmore-wrap { text-align:center; padding:32px 0; }
.ex-loadmore-btn {
  padding:14px 40px; border-radius:12px; font-family:'Inter',sans-serif;
  background:linear-gradient(135deg,#e65c00,#f9a826);
  border:none; color:#fff; font-size:15px; font-weight:700;
  cursor:pointer; box-shadow:0 4px 20px rgba(230,92,0,.3);
  transition:opacity .2s,transform .2s;
}
.ex-loadmore-btn:hover { opacity:.9; transform:translateY(-2px); }

/* ── MODAL ───────────────────────────────── */
.ex-modal-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.82); backdrop-filter:blur(6px);
  z-index:9999; padding:16px; overflow-y:auto;
}
.ex-modal-overlay[aria-hidden="false"] { display:flex; align-items:flex-start; justify-content:center; }
.ex-modal-card {
  position:relative; width:100%; max-width:920px; margin:16px auto;
  background:#111; border:1px solid rgba(255,255,255,.1);
  border-radius:20px; overflow:hidden; animation:modalIn .25s ease;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.ex-modal-close {
  position:fixed; top:16px; right:16px; z-index:99999;
  width:40px; height:40px; border-radius:50%;
  background:rgba(0,0,0,.75); border:1.5px solid rgba(255,255,255,.25);
  color:#fff; font-size:18px;
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .2s; backdrop-filter:blur(4px);
  box-shadow:0 2px 12px rgba(0,0,0,.5);
}
.ex-modal-close:hover { background:rgba(255,255,255,.2); }

/* Modal 2-col layout */
.ex-modal-layout { display:grid; grid-template-columns:1fr 1fr; }
@media(max-width:700px){ .ex-modal-layout{grid-template-columns:1fr} }

.ex-modal-left { background:#0a0a0a; border-right:1px solid rgba(255,255,255,.07); }
.ex-modal-gif-wrap {
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  background:#0d0d0d; overflow:hidden;
}
.ex-modal-gif-wrap img { width:100%; height:100%; object-fit:contain; }
.ex-modal-gif-placeholder {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:100%; height:100%; color:rgba(255,255,255,.25); gap:12px;
}
.ex-modal-gif-placeholder span { font-size:56px; }

.ex-modal-muscles         { padding:20px; border-top:1px solid rgba(255,255,255,.06); }
.ex-modal-muscles-title   { font-size:11px; font-weight:700; letter-spacing:1px; color:rgba(255,255,255,.4); text-transform:uppercase; margin-bottom:12px; }
.ex-modal-muscle-chips    { display:flex; gap:6px; flex-wrap:wrap; }
.ex-modal-chip { padding:4px 12px; border-radius:999px; font-size:12px; font-weight:600; text-transform:capitalize; }
.ex-modal-chip.primary   { background:rgba(230,92,0,.2); color:#f9a826; border:1px solid rgba(230,92,0,.3); }
.ex-modal-chip.secondary { background:rgba(255,255,255,.06); color:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.1); }

.ex-modal-right { padding:28px 24px; overflow-y:auto; max-height:none; }
.ex-modal-diff { display:inline-block; padding:4px 12px; border-radius:999px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-bottom:12px; }
.ex-modal-diff.beginner     { background:rgba(34,197,94,.15);  color:#4ade80; }
.ex-modal-diff.intermediate { background:rgba(250,204,21,.15); color:#fde047; }
.ex-modal-diff.advanced     { background:rgba(239,68,68,.15);  color:#f87171; }

.ex-modal-name   { font-size:22px; font-weight:800; color:#fff; margin:0 0 8px; text-transform:capitalize; line-height:1.2; padding-right:40px; }
.ex-modal-target { font-size:13px; color:#e65c00; font-weight:600; text-transform:capitalize; margin:0 0 16px; }
.ex-modal-desc   { font-size:14px; color:rgba(255,255,255,.65); line-height:1.7; margin:0 0 20px; }

.ex-modal-section-title { font-size:12px; font-weight:700; letter-spacing:1px; color:rgba(255,255,255,.4); text-transform:uppercase; margin:0 0 12px; }
.ex-modal-steps          { list-style:none; padding:0; margin:0 0 20px; display:flex; flex-direction:column; gap:10px; }
.ex-modal-steps li       { display:flex; gap:12px; font-size:14px; color:rgba(255,255,255,.78); line-height:1.6; }
.ex-modal-step-num {
  flex-shrink:0; width:24px; height:24px; border-radius:50%;
  background:linear-gradient(135deg,#e65c00,#f9a826); color:#fff;
  font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:1px;
}
.ex-modal-secondary { font-size:13px; color:rgba(255,255,255,.45); margin-bottom:16px; display:flex; flex-wrap:wrap; align-items:center; gap:6px; }

.ex-modal-cta { margin-top:20px; padding:16px; border-radius:12px; background:rgba(230,92,0,.08); border:1px solid rgba(230,92,0,.2); text-align:center; }
.ex-modal-cta p { font-size:13px; color:rgba(255,255,255,.6); margin:0 0 12px; }
.ex-modal-cta a {
  display:inline-block; padding:10px 24px; border-radius:10px;
  background:linear-gradient(135deg,#e65c00,#f9a826);
  color:#fff; font-size:13px; font-weight:700; text-decoration:none; transition:opacity .2s;
}
.ex-modal-cta a:hover { opacity:.85; }

/* ── CTA SECTION ─────────────────────────── */
.ex-cta-section { background:linear-gradient(135deg,#0f0700,#1a0f00); padding:60px 0; border-top:1px solid rgba(230,92,0,.12); }
.ex-cta-card {
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08);
  border-radius:20px; padding:36px 40px;
}
.ex-cta-left h2 { color:#fff; font-size:26px; font-weight:800; margin:0 0 8px; }
.ex-cta-left p  { color:rgba(255,255,255,.6); margin:0; font-size:15px; }
.ex-cta-right   { display:flex; gap:12px; flex-wrap:wrap; }

/* ── RESPONSIVE ──────────────────────────── */
@media(max-width:768px){
  .ex-hero { padding:40px 0 28px; }
  .ex-hero-content h1 { font-size:28px; }
  .ex-hero-content p  { font-size:14px; margin-bottom:20px; }

  /* Hero stats: 2x2 grid on tablets */
  .ex-hero-stats {
    display:grid; grid-template-columns:1fr 1fr;
    padding:16px; gap:0; width:calc(100% - 32px);
  }
  .ex-hero-stat-divider { display:none; }
  .ex-hero-stat { padding:10px 12px; }
  .ex-hero-stat-num { font-size:22px; }

  .ex-grid     { grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:10px; }
  .ex-filterbar { top:56px; }
  .ex-cta-card  { flex-direction:column; text-align:center; padding:24px 16px; }
  .ex-cta-right { justify-content:center; }
  .ex-modal-right { padding:16px; max-height:none; }
  .ex-modal-name  { font-size:18px; }

  /* Touch targets */
  .ex-tab            { min-height:40px; padding:9px 14px; }
  .ex-select         { min-height:42px; }
  .ex-search-input   { min-height:48px; }
  .ex-card-save-btn  { min-height:36px; }

  /* Day plan & modal full-width */
  .day-plan-panel  { max-width:100% !important; width:100% !important; }
  .ex-modal-card   { margin:8px auto; border-radius:16px; }
  .ex-modal-overlay { padding:8px; }
}

/* ── MOBILE (≤480px) ────────────────── */
@media(max-width:480px){
  /* Hero */
  .ex-hero            { padding:28px 0 20px; }
  .ex-hero-content p  { font-size:13px; margin-bottom:16px; }
  .ex-hero-stats      { padding:12px 8px; width:calc(100% - 24px); }
  .ex-hero-stat       { padding:8px 6px; }
  .ex-hero-stat-num   { font-size:18px; }
  .ex-hero-stat-lbl   { font-size:9px; }

  /* App wrap: breathing room, space for FAB */
  .ex-app-wrap { padding:0 10px 100px; }

  /* Grid: 2 columns */
  .ex-grid { grid-template-columns:1fr 1fr; gap:8px; }

  /* ── FILTER BAR: clean stacked layout ── */
  .ex-filterbar       { top:0; padding:10px 0; }
  .ex-filterbar-inner { gap:8px; padding:0 10px; }

  /* Search stays full width */
  .ex-search-input { font-size:14px; }

  /* Count badge: full-width pill */
  .ex-filter-row  {
    flex-wrap:wrap;
    gap:6px;
  }
  .ex-count-badge {
    flex:0 0 auto;
    font-size:12px; padding:6px 12px;
  }
  /* Two selects side by side */
  .ex-filter-group {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    width:100%;
    flex-shrink:1;
  }
  .ex-select {
    width:100%; box-sizing:border-box;
    padding:9px 26px 9px 10px;
    font-size:12px;
    min-height:40px;
  }

  /* Tabs: ensure they scroll and are not clipped */
  .ex-tabs-wrap { padding:10px 0 4px; }
  .ex-tab { padding:8px 12px; font-size:12px; min-height:36px; }

  /* Cards */
  .ex-card-meta    { padding:10px 8px; }
  .ex-card-name    { font-size:12px; }
  .ex-card-target  { font-size:11px; }
  .ex-card-save-btn {
    font-size:11px; padding:5px 10px;
    width:100%; text-align:center; box-sizing:border-box;
  }

  /* Floating wallet - smaller and higher so it doesn't block cards */
  .ex-wallet-fab-group {
    bottom:16px !important;
    right:12px !important;
    gap:8px !important;
  }
  .float-wallet,
  .float-plan {
    width:46px !important; height:46px !important;
    font-size:16px !important;
  }

  /* Day plan panel: full width */
  .day-plan-panel { max-width:100%; border-left:none; width:100%; }

  /* Wallet panel items: ensure remove button always visible */
  .day-plan-item { gap:8px; padding:10px; }
  .day-plan-item-gif { width:56px; height:56px; }
  .day-plan-item-gif-placeholder { width:56px; height:56px; font-size:22px; }
  .day-plan-item-remove { width:30px; height:30px; font-size:14px; flex-shrink:0; }
  .day-plan-item-name { font-size:12px; }
  .day-plan-item-meta { font-size:10px; }
  .day-plan-item-done-btn { font-size:11px; padding:5px 10px; }
}


/* ── MY DAY PLAN ─────────────────────────────────────── */
.float-plan {
  position: relative;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 18px;
}
.day-plan-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day-plan-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.day-plan-backdrop.open { display: block; }
.day-plan-panel {
  position: fixed;
  top: 0; right: -100%;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100dvh;
  background: #141414;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 9999;
  transition: right 0.3s cubic-bezier(0.22,1,0.36,1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.day-plan-panel.open { right: 0; }
.day-plan-panel.open { right: 0; }
.day-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  gap: 12px;
  flex-shrink: 0;
}
.day-plan-close {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  padding: 0;
}
.day-plan-close:hover {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.6);
}
.day-plan-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.day-plan-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
}
.day-plan-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.day-plan-item-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.day-plan-item-meta {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin-top: 2px;
}
.day-plan-item-remove {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  line-height: 1;
}
.day-plan-item-remove:hover {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.6);
  color: #fff;
}
.day-plan-reset {
  margin: 12px 16px 20px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #ef4444;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.day-plan-reset:hover { background: rgba(239,68,68,0.2); }
.ex-modal-save-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.ex-modal-save-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ex-modal-save-btn.saved {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  cursor: default;
}


/* ── CARD SAVE BUTTON ─────────────────────────────────── */
.ex-card-save-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
.ex-card-save-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.ex-card-save-btn.saved {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  cursor: default;
}

/* ── DAY PLAN ITEM WITH GIF ───────────────────────────── */
.day-plan-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
  /* Never clip remove button */
  overflow: visible;
}
.day-plan-item.done {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.05);
}
.day-plan-item-num {
  color: rgba(255,255,255,0.25);
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}
.day-plan-item-gif {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  cursor: pointer;
}
.day-plan-item-gif-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.day-plan-item-info {
  flex: 1;
  min-width: 0; /* crucial - prevents text from pushing remove off screen */
  overflow: hidden;
}
.day-plan-item-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-plan-item-meta {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  margin-top: 2px;
}
.day-plan-item-done-btn {
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(249,115,22,0.6);
  background: rgba(249,115,22,0.12);
  color: #fb923c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  display: inline-block;
}
.day-plan-item-done-btn:hover {
  background: rgba(249,115,22,0.25);
  border-color: rgba(249,115,22,0.8);
  color: #fff;
}
.day-plan-item-done-btn.is-done {
  border-color: rgba(34,197,94,0.6);
  color: #4ade80;
  background: rgba(34,197,94,0.12);
}

/* ── EXERCISE FOCUS VIEW (gym mode) ──────────────────── */
.ex-focus-overlay {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  animation: focusFadeIn 0.25s ease;
}
@keyframes focusFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.ex-focus-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ex-focus-counter {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 600;
}
.ex-focus-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ex-focus-gif-wrap {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  max-height: 40vh;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.ex-focus-gif-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ex-focus-gif-placeholder {
  font-size: 80px;
}
.ex-focus-info {
  width: 100%;
  max-width: 420px;
  padding: 20px 24px;
  text-align: center;
}
.ex-focus-name {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}
.ex-focus-meta {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  margin-bottom: 20px;
}
.ex-focus-done-btn {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 24px;
  transition: opacity 0.2s;
}
.ex-focus-done-btn.is-done {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.ex-focus-nav {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 16px 24px 0;
}
.ex-focus-nav-btn {
  flex: 1;
  padding: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ex-focus-nav-btn:hover { background: rgba(255,255,255,0.1); }
.ex-focus-nav-btn:disabled { opacity: 0.25; cursor: default; }


  /* ── Live Date & Time Bar ─────────────────────────────────── */
  .datetime-bar {
    background: #12122a;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 7px 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    position: relative;
    z-index: 1001;
  }
  .datetime-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .datetime-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
  }
  .datetime-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
  }
  .datetime-icon { font-size: 13px; }
  .datetime-sep { color: rgba(255,255,255,0.2); font-size: 11px; }
  #liveDate { color: rgba(255,255,255,0.8); font-weight: 600; }
  #liveTime {
    color: #f0c040;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    min-width: 92px;
    display: inline-block;
  }
  .datetime-phone { color: #6bdfb8; text-decoration: none; font-weight: 600; }
  .datetime-phone:hover { color: #fff; }
  @media (max-width: 640px) {
    .datetime-left { display: none; }
    .datetime-bar-inner { justify-content: center; }
  }

  /* ── Extra small phones (≤380px) ──────── */
@media(max-width:380px){
  .ex-hero-content h1 { font-size:22px; }
  .ex-hero-badge      { font-size:11px; padding:4px 10px; }
  .ex-hero-stat-num   { font-size:15px; }
  .ex-hero-stat-lbl   { font-size:9px; }
  .ex-hero-stat       { padding:6px 4px; }
  .ex-grid            { grid-template-columns:1fr 1fr; gap:6px; }
  .ex-card-name       { font-size:11px; }
  .ex-tab             { padding:7px 9px; font-size:11px; }
  .ex-modal-name      { font-size:15px; }
  .ex-modal-target    { font-size:12px; }
  .ex-focus-name      { font-size:19px; }
  /* On very small screens, stack selects vertically */
  .ex-filter-group    { grid-template-columns:1fr; }
  .ex-app-wrap        { padding:0 8px 100px; }
}

/* ── MOBILE OVERFLOW PREVENTION ──────────────── */
/* Prevent horizontal scroll on page level only */
.ex-section,
.ex-hero,
.ex-filterbar,
.ex-app-wrap {
  max-width: 100vw;
  /* DO NOT add overflow-x:hidden here - it clips sticky/fixed children */
}
/* The body-level scroll guard lives on <html>/<body> in your main CSS */

/* Fix select dropdowns not showing properly on iOS/Android */
.ex-select {
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ── Short phones: FAB position ─────────── */
@media (max-height: 600px) {
  .ex-wallet-fab-group { bottom: 50px !important; }
}
/* ── WALLET TIP BANNER: always visible ────── */
/* Override any JS that hides the banner */
.wallet-tip-banner {
  display: flex !important;
  opacity: 1 !important;
}
/* Hide the close button so users can't dismiss it */
#walletTipClose,
.wallet-tip-close {
  display: none !important;
}

/* ── WALLET TIP: mobile layout fix ─────── */
@media(max-width:480px) {
  .wallet-tip-banner {
    padding: 10px 12px;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .wallet-tip-text { font-size: 12px; line-height: 1.5; }
  .wallet-tip-add  { font-size: 10px; padding: 2px 7px; }
}