/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13,64,107,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,150,100,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.login-box {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.login-logo {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
  line-height: 1;
}

.login-logo-dot {
  color: var(--amber);
}

.login-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto var(--space-1);
}

.login-subtitle {
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
}

.login-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  position: relative;
  box-shadow: var(--neo-shadow);
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.login-footer {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  box-shadow: var(--neo-shadow);
  transition: box-shadow 0.5s cubic-bezier(.2,.7,.2,1), transform 0.5s cubic-bezier(.2,.7,.2,1);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--hairline);
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  transition: background var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 28px var(--neo-dark), -12px -12px 28px var(--neo-light);
}

.stat-card:hover::after   { background: var(--accent); }
.stat-card.warning:hover::after { background: var(--warning); }
.stat-card.success:hover::after { background: var(--success); }

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.success .stat-value { color: var(--success); }

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar .stat-card:last-child { grid-column: span 2; }
}

/* ============================================
   DASHBOARD HEADER
   ============================================ */
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  gap: var(--space-4);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--hairline);
}

.dashboard-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (max-width: 640px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.project-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  cursor: pointer;
  box-shadow: var(--neo-shadow);
  transition: box-shadow 0.5s cubic-bezier(.2,.7,.2,1), transform 0.5s cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
  display: block;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 14px 14px 32px var(--neo-dark), -14px -14px 32px var(--neo-light);
  color: var(--text);
}

.project-card:hover::before { transform: scaleY(1); }

.project-card.warning-inactive::before { background: var(--warning); }

.project-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-1);
}

.project-card-company {
  font-size: var(--text-sm);
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
}

.project-card-activity {
  font-size: var(--text-xs);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.project-card-activity.warning { color: var(--warning); }
.warning-inactive { opacity: 0.85; }

/* ============================================
   ADMIN NAV
   ============================================ */
.admin-nav-items {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: all var(--transition);
  text-decoration: none;
}

.admin-nav-link:hover {
  color: var(--text);
  background: rgba(13,64,107,0.06);
  box-shadow: var(--neo-btn);
}

.admin-nav-link.active {
  color: var(--accent);
  background: rgba(13,64,107,0.08);
  box-shadow: var(--neo-inset);
}

/* ============================================
   PROJECT HEADER
   ============================================ */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--hairline);
}

.project-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.project-header-meta { flex: 1; }

.project-header-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.project-header-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.quick-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

/* ============================================
   CLIENT LINK BOX
   ============================================ */
.client-link-box {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  box-shadow: var(--neo-inset);
}

.client-link-url {
  flex: 1;
  font-size: var(--text-xs);
  font-family: monospace;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   ADMIN PAGES
   ============================================ */
.admin-pages {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.admin-page-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--neo-shadow);
}

.admin-page-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.admin-page-header:hover {
  background: rgba(13,64,107,0.04);
}

.admin-page-title {
  flex: 1;
  font-weight: 600;
  font-size: var(--text-base);
  font-family: var(--font-display);
  color: var(--text);
}

.admin-page-toggle {
  color: var(--text-dim);
  transition: transform var(--transition);
  font-size: 14px;
  flex-shrink: 0;
}

.admin-page-item.expanded .admin-page-toggle {
  transform: rotate(180deg);
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.admin-page-header:hover .admin-page-actions {
  opacity: 1;
}

.admin-page-body {
  display: none;
  border-top: 1px solid var(--hairline);
}

.admin-page-item.expanded .admin-page-body {
  display: block;
}

.admin-page-add-module {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--hairline);
  background: rgba(13,64,107,0.02);
}

/* ============================================
   ADMIN MODULES
   ============================================ */

/* Contenedor de módulos con padding para que las cards respiren */
.admin-page-body > .admin-module-item:first-child {
  margin-top: var(--space-3);
}

.admin-module-item {
  margin: 0 var(--space-4) var(--space-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.admin-module-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-module-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
  border-bottom: 1px solid transparent;
}

.admin-module-item.expanded .admin-module-header {
  border-bottom-color: var(--hairline);
}

.admin-module-header:hover {
  background: rgba(13,64,107,0.03);
}

.admin-module-toggle {
  color: var(--text-dim);
  font-size: 12px;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-2);
}
.admin-module-item.expanded .admin-module-toggle { transform: rotate(180deg); }

.admin-module-body { display: none; }
.admin-module-item.expanded .admin-module-body { display: block; }

.admin-module-type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(13,64,107,0.07);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.admin-module-name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.admin-module-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.admin-module-header:hover .admin-module-actions {
  opacity: 1;
}

