:root {
  --bg: #0f0a12;
  --bg-soft: #16101b;
  --bg-soft-2: #211727;
  --panel: rgba(22, 16, 27, 0.88);
  --panel-strong: rgba(28, 19, 35, 0.96);

  --text: #f7ecf3;
  --text-soft: #dcc8d5;
  --text-muted: #a88fa0;

  --brand: #d9468d;
  --brand-2: #f472b6;
  --brand-3: #f9a8d4;
  --accent: #c084fc;

  --success: #34d399;
  --warning: #f59e0b;
  --danger: #fb7185;
  --info: #60a5fa;

  --border: rgba(244, 114, 182, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);

  --shadow-xl: 0 24px 55px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 16px 34px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.16);

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --sidebar-width: 292px;
  --toolbar-height: 76px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 70, 141, 0.12), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(192, 132, 252, 0.08), transparent 20%),
    linear-gradient(180deg, #0f0a12 0%, #130d16 45%, #0c0910 100%);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.min-w-0 {
  min-width: 0;
}

/* BASE TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff7fb;
  letter-spacing: -0.03em;
  font-weight: 800;
}

p {
  color: var(--text-soft);
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* LAYOUT */
.app-page {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 0 26px 26px;
}

.flex-grow-1 {
  flex: 1 1 auto;
}

/* SIDEBAR */
.app-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  padding: 22px 18px;
  border-right: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(22, 16, 27, 0.98), rgba(18, 13, 23, 0.96)),
    radial-gradient(circle at top left, rgba(244, 114, 182, 0.08), transparent 32%);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffd7eb;
  background: linear-gradient(135deg, rgba(217, 70, 141, 0.24), rgba(244, 114, 182, 0.18));
  border: 1px solid rgba(244, 114, 182, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand-icon i {
  font-size: 1.1rem;
}

.brand-title {
  margin: 0;
  font-weight: 900;
  color: #fff7fb;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  line-height: 1.05;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.sidebar-section-title {
  margin: 18px 10px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f9a8d4;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ead8e3;
  font-weight: 600;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
  border: 1px solid transparent;
}

.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
  color: #f9a8d4;
}

.sidebar-link:hover {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.12);
  color: #fff7fb;
  transform: translateY(-1px);
}

.sidebar-link.active {
  background:
    linear-gradient(135deg, rgba(217, 70, 141, 0.18), rgba(244, 114, 182, 0.08));
  border-color: rgba(244, 114, 182, 0.18);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.sidebar-link.active i {
  color: #ffd2e8;
}

.sidebar-link-muted {
  margin-top: 4px;
  color: #cbb2c1;
}

/* USER CHIP */
.user-chip,
.mobile-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
}

.user-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff7fb;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 18px rgba(217, 70, 141, 0.22);
  flex-shrink: 0;
}

.user-chip-name {
  margin: 0;
  color: #fff7fb;
  font-weight: 700;
  font-size: 0.95rem;
}

.user-chip-sub {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* TOPBAR MOBILE */
.topbar-mobile {
  display: none;
  padding: 16px 16px 0;
}

.topbar-mobile-card {
  border-radius: 18px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(25, 18, 31, 0.98), rgba(20, 15, 25, 0.96));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  border-radius: 12px !important;
  min-width: 40px;
  height: 40px;
  padding: 0 !important;
}

/* OFFCANVAS */
.mobile-offcanvas {
  background:
    linear-gradient(180deg, rgba(22, 16, 27, 0.99), rgba(16, 11, 20, 0.98));
  color: var(--text);
  border-right: 1px solid var(--border-soft);
}

.mobile-offcanvas .offcanvas-header {
  border-color: var(--border-soft) !important;
}

.offcanvas-title {
  color: #fff7fb;
  font-weight: 800;
}

.btn-close {
  filter: invert(1) grayscale(1) brightness(200%);
  opacity: 0.72;
}

.mobile-nav-section {
  margin-bottom: 10px;
}

.mobile-nav-title {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f9a8d4;
}

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #ead8e3;
  font-weight: 600;
}

.mobile-nav-link i {
  width: 18px;
  text-align: center;
  color: #f9a8d4;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.14);
  color: #fff7fb;
}

.mobile-nav-link-muted {
  color: #ccb4c2;
}

/* TOOLBAR */
.app-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--toolbar-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 0 12px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(15, 10, 18, 0.94), rgba(15, 10, 18, 0.72), rgba(15, 10, 18, 0));
  backdrop-filter: blur(8px);
}

.app-toolbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
}

.lang-switcher-pro {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #dcc8d5;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-switcher-btn:hover {
  color: #fff7fb;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switcher-btn.is-active {
  background: linear-gradient(135deg, rgba(217, 70, 141, 0.24), rgba(192, 132, 252, 0.18));
  color: #ffffff;
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f9a8d4;
  box-shadow: 0 0 0 4px rgba(249, 168, 212, 0.12);
}

/* FLASHES */
.flash-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.alert {
  border-radius: 16px;
  border-width: 1px;
  box-shadow: var(--shadow-sm);
}

