/* ====================================================================
   JENTILAK APP TRAINING - DESIGN SYSTEM & PROPRIETARY STYLESHEET
   ==================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;900&display=swap');

:root {
  --bg-main: #0c0c0a;
  --bg-sidebar: #12110e;
  --bg-header: #12110e;
  --bg-card: #181714;
  --bg-card-hover: #211f1b;
  --bg-card-alt: #1e1c18;
  --bg-input: #141310;
  --bg-pill: #24221c;
  --bg-pill-active: #cca043;
  
  --border-subtle: #26231c;
  --border-medium: #363228;
  --border-gold: #cca043;
  --border-gold-soft: rgba(204, 160, 67, 0.25);
  
  --gold-primary: #cca043;
  --gold-hover: #dfb357;
  --gold-dark: #9e7626;
  --gold-light: #f3d690;
  --gold-muted: rgba(204, 160, 67, 0.15);
  --gold-badge-bg: rgba(204, 160, 67, 0.12);
  
  --text-primary: #f5f2ea;
  --text-secondary: #a39c8f;
  --text-muted: #736d62;
  --text-gold: #cca043;
  --text-inverse: #0e0d0a;
  
  --success: #38a169;
  --success-bg: rgba(56, 161, 105, 0.15);
  --warning: #dd6b20;
  --warning-bg: rgba(221, 107, 32, 0.15);
  --danger: #e53e3e;
  --danger-bg: rgba(229, 62, 62, 0.15);
  --info: #3182ce;
  --info-bg: rgba(49, 130, 206, 0.15);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Cinzel', serif;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.75);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Athlete Banner Overlay */
.athlete-impersonation-banner {
  background: linear-gradient(90deg, #996e19, #c5922e);
  color: #0e0d0a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.athlete-impersonation-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.athlete-impersonation-banner .exit-btn {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.4);
  color: #0e0d0a;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.athlete-impersonation-banner .exit-btn:hover {
  background: rgba(0,0,0,0.15);
}

/* Layout App Container */
.app-container {
  display: flex;
  height: calc(100vh - 4px);
  width: 100vw;
  overflow: hidden;
}

body.has-banner .app-container {
  height: calc(100vh - 33px);
}

/* Global Top Navigation Header */
.top-nav {
  height: 64px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
}

body.has-banner .top-nav {
  top: 31px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(204, 160, 67, 0.65));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-section:hover .brand-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(204, 160, 67, 0.95));
}

.brand-logo-icon {
  width: 26px;
  height: 26px;
  color: var(--gold-primary);
}

.brand-title {
  font-family: var(--font-family);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--text-primary);
  font-weight: 400;
}

/* Segmented Role Switcher */
.role-toggle-container {
  display: flex;
  background: #1e1c17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.role-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-pill-btn.active {
  background: var(--gold-primary);
  color: var(--text-inverse);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* User Controls in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-bell-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.notif-bell-btn:hover {
  color: var(--gold-primary);
  background: rgba(255,255,255,0.05);
}

.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background-color: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-header);
}

.profile-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.profile-dropdown-btn:hover {
  background: rgba(255,255,255,0.05);
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #25221b;
  border: 1.5px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
}

/* Sidebar Navigation */
.app-body {
  display: flex;
  width: 100vw;
  margin-top: 64px;
  height: calc(100vh - 64px);
}

body.has-banner .app-body {
  margin-top: 95px;
  height: calc(100vh - 95px);
}