/* Upload zone */
.admin-upload-zone {
  border: 2px dashed var(--hairline);
  border-radius: var(--r-md);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(13,64,107,0.02);
}
.admin-upload-zone:hover, .admin-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(13,64,107,0.05);
}
.admin-upload-zone.has-file { border-style: solid; border-color: var(--success); padding: var(--space-3); }
.admin-upload-preview-empty { pointer-events: none; }
.admin-upload-icon { font-size: 28px; color: var(--text-dim); margin-bottom: var(--space-2); }
.upload-divider { text-align: center; color: var(--text-dim); font-size: var(--text-xs); margin: var(--space-4) 0; letter-spacing: 0.1em; }
.upload-current { margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); background: rgba(13,64,107,0.04); border-radius: var(--r-sm); }

/* ============================================
   ADMIN SLOTS — agrupados por campo + idioma
   ============================================ */
.admin-slots {
  display: flex;
  flex-direction: column;
}

/* Un grupo = un campo (con sus traducciones) */
.admin-slot-group {
  border-bottom: 1px solid var(--hairline);
}
.admin-slot-group:last-child { border-bottom: none; }

.admin-slot-group-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(13,64,107,0.03);
}

.admin-slot-field-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.admin-slot-field-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(13,64,107,0.07);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

/* Pestañas de idioma */
.admin-slot-lang-tabs {
  margin-left: auto;
  display: flex;
  gap: var(--space-1);
}

.admin-slot-lang-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all var(--transition);
}
.admin-slot-lang-tab:hover {
  color: var(--text);
  background: rgba(13,64,107,0.06);
}
.admin-slot-lang-tab.active {
  color: var(--accent);
  background: rgba(13,64,107,0.10);
  border-color: rgba(13,64,107,0.20);
}

/* Fila de contenido por idioma */
.admin-slot-lang-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  min-height: 52px;
}
.admin-slot-lang-row.hidden { display: none; }

.admin-slot-status {
  flex-shrink: 0;
}

.admin-slot-value-preview {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-soft);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-slot-value-preview span {
  color: var(--text);
}
.admin-slot-value-preview .text-muted {
  font-style: italic;
}

.admin-slot-rejection {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--error);
  white-space: normal;
}

.admin-slot-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Mantener compatibilidad con slot-row antiguo */
.admin-slot-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
}

.admin-slot-label {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-soft);
  min-width: 0;
}

.admin-slot-value {
  flex: 2;
  font-size: var(--text-sm);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rejection-note-area {
  margin-top: var(--space-4);
}

/* ============================================
   NEW PROJECT FORM
   ============================================ */
.new-project-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.new-project-form .full-width {
  grid-column: 1 / -1;
}

.form-section {
  margin-bottom: var(--space-8);
}

.form-section-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--hairline);
}

.lang-multi-select {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.lang-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-soft);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--neo-btn);
  border: none;
}

.lang-chip:hover {
  color: var(--accent);
  box-shadow: var(--neo-shadow);
}

.lang-chip.selected {
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 10px rgba(13,64,107,0.3), -2px -2px 6px var(--neo-light);
}

@media (max-width: 768px) {
  .new-project-form { grid-template-columns: 1fr; }
  .new-project-form .full-width { grid-column: 1; }
  .project-header { flex-direction: column; }
  .project-header-left { flex-wrap: wrap; }
}

/* ============================================
   STATUS SELECT DROPDOWN
   ============================================ */
