/**
 * PISCINA APP - ESTILOS
 * CSS puro sin frameworks
 */

/* ========================================================
   RESET Y VARIABLES
   ======================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --error: #ef4444;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  min-height: 100vh;
}

/* ========================================================
   LAYOUT
   ======================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================================
   HEADER
   ======================================================== */

.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ========================================================
   CARDS
   ======================================================== */

.card {
  background: var(--surface);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* ========================================================
   FORMS
   ======================================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.625rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 0.375rem;
}

.form-inline input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

/* ========================================================
   BUTTONS
   ======================================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.3s;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #475569;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.btn-icon:hover {
  opacity: 1;
}

/* ========================================================
   LISTS
   ======================================================== */

.list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}

.list-item:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}

.list-item.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.list-item-content {
  flex: 1;
}

.list-item-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.list-item-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.list-item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.meta {
  font-size: 0.75rem !important;
  color: var(--text-muted) !important;
}

/* ========================================================
   DASHBOARD
   ======================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.register-link {
  text-align: center;
  margin-top: 1rem;
}

/* ========================================================
   DASHBOARD - BANKDASH REDESIGN
   ======================================================== */

.dashboard-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #F5F7FA;
  color: #1f2a44;
}

.dashboard-page .header-premium,
.dashboard-page .hero-dashboard {
  display: none;
}

.bankdash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  gap: 1.5rem;
  padding: 1.25rem;
}

.bank-sidebar {
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.bank-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f5;
}

.bank-brand h1 {
  font-size: 1.1rem;
  color: #343C6A;
  margin: 0;
  font-weight: 700;
}

.bank-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #8a93b2;
}

.sidebar-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.4rem 0.35rem 0.2rem;
  margin-top: auto;
  flex-shrink: 0;
  background: transparent;
}

.sidebar-greeting {
  margin: 0;
  position: relative;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b5b86;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  border-radius: 14px;
  padding: 0.48rem 0.75rem;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.sidebar-greeting::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #eef4ff;
  border-right: 1px solid #dbe7ff;
  border-bottom: 1px solid #dbe7ff;
}

.sidebar-art-img {
  max-height: 180px;
  width: 100%;
  max-width: 190px;
  border-radius: 16px;
  box-shadow: none;
  object-fit: contain;
}

.bank-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.bank-topbar {
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bank-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f4f7fd;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  width: min(560px, 100%);
}

.bank-search svg {
  color: #9aa3bf;
  flex-shrink: 0;
}

.bank-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  color: #4b567d;
  font-size: 0.92rem;
}

.bank-search input::placeholder {
  color: #9aa3bf;
}

.bank-user-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dashboard-page .user-profile {
  background: #f8faff;
  border: 1px solid #edf0f6;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
}

.dashboard-page .user-avatar {
  width: 38px;
  height: 38px;
}

.dashboard-page .user-details #userName {
  color: #343C6A;
}

.dashboard-page .user-role {
  color: #8a93b2;
}

.dashboard-page .btn-logout {
  border-radius: 999px;
  box-shadow: none;
  padding: 0.55rem 0.95rem;
}

.dashboard-page .dashboard-module-menu {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-page .dashboard-module-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: 0;
  border-radius: 14px;
  min-width: 0;
  justify-content: flex-start;
  background: transparent;
  color: #7e87a8;
  padding: 0.75rem 0.9rem;
  font-weight: 500;
  position: relative;
}

.dashboard-page .dashboard-module-btn svg {
  flex-shrink: 0;
}

.dashboard-page .dashboard-module-btn:hover {
  background: #f2f6ff;
  color: #3f6fd8;
  border: 0;
}

.dashboard-page .dashboard-module-btn.active {
  background: #eff4ff;
  color: #3f6fd8;
  box-shadow: none;
}

.dashboard-page .dashboard-module-btn.active::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 8px;
  background: #2563eb;
}