.alert-info {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.2);
  color: #d8e9ff;
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.2);
  color: #d8fff2;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fff0d4;
}

.alert-danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.2);
  color: #ffe1e7;
}

/* CONTENT SURFACES */
.card,
.table-responsive,
.form-shell,
.stats-card,
.metric-card,
.surface-card,
.modal-content,
.dropdown-menu,
.list-group-item,
.accordion-item {
  border-radius: var(--radius-lg);
}

.card,
.surface-card,
.modal-content,
.dropdown-menu,
.accordion-item,
.list-group-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(22, 16, 27, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.card-header,
.card-footer,
.list-group-item,
.accordion-button {
  background: transparent;
  border-color: var(--border-soft);
}

.card-title,
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
  color: #fff7fb;
}

.card-subtitle,
.small,
.form-text {
  color: var(--text-muted) !important;
}

.shadow-sm,
.shadow,
.shadow-lg {
  box-shadow: var(--shadow-md) !important;
}

/* TABLES */
.table-responsive {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(22, 16, 27, 0.9);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: rgba(255, 255, 255, 0.06);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: rgba(244, 114, 182, 0.05);
  --bs-table-hover-color: #fff7fb;
  margin-bottom: 0;
  color: var(--text);
}

.table thead th {
  color: #f9d9e9;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom-width: 1px;
  background: rgba(255, 255, 255, 0.02);
}

.table td,
.table th {
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.05);
}

/* FORMS */
.form-control,
.form-select,
.input-group-text {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 14px;
  min-height: 48px;
  box-shadow: none !important;
}

.form-control::placeholder,
.form-select,
textarea.form-control::placeholder {
  color: #a88fa0;
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(244, 114, 182, 0.34);
  box-shadow: 0 0 0 0.2rem rgba(217, 70, 141, 0.12) !important;
}

.input-group-text {
  color: #f4ccde;
}

.form-label {
  color: #f2dae7;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-check-label {
  color: var(--text-soft);
}

/* BUTTONS */
.btn {
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e0549a;
  --bs-btn-hover-border-color: #e0549a;
  --bs-btn-active-bg: #cf3d86;
  --bs-btn-active-border-color: #cf3d86;
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 12px 24px rgba(217, 70, 141, 0.22);
}

.btn-outline-primary {
  --bs-btn-color: #f7cbe0;
  --bs-btn-border-color: rgba(244, 114, 182, 0.34);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(217, 70, 141, 0.16);
  --bs-btn-hover-border-color: rgba(244, 114, 182, 0.42);
  --bs-btn-active-bg: rgba(217, 70, 141, 0.22);
  --bs-btn-active-border-color: rgba(244, 114, 182, 0.42);
}

.btn-secondary {
  --bs-btn-color: #fff7fb;
  --bs-btn-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-border-color: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.12);
}

.btn-light {
  --bs-btn-color: #2d1826;
  --bs-btn-bg: #fff0f8;
  --bs-btn-border-color: #fff0f8;
  --bs-btn-hover-color: #2d1826;
  --bs-btn-hover-bg: #ffe1ef;
  --bs-btn-hover-border-color: #ffe1ef;
}

.btn-danger {
  --bs-btn-bg: var(--danger);
  --bs-btn-border-color: var(--danger);
}

.btn-success {
  --bs-btn-bg: var(--success);
  --bs-btn-border-color: var(--success);
}

.btn-warning {
  --bs-btn-bg: var(--warning);
  --bs-btn-border-color: var(--warning);
}

.btn-sm {
  border-radius: 12px;
}

/* BADGES */
.badge {
  border-radius: 999px;
  font-weight: 800;
  padding: 0.55em 0.8em;
  letter-spacing: 0.01em;
}

.bg-primary,
.badge.bg-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
}

.bg-success,
.badge.bg-success {
  background: rgba(52, 211, 153, 0.18) !important;
  color: #d6fff0 !important;
}

.bg-warning,
.badge.bg-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #fff1d6 !important;
}

.bg-danger,
.badge.bg-danger {
  background: rgba(251, 113, 133, 0.18) !important;
  color: #ffe1e7 !important;
}

.bg-info,
.badge.bg-info {
  background: rgba(96, 165, 250, 0.18) !important;
  color: #ddeeff !important;
}

/* LINKS */
a.link-primary,
.text-primary {
  color: #f7a2cd !important;
}

a:hover {
  color: inherit;
}

/* DROPDOWNS / MODALS */
.dropdown-menu {
  padding: 8px;
}

.dropdown-item {
  border-radius: 12px;
  color: var(--text-soft);
  padding: 10px 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(244, 114, 182, 0.08);
  color: #fff7fb;
}

.modal-header,
.modal-footer {
  border-color: var(--border-soft);
}

.modal-title {
  color: #fff7fb;
}

/* ACCORDION */
.accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: rgba(255, 255, 255, 0.06);
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-btn-color: #fff7fb;
  --bs-accordion-active-color: #fff7fb;
  --bs-accordion-active-bg: rgba(244, 114, 182, 0.04);
}

.accordion-button:focus {
  box-shadow: none;
}