.status-select {
  appearance: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px 20px 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2351667a'/%3E%3C/svg%3E") no-repeat right 6px center;
}
.status-select.status-empty { color: var(--text-dim); border-color: var(--hairline); }
.status-select.status-filled { color: #c89664; border-color: #c89664; background-color: rgba(200,150,100,0.08); }
.status-select.status-approved { color: var(--success); border-color: var(--success); background-color: rgba(0,160,100,0.08); }
.status-select.status-rejected { color: var(--danger); border-color: var(--danger); background-color: rgba(220,50,50,0.08); }

/* ============================================
   MODULE NOTES
   ============================================ */
.module-notes-panel {
  border-top: 1px solid var(--hairline);
  background: rgba(13,64,107,0.02);
  padding: var(--space-4) var(--space-5);
}
.module-notes-panel.hidden { display: none; }
.module-notes-list { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.module-note {
  position: relative;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  min-width: 160px;
  max-width: 240px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.08);
  font-size: var(--text-sm);
}
.module-note.note-yellow { background: #fef3c7; }
.module-note.note-blue { background: #dbeafe; }
.module-note.note-green { background: #dcfce7; }
.module-note.note-pink { background: #fce7f3; }
.note-content { outline: none; cursor: text; min-height: 40px; }
.note-delete-btn {
  position: absolute; top: 6px; right: 6px;
  background: none; border: none; cursor: pointer;
  color: rgba(0,0,0,0.3); font-size: 10px; padding: 2px 4px;
  opacity: 0; transition: opacity 0.2s;
}
.module-note:hover .note-delete-btn { opacity: 1; }
.module-notes-add { display: flex; align-items: flex-start; gap: var(--space-3); }
.notes-color-picker { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.note-color-btn {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
  transition: all 0.2s;
}
.note-color-btn.active { border-color: var(--accent); transform: scale(1.2); }
.notes-textarea { flex: 1; min-height: 60px; resize: none; }
.notes-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--accent); color: white; border-radius: var(--r-pill);
  font-size: 9px; font-weight: 700; margin-left: 2px;
}

/* ============================================
   DRAG & DROP HANDLES
   ============================================ */
.drag-handle {
  cursor: grab; color: var(--text-dim); font-size: 14px; padding: 0 4px;
  opacity: 0; transition: opacity 0.2s; user-select: none; flex-shrink: 0;
}
.admin-page-header:hover .drag-handle { opacity: 1; }
.admin-module-header .drag-handle { opacity: 0.4; }
.admin-module-header:hover .drag-handle { opacity: 0.8; }
.admin-page-item.dragging, .admin-module-item.dragging { opacity: 0.4; }
.admin-module-item.dragging {
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.admin-page-item.drag-over {
  border-top: 2px solid var(--accent);
}
.admin-module-item.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

/* ============================================
   PROJECT TABS
   ============================================ */
.project-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: var(--space-6);
  margin-top: var(--space-4);
}
.project-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}
.project-tab:hover { color: var(--text); }
.project-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.project-tab-panel { display: block; }
.project-tab-panel.hidden { display: none; }

/* ============================================
   PHASES TIMELINE
   ============================================ */
.phases-timeline { display: flex; flex-direction: column; gap: var(--space-3); }
.phase-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--neo-shadow);
  border-left: 4px solid var(--hairline);
  transition: all var(--transition);
}
.phase-item.phase-in_progress { border-left-color: var(--accent); }
.phase-item.phase-completed { border-left-color: var(--success); opacity: 0.85; }
.phase-item.phase-blocked { border-left-color: var(--danger); }
.phase-number {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,64,107,0.08);
  border-radius: 50%;
  font-size: var(--text-sm); font-weight: 700; color: var(--accent);
}
.phase-body { flex: 1; min-width: 0; }
.phase-header {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-3); margin-bottom: var(--space-1);
}
.phase-info { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.phase-name { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.phase-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.phase-desc { font-size: var(--text-xs); color: var(--text-soft); margin: 0; line-height: 1.5; }
.phase-dates {
  display: flex; gap: var(--space-4); margin-top: var(--space-2);
  font-size: var(--text-xs); color: var(--text-dim);
}
.phase-admin-note {
  margin-top: var(--space-2); padding: var(--space-2) var(--space-3);
  background: rgba(200,150,100,0.1); border-radius: var(--r-sm);
  font-size: var(--text-xs); color: var(--text-soft); font-style: italic;
}

/* ============================================
   PAYMENTS
   ============================================ */
.section-header { display: flex; align-items: center; justify-content: space-between; }
.payments-totals { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.payment-total-item { font-size: var(--text-sm); color: var(--text-soft); }
.payment-total-item.success strong { color: var(--success); }
.payment-total-item.warning strong { color: var(--amber); }
.payments-list { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-item {
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--neo-shadow);
}
.payment-main {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: var(--space-2);
}
.payment-desc { font-weight: 600; font-size: var(--text-sm); color: var(--text); }
.payment-amount {
  font-size: var(--text-lg); font-weight: 700; color: var(--accent);
  font-family: var(--font-display);
}
.payment-meta {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; margin-bottom: var(--space-2);
}
.payment-notes {
  font-size: var(--text-xs); color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.payment-actions { display: flex; gap: var(--space-2); }

/* ============================================
   ACCESS CREDENTIALS
   ============================================ */
.access-section { display: flex; flex-direction: column; gap: var(--space-5); }
.access-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--neo-shadow);
  padding: var(--space-6);
}
.access-card-header { margin-bottom: var(--space-5); }
.access-card-header h4 {
  font-size: var(--text-base); font-weight: 700; color: var(--text);
  margin: 0 0 4px; font-family: var(--font-display);
}
.access-field-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.access-field-row .form-input { flex: 1; min-width: 200px; }
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}
.access-group h5 {
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin: 0 0 var(--space-3);
}