.dashboard-page .dashboard-module-panel {
  display: none;
}

.dashboard-page .dashboard-module-panel.active {
  display: block;
}

.bank-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.bank-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ========================================================
   COTIZACIONES - PREMIUM DETAILS
   ======================================================== */

#cotizacionesModule {
  position: relative;
  padding: 12px;
  border-radius: 28px;
  background: linear-gradient(140deg, #f8fbff 0%, #f2f6ff 45%, #eef4ff 100%);
  overflow: hidden;
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#cotizacionesModule::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  z-index: 0;
}

#cotizacionesModule::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.14), transparent 70%);
  z-index: 0;
}

#cotizacionesModule > * {
  position: relative;
  z-index: 1;
}

#cotizacionesModule .bank-admin-grid {
  gap: 1.6rem;
}

#cotizacionesModule .full-span {
  grid-column: 1 / -1;
}

#cotizacionesModule .bank-admin-grid > * {
  animation: cot-raise 0.5s ease both;
}

#cotizacionesModule .bank-admin-grid > *:nth-child(2) {
  animation-delay: 0.05s;
}

#cotizacionesModule .bank-admin-grid > *:nth-child(3) {
  animation-delay: 0.1s;
}

#cotizacionesModule .bank-card,
#cotizacionesModule .card-premium {
  border-radius: 28px;
  border: 1px solid #e3edff;
  box-shadow: 0 18px 40px rgba(16, 34, 68, 0.08);
}

#cotizacionesModule .card-premium {
  padding: 0.95rem;
}

#cotizacionesModule .card-premium .list-premium,
#cotizacionesModule #projectsSection,
#cotizacionesModule #projectsList {
  max-height: 240px;
  overflow: auto;
}

#cotizacionesModule #projectsSection {
  max-height: none;
  overflow: visible;
}

#cotizacionesModule .stat-overview-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  position: relative;
  overflow: hidden;
}

#cotizacionesModule .stat-overview-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  z-index: 0;
}

#cotizacionesModule .stat-overview-card > * {
  position: relative;
  z-index: 1;
}

#cotizacionesModule .stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border: 1px solid #dbe8ff;
}

#cotizacionesModule .stat-card::before {
  content: '';
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
  margin-bottom: 10px;
}

#cotizacionesModule .stat-value {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
}

#cotizacionesModule .summary-blue-charts {
  background: #ffffff;
  border: 1px solid #e3edff;
  border-radius: 18px;
  padding: 12px;
}

#cotizacionesModule .mini-line-chart {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
}

#cotizacionesModule .card-header-premium {
  align-items: flex-start;
  gap: 14px;
}

#cotizacionesModule .btn-action {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

#cotizacionesModule .btn-action:hover {
  filter: brightness(1.05);
}

#cotizacionesModule .list-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e3edff;
  border-radius: 20px;
}

#cotizacionesModule .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f2f6ff;
  border: 1px solid #dbe8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#cotizacionesModule .card-icon svg {
  stroke-width: 1.6;
  color: #2563eb;
}

#cotizacionesModule .btn-action {
  border-radius: 999px;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

#cotizacionesModule .btn-action svg {
  stroke-width: 1.8;
  flex-shrink: 0;
}

#cotizacionesModule .btn-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

#cotizacionesModule .btn-action:active:not(:disabled) {
  transform: translateY(0);
}

#cotizacionesModule .btn-action:disabled {
  background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
  box-shadow: none;
  opacity: 0.9;
  cursor: not-allowed;
  filter: saturate(0.7);
}

#cotizacionesModule .list-premium {
  padding: 0.85rem;
}

#cotizacionesModule .list-item-premium {
  border: 1px solid #e1ecff;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: #f7faff;
  box-shadow: 0 8px 16px rgba(15, 40, 68, 0.06);
}

#cotizacionesModule .list-item-premium:last-child {
  margin-bottom: 0;
}