/* NAV TABS */
.nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-tabs .nav-link {
  border: 1px solid transparent;
  color: var(--text-soft);
  border-radius: 14px 14px 0 0;
}

.nav-tabs .nav-link:hover {
  color: #fff7fb;
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: #fff7fb;
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: transparent;
}

/* PAGINATION */
.pagination {
  gap: 8px;
}

.page-link {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.page-link:hover {
  background: rgba(244, 114, 182, 0.08);
  border-color: rgba(244, 114, 182, 0.16);
  color: #fff7fb;
}

.page-item.active .page-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent;
  color: #fff;
}

/* PROGRESS */
.progress {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* LOGIN / AUTH */
.auth-shell,
.auth-page,
.login-shell {
  min-height: 100vh;
}

.auth-card,
.login-card,
.auth-panel {
  max-width: 460px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(22, 16, 27, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.auth-title,
.login-title {
  color: #fff7fb;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-subtitle,
.login-subtitle {
  color: var(--text-soft);
}

/* DASHBOARD HELPERS */
.page-header,
.section-header {
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  color: #fff7fb;
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--text-soft);
}

.stat-card,
.metric-card,
.kpi-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(22, 16, 27, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

.stat-value,
.metric-value,
.kpi-value {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: #fff7fb;
  letter-spacing: -0.04em;
}

.stat-label,
.metric-label,
.kpi-label {
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

/* FOOTER */
footer {
  color: var(--text-muted) !important;
  border-color: var(--border-soft) !important;
  padding-bottom: 8px;
}

/* UTILITIES */
.border-top,
.border-bottom,
.border,
hr {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.bg-white,
.bg-light {
  background: rgba(255, 255, 255, 0.03) !important;
}

.rounded-4 {
  border-radius: var(--radius-lg) !important;
}

.rounded-3 {
  border-radius: var(--radius-md) !important;
}

.rounded-2 {
  border-radius: var(--radius-sm) !important;
}

.text-dark {
  color: #fff7fb !important;
}

.bg-body,
.bg-body-tertiary {
  background: transparent !important;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.24);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 114, 182, 0.34);
}

/* RESPONSIVE */
@media (max-width: 1199px) {
  .app-sidebar {
    width: 270px;
    min-width: 270px;
  }
}

@media (max-width: 991.98px) {
  .topbar-mobile {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 0 16px 20px;
  }

  .app-toolbar {
    min-height: auto;
    padding-top: 12px;
  }

  .app-toolbar-end {
    width: 100%;
    justify-content: flex-end;
  }

  .lang-switcher-pro {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .app-main {
    padding: 0 14px 18px;
  }

  .brand-card,
  .card,
  .surface-card,
  .table-responsive,
  .auth-card,
  .login-card,
  .auth-panel {
    border-radius: 18px;
  }

  .page-title {
    font-size: 1.7rem;
  }

  .btn,
  .form-control,
  .form-select,
  .input-group-text {
    min-height: 46px;
  }
}

@media (max-width: 575.98px) {
  .topbar-mobile {
    padding: 12px 12px 0;
  }

  .topbar-mobile-card {
    padding: 12px;
  }

  .app-main {
    padding: 0 12px 16px;
  }

  .lang-switcher-btn {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .sidebar-link,
  .mobile-nav-link {
    padding: 11px 12px;
  }
}
.auth-bg {
  background: radial-gradient(circle at top, #0f172a, #020617);
}

.auth-card {
  border-radius: 18px;
}

.auth-feature {
  margin-bottom: 20px;
}

.login-mark {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(244, 114, 182, 0.20);
  box-shadow:
    0 18px 36px rgba(236, 72, 153, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.login-mark i {
  font-size: 1.8rem;
  color: #ffd7eb;
}

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.lang-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  color: #cbd5f5;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  color: #fff;
}
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.auth-topbar-spacer {
  min-height: 1px;
}

.lang-switch-elegant {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 114, 182, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-switch-elegant .lang-btn {
  min-width: 44px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 10px;
  color: #d8c2d0;
  text-decoration: none;
  transition: all 0.18s ease;
}

.lang-switch-elegant .lang-btn:hover {
  background: rgba(244, 114, 182, 0.10);
  color: #fff7fb;
}

.lang-switch-elegant .lang-btn.active {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(236, 72, 153, 0.24);
}

@media (max-width: 991.98px) {
  .auth-topbar {
    justify-content: flex-end;
    margin-bottom: 18px;
  }
}
.appt-confirmada {
  background: rgba(236,72,153,0.12);
  border-color: rgba(244,114,182,0.18);
}

.appt-completada {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.18);
}

.appt-cancelada {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.18);
}

.agenda-item {
  position: relative;
  transition: all 0.18s ease;
}

.agenda-item:hover {
  transform: translateY(-2px);
  border-color: rgba(244,114,182,0.22);
  background: rgba(28, 19, 35, 0.85);
}

.agenda-time {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.agenda-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-card:hover,
.panel-card:hover,
.action-tile:hover {
  transform: translateY(-3px);
  transition: all 0.2s ease;
  border-color: rgba(96, 165, 250, 0.28);
}