.sidebar {
  width: 210px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 16px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.sidebar-user-card .avatar-circle {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: rgba(204, 160, 67, 0.4);
  text-underline-offset: 3px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.nav-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-item-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-item-btn:hover {
  background-color: #1b1915;
  color: var(--text-primary);
}

.nav-item-btn:hover svg {
  color: var(--gold-primary);
}

.nav-item-btn.active {
  background-color: #26221a;
  color: var(--gold-primary);
}

.nav-item-btn.active svg {
  color: var(--gold-primary);
}

/* Main Viewport Workspace */
.main-viewport {
  flex: 1;
  background-color: var(--bg-main);
  overflow-y: auto;
  padding: 24px 32px 60px 32px;
}

.content-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

/* View Headings & Breadcrumbs */
.view-pretitle {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.view-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.view-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* General UI Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-gold {
  background-color: var(--gold-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(204, 160, 67, 0.2);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-gold:active {
  background-color: var(--gold-dark);
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--gold-dark);
}

.btn-outline-gold {
  background-color: transparent;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background-color: var(--gold-muted);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.btn-icon:hover {
  color: var(--gold-primary);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(229, 62, 62, 0.4);
  color: var(--danger);
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-outline:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* Cards & Surfaces */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section Header Bar */
.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-green {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(56, 161, 105, 0.3);
}

.badge-gold {
  background-color: var(--gold-badge-bg);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold-soft);
}

.badge-gray {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.badge-red {
  background-color: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(229, 62, 62, 0.3);
}

/* Alerts */
.alert-banner {
  background-color: rgba(204, 160, 67, 0.12);
  border: 1px solid rgba(204, 160, 67, 0.3);
  color: var(--gold-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(204, 160, 67, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* Tabs & Filter Bars */
.filter-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background-color: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab-btn:hover {
  border-color: var(--gold-dark);
  color: var(--text-primary);
}

.filter-tab-btn.active {
  background-color: var(--gold-primary);
  color: var(--text-inverse);
  border-color: var(--gold-primary);
}

/* Search Bar Component */
.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
}

.search-wrapper input {
  padding-left: 36px;
}

/* Switch Controls */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2b2820;
  transition: .25s;
  border-radius: 24px;
  border: 1px solid var(--border-medium);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .25s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--gold-primary);
  border-color: var(--gold-primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #0e0d0a;
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.jtk-table,
.app-table,
.ecn-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.78rem;
}

.jtk-table th,
.app-table th,
.ecn-table th {
  background-color: #151410;
  color: var(--gold-primary);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.jtk-table td,
.app-table td,
.ecn-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1f1d18;
  color: var(--text-primary);
  vertical-align: middle;
}

.jtk-table tr:last-child td,
.app-table tr:last-child td,
.ecn-table tr:last-child td {
  border-bottom: none;
}

.jtk-table tr:hover td,
.app-table tr:hover td,
.ecn-table tr:hover td {
  background-color: var(--bg-card-hover);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: #191814;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: transform 0.2s;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--gold-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background-color: #151410;
}

/* ============================================================
   SPECIFIC VIEW STYLES
   ============================================================ */

/* 1. TRAINER DASHBOARD */
.trainer-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.quick-action-card svg {
  color: var(--gold-primary);
  width: 22px;
  height: 22px;
}

.quick-action-card span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.onboarding-checklist {
  background-color: #1b1915;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.checklist-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #23201a;
  cursor: pointer;
}

.checklist-step:last-child {
  border-bottom: none;
}

.step-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-circle-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-circle-book {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #2e2920;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.step-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
}

.step-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.attention-card-empty {
  background-color: #191713;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.attention-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(56, 161, 105, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* 2. MI NEGOCIO */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chart-card-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-item-card {
  background-color: #171511;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-name {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.sub-duration {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

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

.sub-price-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.sub-price-regular {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

/* 3. CLIENTES */
.client-row-item {
  background-color: #171511;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}

.client-row-item:hover {
  background-color: #201e19;
  border-color: var(--border-medium);
}

.client-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.client-avatar-large {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2b2820;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* 4. ATHLETE TODAY WORKOUT */
.hero-entreno-banner {
  background: linear-gradient(135deg, #242017 0%, #171612 100%);
  border: 1px solid #363022;
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-entreno-tag {
  background-color: var(--gold-primary);
  color: #0e0d0a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.hero-entreno-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.hero-entreno-focus {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  max-width: 80%;
  line-height: 1.35;
}

.entreno-summary-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-box {
  background: #171511;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.summary-box-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.summary-box-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.exercise-table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.exercise-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #201e18;
}

.exercise-row:last-child {
  border-bottom: none;
}

.exercise-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exercise-reps {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
}

/* 5. MI DIARIO */
.diary-group-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.diary-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diary-pill-opt {
  background-color: #211f1a;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s;
}

.diary-pill-opt:hover {
  background-color: #2b2821;
  color: #fff;
}

.diary-pill-opt.active {
  background-color: var(--gold-primary);
  color: #0e0d0a;
  border-color: var(--gold-primary);
  font-weight: 700;
}

/* 6. NUTRICIÓN */
.nutrition-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.nutri-stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.nutri-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.nutri-stat-val span {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.nutri-stat-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.macro-bar-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.macro-bar-track {
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  overflow: hidden;
  margin: 12px 0;
}

.macro-seg-protein {
  background-color: #cca043;
  color: #0e0d0a;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macro-seg-carbs {
  background-color: #b88628;
  color: #0e0d0a;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macro-seg-fats {
  background-color: #e2be6c;
  color: #0e0d0a;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.macro-legend {
  display: flex;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}

/* 7. AGENDA CALENDAR */
.calendar-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.calendar-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.cal-grid-week {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  max-height: 580px;
  overflow-y: auto;
}

.cal-time-col {
  border-right: 1px solid var(--border-subtle);
  background-color: #141310;
}

.cal-time-slot-label {
  height: 48px;
  border-bottom: 1px solid #1c1a15;
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day-col {
  border-right: 1px solid #1c1a15;
  position: relative;
}

.cal-day-col.today {
  background-color: rgba(204, 160, 67, 0.03);
}

.cal-day-col-header {
  position: sticky;
  top: 0;
  background-color: #171511;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.cal-day-col.today .cal-day-col-header {
  color: var(--gold-primary);
  background-color: #211d15;
}

.cal-cell {
  height: 48px;
  border-bottom: 1px solid #1c1a15;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}

.cal-cell:hover {
  background-color: rgba(204, 160, 67, 0.08);
}

.cal-event-block {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  background-color: #8c671b;
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  z-index: 5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 8. NOTIFICATIONS FEED */
.notif-group-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 20px 0 8px 0;
}

.notif-card-item {
  background-color: #171511;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  transition: all 0.15s;
}

.notif-card-item:hover {
  background-color: #201e18;
  border-color: var(--border-medium);
}

.notif-card-item.unread {
  border-left: 3px solid var(--gold-primary);
}

.notif-card-icon {
  color: var(--gold-primary);
  margin-top: 2px;
}

.notif-card-content {
  flex: 1;
}

.notif-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.notif-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.notif-card-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* 9. CHAT VIEW */
.chat-layout-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 130px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-sidebar-list {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-thread-list {
  overflow-y: auto;
  flex: 1;
}

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

.chat-thread-item:hover, .chat-thread-item.active {
  background-color: #24211a;
}

.chat-main-pane {
  display: flex;
  flex-direction: column;
  background-color: #12110e;
}

.chat-main-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #171511;
}

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

.chat-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.82rem;
  line-height: 1.4;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background-color: #8a6417;
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.incoming {
  align-self: flex-start;
  background-color: #211f1a;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-input-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background-color: #171511;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Interactive Canvas Chart Overlay */
.chart-container-relative {
  position: relative;
  width: 100%;
  height: 380px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .trainer-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .nutrition-hero-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .chat-layout-wrapper {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 64px;
    padding: 12px 6px;
  }
  .sidebar-user-name, .nav-item-btn span {
    display: none;
  }
  .nav-item-btn {
    justify-content: center;
    padding: 12px;
  }
  .main-viewport {
    padding: 16px 14px 40px 14px;
  }
  .trainer-quick-actions {
    grid-template-columns: 1fr;
  }
  .nutrition-hero-grid {
    grid-template-columns: 1fr;
  }
  .chat-layout-wrapper {
    grid-template-columns: 1fr;
  }
  .chat-sidebar-list {
    display: none;
  }
}

/* ========================================================== */
/* CLIENT HUB & PROGRESS SUITE STYLES                        */
/* ========================================================== */

.client-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.client-breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.client-back-link {
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
}

.client-back-link:hover {
  text-decoration: underline;
}

.client-title-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.unit-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.unit-pills {
  display: flex;
  background: #1e1c17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.unit-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.unit-pill.active {
  background: var(--gold-primary);
  color: #12110e;
}

/* Client Top Tabs */
.client-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.client-nav-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.client-nav-tab:hover {
  color: var(--text-primary);
  background: rgba(204, 160, 67, 0.06);
}

.client-nav-tab.active {
  background: rgba(204, 160, 67, 0.15);
  color: var(--gold-primary);
  font-weight: 700;
}

/* Progress Subtabs with Icons */
.progress-subtabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.subtab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #181714;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.subtab-btn svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.subtab-btn:hover {
  background: #211f1a;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.subtab-btn.active {
  background: #24221a;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 700;
}

.subtab-btn.active svg {
  color: var(--gold-primary);
}

/* Potencial Genético Comparison Grid */
.potential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .potential-grid {
    grid-template-columns: 1fr;
  }
}

.potential-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.potential-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.potential-table tr:last-child {
  border-bottom: none;
}

.potential-table td {
  padding: 10px 14px;
}

.potential-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
}

.potential-table td:last-child {
  text-align: right;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Activity Mini Charts Triad */
.activity-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

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

.activity-chart-card {
  background: #181714;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.activity-chart-header {
  text-align: center;
  margin-bottom: 12px;
}

.activity-chart-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.activity-period-switch {
  display: inline-flex;
  background: #1e1c17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  margin-bottom: 8px;
}

.activity-period-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.activity-period-btn.active {
  background: var(--gold-primary);
  color: #12110e;
}

.activity-week-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.pager-arrow-btn {
  background: #24221c;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
}

.pager-arrow-btn:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

/* ========================================================== */
/* BIOMECHANICS DRAWING & VIDEO ANNOTATION MODAL             */
/* ========================================================== */

.biomechanics-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.biomechanics-studio-container {
  background: #12110e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
}

.biomechanics-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: #181714;
}

.biomechanics-video-stage {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 480px;
  max-height: 580px;
}

.biomechanics-video-element {
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.biomechanics-drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
  pointer-events: auto;
}

/* Floating Vertical Tool Palette */
.video-tools-palette {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(24, 23, 20, 0.92);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.video-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #24221c;
  color: var(--text-primary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.video-tool-btn:hover {
  background: #363228;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.video-tool-btn.active {
  background: var(--gold-primary);
  color: #12110e;
  border-color: var(--gold-primary);
  font-weight: bold;
}

.video-tool-btn.color-picker {
  background: #ff2a2a;
}

.aspect-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-align: center;
  padding: 2px 0;
}

/* Video Playback Scrubber Bar */
.video-scrubber-bar {
  background: #181714;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
}

.scrubber-slider {
  flex: 1;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.video-time-display {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.video-info-strip {
  background: #141310;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.video-data-row {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: #1c1a16;
  flex-wrap: wrap;
}

.video-data-row span strong {
  color: var(--text-primary);
}

/* ========================================================== */
/* BULK & CUT WIZARD MODAL STYLES                            */
/* ========================================================== */

.wizard-modal-box {
  max-width: 820px;
  width: 100%;
  background: #181714;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px 0;
  gap: 12px;
}

.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.wizard-step-node.active {
  color: var(--gold-primary);
  font-weight: 700;
}

.step-num-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #24221c;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.wizard-step-node.active .step-num-circle {
  background: var(--gold-primary);
  color: #12110e;
  border-color: var(--gold-primary);
  font-weight: 800;
}

.step-connector-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--border-medium);
}

.objective-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .objective-cards-grid {
    grid-template-columns: 1fr;
  }
}

.objective-card-btn {
  background: #211f1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.objective-card-btn:hover {
  border-color: var(--gold-primary);
  background: #26231c;
}

.objective-card-btn.selected {
  border-color: var(--gold-primary);
  background: rgba(204, 160, 67, 0.12);
}

.objective-card-icon {
  font-size: 1.8rem;
  color: var(--gold-primary);
}

.objective-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.objective-card-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.calculated-params-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
  background: #141310;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

@media (max-width: 900px) {
  .calculated-params-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

.param-metric-box {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.param-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.param-metric-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bulk-calendar-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 12px;
}

.bulk-calendar-preview-table th {
  background: #8a6417;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}

.bulk-calendar-preview-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.bulk-month-header {
  background: #1e1c17;
  color: var(--gold-primary);
  font-weight: 800;
  padding: 8px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================
   AUTH GATE SCREEN & RBAC SECURITY
   ========================================================== */
.auth-gate-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1e1910 0%, #0e0d0a 70%, #080705 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.auth-gate-card {
  width: 100%;
  max-width: 440px;
  background: #141310;
  border: 1px solid rgba(204, 160, 67, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(204, 160, 67, 0.15);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(16px);
  animation: fadeIn 0.35s ease-out;
}

.auth-gate-logo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(204, 160, 67, 0.75));
  margin-bottom: 16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.auth-gate-logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 32px rgba(204, 160, 67, 0.95));
}

.auth-gate-title {
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.auth-gate-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-gate-tabs {
  display: flex;
  background: #1d1b16;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.auth-gate-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-gate-tab-btn.active {
  background: var(--gold-primary);
  color: #0e0d0a;
  box-shadow: 0 2px 8px rgba(204, 160, 67, 0.35);
}

.auth-gate-form {
  text-align: left;
}

.auth-gate-form .form-group {
  margin-bottom: 14px;
}

.auth-gate-btn {
  width: 100%;
  padding: 11px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 10px;
  border-radius: var(--radius-md);
}

.auth-gate-demo-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.auth-gate-demo-link:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}