#cotizacionesModule .list-item-premium.active {
  border-left: 4px solid #2563eb;
  background: #eef4ff;
}

#cotizacionesModule .item-avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

#cotizacionesModule .badge {
  background: #eaf1ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-weight: 700;
}

#cotizacionesModule .btn-open {
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 14px rgba(16, 185, 129, 0.2);
}

#cotizacionesModule .btn-delete {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(15, 40, 68, 0.06);
}

#cotizacionesModule .btn-delete:hover {
  background: #fff1f2;
  border-color: #fecdd3;
}

#cotizacionesModule .empty-state {
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
  border: 1px dashed #d3e2ff;
}

#cotizacionesModule #projectsSection .empty-state {
  padding: 1rem 0.85rem;
  min-height: 0;
  justify-content: flex-start;
}

#cotizacionesModule #projectsSection .empty-illustration {
  width: 70px;
  height: 70px;
  margin-bottom: 0.55rem;
}

#cotizacionesModule #projectsSection .empty-title {
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
}

#cotizacionesModule #projectsSection .empty-subtitle {
  font-size: 0.82rem;
  line-height: 1.3;
}

#cotizacionesModule #projectsSection .empty-subtitle {
  margin-bottom: 0;
}

#cotizacionesModule .empty-icon {
  font-size: 32px;
}

#cotizacionesModule .empty-title {
  color: #1f2a44;
  font-weight: 700;
}

@keyframes cot-raise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bank-card,
.dashboard-page .card-premium {
  background: #FFFFFF;
  border-radius: 25px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
  border: none;
  padding: 1.5rem;
}

.dashboard-page .card-premium:hover {
  transform: none;
}

.bank-section-title,
.dashboard-page .card-title {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  color: #343C6A;
  margin: 0;
}

.dashboard-page .card-subtitle,
.bank-soft-text {
  color: #8a93b2;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.dashboard-page .card-header-premium {
  padding: 0 0 1rem;
  border-bottom: 1px solid #edf0f6;
  margin-bottom: 1rem;
}

.dashboard-page .card-title-group {
  gap: 0.75rem;
}

.dashboard-page .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.dashboard-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.dashboard-page .stat-card {
  background: #f7f9fd;
  border: 1px solid #edf0f6;
  box-shadow: none;
  border-radius: 18px;
  padding: 1rem;
}

.dashboard-page .stat-value {
  font-size: 1.7rem;
  color: #343C6A;
}

.dashboard-page .stat-label {
  color: #8a93b2;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
}

.summary-blue-charts {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.mini-line-chart {
  height: 88px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f7ff 0%, #eef4ff 100%);
  border: 1px solid #e4ecff;
  padding: 0.35rem;
}

.mini-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.credit-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.credit-widget {
  border-radius: 22px;
  color: #fff;
  padding: 1.1rem;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.credit-widget::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -40px;
  bottom: -55px;
}

.gradient-blue {
  background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

.gradient-indigo {
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
}

.credit-chip {
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.28));
}

.credit-number {
  margin: 0;
  letter-spacing: 1.6px;
  font-size: 1rem;
  font-weight: 600;
}

.credit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  opacity: 0.95;
}

.credit-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.activity-chart {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: end;
  height: 190px;
}

.bar-group {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.22rem;
  position: relative;
  height: 100%;
}

.bar {
  width: 11px;
  border-radius: 999px;
  display: block;
}

.bar-blue {
  background: #2563eb;
}

.bar-green {
  background: #10b981;
}

.bar-group p {
  position: absolute;
  bottom: -24px;
  margin: 0;
  font-size: 0.74rem;
  color: #8a93b2;
}

.expense-donut-wrap {
  position: relative;
  margin-top: 1rem;
  min-height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expense-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: conic-gradient(
    #2563eb 0 40%,
    #14b8a6 40% 75%,
    #f97316 75% 100%
  );
  position: relative;
}

.expense-donut::after {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #FFFFFF;
}

