/* =====================================================
   REPCAST — STYLES
   Dark luxury aesthetic · Syne + DM Sans
   ===================================================== */

   :root {
    --bg:        #0a0c0f;
    --surface:   #111318;
    --surface2:  #181c24;
    --surface3:  #1f242e;
    --surface4:  #252b37;
    --border:    rgba(255,255,255,0.07);
    --border2:   rgba(255,255,255,0.12);
    --border3:   rgba(255,255,255,0.18);
    --accent:    #7EE8A2;
    --accent2:   #3ECFCF;
    --accent3:   #F472B6;
    --warn:      #FBBF24;
    --danger:    #FF6B6B;
    --text:      #eef0f5;
    --muted:     #8892a4;
    --muted2:    #525d6e;
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
  
    /* Muscle colors */
    --chest:     #F472B6;
    --back:      #60A5FA;
    --legs:      #7EE8A2;
    --shoulders: #FBBF24;
    --arms:      #A78BFA;
    --core:      #FB923C;
    --fullbody:  #3ECFCF;
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
  h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }
  
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  /* ── SCREENS ── */
  .screen { display: none; height: 100vh; overflow: hidden; }
  .screen.active { display: block; }
  
  /* ── AUTH ── */
  .auth-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
  }
  .auth-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7EE8A2, transparent 70%); top: -200px; left: -200px; animation: orbDrift1 18s ease-in-out infinite; }
  .auth-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #3ECFCF, transparent 70%); bottom: -100px; right: -100px; animation: orbDrift2 22s ease-in-out infinite; }
  .auth-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #F472B6, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); animation: orbDrift3 15s ease-in-out infinite; }
  
  @keyframes orbDrift1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(40px,-30px)} 66%{transform:translate(-20px,50px)} }
  @keyframes orbDrift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-60px,40px)} }
  @keyframes orbDrift3 { 0%,100%{transform:translate(-50%,-50%)} 50%{transform:translate(-50%,-60%)} }
  
  .auth-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  
  .auth-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    z-index: 10;
  }
  
  .auth-card {
    background: rgba(17, 19, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border2);
    border-radius: var(--radius-xl);
    padding: 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    animation: authCardIn 0.5s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
  }
  @keyframes authCardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: none; }
  }
  
  .auth-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
  }
  .logo-mark {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, rgba(126,232,162,0.2), rgba(62,207,207,0.15));
    border: 1px solid rgba(126,232,162,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
  }
  .auth-logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  .auth-logo h1 span { color: var(--accent); }
  .auth-logo p {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
  }
  
  .auth-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  .auth-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
  }
  
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted2);
    font-size: 12px;
  }
  .auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border2);
  }
  
  .auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
  }
  
  .trial-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(126,232,162,0.07);
    border: 1px solid rgba(126,232,162,0.18);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--accent);
    margin-bottom: 16px;
  }
  .trial-info-box i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
  
  /* ── FORMS ── */
  .form-group { margin-bottom: 14px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .full-span { grid-column: 1 / -1; }
  
  .form-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
  }
  
  .form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: 13.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
  }
  .form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: rgba(126,232,162,0.4);
    box-shadow: 0 0 0 3px rgba(126,232,162,0.08);
  }
  .form-input::placeholder { color: var(--muted2); }
  .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892a4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }
  .form-select option { background: #1c2028; color: var(--text); }
  .form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
  
  /* ── BUTTONS ── */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none !important;
  }
  .btn:active { transform: scale(0.97); }
  
  .btn-primary {
    background: var(--accent);
    color: #071a0e;
  }
  .btn-primary:hover { background: #9ef5b8; box-shadow: 0 0 20px rgba(126,232,162,0.25); }
  
  .btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #071a0e;
    font-weight: 600;
  }
  .btn-accent:hover { filter: brightness(1.1); box-shadow: 0 0 24px rgba(126,232,162,0.3); }
  
  .btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border2);
  }
  .btn-ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--border3); }
  
  .btn-ghost-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    transition: all 0.15s;
  }
  .btn-ghost-sm:hover { background: var(--surface3); color: var(--text); }
  
  .btn-google {
    background: var(--surface3);
    color: var(--text);
    border: 1px solid var(--border2);
  }
  .btn-google:hover { background: var(--surface4); border-color: var(--border3); }
  
  .btn-whatsapp {
    background: rgba(37,211,102,0.12);
    color: #25D366;
    border: 1px solid rgba(37,211,102,0.25);
  }
  .btn-whatsapp:hover { background: rgba(37,211,102,0.2); }
  
  .btn-danger {
    background: rgba(255,107,107,0.1);
    color: var(--danger);
    border: 1px solid rgba(255,107,107,0.2);
  }
  .btn-danger:hover { background: rgba(255,107,107,0.18); }
  
  .btn-full { width: 100%; justify-content: center; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }
  
  /* ── APP LAYOUT ── */
  .app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  
  /* ── SIDEBAR ── */
  .sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .sidebar-top { flex-shrink: 0; }
  
  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border);
  }
  .logo-mark-sm {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, rgba(126,232,162,0.18), rgba(62,207,207,0.12));
    border: 1px solid rgba(126,232,162,0.2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
  }
  .logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    display: block;
  }
  .logo-name span { color: var(--accent); }
  .logo-role {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
  }
  
  .trial-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 12px;
    padding: 8px 10px;
    background: rgba(251,191,36,0.07);
    border: 1px solid rgba(251,191,36,0.18);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    color: var(--warn);
  }
  .trial-pill i { font-size: 12px; flex-shrink: 0; }
  .trial-pill span { flex: 1; }
  .upgrade-btn {
    background: rgba(251,191,36,0.15);
    color: var(--warn);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    white-space: nowrap;
  }
  .upgrade-btn:hover { background: rgba(251,191,36,0.25); }
  
  .sidebar-nav { padding: 10px 12px 0; }
  .nav-section-label {
    font-size: 9.5px;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 1.1px;
    padding: 0 8px;
    margin-bottom: 5px;
  }
  
  .nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
    position: relative;
  }
  .nav-item:hover { background: var(--surface2); color: var(--text); }
  .nav-item.active { background: rgba(126,232,162,0.1); color: var(--accent); }
  .nav-item i { font-size: 16px; flex-shrink: 0; }
  .nav-item span { flex: 1; }
  .nav-badge {
    background: var(--surface4);
    color: var(--muted);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 10.5px;
    font-weight: 500;
  }
  .nav-item.active .nav-badge { background: rgba(126,232,162,0.15); color: var(--accent); }
  
  /* ── MUSCLE FILTER ── */
  .muscle-filter-panel {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
  .muscle-filter-panel::-webkit-scrollbar { width: 3px; }
  .muscle-filter-panel::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 2px; }
  
  .muscle-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.15s;
    margin-bottom: 1px;
    user-select: none;
  }
  .muscle-group-header:hover { background: var(--surface2); color: var(--text); }
  .muscle-group-header .muscle-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .muscle-group-header .chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
  }
  .muscle-group-header.open .chevron { transform: rotate(90deg); }
  .muscle-group-header.open { color: var(--text); }
  
  .muscle-sub-list { display: none; padding-left: 15px; margin-bottom: 2px; }
  .muscle-sub-list.open { display: block; }
  
  .muscle-sub-item {
    padding: 4px 8px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.12s;
    margin-bottom: 1px;
  }
  .muscle-sub-item:hover { background: var(--surface2); color: var(--text); }
  .muscle-sub-item.active { color: var(--accent); background: rgba(126,232,162,0.07); }
  
  .clear-filter-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 8px;
    font-size: 11.5px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
    width: 100%;
    justify-content: center;
  }
  .clear-filter-btn:hover { background: var(--surface2); color: var(--text); }
  
  .sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 12px;
  }
  .sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
  }
  .sidebar-user:hover { background: var(--surface2); }
  .user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126,232,162,0.2), rgba(62,207,207,0.15));
    border: 1px solid rgba(126,232,162,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
  }
  .user-info { flex: 1; min-width: 0; }
  .user-info span:first-child {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-info span:last-child {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* ── MAIN CONTENT ── */
  .main-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .view { display: none; flex-direction: column; height: 100%; overflow: hidden; }
  .view.active { display: flex; }
  
  /* ── TOPBAR ── */
  .view-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    flex-wrap: wrap;
  }
  .topbar-left { display: flex; align-items: center; gap: 12px; }
  .topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .view-title { font-size: 17px; font-weight: 700; }
  
  .lib-tabs {
    display: flex;
    background: var(--surface2);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
  }
  .lib-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    color: var(--muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
  }
  .lib-tab.active { background: var(--surface3); color: var(--text); }
  .lib-tab i { font-size: 14px; }
  .tab-count {
    background: var(--surface4);
    color: var(--muted);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 10.5px;
  }
  .lib-tab.active .tab-count { background: rgba(126,232,162,0.12); color: var(--accent); }
  
  .search-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .search-wrap > i {
    position: absolute;
    left: 11px;
    font-size: 15px;
    color: var(--muted2);
    pointer-events: none;
  }
  .search-wrap input {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 34px 8px 34px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    width: 260px;
    transition: border-color 0.2s;
  }
  .search-wrap input:focus { border-color: rgba(126,232,162,0.35); }
  .search-wrap input::placeholder { color: var(--muted2); }
  .search-clear {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: var(--muted2);
    font-size: 13px;
    transition: color 0.15s;
  }
  .search-clear:hover { color: var(--text); }
  
  /* ── LIBRARY BODY ── */
  .library-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 100px;
  }
  .library-body::-webkit-scrollbar { width: 5px; }
  .library-body::-webkit-scrollbar-track { background: transparent; }
  .library-body::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
  
  .library-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .library-section-title h3 { font-size: 15px; font-weight: 600; }
  .count-chip {
    padding: 2px 8px;
    background: var(--surface3);
    border-radius: 20px;
    font-size: 11px;
    color: var(--muted);
  }
  
  .exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  
  /* ── EXERCISE CARD ── */
  .exercise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.18s, box-shadow 0.2s;
    animation: cardFadeIn 0.25s ease forwards;
    cursor: default;
  }
  @keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
  .exercise-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  .exercise-card.in-cart {
    border-color: rgba(126,232,162,0.35);
    background: rgba(126,232,162,0.03);
  }
  
  .card-media {
    position: relative;
    padding-top: 52%;
    background: var(--surface2);
    overflow: hidden;
  }
  .card-media-bg {
    position: absolute;
    inset: 0;
  }
  .card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .play-btn {
    width: 42px; height: 42px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
  }
  .play-btn:hover {
    background: rgba(126,232,162,0.2);
    border-color: rgba(126,232,162,0.4);
    transform: scale(1.08);
  }
  .play-btn i { font-size: 17px; color: white; margin-left: 2px; }
  .card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.8);
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 5px;
  }
  
  .card-body { padding: 13px 14px; }
  
  .card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 8px;
  }
  .tag {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .tag-chest    { background: rgba(244,114,182,0.12); color: var(--chest); }
  .tag-back     { background: rgba(96,165,250,0.12);  color: var(--back); }
  .tag-legs     { background: rgba(126,232,162,0.12); color: var(--legs); }
  .tag-shoulders{ background: rgba(251,191,36,0.12);  color: var(--shoulders); }
  .tag-arms     { background: rgba(167,139,250,0.12); color: var(--arms); }
  .tag-core     { background: rgba(251,146,60,0.12);  color: var(--core); }
  .tag-fullbody { background: rgba(62,207,207,0.12);  color: var(--fullbody); }
  .tag-custom   { background: rgba(62,207,207,0.1);   color: var(--accent2); }
  .tag-sub      { background: var(--surface3); color: var(--muted); }
  .tag-premium  { background: rgba(251,191,36,0.1); color: var(--warn); }
  
  .card-title {
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
  }
  .card-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 11px;
  }
  
  .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .card-difficulty {
    font-size: 11px;
    color: var(--muted2);
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: 1px solid var(--border2);
    background: transparent;
    color: var(--muted);
    transition: all 0.15s;
  }
  .add-to-cart-btn:hover {
    background: rgba(126,232,162,0.08);
    color: var(--accent);
    border-color: rgba(126,232,162,0.3);
  }
  .add-to-cart-btn.added {
    background: rgba(126,232,162,0.1);
    color: var(--accent);
    border-color: rgba(126,232,162,0.3);
  }
  
  /* ── FLOATING CART BAR ── */
  .cart-bar {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 20px;
    background: var(--surface3);
    border: 1px solid var(--border2);
    border-radius: 18px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(126,232,162,0.05);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 90;
    white-space: nowrap;
  }
  .cart-bar.visible {
    transform: translateX(-50%) translateY(0);
  }
  .cart-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
  }
  .cart-badge-wrap { position: relative; }
  .cart-badge {
    width: 26px; height: 26px;
    background: var(--accent);
    color: #071a0e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s;
  }
  .cart-badge.bump { animation: badgeBump 0.3s ease; }
  @keyframes badgeBump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.3)} }
  
  .cart-divider { width: 1px; height: 22px; background: var(--border2); }
  .cart-actions { display: flex; align-items: center; gap: 8px; }
  
  /* ── EMPTY STATE ── */
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 10px;
    height: 100%;
  }
  .empty-icon {
    width: 64px; height: 64px;
    background: var(--surface2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--muted2);
    margin-bottom: 8px;
  }
  .empty-state h3 { font-size: 18px; font-weight: 600; }
  .empty-state p { font-size: 13.5px; color: var(--muted); max-width: 320px; }
  
  /* ── PROFILE VIEW ── */
  .profile-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }
  .profile-body::-webkit-scrollbar { width: 5px; }
  .profile-body::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
  
  .profile-hero {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .profile-avatar-wrap { position: relative; }
  .profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126,232,162,0.2), rgba(62,207,207,0.15));
    border: 2px solid rgba(126,232,162,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--accent);
  }
  .avatar-upload-btn {
    position: absolute;
    bottom: 0; right: 0;
    width: 26px; height: 26px;
    background: var(--accent);
    color: #071a0e;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .avatar-upload-btn:hover { background: #9ef5b8; transform: scale(1.1); }
  
  .profile-hero-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 3px; }
  .profile-hero-info p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
  .profile-stats { display: flex; gap: 20px; }
  .pstat { display: flex; flex-direction: column; align-items: center; }
  .pstat span { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); }
  .pstat em { font-size: 11px; color: var(--muted); font-style: normal; margin-top: 2px; }
  
  .tier-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.18);
    border-radius: var(--radius);
    margin-bottom: 18px;
  }
  .tier-icon { font-size: 20px; color: var(--warn); flex-shrink: 0; }
  .tier-info { flex: 1; }
  .tier-info strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
  .tier-info span { font-size: 12px; color: var(--muted); }
  
  .profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  
  /* ── BILLING ── */
  .billing-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }
  .billing-current {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }
  .billing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .billing-badge.trial {
    background: rgba(251,191,36,0.1);
    color: var(--warn);
    border: 1px solid rgba(251,191,36,0.2);
  }
  .billing-current h3 { font-size: 18px; margin-bottom: 6px; }
  .billing-current p { font-size: 13.5px; color: var(--muted); }
  
  .pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
  }
  .pricing-card.featured {
    border-color: rgba(126,232,162,0.3);
    background: rgba(126,232,162,0.03);
  }
  .pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #071a0e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .pricing-tier {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
  }
  .pricing-price {
    font-family: 'Syne', sans-serif;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
  }
  .pricing-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
  .pricing-features { list-style: none; margin-bottom: 20px; }
  .pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 5px 0;
    color: var(--text);
  }
  .pricing-features li.off { color: var(--muted2); }
  .pricing-features li i { font-size: 15px; }
  .pricing-features li:not(.off) i { color: var(--accent); }
  .pricing-features li.off i { color: var(--muted2); }
  .pricing-current-label {
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
    padding: 8px;
    background: var(--surface2);
    border-radius: 8px;
  }
  
  /* ── ROUTINES ── */
  .routines-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }
  .routine-history-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s;
  }
  .routine-history-card:hover { border-color: var(--border2); }
  .routine-history-info { flex: 1; }
  .routine-history-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
  .routine-history-info p { font-size: 12px; color: var(--muted); }
  .routine-history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .routine-share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    cursor: pointer;
    background: rgba(126,232,162,0.08);
    color: var(--accent);
    border: 1px solid rgba(126,232,162,0.2);
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
  }
  .routine-share-btn:hover { background: rgba(126,232,162,0.14); }
  
  /* ── MODALS ── */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 200;
    display: none;
    backdrop-filter: blur(4px);
  }
  .modal-backdrop.open { display: block; }
  
  .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.97);
    z-index: 210;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  }
  .modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  .modal-wide { max-width: 680px; }
  
  .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .modal-header h3 i { color: var(--accent); }
  .modal-subtitle { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
  .modal-close {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .modal-close:hover { background: var(--surface2); color: var(--text); }
  .modal-close i { font-size: 15px; }
  
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
  }
  .modal-body::-webkit-scrollbar { width: 4px; }
  .modal-body::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 2px; }
  
  .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    flex-wrap: wrap;
  }
  
  /* ── UPLOAD ZONE ── */
  .upload-zone {
    border: 1.5px dashed var(--border2);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--surface2);
    position: relative;
  }
  .upload-zone:hover, .upload-zone.drag-over {
    border-color: rgba(126,232,162,0.4);
    background: rgba(126,232,162,0.04);
  }
  .upload-zone-inner i {
    font-size: 30px;
    color: var(--muted2);
    display: block;
    margin-bottom: 8px;
  }
  .upload-zone-inner p {
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .upload-zone-inner span {
    font-size: 12.5px;
    color: var(--muted);
  }
  .upload-zone-inner em { color: var(--accent); font-style: normal; }
  .upload-zone-inner small {
    display: block;
    font-size: 11px;
    color: var(--muted2);
    margin-top: 8px;
  }
  
  .upload-progress-wrap {
    margin-top: 12px;
  }
  .upload-progress-bar {
    height: 4px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
  }
  .upload-progress-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s;
  }
  .upload-progress-wrap span { font-size: 12px; color: var(--muted); }
  
  /* ── CHECKOUT ── */
  .checkout-client-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
  }
  
  .checkout-exercise-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.15s;
  }
  .checkout-exercise-card:hover { border-color: var(--border2); }
  
  .checkout-thumb {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .checkout-info { flex: 1; }
  .checkout-info h4 {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .checkout-info p {
    font-size: 11.5px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  
  .prescription-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .prescription-field { display: flex; flex-direction: column; gap: 3px; }
  .prescription-label {
    font-size: 9.5px;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.6px;
  }
  .prescription-input {
    width: 68px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 12.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
  }
  .prescription-input:focus { border-color: rgba(126,232,162,0.35); }
  .prescription-notes-input {
    flex: 1;
    min-width: 100px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 12.5px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
  }
  .prescription-notes-input::placeholder { color: var(--muted2); }
  .prescription-notes-input:focus { border-color: rgba(126,232,162,0.35); }
  
  .remove-exercise-btn {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid rgba(255,107,107,0.15);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--danger);
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .remove-exercise-btn:hover { background: rgba(255,107,107,0.1); }
  .remove-exercise-btn i { font-size: 14px; }
  
  .share-result {
    border-top: 1px solid var(--border);
    padding: 12px 24px;
    background: rgba(126,232,162,0.04);
  }
  .share-result-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .share-url {
    font-size: 12px;
    color: var(--accent);
    background: var(--surface2);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(126,232,162,0.15);
    font-family: monospace;
    flex: 1;
    min-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* ── UPGRADE MODAL ── */
  .upgrade-price {
    font-family: 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 4px;
  }
  .upgrade-price span { font-size: 18px; font-weight: 400; color: var(--muted); }
  .upgrade-list { list-style: none; text-align: left; display: inline-block; }
  .upgrade-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    padding: 6px 0;
  }
  .upgrade-list li i { color: var(--accent); font-size: 15px; }
  
  /* ── SHARED ROUTINE PAGE ── */
  .shared-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .shared-container {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    height: 100vh;
    overflow-y: auto;
  }
  
  .shared-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .shared-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .shared-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
  }
  .shared-meta-item i { font-size: 14px; color: var(--muted2); }
  
  .shared-exercises { display: flex; flex-direction: column; gap: 14px; }
  
  .shared-exercise-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: cardFadeIn 0.3s ease forwards;
  }
  .shared-ex-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .shared-ex-num {
    width: 30px; height: 30px;
    background: var(--surface2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
  }
  .shared-ex-header h4 { font-size: 15px; font-weight: 600; flex: 1; }
  .shared-ex-body { padding: 16px; }
  .shared-ex-prescription {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .shared-rx-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
  }
  .shared-rx-val {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
  }
  .shared-rx-label {
    font-size: 10.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
  }
  .shared-ex-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
  .shared-ex-notes {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(126,232,162,0.06);
    border: 1px solid rgba(126,232,162,0.15);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--accent);
  }
  .shared-ex-notes strong { display: block; font-size: 10.5px; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
  
  /* ── TOAST ── */
  .toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface3);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--text);
    opacity: 0;
    transition: all 0.3s;
    z-index: 300;
    pointer-events: none;
    white-space: nowrap;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  
  /* ── SCROLLBARS ── */
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
  
  /* ══════════════════════════════════════
     TOP NAVIGATION BAR
  ══════════════════════════════════════ */
  
  .topnav {
    height: 54px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 0;
    flex-shrink: 0;
    z-index: 50;
    position: relative;
  }
  
  .topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 28px;
    flex-shrink: 0;
  }
  
  .topnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
  }
  
  .topnav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none !important;
    transition: all 0.15s;
    position: relative;
    cursor: pointer;
  }
  .topnav-link:hover { background: var(--surface2); color: var(--text); }
  .topnav-link.active { background: rgba(126,232,162,0.1); color: var(--accent); }
  .topnav-link i { font-size: 15px; }
  
  .tnav-badge {
    background: var(--surface3);
    color: var(--muted);
    border-radius: 20px;
    padding: 1px 6px;
    font-size: 10px;
  }
  .topnav-link.active .tnav-badge { background: rgba(126,232,162,0.15); color: var(--accent); }
  
  .topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  
  .trial-pill-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(251,191,36,0.07);
    border: 1px solid rgba(251,191,36,0.18);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    color: var(--warn);
    white-space: nowrap;
  }
  .trial-pill-top i { font-size: 11px; }
  
  .upgrade-btn-top {
    background: rgba(251,191,36,0.15);
    color: var(--warn);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.15s;
  }
  .upgrade-btn-top:hover { background: rgba(251,191,36,0.25); }
  
  .topnav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 500;
  }
  .topnav-user:hover { background: var(--surface2); }
  
  .user-avatar-sm {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(126,232,162,0.2), rgba(62,207,207,0.15));
    border: 1px solid rgba(126,232,162,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
  }
  
  .btn-icon-nav {
    width: 34px; height: 34px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    transition: all 0.15s;
  }
  .btn-icon-nav:hover { background: var(--surface2); color: var(--danger); border-color: rgba(255,107,107,0.25); }
  
  /* Updated app-layout (sidebar is filter-only now) */
  .app-layout {
    display: flex;
    height: calc(100vh - 54px);
    overflow: hidden;
  }
  
  .sidebar {
    width: 210px;
    min-width: 210px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .muscle-filter-panel {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px 10px;
  }
  
  /* ══════════════════════════════════════
     MANAGER AUTH
  ══════════════════════════════════════ */
  
  .manager-login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(167,139,250,0.1);
    border: 1px solid rgba(167,139,250,0.25);
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #A78BFA;
    margin-bottom: 14px;
  }
  
  .btn-manager {
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    color: #fff;
  }
  .btn-manager:hover { filter: brightness(1.12); box-shadow: 0 0 20px rgba(124,58,237,0.35); }
  
  /* ══════════════════════════════════════
     MANAGER / ADMIN PANEL
  ══════════════════════════════════════ */
  
  .manager-nav { border-bottom-color: rgba(167,139,250,0.2); }
  
  .manager-logo-mark {
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(124,58,237,0.15)) !important;
    border-color: rgba(167,139,250,0.25) !important;
    color: #A78BFA !important;
  }
  
  .manager-badge-nav {
    font-size: 10px;
    padding: 2px 7px;
    background: rgba(167,139,250,0.12);
    color: #A78BFA;
    border-radius: 5px;
    margin-left: 4px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }
  
  .manager-badge-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(167,139,250,0.08);
    border: 1px solid rgba(167,139,250,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: #A78BFA;
  }
  .manager-badge-top i { font-size: 13px; }
  
  #screen-manager { display: none; flex-direction: column; }
  #screen-manager.active { display: flex; }
  
  .manager-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .admin-view { display: none; flex-direction: column; height: 100%; overflow: hidden; }
  .admin-view.active { display: flex; }
  
  /* Admin table */
  .admin-table-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 24px;
  }
  .admin-table-wrap::-webkit-scrollbar { width: 5px; }
  .admin-table-wrap::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
  
  .admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }
  .admin-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .admin-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
  }
  .admin-table tbody tr:hover { background: var(--surface2); }
  .admin-table tbody td {
    padding: 11px 14px;
    vertical-align: middle;
  }
  
  .admin-ex-title {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 2px;
  }
  .admin-ex-desc-preview {
    font-size: 11px;
    color: var(--muted);
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .admin-actions {
    display: flex;
    gap: 6px;
  }
  .admin-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    transition: all 0.15s;
  }
  .admin-action-btn.edit:hover { background: rgba(126,232,162,0.08); color: var(--accent); border-color: rgba(126,232,162,0.25); }
  .admin-action-btn.delete:hover { background: rgba(255,107,107,0.08); color: var(--danger); border-color: rgba(255,107,107,0.25); }
  .admin-action-btn i { font-size: 13px; }
  
  .btn-danger-solid {
    background: rgba(255,107,107,0.15);
    color: var(--danger);
    border: 1px solid rgba(255,107,107,0.3);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-danger-solid:hover { background: rgba(255,107,107,0.25); }
  
  /* Admin users */
  .admin-users-grid { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
  .admin-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.15s;
  }
  .admin-user-card:hover { border-color: var(--border2); }
  
  /* Admin stats */
  .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 800px;
  }
  .admin-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
  }
  .admin-stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin: 8px 0 4px;
  }
  .admin-stat-label { font-size: 12px; color: var(--muted); }
  
  /* Topnav-link style for admin panel */
  .manager-nav .topnav-link.active { background: rgba(167,139,250,0.1); color: #A78BFA; }
  .manager-nav .topnav-link:hover { background: var(--surface2); color: var(--text); }
  
  /* ══════════════════════════════════════
     LANDING PAGE
  ══════════════════════════════════════ */
  
  #screen-landing {
    overflow-y: auto;
    height: 100vh;
  }
  #screen-landing::-webkit-scrollbar { width: 5px; }
  #screen-landing::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
  
  /* Landing Nav */
  .landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,12,15,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .landing-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Hero */
  .landing-hero {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 80px 48px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .landing-hero-content {
    flex: 1;
    min-width: 0;
  }
  
  .landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(126,232,162,0.08);
    border: 1px solid rgba(126,232,162,0.2);
    border-radius: 20px;
    font-size: 12.5px;
    color: var(--accent);
    margin-bottom: 22px;
    font-weight: 500;
  }
  .landing-badge i { font-size: 12px; }
  
  .landing-headline {
    font-family: 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
  }
  .landing-headline span { color: var(--accent); }
  
  .landing-subheadline {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 32px;
  }
  
  .landing-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .landing-cta-primary {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
  }
  .landing-cta-secondary {
    font-size: 13.5px;
  }
  
  .landing-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
  }
  .landing-proof-avatars {
    display: flex;
  }
  .proof-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-left: -8px;
  }
  .proof-av:first-child { margin-left: 0; }
  
  /* Feature preview cards */
  .landing-preview {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    width: 320px;
  }
  .landing-preview-card {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 16px;
    animation: authCardIn 0.6s cubic-bezier(0.34,1.2,0.64,1) forwards;
  }
  
  .lp-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
  }
  .lp-card-badge {
    margin-left: auto;
    font-size: 10.5px;
    padding: 2px 8px;
    background: var(--surface3);
    border-radius: 20px;
    color: var(--muted);
  }
  .lp-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .lp-ex-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
  }
  .lp-ex-pill.chest    { background: rgba(244,114,182,0.1); color: var(--chest); }
  .lp-ex-pill.back     { background: rgba(96,165,250,0.1);  color: var(--back); }
  .lp-ex-pill.legs     { background: rgba(126,232,162,0.1); color: var(--legs); }
  .lp-ex-pill.shoulders{ background: rgba(251,191,36,0.1);  color: var(--shoulders); }
  .lp-ex-pill.arms     { background: rgba(167,139,250,0.1); color: var(--arms); }
  .lp-ex-pill.core     { background: rgba(251,146,60,0.1);  color: var(--core); }
  .lp-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
  }
  
  .lp-routine-preview { margin-bottom: 12px; }
  .lp-routine-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
  }
  .lp-routine-item:last-child { border-bottom: none; }
  .lp-rx {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(126,232,162,0.1);
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
  }
  .lp-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .lp-share-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
  }
  .lp-share-chip.whatsapp { background: rgba(37,211,102,0.1); color: #25D366; }
  .lp-share-chip.email    { background: rgba(96,165,250,0.1); color: #60A5FA; }
  
  /* Features row */
  .landing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 48px 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .landing-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .landing-feature:hover { border-color: var(--border2); transform: translateY(-2px); }
  .lf-icon {
    width: 42px; height: 42px;
    background: rgba(126,232,162,0.1);
    color: var(--accent);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
  }
  .landing-feature h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
  }
  .landing-feature p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }
  
  /* Landing pricing */
  .landing-pricing {
    padding: 0 48px 80px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .landing-pricing-header {
    text-align: center;
    margin-bottom: 32px;
  }
  .landing-pricing-header h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }
  .landing-pricing-header p { font-size: 15px; color: var(--muted); }
  
  .landing-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
  }
  .landing-pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
  }
  .landing-pricing-card.featured {
    border-color: rgba(126,232,162,0.35);
    background: rgba(126,232,162,0.03);
  }
  .lpc-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #071a0e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
  }
  .lpc-tier {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
  }
  .lpc-price {
    font-family: 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -1px;
  }
  .lpc-price span { font-size: 16px; font-weight: 400; color: var(--muted); }
  .lpc-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
  .lpc-features {
    list-style: none;
    margin-bottom: 22px;
  }
  .lpc-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 5px 0;
  }
  .lpc-features li.off { color: var(--muted2); }
  .lpc-features li:not(.off) i { color: var(--accent); font-size: 14px; }
  .lpc-features li.off i { color: var(--muted2); font-size: 14px; }
  
  /* Landing footer */
  .landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
  }
  .landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* ══════════════════════════════════════
     UPGRADE NUDGE BANNER (inside app)
  ══════════════════════════════════════ */
  
  .upgrade-nudge-banner {
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,146,60,0.05));
    border-bottom: 1px solid rgba(251,191,36,0.2);
    padding: 0;
    overflow: hidden;
    max-height: 52px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    flex-shrink: 0;
  }
  .upgrade-nudge-banner.dismissed {
    max-height: 0;
    border: none;
  }
  .upgrade-nudge-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 13px;
    flex-wrap: nowrap;
  }
  .upgrade-nudge-inner span {
    flex: 1;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nudge-dismiss {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .nudge-dismiss:hover { background: rgba(255,255,255,0.08); color: var(--text); }
  
  /* Adjust app-layout height when banner is visible */
  .app-layout {
    height: calc(100vh - 54px - 52px);
    transition: height 0.3s ease;
  }
  .upgrade-nudge-banner.dismissed ~ .app-layout {
    height: calc(100vh - 54px);
  }
  
  /* ══════════════════════════════════════
     RESPONSIVE (basic)
  ══════════════════════════════════════ */
  @media (max-width: 900px) {
    .landing-hero { flex-direction: column; padding: 40px 24px 30px; }
    .landing-preview { width: 100%; }
    .landing-features { grid-template-columns: 1fr 1fr; padding: 0 24px 40px; }
    .landing-headline { font-size: 36px; }
    .landing-nav { padding: 14px 24px; }
    .landing-pricing { padding: 0 24px 60px; }
    .landing-footer { padding: 16px 24px; }
  }
  @media (max-width: 600px) {
    .landing-features { grid-template-columns: 1fr; }
    .landing-pricing-grid { grid-template-columns: 1fr; }
    .landing-headline { font-size: 28px; }
  }
  
  /* ══════════════════════════════════════
     VIDEO VISIBILITY TOGGLE (upload modal)
  ══════════════════════════════════════ */
  
  .visibility-toggle-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
  }
  
  .visibility-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.18s;
    background: var(--surface2);
    position: relative;
  }
  .visibility-option:hover {
    border-color: var(--border2);
    background: var(--surface3);
  }
  .visibility-option.active {
    border-color: rgba(126,232,162,0.45);
    background: rgba(126,232,162,0.05);
  }
  
  .vis-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(126,232,162,0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
  }
  
  .vis-text {
    flex: 1;
    min-width: 0;
  }
  .vis-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .vis-text span {
    font-size: 11px;
    color: var(--muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .vis-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.15s;
  }
  .visibility-option.active .vis-check {
    background: var(--accent);
    border-color: var(--accent);
    color: #071a0e;
  }
  
  /* ── Private / Public tags on exercise cards ── */
  .tag-private {
    background: rgba(139,139,160,0.12);
    color: #9da3b0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .tag-public {
    background: rgba(62,207,207,0.1);
    color: var(--accent2);
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  
  /* ── Visibility toggle button on card footer ── */
  .vis-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    transition: all 0.15s;
  }
  .vis-toggle-btn i { font-size: 11px; }
  .vis-toggle-btn.private {
    color: #9da3b0;
    border-color: rgba(139,139,160,0.2);
  }
  .vis-toggle-btn.private:hover {
    background: rgba(62,207,207,0.08);
    color: var(--accent2);
    border-color: rgba(62,207,207,0.25);
  }
  .vis-toggle-btn.public {
    color: var(--accent2);
    border-color: rgba(62,207,207,0.25);
    background: rgba(62,207,207,0.06);
  }
  .vis-toggle-btn.public:hover {
    background: rgba(139,139,160,0.1);
    color: #9da3b0;
    border-color: rgba(139,139,160,0.2);
  }
  
  /* Spinner for shared routine loading */
  @keyframes spin { to { transform: rotate(360deg); } }
  
  /* Physiotherapy tag and muscle color */
  :root { --physio: #A78BFA; }
  .tag-physio { background: rgba(167,139,250,0.12); color: var(--physio); }
  
  /* ══════════════════════════════════════
     IN-PAGE VIDEO PLAYER
  ══════════════════════════════════════ */
  
  .video-player-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.2s ease;
  }
  @keyframes fadeInOverlay { from { opacity:0 } to { opacity:1 } }
  
  .video-player-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 820px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    animation: playerSlideIn 0.25s cubic-bezier(0.34,1.2,0.64,1);
  }
  @keyframes playerSlideIn {
    from { transform: scale(0.94) translateY(16px); opacity:0; }
    to   { transform: none; opacity:1; }
  }
  
  .video-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
  }
  .video-player-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
  }
  .video-player-close {
    width: 30px; height: 30px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 15px;
    transition: all 0.15s;
  }
  .video-player-close:hover { background: var(--surface2); color: var(--danger); }
  
  .video-player-wrap {
    background: #000;
  }
  
  /* ══════════════════════════════════════
     ADMIN FILE UPLOAD ZONE
  ══════════════════════════════════════ */
  
  .admin-file-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 18px;
    border: 1.5px dashed var(--border2);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface2);
    transition: all 0.2s;
    text-align: center;
  }
  .admin-file-upload-zone:hover {
    border-color: rgba(126,232,162,0.4);
    background: rgba(126,232,162,0.04);
  }
  .admin-file-upload-zone i {
    font-size: 22px;
    color: var(--muted2);
    display: block;
  }
  .admin-file-upload-zone span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
  }
  .admin-file-upload-zone small {
    font-size: 11px;
    color: var(--muted2);
  }
  
  /* ══════════════════════════════════════
     LOCKED EXERCISE CARDS
  ══════════════════════════════════════ */
  
  .exercise-card.locked-card {
    opacity: 0.75;
  }
  .exercise-card.locked-card:hover {
    border-color: rgba(251,191,36,0.3);
    transform: none;
    box-shadow: none;
  }
  
  .locked-play-btn {
    width: 42px; height: 42px;
    background: rgba(251,191,36,0.15);
    border: 1.5px solid rgba(251,191,36,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
  }
  .locked-play-btn:hover {
    background: rgba(251,191,36,0.25);
  }
  .locked-play-btn i { font-size: 17px; color: var(--warn); }
  
  .locked-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: var(--warn);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 10px 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
  }
  
  .tag-locked {
    background: rgba(251,191,36,0.1);
    color: var(--warn);
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  
  /* Video thumbnail in card */
  .card-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
  }
  
  /* Admin rules hint box */
  .admin-rules-hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255,107,107,0.06);
    border: 1px solid rgba(255,107,107,0.2);
    border-radius: var(--radius);
    margin: 4px 0;
  }
  .admin-rules-hint code {
    font-size: 12px;
    color: var(--accent2);
  }