    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      min-height: 100vh;
    }
    .header {
      display: flex; justify-content: space-between; align-items: center;
      padding: 0.75rem 1.5rem; background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      position: sticky; top: 0; z-index: 100; flex-wrap: wrap; gap: 0.5rem;
    }
    .logo { font-size: 1.5rem; font-weight: 700; color: #1e40af; white-space: nowrap; }
    .logo span { color: #059669; }
    #main-nav { display: none; gap: 0.25rem; flex-wrap: wrap; align-items: center; }
    #main-nav.visible { display: flex; }
    .hamburger {
      display: none; background: none; border: 1px solid #d1d5db; border-radius: 6px;
      padding: 0.35rem 0.5rem; cursor: pointer; font-size: 1.2rem; color: #374151;
    }
    .hamburger:hover { background: #f3f4f6; }
    @media (max-width: 768px) {
      .header { padding: 0.6rem 1rem; }
      .hamburger { display: block; }
      #main-nav.visible {
        display: flex; width: 100%; order: 10;
        flex-direction: column; align-items: stretch; gap: 0.25rem;
        padding-top: 0.5rem; border-top: 1px solid #e5e7eb; margin-top: 0.25rem;
      }
      .nav-btn { text-align: left; padding: 0.6rem 0.75rem; font-size: 0.9rem; }
    }
    .btn {
      padding: 0.5rem 1.5rem; border-radius: 0.5rem; border: none;
      font-weight: 600; cursor: pointer; transition: all 0.2s; font-size: 0.9rem;
    }
    .btn-primary { background: #2563eb; color: white; }
    .btn-primary:hover { background: #1d4ed8; }
    .btn-secondary { background: #059669; color: white; }
    .btn-secondary:hover { background: #047857; }
    .btn-outline { background: transparent; border: 2px solid #2563eb; color: #2563eb; }
    .btn-danger { background: #dc2626; color: white; }
    .btn-danger:hover { background: #b91c1c; }
    .btn:disabled { opacity: 0.6; cursor: not-allowed; }
    
    /* Auth */
    .auth-container {
      display: flex; align-items: center; justify-content: center;
      min-height: calc(100vh - 70px); padding: 2rem;
    }
    .auth-card {
      background: white; border-radius: 1rem; padding: 2.5rem;
      box-shadow: 0 10px 40px rgba(0,0,0,0.1); width: 100%; max-width: 420px;
    }
    .auth-card h2 { text-align: center; margin-bottom: 0.5rem; color: #1f2937; font-size: 1.75rem; }
    .auth-card .subtitle { text-align: center; color: #6b7280; margin-bottom: 2rem; }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; margin-bottom: 0.5rem; color: #374151; font-weight: 500; }
    .form-group input {
      width: 100%; padding: 0.875rem; border: 1px solid #d1d5db;
      border-radius: 0.5rem; font-size: 1rem; transition: all 0.2s;
    }
    .form-group input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
    .error-msg { color: #dc2626; font-size: 0.875rem; margin-top: 1rem; padding: 0.75rem; background: #fef2f2; border-radius: 0.5rem; display: none; }
    .success-msg { color: #059669; font-size: 0.875rem; margin-top: 1rem; padding: 0.75rem; background: #f0fdf4; border-radius: 0.5rem; display: none; }
    .auth-card .btn { width: 100%; padding: 0.875rem; font-size: 1rem; margin-top: 0.5rem; }
    .auth-switch { text-align: center; margin-top: 1.5rem; color: #6b7280; }
    .auth-switch a { color: #2563eb; text-decoration: none; font-weight: 600; }
    .auth-switch a:hover { text-decoration: underline; }
    .tabs { display: flex; margin-bottom: 2rem; border-bottom: 2px solid #e5e7eb; }
    .tab { flex: 1; padding: 1rem; text-align: center; cursor: pointer; color: #6b7280; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
    .tab.active { color: #2563eb; border-bottom-color: #2563eb; }
    
    /* Dashboard */
    .dashboard { display: none; padding: 2rem; max-width: 1200px; margin: 0 auto; }
    .dashboard.active { display: block; }
    .welcome { font-size: 1.75rem; color: #1f2937; margin-bottom: 0.5rem; }
    .welcome-sub { color: #6b7280; margin-bottom: 2rem; }
    .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
    .stat-card {
      background: white; border-radius: 1rem; padding: 1.5rem;
      box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-left: 4px solid #2563eb;
    }
    .stat-card.green { border-left-color: #059669; }
    .stat-card.orange { border-left-color: #f59e0b; }
    .stat-card.red { border-left-color: #dc2626; }
    .stat-card h3 { color: #6b7280; font-size: 0.875rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .stat-card .value { font-size: 2rem; font-weight: 700; color: #1f2937; }
    .info-card { background: white; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 1.5rem; }
    .info-card h3 { color: #1f2937; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
    .constraint-tag { display: inline-block; background: #fef3c7; color: #92400e; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; margin: 0.25rem; }
    .equipment-tag { display: inline-block; background: #dbeafe; color: #1e40af; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.875rem; margin: 0.25rem; }
    
    .hidden { display: none !important; }
    .section { display: none; }
    .section.active { display: block; }

    /* Subscription Banner */
    .sub-banner {
      display: none; background: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
      border-radius: 1rem; padding: 1.5rem 2rem; margin-bottom: 1.5rem; color: white;
      box-shadow: 0 4px 20px rgba(37,99,235,0.3); position: relative; overflow: hidden;
    }
    .sub-banner.visible { display: block; }
    .sub-banner h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .sub-banner p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 1rem; }
    .sub-banner .sub-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .sub-banner .btn-sub {
      padding: 0.6rem 1.5rem; border-radius: 0.5rem; border: none; font-weight: 600;
      cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
    }
    .sub-banner .btn-sub-primary { background: #fbbf24; color: #1e3a5f; }
    .sub-banner .btn-sub-primary:hover { background: #f59e0b; }
    .sub-banner .btn-sub-outline { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: white; }
    .sub-banner .btn-sub-outline:hover { border-color: white; }
    .sub-badge-trial {
      display: inline-block; background: #3b82f6; color: white; padding: 0.2rem 0.6rem;
      border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem; vertical-align: middle;
    }
    .sub-badge-expired {
      display: inline-block; background: #dc2626; color: white; padding: 0.2rem 0.6rem;
      border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem; vertical-align: middle;
    }
    .sub-badge-active {
      display: inline-block; background: #059669; color: white; padding: 0.2rem 0.6rem;
      border-radius: 9999px; font-size: 0.75rem; font-weight: 600; margin-left: 0.5rem; vertical-align: middle;
    }

    /* Paywall overlay */
    .paywall-overlay {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7);
      z-index: 9999; align-items: center; justify-content: center;
    }
    .paywall-overlay.show { display: flex; }
    .paywall-card {
      background: white; border-radius: 1.5rem; padding: 2.5rem; width: 600px;
      max-width: 90vw; max-height: 90vh; overflow-y: auto; text-align: center;
    }
    .paywall-card h2 { font-size: 1.5rem; color: #1f2937; margin-bottom: 0.5rem; }
    .paywall-card .paywall-sub { color: #6b7280; margin-bottom: 2rem; }
    .paywall-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
    .paywall-plan {
      border: 2px solid #e5e7eb; border-radius: 1rem; padding: 1.5rem; cursor: pointer;
      transition: all 0.2s; position: relative;
    }
    .paywall-plan:hover { border-color: #2563eb; }
    .paywall-plan.selected { border-color: #2563eb; background: #eff6ff; }
    .paywall-plan.popular::before {
      content: 'POPULAIRE'; position: absolute; top: -10px; right: 12px;
      background: #f59e0b; color: #000; font-size: 0.65rem; font-weight: 700;
      padding: 2px 10px; border-radius: 10px;
    }
    .paywall-plan h4 { font-size: 1rem; color: #1f2937; margin-bottom: 0.25rem; }
    .paywall-plan .price { font-size: 1.75rem; font-weight: 700; color: #2563eb; }
    .paywall-plan .price span { font-size: 0.875rem; font-weight: 400; color: #6b7280; }
    .paywall-plan .savings { color: #059669; font-size: 0.8rem; font-weight: 600; margin-top: 0.25rem; }
    .paywall-features { text-align: left; margin-bottom: 1.5rem; }
    .paywall-features li { padding: 0.3rem 0; color: #374151; font-size: 0.9rem; list-style: none; }
    .paywall-features li::before { content: '✓ '; color: #059669; font-weight: 700; }
    @media (max-width: 500px) { .paywall-plans { grid-template-columns: 1fr; } }
    
    /* Navigation */
    .nav-btn {
      padding: 0.4rem 0.75rem; border-radius: 0.5rem; border: none;
      font-weight: 500; cursor: pointer; font-size: 0.8rem;
      background: transparent; color: #6b7280; transition: all 0.2s;
    }
    .nav-btn:hover { background: #f3f4f6; color: #1f2937; }
    .nav-btn.active { background: #2563eb; color: white; }
    
    /* Equipment management */
    .equip-item {
      display: inline-flex; align-items: center; gap: 0.35rem;
      background: #dbeafe; color: #1e40af; padding: 0.3rem 0.6rem 0.3rem 0.75rem;
      border-radius: 9999px; font-size: 0.875rem; margin: 0.25rem;
    }
    .equip-item .equip-remove {
      background: none; border: none; cursor: pointer; color: #dc2626;
      font-size: 1rem; line-height: 1; padding: 0 0.15rem; border-radius: 50%;
    }
    .equip-item .equip-remove:hover { background: #fee2e2; }
    .equip-toggle-off {
      display: inline-flex; align-items: center; gap: 0.35rem;
      background: #f3f4f6; color: #9ca3af; padding: 0.3rem 0.6rem 0.3rem 0.75rem;
      border-radius: 9999px; font-size: 0.875rem; margin: 0.25rem; text-decoration: line-through;
    }
    .page-section { padding: 2rem; max-width: 1200px; margin: 0 auto; }
    
    /* Modal */
    .modal {
      display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center;
    }
    .modal.active { display: flex; }
    .modal-content {
      background: white; border-radius: 1rem; padding: 2rem; width: 90%; max-width: 450px;
      max-height: 90vh; overflow-y: auto;
    }
    .modal-content h2 { margin-bottom: 1.5rem; color: #1f2937; }
    .modal-content select {
      width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem;
    }
    .pain-checkbox {
      display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem;
      background: #f3f4f6; border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem;
    }
    .pain-checkbox:has(input:checked) { background: #fef3c7; color: #92400e; }
    
    /* Session card */
    .session-card {
      background: #f9fafb; border-radius: 0.75rem; padding: 1rem; margin-bottom: 0.75rem;
      border-left: 4px solid #2563eb;
    }
    .session-card.completed { border-left-color: #059669; opacity: 0.7; }
    .session-card h4 { color: #1f2937; margin-bottom: 0.25rem; }
    .session-card p { color: #6b7280; font-size: 0.875rem; }
    .session-card:hover { background: #f3f4f6; cursor: pointer; }
    
    /* Exercise list */
    .exercise-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 0.75rem; background: #f9fafb; border-radius: 0.5rem; margin-bottom: 0.5rem;
    }
    .exercise-item .name { font-weight: 500; color: #1f2937; }
    .exercise-item .details { color: #6b7280; font-size: 0.875rem; }
    .exercise-item .muscle { 
      background: #dbeafe; color: #1e40af; padding: 0.125rem 0.5rem; 
      border-radius: 9999px; font-size: 0.75rem; 
    }
    
    /* Progress bar */
    .progress-bar { height: 8px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
    .progress-bar .fill { height: 100%; background: #059669; transition: width 0.3s; }
    
    /* Chart tabs */
    .chart-tab {
      padding: 0.4rem 0.8rem; border: 1px solid #d1d5db; border-radius: 6px;
      background: white; cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
    }
    .chart-tab:hover { background: #f3f4f6; }
    .chart-tab.active { background: #2563eb; color: white; border-color: #2563eb; }
    
    /* History item */
    .history-item {
      display: flex; justify-content: space-between; align-items: center;
      padding: 0.75rem; border-bottom: 1px solid #e5e7eb;
    }
    .history-item:last-child { border-bottom: none; }
    .history-item .date { font-size: 0.8rem; color: #6b7280; }
    .history-item .name { font-weight: 500; }
    .history-item .status {
      padding: 0.2rem 0.5rem; border-radius: 9999px; font-size: 0.75rem;
    }
    .history-item .status.completed { background: #dcfce7; color: #166534; }
    .history-item .status.skipped { background: #fef3c7; color: #92400e; }
    .history-item .status.planned { background: #dbeafe; color: #1e40af; }