.donut-floating-label {
  position: absolute;
  background: #fff;
  color: #4f5d87;
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
}

.label-a { top: 28px; right: 18px; }
.label-b { bottom: 40px; left: 20px; }
.label-c { bottom: 16px; right: 32px; }

.dashboard-page .form-inline {
  background: #f7f9fd;
  border-radius: 18px;
  border: 1px solid #edf0f6;
  padding: 0.8rem;
  gap: 0.6rem;
}

.dashboard-page .form-inline input {
  border: 1px solid #e5eaf4;
  border-radius: 12px;
  padding: 0.62rem 0.75rem;
}

.dashboard-page .btn-action,
.dashboard-page .btn-empty,
.dashboard-page .btn-open {
  border-radius: 12px;
}

.dashboard-page .list-item-premium {
  padding: 0.9rem 0.1rem;
  border-bottom: 1px solid #edf0f6;
}

.dashboard-page .list-item-premium.active {
  border-left: 3px solid #2563eb;
  background: #f5f8ff;
  padding-left: 0.65rem;
}

.dashboard-page .item-title {
  color: #343C6A;
}

.dashboard-page .item-subtitle {
  color: #8a93b2;
}

.bank-dimension-placeholder {
  min-height: 420px;
}

@media (max-width: 1200px) {
  .bankdash-layout {
    grid-template-columns: 240px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .credit-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .bankdash-layout {
    grid-template-columns: 1fr;
  }

  .bank-sidebar {
    padding: 1rem;
  }

  .dashboard-page .dashboard-module-menu {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
  }

  .dashboard-page .dashboard-module-btn {
    width: auto;
    min-width: max-content;
  }

  .dashboard-page .dashboard-module-btn.active::before {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: -6px;
    width: auto;
    height: 3px;
  }

  .bank-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bank-search {
    width: 100%;
  }

  .bank-user-actions {
    justify-content: space-between;
  }

  .bank-widgets-grid,
  .bank-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bankdash-layout {
    padding: 0.7rem;
    gap: 0.75rem;
  }

  .bank-sidebar,
  .bank-topbar,
  .bank-card,
  .dashboard-page .card-premium {
    border-radius: 20px;
  }

  .bank-brand {
    padding-bottom: 0.75rem;
  }

  .dashboard-page .stats-grid {
    grid-template-columns: 1fr;
  }

  .mini-line-chart {
    height: 78px;
  }

  .dashboard-page .user-profile {
    min-width: 0;
  }

  .dashboard-page .user-details {
    max-width: 130px;
  }

  .dashboard-page .user-details #userName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-page .btn-logout {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .activity-chart {
    height: 160px;
  }

  .bar {
    width: 9px;
  }

  .expense-donut {
    width: 150px;
    height: 150px;
  }

  .expense-donut::after {
    inset: 24px;
  }

  .donut-floating-label {
    font-size: 0.7rem;
    padding: 0.3rem 0.55rem;
  }
}
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   PREMIUM DASHBOARD
   ======================================================== */

/* Header Premium */
.header-premium {
  padding: 1rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-premium .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-header {
  height: 42px;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-details #userName {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-logout {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.25);
}

.btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.35);
}

.btn-logout:active {
  transform: translateY(0);
}

.dashboard-module-menu {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 0.375rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 86px;
  z-index: 30;
}

.dashboard-module-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.625rem 1.1rem;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 170px;
}

.dashboard-module-btn:hover {
  background: #eff6ff;
  border-color: #dbeafe;
  color: var(--primary);
}

.dashboard-module-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.dashboard-module-panel {
  display: none;
}

.dashboard-module-panel.active {
  display: block;
}

.dashboard-placeholder-card {
  margin: 0 2rem 2rem;
}

/* Hero Dashboard */
.hero-dashboard {
  background: linear-gradient(135deg, #0a4c80 0%, #083d66 100%);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  margin: 0 2rem 2rem;
  color: white;
  box-shadow: 0 20px 45px rgba(8, 61, 102, 0.32);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 0.95rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Premium Cards */
.dashboard-grid-premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 2rem 2rem;
  align-items: start;
}

.card-premium {
  background: white;
  border-radius: 1.1rem;
  padding: 0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  overflow: hidden;
}

.card-premium:hover {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.card-header-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.35rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-title-group div h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #0f172a;
}

.card-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.btn-action {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.35);
}

.btn-action:active {
  transform: translateY(0);
}

/* Premium List Items */
.list-premium {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item-premium {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.35rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.list-item-premium:last-child {
  border-bottom: none;
}

.list-item-premium:hover {
  background: #f8fafc;
}

.list-item-premium.active {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  padding-left: calc(1.35rem - 4px);
}

.item-avatar {
  width: 45px;
  height: 45px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-subtitle {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-open {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
}

.btn-delete {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-illustration {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 0.5rem 0;
}

.empty-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.5rem 0;
}

.btn-empty {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-empty:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.35);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Premium Dashboard */
@media (max-width: 1024px) {
  .dashboard-module-menu {
    margin: 0 1rem 1rem;
    top: 74px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .hero-dashboard {
    padding: 2rem 1.5rem;
    margin: 0 1rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 1rem;
  }

  .dashboard-grid,
  .dashboard-grid-premium {
    grid-template-columns: 1fr;
    margin: 0 1rem 1.5rem;
  }

  .dashboard-placeholder-card {
    margin: 0 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-premium {
    padding: 0.9rem 0;
    margin-bottom: 0.9rem;
  }

  .header-premium .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .user-profile {
    min-width: 0;
  }

  .user-details {
    max-width: 140px;
  }

  .user-details #userName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-logout {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  .dashboard-module-menu {
    margin: 0 0.8rem 1rem;
    top: 136px;
    padding: 0.3rem;
    gap: 0.45rem;
  }

  .dashboard-module-btn {
    min-width: max-content;
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-dashboard {
    border-radius: 0.95rem;
    padding: 1.35rem 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-top: 1.15rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.75rem;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .card-header-premium {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem 1rem 0.85rem;
  }

  .btn-action {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .list-item-premium {
    padding: 0.85rem 1rem;
    align-items: flex-start;
  }

  .item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 0.65rem;
  }

  .btn-open {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .item-actions {
    margin-left: auto;
  }
}

/* ========================================================
   RESULTS
   ======================================================== */

.results-section {
  margin-bottom: 2rem;
}

.results-section:last-child {
  margin-bottom: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--background);
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.result-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.result-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
}

/* ========================================================
   PROJECT MENU TABS
   ======================================================== */

.project-menu {
  display: inline-flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-menu-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.62rem 1rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-menu-btn:hover {
  background: var(--background);
  color: var(--primary);
}

.project-menu-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.project-tab-panel {
  display: none;
}

.project-tab-panel.active {
  display: block;
  animation: panel-fade-in 0.22s ease;
}

.project-page {
  --project-accent: #4491b8;
  --project-accent-dark: #357c9c;
  --project-accent-soft: rgba(68, 145, 184, 0.18);
  --primary: var(--project-accent);
  --primary-dark: var(--project-accent-dark);
  position: relative;
  background: linear-gradient(180deg, var(--background) 0%, rgba(37, 99, 235, 0.035) 100%);
}

.project-page .container {
  max-width: 1280px;
}

.project-page::before,
.project-page::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(4px);
}

.project-page::before {
  width: 320px;
  height: 320px;
  top: -110px;
  right: -90px;
  background: radial-gradient(circle, rgba(68, 145, 184, 0.16) 0%, rgba(68, 145, 184, 0) 72%);
}

.project-page::after {
  width: 280px;
  height: 280px;
  bottom: -110px;
  left: -80px;
  background: radial-gradient(circle, rgba(100, 116, 139, 0.14) 0%, rgba(100, 116, 139, 0) 72%);
}

.project-page .header,
.project-page main {
  position: relative;
  z-index: 1;
}

.project-page .header {
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, var(--project-accent-dark) 0%, var(--project-accent) 55%, #62a8cc 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(68, 145, 184, 0.28);
}

.project-page .header .container {
  min-height: 58px;
}

.project-page .header h1 {
  color: #ffffff;
}

.project-page .header .btn-secondary {
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.project-page .header .btn-secondary:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.48);
}

.project-page .header .btn-primary {
  background: #ffffff;
  color: var(--project-accent-dark);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.project-page .header .btn-primary:hover:not(:disabled) {
  background: #eff6ff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
}

.project-page .header-btn-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 0.75rem;
  min-height: 40px;
  min-width: 132px;
  justify-content: center;
  padding-inline: 0.9rem;
  font-weight: 700;
}

.project-page .btn-icon-inline {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}

.project-page .btn-icon-inline svg {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-page .field-icon-premium {
  width: 1.7rem;
  height: 1.7rem;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #dbe6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.project-page .project-tab-panel .card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-page .project-tab-panel .card:hover {
  transform: translateY(-2px);
  border-color: rgba(68, 145, 184, 0.28);
  box-shadow: var(--shadow-lg);
}

.project-page .project-tab-panel .card h2 {
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-page .form-group label {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.project-page .form-group input,
.project-page .form-group select,
.project-page .form-group textarea {
  background: rgba(255, 255, 255, 0.95);
  border-color: #d9e3f2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-page .form-group input:hover,
.project-page .form-group select:hover,
.project-page .form-group textarea:hover {
  border-color: rgba(68, 145, 184, 0.34);
}

.project-page .form-group input:focus,
.project-page .form-group select:focus,
.project-page .form-group textarea:focus {
  border-color: var(--project-accent);
  box-shadow: 0 0 0 4px var(--project-accent-soft);
}

.project-page .results-section h3 {
  margin-bottom: 0.6rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.03rem;
}

.project-page .results-section h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(68, 145, 184, 0.16);
}

.project-page .table-responsive {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.project-page .data-table {
  margin-top: 0;
  min-width: 860px;
}

.project-page .data-table th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.project-page .data-table td {
  color: #1f2937;
}

.project-page .data-table td,
.project-page .data-table th {
  white-space: nowrap;
}

.project-page .data-table tbody tr:nth-child(even) {
  background: rgba(100, 116, 139, 0.045);
}

.project-page .data-table tbody tr:hover {
  background: rgba(68, 145, 184, 0.1);
}

.project-page .scale-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.project-page .scale-chip.scale-fijo {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.26);
}

.project-page .scale-chip.scale-area,
.project-page .scale-chip.scale-perimetro,
.project-page .scale-chip.scale-volumen {
  background: rgba(68, 145, 184, 0.16);
  color: var(--project-accent-dark);
  border-color: rgba(68, 145, 184, 0.3);
}

.project-page .scale-chip.scale-caudal {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

.project-page .scale-chip.scale-total {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.32);
}

.project-page .total-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.project-page .total-section::after {
  content: '';
  position: absolute;
  top: -32px;
  right: -28px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

@media (max-width: 768px) {
  .project-menu {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .project-menu-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem 0.75rem;
  }

  .project-page .project-tab-panel .card {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .project-page .results-section h3::before {
    width: 6px;
    height: 6px;
  }

  .project-page .data-table {
    min-width: 720px;
  }
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================
   TABLES
   ======================================================== */

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--background);
  font-weight: 600;
  color: var(--text);
}

.data-table tbody tr:hover {
  background: var(--background);
}

.data-table td.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.25rem;
  background: var(--primary);
  color: white;
}

/* ========================================================
   TOTAL SECTION
   ======================================================== */

.total-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  text-align: center;
}

.total-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.total-amount {
  font-size: 2rem;
  font-weight: 700;
}

/* ========================================================
   AUTH PAGE - SPLIT SCREEN DESIGN
   ======================================================== */

/* ========================================================
   LOGIN PAGE - GLASMORPHISM DESIGN
   ======================================================== */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  margin: 0;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Luxury Background */
.luxury-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, rgba(15, 118, 110, 0.6) 0%, rgba(6, 182, 212, 0.6) 50%, rgba(8, 145, 178, 0.6) 100%),
                    url('../../images/imagen.png');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  animation: luxuryGlow 15s ease-in-out infinite;
}

@keyframes luxuryGlow {
  0%, 100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.05) saturate(1.1);
  }
}

/* Login Wrapper */
.login-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  z-index: 10;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Brand */
.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.logo-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.logo-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.6s ease-out 0.1s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  width: 100%;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Underline Input Style */
.form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.input-underline {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 0 0.75rem 0;
  font-size: 1rem;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: inherit;
  outline: none;
  position: relative;
  z-index: 2;
}

.input-underline::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.input-underline:focus {
  border-bottom-color: #00d4ff;
  box-shadow: 0 1px 0 #00d4ff;
  color: white;
}

.input-underline:focus::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #0891b2);
  transition: width 0.3s ease;
  pointer-events: none;
}

.input-underline:focus ~ .underline {
  width: 100%;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #00d4ff;
  transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:hover {
  transform: scale(1.1);
}

.checkbox-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.2s ease;
}

.checkbox-container:hover .checkbox-label {
  color: white;
}

.forgot-link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.forgot-link:hover {
  color: #06b6d4;
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, #00d4ff 0%, #0891b2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Auth Switch */
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-switch span {
  margin-right: 0.25rem;
}

.switch-link {
  background: none;
  border: none;
  color: #00d4ff;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0;
  font-size: inherit;
}

.switch-link:hover {
  color: white;
  text-decoration: underline;
}

/* Messages */
.message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.message.success {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Mensajes */
.message {
  margin-top: 1rem;
  padding: 0.875rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.message-toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.message-toast.success {
  background: var(--success);
  color: white;
}

.message-toast.error {
  background: var(--error);
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ========================================================
   UTILITY CLASSES
   ======================================================== */

.loading {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

.error {
  color: var(--error);
}

.info-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1rem;
  text-align: center;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .header-left {
    flex-direction: column;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions button {
    flex: 1;
  }

  .user-info {
    flex-direction: column;
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .form-inline {
    flex-direction: column;
  }

  .message-toast {
    left: 1rem;
    right: 1rem;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .list-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Auth page responsive - Mobile First */
  .login-page {
    padding: 1rem;
  }

  .login-wrapper {
    max-width: 100%;
    padding: 1rem 0.5rem;
  }

  .luxury-bg {
    background-attachment: scroll;
  }

  .logo-brand {
    margin-bottom: 1.5rem;
  }

  .logo-icon {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .glass-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .input-underline {
    font-size: 0.95rem;
    padding: 0.65rem 0 0.65rem 0;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .checkbox-container {
    margin-bottom: 0.5rem;
  }

  .btn-submit {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .auth-switch {
    font-size: 0.8rem;
  }
}

/* ========================================================
   DESKTOP OPTIMIZATION
   ======================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .login-wrapper {
    max-width: 420px;
  }

  .glass-card {
    padding: 2.75rem 2.25rem;
  }
}

@media (min-width: 1025px) {
  .login-wrapper {
    max-width: 420px;
  }

  .glass-card {
    padding: 3rem 2.5rem;
  }

  .logo-icon {
    width: 70px;
    height: 70px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .form-title {
    font-size: 1.75rem;
  }

  .input-underline {
    font-size: 1.05rem;
    padding: 0.85rem 0 0.85rem 0;
  }

  .btn-submit {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
  }
}
