/* ==========================================================================
   Genresurs CRM — Authentic Gold Glass Design System
   Exact reproduction of gold-glass-style-kit / VectorGlass specification
   ========================================================================== */

@property --inner-laser-angle { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@keyframes reference-inner-trace { from { --inner-laser-angle: 0deg; } to { --inner-laser-angle: 360deg; } }
@property --laser-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes reference-laser-trace { from { --laser-angle: 0deg; } to { --laser-angle: 360deg; } }

/* ==========================================================================
   Global Reset & Base Theme: Pure Deep Black with Matrix Rain Transparency
   ========================================================================== */
html, body {
  background-color: #000000 !important;
  color: #e7e5ea !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

#body,
.main-section,
.layout-main-section-wrapper,
.layout-main,
.layout-main-section,
.page-container,
.desk-page,
.page-content,
.page-head,
.page-body,
.standard-sidebar-section,
.page-container .page-content,
.layout-main-section .page-body {
  background-color: transparent !important;
  background: transparent !important;
  color: #e7e5ea !important;
  font-family: Arial, Helvetica, sans-serif !important;
  border-color: rgba(225, 222, 231, 0.12) !important;
}

.page-container .page-body,
.page-wrapper .container {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.layout-main-section-wrapper {
  max-width: 100% !important;
  flex: 1 1 0px !important;
}

.gold-major-block {
  padding: 18px 16px 20px 16px !important;
}

/* ==========================================================================
   Gold Glass White Matrix Digital Rain Background
   Exact 1:1 Parity with WhatsApp Service (matrix_engine.js)
   ========================================================================== */
.gold-matrix-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.29;
  background: #000000;
  transform: translateZ(0);
  will-change: transform;
}

.layout-main-section {
  border: none !important;
  box-shadow: none !important;
}

::selection {
  background: #f4d922 !important;
  color: #2a240b !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.title-text,
.widget-title,
.ce-header,
.page-title {
  color: #f4f3f5 !important;
  font-weight: 700 !important;
}

p, span, label,
.text-muted,
.sidebar-item-label {
  color: #c4bfc8 !important;
}

.gold-accent {
  color: #f4d922 !important;
}

/* ==========================================================================
   Laser Sweep Animation & Decorators
   ========================================================================== */

.reference-laser-sweep,
.reference-input::before,
.reference-primary::before,
.gold-btn-danger::before {
  --laser-duration: 7.2s;
  --laser-delay: -0.8s;
  background: conic-gradient(
    from var(--laser-angle) at var(--laser-origin, 50% 50%),
    transparent 0deg,
    transparent 310deg,
    rgba(255, 255, 255, 0.25) 315deg,
    rgba(255, 255, 255, 0.60) 328deg,
    rgba(255, 255, 255, 1.00) 335deg,
    rgba(255, 239, 174, 0.95) 341deg,
    rgba(255, 255, 255, 0.50) 348deg,
    transparent 352deg,
    transparent 360deg
  );
  animation: reference-laser-trace var(--laser-duration) linear var(--laser-delay) infinite;
  pointer-events: none;
}

.reference-laser-sweep {
  width: 100%;
  height: 100%;
}

.reference-laser-sweep.piece-top {
  --laser-origin: 35% 35%;
  --laser-duration: 6.41s;
  --laser-delay: -0.49s;
}

.reference-laser-sweep.piece-bottom {
  --laser-origin: 65% 65%;
  --laser-duration: 9.33s;
  --laser-delay: -2.8s;
}

/* ==========================================================================
   Major Blocks with Floating Chamfered Corners
   Corners appear with 0.6s delay and smooth authentic spline fly-in
   ========================================================================== */

.gold-major-block {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 24px !important;
  padding: 32px 76px 28px 76px !important;
  box-sizing: border-box !important;
}

.gold-major-block.widget,
.gold-major-block.links-widget-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.gold-card-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
  overflow: visible !important;
}

.gold-major-block > .widget-body,
.gold-major-block > .widget-head,
.gold-major-block > .gold-card-content,
.gold-major-block > .form-section,
.gold-major-block > .section-body,
.gold-major-block > div:not(.gold-corner-svg-wrap) {
  position: relative !important;
  z-index: 3 !important;
  background: transparent !important;
  border: none !important;
}

.gold-major-block .widget-head {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}

.gold-major-block .widget-head,
.gold-major-block .widget-title {
  color: #f4f3f5 !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.gold-major-block .widget-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gold-major-block .link-item {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #e7e5ea !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.gold-major-block .link-item:first-child {
  margin-top: 0 !important;
}

.gold-major-block .link-item .link-content {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.gold-major-block .link-item a,
.gold-major-block a {
  color: #e7e5ea !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.gold-major-block .link-item:hover,
.gold-major-block .link-item:hover a,
.gold-major-block a:hover {
  color: #f4d922 !important;
  transform: translateX(4px) !important;
}

.gold-major-block svg.es-icon,
.gold-major-block .link-item svg {
  margin-left: 4px !important;
  stroke: #f4d922 !important;
}

.gold-corner-svg-wrap {
  position: absolute !important;
  width: 58px !important;
  height: 58px !important;
  pointer-events: none !important;
  z-index: 10 !important;
  overflow: visible !important;
}

.gold-corner-svg-wrap svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.gold-corner-top {
  top: 0 !important;
  left: 0 !important;
  animation: gold-corner-fly-top 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s backwards !important;
  will-change: transform, opacity !important;
}

.gold-corner-bottom {
  bottom: 0 !important;
  right: 0 !important;
  animation: gold-corner-fly-bottom 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s backwards !important;
  will-change: transform, opacity !important;
}

@keyframes gold-corner-fly-top {
  0% {
    opacity: 0;
    transform: translate(26px, 22px) scale(0.85);
  }
  1% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes gold-corner-fly-bottom {
  0% {
    opacity: 0;
    transform: translate(-26px, -22px) scale(0.85);
  }
  1% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* ==========================================================================
   Smoked Glass Panels & Small Cards (No Cut Corners)
   ========================================================================== */

.gold-glass-card,
.gold-glass-panel,
.widget.shortcut-widget-box,
.widget.number-card-widget-box,
.widget.quick-list-widget-box,
.desk-sidebar-item:not(.selected),
.dashboard-graph,
.comment-box,
.timeline-item {
  background: linear-gradient(135deg, rgba(60, 55, 68, 0.45) 0%, rgba(30, 25, 34, 0.55) 55%, rgba(18, 15, 22, 0.72) 100%) !important;
  border: 1px solid rgba(225, 222, 231, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45) !important;
  border-radius: 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

.widget.shortcut-widget-box:hover,
.widget.number-card-widget-box:hover,
.gold-glass-card:hover,
.gold-glass-panel:hover {
  border-color: rgba(244, 217, 34, 0.45) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), 0 0 16px rgba(244, 217, 34, 0.14) !important;
  transform: translateY(-2px) !important;
}

.widget.shortcut-widget-box .widget-title,
.widget.shortcut-widget-box span {
  color: #f4f3f5 !important;
  font-weight: 600 !important;
}

.widget.shortcut-widget-box .indicator-pill {
  background: rgba(244, 217, 34, 0.15) !important;
  color: #f4d922 !important;
  border: 1px solid rgba(244, 217, 34, 0.35) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Navigation Bar & Sidebar
   ========================================================================== */

.navbar,
header.navbar {
  background: linear-gradient(180deg, rgba(28, 24, 33, 0.95) 0%, rgba(16, 14, 20, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(225, 222, 231, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
}

.navbar-brand .app-logo,
.navbar-brand img {
  height: 34px !important;
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}

.desk-sidebar,
.layout-side-section {
  background: linear-gradient(135deg, rgba(38, 33, 44, 0.45) 0%, rgba(18, 14, 22, 0.65) 100%) !important;
  border-right: 1px solid rgba(225, 222, 231, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.desk-sidebar .standard-sidebar-item.selected,
.desk-sidebar .item-anchor.selected {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  color: #2a240b !important;
  font-weight: 700 !important;
  border: 1px solid #fae767 !important;
  box-shadow: 0 4px 14px rgba(235, 186, 15, 0.35) !important;
  border-radius: 8px !important;
}

.desk-sidebar .standard-sidebar-item.selected .sidebar-item-label,
.desk-sidebar .standard-sidebar-item.selected span,
.desk-sidebar .standard-sidebar-item.selected svg,
.desk-sidebar .standard-sidebar-item.selected use {
  color: #2a240b !important;
  fill: #2a240b !important;
  stroke: #2a240b !important;
}

.desk-sidebar .standard-sidebar-item:not(.selected):hover {
  background: rgba(116, 101, 117, 0.2) !important;
  border-radius: 8px !important;
  color: #f4f3f5 !important;
}

.desk-sidebar .sidebar-item-label {
  color: #c4bfc8 !important;
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */

.btn-primary,
.btn-new-doc,
.primary-action {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  color: #2a240b !important;
  border: 1px solid #fae767 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(235, 186, 15, 0.35) !important;
  transition: filter 0.12s, transform 0.12s !important;
  border-radius: 8px !important;
}

.btn-primary:hover,
.btn-new-doc:hover,
.primary-action:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
}

.btn-danger,
.btn-delete {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(153, 27, 27, 0.95) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 90, 90, 0.45) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4) !important;
  border-radius: 8px !important;
}

.btn-default,
.btn-secondary,
.btn-new-workspace,
.btn-edit-workspace {
  background: rgba(116, 101, 117, 0.18) !important;
  color: #e7e5ea !important;
  border: 1px solid rgba(225, 222, 231, 0.18) !important;
  border-radius: 8px !important;
}

.btn-default:hover,
.btn-secondary:hover {
  background: rgba(116, 101, 117, 0.28) !important;
  border-color: rgba(244, 217, 34, 0.4) !important;
  color: #ffffff !important;
}

/* Status Indicators */
.indicator-pill.green, .indicator-pill.green-dot {
  background-color: rgba(34, 197, 94, 0.18) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.indicator-pill.orange, .indicator-pill.orange-dot {
  background-color: rgba(245, 158, 11, 0.18) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.indicator-pill.red, .indicator-pill.red-dot {
  background-color: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.indicator-pill.blue, .indicator-pill.blue-dot {
  background-color: rgba(59, 130, 246, 0.18) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.indicator-pill.purple, .indicator-pill.purple-dot {
  background-color: rgba(168, 85, 247, 0.18) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.3) !important;
}

/* ==========================================================================
   Inputs, Controls, Tables & Modals
   ========================================================================== */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea,
.form-control {
  background: rgba(116, 101, 117, 0.12) !important;
  border: 1px solid rgba(172, 163, 176, 0.18) !important;
  color: #c4bfc8 !important;
  border-radius: 8px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: rgba(242, 215, 34, 0.7) !important;
  box-shadow: 0 0 10px rgba(231, 205, 34, 0.22) !important;
  outline: none !important;
}

.modal-content {
  background: linear-gradient(135deg, rgba(45, 40, 52, 0.85) 0%, rgba(20, 16, 24, 0.92) 100%) !important;
  border: 1px solid rgba(225, 222, 231, 0.18) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
  border-radius: 16px !important;
  color: #e7e5ea !important;
}

.modal-header,
.modal-footer {
  border-color: rgba(225, 222, 231, 0.12) !important;
}

/* ==========================================================================
   Authentic VectorGlass Call Overlay (WhatsApp / CRM Calling)
   ========================================================================== */

#callGlassOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #e7e5ea;
  font-family: Arial, Helvetica, sans-serif;
}

#callGlassOverlay .reference-size {
  position: relative;
  flex: none;
  width: calc(576px * var(--u, 1.25));
  height: calc(400px * var(--u, 1.25));
  --u: 1.25;
}

#callGlassOverlay .reference-scene {
  animation: reference-inner-trace 72s linear -8s infinite;
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
}

#callGlassOverlay .reference-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  background: #000000;
}

#callGlassOverlay .reference-backdrop {
  position: absolute;
  left: calc(120px * var(--u, 1));
  top: calc(40px * var(--u, 1));
  width: calc(346px * var(--u, 1));
  height: calc(323px * var(--u, 1));
  clip-path: url(#call-glass-mask);
  backdrop-filter: blur(calc(1.2px * var(--u, 1)));
  -webkit-backdrop-filter: blur(calc(1.2px * var(--u, 1)));
}

#callGlassOverlay .reference-glass,
#callGlassOverlay .reference-pieces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#callGlassOverlay .reference-glass { z-index: 1; }
#callGlassOverlay .reference-pieces { z-index: 5; }

#callGlassOverlay .reference-card {
  position: absolute;
  left: calc(120px * var(--u, 1));
  top: calc(40px * var(--u, 1));
  width: calc(346px * var(--u, 1));
  height: calc(323px * var(--u, 1));
  z-index: 3;
  box-sizing: border-box;
}

.call-card-layout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(22px * var(--u, 1)) calc(24px * var(--u, 1));
  text-align: center;
  box-sizing: border-box;
}

.call-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
}

.call-avatar-disc {
  width: calc(72px * var(--u, 1));
  height: calc(72px * var(--u, 1));
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(70, 65, 75, 0.75), rgba(21, 18, 25, 0.9));
  border: calc(1.5px * var(--u, 1)) solid #fae767;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(24px * var(--u, 1));
  color: #f4d922;
  box-shadow: 0 0 calc(16px * var(--u, 1)) rgba(244, 217, 34, 0.25);
  position: relative;
  z-index: 2;
}

.call-pulse-ring {
  position: absolute;
  width: calc(100px * var(--u, 1));
  height: calc(100px * var(--u, 1));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 217, 34, 0.22) 0%, transparent 70%);
  animation: pulseCallRing 1.8s infinite;
  pointer-events: none;
}

@keyframes pulseCallRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.2; }
  100% { transform: scale(1.4); opacity: 0; }
}

.gold-btn-danger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(6px * var(--u, 1));
  height: calc(30px * var(--u, 1));
  padding: 0 calc(18px * var(--u, 1));
  border-radius: calc(15px * var(--u, 1));
  border: calc(1px * var(--u, 1)) solid rgba(255, 90, 90, 0.45);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95) 0%, rgba(153, 27, 27, 0.98) 100%);
  color: #ffffff;
  box-shadow: 0 calc(4px * var(--u, 1)) calc(14px * var(--u, 1)) rgba(220, 38, 38, 0.4);
  font: 700 calc(9.5px * var(--u, 1)) Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: filter 120ms;
}

.gold-btn-danger:hover { filter: brightness(1.1); }
.gold-btn-danger:active { filter: brightness(0.94); }

.gold-btn-round {
  width: calc(30px * var(--u, 1));
  height: calc(30px * var(--u, 1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: calc(1px * var(--u, 1)) solid rgba(199, 185, 206, 0.25);
  background: rgba(173, 146, 178, 0.15);
  color: #c4beca;
  cursor: pointer;
  transition: all 120ms;
}

.gold-btn-round:hover {
  background: rgba(173, 146, 178, 0.3);
  color: #ffffff;
}

/* ==========================================================================
   Live Workspace Section Data View (No Intermediate Menus)
   ========================================================================== */

.gold-major-block.gold-live-host {
  padding: 28px 34px 30px 42px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-height: 460px !important;
}

.gold-live-section-wrap {
  position: relative !important;
  z-index: 4 !important;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gold-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.gold-live-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gold-live-title {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #f4f3f5 !important;
  letter-spacing: -0.2px;
}

.gold-live-count-badge {
  background: rgba(244, 217, 34, 0.16);
  border: 1px solid rgba(244, 217, 34, 0.42);
  color: #f4d922 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.gold-live-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gold-live-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gold-live-search {
  width: 270px;
  height: 34px;
  padding: 0 12px 0 32px !important;
  border-radius: 9px !important;
  background: rgba(20, 17, 26, 0.78) !important;
  border: 1px solid rgba(225, 222, 231, 0.16) !important;
  color: #f4f3f5 !important;
  font-size: 13px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.gold-live-search:focus {
  border-color: rgba(244, 217, 34, 0.7) !important;
  box-shadow: 0 0 12px rgba(244, 217, 34, 0.18) !important;
  outline: none !important;
}

.gold-live-search-icon {
  position: absolute;
  left: 10px;
  color: #99969e;
  font-size: 13px;
  pointer-events: none;
}

.gold-live-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(225, 222, 231, 0.16);
  background: rgba(45, 40, 54, 0.55);
  color: #e7e5ea !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gold-live-btn:hover {
  border-color: rgba(244, 217, 34, 0.45);
  color: #f4d922 !important;
  background: rgba(65, 58, 76, 0.65);
}

.gold-live-btn-primary,
.gold-live-btn-primary span {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  border: 1px solid #fae767 !important;
  color: #2a240b !important;
  font-weight: 700 !important;
}

.gold-live-btn-primary {
  box-shadow: 0 4px 14px rgba(235, 186, 15, 0.3) !important;
}

.gold-live-btn-primary span {
  background: transparent !important;
  border: none !important;
}

.gold-live-btn-primary:hover,
.gold-live-btn-primary:hover span {
  filter: brightness(1.06);
  color: #1f1a06 !important;
  transform: translateY(-1px);
}

/* Filter Tabs Row */
.gold-live-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.1);
}

.gold-live-tab {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(225, 222, 231, 0.14);
  background: rgba(34, 29, 42, 0.55);
  color: #c4bfc8 !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gold-live-tab:hover,
.gold-live-tab:hover span:not(.gold-live-tab-count) {
  border-color: rgba(244, 217, 34, 0.4);
  color: #f4f3f5 !important;
}

.gold-live-tab.active {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  border-color: #fae767 !important;
  color: #2a240b !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 12px rgba(235, 186, 15, 0.28);
}

.gold-live-tab.active span {
  color: #2a240b !important;
  font-weight: 700 !important;
}

.gold-live-tab-count {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  color: #f4d922 !important;
}

.gold-live-tab.active .gold-live-tab-count {
  background: rgba(42, 36, 11, 0.18);
  color: #2a240b !important;
}

/* KPI Summary Cards (Statistics) */
.gold-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.gold-kpi-card {
  background: linear-gradient(135deg, rgba(52, 46, 62, 0.48) 0%, rgba(22, 19, 28, 0.72) 100%);
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gold-kpi-label {
  font-size: 12px;
  color: #99969e !important;
  font-weight: 600;
}

.gold-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #f4d922 !important;
  line-height: 1.15;
}

/* Table Container */
.gold-live-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(225, 222, 231, 0.12);
  background: rgba(14, 12, 18, 0.62);
}

.gold-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.gold-live-table thead tr {
  background: rgba(34, 29, 42, 0.78);
  border-bottom: 1px solid rgba(225, 222, 231, 0.14);
}

.gold-live-table th {
  padding: 10px 9px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #a8a2b0 !important;
  white-space: nowrap;
}

.gold-live-table tbody tr {
  border-bottom: 1px solid rgba(225, 222, 231, 0.07);
  transition: background 0.12s ease;
  cursor: pointer;
}

.gold-live-table tbody tr:last-child {
  border-bottom: none;
}

.gold-live-table tbody tr:hover {
  background: rgba(244, 217, 34, 0.07) !important;
}

.gold-live-table td {
  padding: 10px 9px;
  color: #e7e5ea !important;
  vertical-align: middle;
  max-width: 175px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gold-live-table th.gold-cell-status,
.gold-live-table td.gold-cell-status,
.gold-live-table th.gold-th-status,
.gold-live-table td.gold-td-status,
.gold-live-table td:has(.gold-status-pill) {
  min-width: 170px !important;
  width: 170px !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.gold-live-code {
  font-family: monospace;
  font-weight: 700;
  color: #f4d922 !important;
  font-size: 12.5px;
}

.gold-live-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #f4f3f5 !important;
}

.gold-live-call-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(244, 217, 34, 0.35);
  background: rgba(244, 217, 34, 0.12);
  color: #f4d922 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gold-live-call-btn:hover {
  background: #f4d922;
  color: #1f1a06 !important;
}

/* Status Pills */
.gold-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
  max-width: none;
}

.gold-status-new {
  background: rgba(244, 217, 34, 0.16);
  border: 1px solid rgba(244, 217, 34, 0.4);
  color: #f4d922 !important;
}

.gold-status-callback {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.38);
  color: #38bdf8 !important;
}

.gold-status-success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.38);
  color: #4ade80 !important;
}

.gold-status-danger {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.38);
  color: #f87171 !important;
}

.gold-status-neutral {
  background: rgba(168, 162, 176, 0.15);
  border: 1px solid rgba(168, 162, 176, 0.3);
  color: #d4cfd9 !important;
}

.gold-open-row-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(225, 222, 231, 0.16);
  background: rgba(45, 40, 54, 0.5);
  color: #e7e5ea !important;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gold-open-row-btn:hover {
  border-color: #f4d922;
  color: #f4d922 !important;
  background: rgba(244, 217, 34, 0.12);
}

/* Pagination Footer */
.gold-live-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-right: 36px;
  font-size: 12.5px;
  color: #99969e !important;
}

.gold-live-page-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gold-live-btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.widget.shortcut-widget-box.gold-shortcut-active {
  border-color: rgba(244, 217, 34, 0.75) !important;
  box-shadow: 0 0 18px rgba(244, 217, 34, 0.22) !important;
}

.desk-page .workspace-footer,
.btn-edit-workspace,
.btn-new-workspace {
  display: none !important;
}



/* ==========================================================================
   1:1 Original CRM Contact Card & Section Layouts (Gold Glass Theme)
   ========================================================================== */

/* Hide Frappe DocType clutter on Televenta Lead Form route */
[data-page-route="Form/Televenta Lead"] .page-head,
[data-page-route="Form/Televenta Lead"] .form-dashboard,
[data-page-route="Form/Televenta Lead"] .form-footer,
[data-page-route="Form/Televenta Lead"] .layout-side-section,
[data-page-route="Form/Televenta Lead"] .comment-box,
[data-page-route="Form/Televenta Lead"] .form-layout > .form-page,
[data-page-route="Form/Televenta Lead"] .form-layout > .form-message {
  display: none !important;
}

[data-page-route="Form/Televenta Lead"] .layout-main-section-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Modal Backdrop & Dialog for Contact Card */
.orig-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(8, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.orig-modal-dialog {
  width: min(1220px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  margin: auto;
}

/* Contact Card Shell */
.orig-lead-card-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f4f3f5;
}

.orig-card-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 32px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.14);
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.orig-modal-title {
  margin: 0 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #f4f3f5 !important;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  user-select: none;
}

.orig-modal-title:hover {
  opacity: 0.8;
}

.orig-modal-title.is-active {
  opacity: 1 !important;
  color: #f4d922 !important;
  border-bottom-color: #f4d922;
}

.orig-card-close-x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(225, 222, 231, 0.18);
  background: rgba(45, 40, 54, 0.55);
  color: #e4e2e8 !important;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.orig-card-close-x:hover {
  border-color: #f87171;
  color: #f87171 !important;
}

/* 2-Column Split inside Contact Card (Left column swaps Карточка / Справка / История; Right column Переписка stays visible) */
.orig-editor-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 430px);
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

/* Left Column: Knowledge Base (Справка) 1:1 Desktop App Layout */
.orig-local-kb-container {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 520px;
  max-height: 640px;
  height: 100%;
}

.orig-kb-inner {
  display: flex;
  flex: 1;
  gap: 0;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(225, 222, 231, 0.16);
  border-radius: 14px;
  background: rgba(18, 15, 24, 0.72);
}

.orig-kb-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(225, 222, 231, 0.14);
  background: rgba(14, 12, 19, 0.78);
}

.orig-kb-sidebar-top {
  padding: 14px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orig-kb-search-box {
  position: relative;
}

.orig-kb-search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #99969e;
  pointer-events: none;
}

.orig-kb-search-box input {
  width: 100%;
  height: 34px;
  padding: 6px 10px 6px 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(225, 222, 231, 0.18) !important;
  background: rgba(10, 8, 14, 0.85) !important;
  font-size: 12.5px !important;
  color: #f4f3f5 !important;
}

.orig-kb-admin-actions {
  display: flex;
  gap: 8px;
}

.orig-kb-admin-actions button {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid rgba(225, 222, 231, 0.18);
  background: rgba(45, 40, 54, 0.65);
  color: #f4f3f5 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.orig-kb-admin-actions button:hover {
  border-color: #f4d922;
  color: #f4d922 !important;
}

.orig-kb-tree-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.orig-kb-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.orig-kb-folder-row,
.orig-kb-article-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  border-radius: 7px;
  margin-bottom: 2px;
  transition: background 0.15s ease;
}

.orig-kb-folder-row:hover,
.orig-kb-article-row:hover {
  background: rgba(244, 217, 34, 0.09);
}

.orig-kb-article-row.is-selected {
  background: rgba(244, 217, 34, 0.16);
}

.orig-kb-article-row.is-selected .orig-kb-article-title {
  color: #f4d922 !important;
  font-weight: 700 !important;
}

.orig-kb-row-actions {
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.orig-kb-folder-row:hover .orig-kb-row-actions,
.orig-kb-article-row:hover .orig-kb-row-actions {
  opacity: 1;
}

.orig-kb-mini-btn {
  padding: 2px 5px;
  font-size: 11px;
  border-radius: 5px;
  border: 1px solid rgba(225, 222, 231, 0.18);
  background: rgba(34, 29, 42, 0.85);
  color: #e4e2e8 !important;
  cursor: pointer;
  line-height: 1.2;
}

.orig-kb-mini-btn:hover {
  border-color: #f4d922;
  color: #f4d922 !important;
}

.orig-kb-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(12, 10, 17, 0.55);
  position: relative;
  min-width: 0;
}

.orig-kb-welcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #99969e;
  text-align: center;
  padding: 32px;
}

.orig-kb-read {
  display: none;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
}

.orig-kb-read-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.14);
}

.orig-kb-breadcrumbs {
  font-size: 12px;
  color: #f4d922;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.orig-kb-read-body {
  font-size: 14px;
  line-height: 1.62;
  color: #e4e2e8;
}

.orig-kb-read-body p {
  margin: 0 0 12px;
}

.orig-kb-read-body h1,
.orig-kb-read-body h2,
.orig-kb-read-body h3 {
  color: #f4d922 !important;
  margin: 16px 0 8px !important;
}

.orig-kb-read-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.orig-kb-form {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px;
  flex: 1;
  overflow-y: auto;
}

/* Left Column: History (История) 1:1 Desktop App Layout */
.orig-local-history-container {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 14px;
  background: rgba(18, 15, 24, 0.68);
  overflow-y: auto;
  min-height: 520px;
  max-height: 640px;
}

.orig-history-card {
  padding: 12px 16px;
  background: rgba(34, 29, 42, 0.62);
  border-radius: 10px;
  border: 1px solid rgba(225, 222, 231, 0.14);
  color: #e4e2e8;
}

@media (max-width: 980px) {
  .orig-editor-split {
    grid-template-columns: 1fr;
  }
}

.orig-editor-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.orig-editor-section,
.orig-editor-messenger {
  background: rgba(18, 15, 24, 0.68);
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
}

.orig-editor-messenger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
}

.orig-section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.orig-editor-section-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #f4d922 !important;
}

.orig-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.orig-meta-badge {
  background: rgba(45, 40, 54, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.16);
  color: #d4cfd9 !important;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.orig-hot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74 !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 !important;
}

.orig-hot-pill.is-hot {
  background: rgba(249, 115, 22, 0.28);
  border-color: #fb923c;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.orig-form-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.orig-field-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #b4aebc !important;
  margin: 0 !important;
}

.orig-input,
.orig-select,
.orig-textarea {
  width: 100%;
  border-radius: 9px !important;
  background: rgba(12, 10, 16, 0.85) !important;
  border: 1px solid rgba(225, 222, 231, 0.18) !important;
  color: #f4f3f5 !important;
  font-size: 13px !important;
  padding: 7px 11px !important;
  box-sizing: border-box !important;
}

.orig-input,
.orig-select {
  height: 35px;
}

.orig-input:focus,
.orig-select:focus,
.orig-textarea:focus {
  border-color: #f4d922 !important;
  box-shadow: 0 0 10px rgba(244, 217, 34, 0.2) !important;
  outline: none !important;
}

.orig-input-with-action {
  display: flex;
  align-items: center;
  gap: 6px;
}

.orig-icon-btn {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid rgba(244, 217, 34, 0.35);
  background: rgba(244, 217, 34, 0.12);
  color: #f4d922 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s ease;
}

.orig-icon-btn:hover {
  background: #f4d922;
  color: #1f1a06 !important;
}

/* Products Multiselect & Object Checkbox Pills */
.orig-multiselect-trigger {
  width: 100%;
  height: 35px;
  border-radius: 9px;
  background: rgba(12, 10, 16, 0.85);
  border: 1px solid rgba(225, 222, 231, 0.18);
  color: #f4f3f5 !important;
  padding: 0 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  cursor: pointer;
}

.orig-multiselect-dropdown {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 30;
  background: #17141f;
  border: 1px solid rgba(244, 217, 34, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.orig-prod-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #e4e2e8 !important;
  cursor: pointer;
  margin: 0 !important;
}

.orig-object-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.orig-obj-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(225, 222, 231, 0.18);
  background: rgba(34, 29, 42, 0.6);
  color: #d4cfd9 !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 !important;
  transition: all 0.15s ease;
}

.orig-obj-pill.is-checked {
  background: rgba(244, 217, 34, 0.2);
  border-color: #f4d922;
  color: #f4d922 !important;
}

/* AI Compliance Box */
.orig-ai-box {
  background: rgba(28, 24, 36, 0.72);
  border: 1px dashed rgba(244, 217, 34, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
}

.orig-ai-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f4d922 !important;
}

.orig-ai-empty {
  font-size: 12px;
  color: #99969e;
}

/* Bottom Actions inside Card */
.orig-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.orig-actions-left,
.orig-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.orig-btn {
  height: 35px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid rgba(225, 222, 231, 0.18);
  background: rgba(45, 40, 54, 0.65);
  color: #f4f3f5 !important;
}

.orig-btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
}

.orig-btn-primary {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  border-color: #fae767 !important;
  color: #2a240b !important;
  box-shadow: 0 3px 12px rgba(235, 186, 15, 0.28);
}

.orig-btn-primary:hover {
  filter: brightness(1.06);
  color: #1f1a06 !important;
}

.orig-btn-secondary:hover,
.orig-btn-ghost:hover {
  border-color: #f4d922;
  color: #f4d922 !important;
}

.orig-btn-danger {
  background: rgba(220, 38, 38, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
  color: #f87171 !important;
}

.orig-btn-danger:hover {
  background: rgba(220, 38, 38, 0.35) !important;
  color: #fff !important;
}

/* Right Column: Messenger */
.orig-comm-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.orig-comm-channel-card {
  background: rgba(12, 10, 16, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.12);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.orig-comm-channel-label {
  font-size: 11px;
  color: #99969e;
}

.orig-comm-channel-state {
  font-size: 12px;
  color: #e4e2e8;
}

.orig-comm-channel-state--ok {
  color: #4ade80 !important;
}

.orig-comm-thread {
  flex: 1;
  min-height: 210px;
  max-height: 290px;
  overflow-y: auto;
  background-color: rgba(7, 8, 11, 0.94) !important;
  background-image:
    radial-gradient(rgba(245, 198, 68, 0.08) 1px, transparent 0),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 0) !important;
  background-size: 34px 34px !important;
  background-position: 0 0, 17px 17px !important;
  border: 1px solid rgba(225, 222, 231, 0.1);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.orig-comm-empty {
  margin: auto;
  color: #888390;
  font-size: 12.5px;
  text-align: center;
}

.orig-comm-msg {
  background: rgba(244, 217, 34, 0.12);
  border: 1px solid rgba(244, 217, 34, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  align-self: flex-end;
  max-width: 88%;
}

.orig-comm-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: #b4aebc;
  margin-bottom: 3px;
}

.orig-comm-msg-body {
  font-size: 12.5px;
  color: #f4f3f5;
  white-space: pre-wrap;
}

.orig-comm-composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orig-comm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Knowledge Base Cards */
.orig-kb-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.orig-kb-card {
  background: rgba(18, 15, 24, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 12px;
  padding: 14px;
}

.orig-kb-cat {
  font-size: 11px;
  font-weight: 700;
  color: #f4d922;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.orig-kb-title {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  color: #f4f3f5 !important;
}

.orig-kb-body {
  font-size: 12.5px;
  color: #c4beca;
  line-height: 1.5;
}

/* Original CRM Section Header & Controls */
.orig-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.orig-section-subtitle {
  margin: 2px 0 0 !important;
  font-size: 12.5px;
  color: #99969e !important;
}

.orig-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orig-queue-badge {
  height: 35px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(244, 217, 34, 0.35);
  background: rgba(244, 217, 34, 0.1);
  color: #e4e2e8;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orig-queue-badge strong {
  color: #f4d922;
}

/* Original CRM Statistics Layout */
.orig-stats-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .orig-stats-kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.orig-stat-card {
  background: rgba(18, 15, 24, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orig-stat-card span {
  font-size: 11.5px;
  color: #99969e;
  font-weight: 600;
}

.orig-stat-card strong {
  font-size: 22px;
  color: #f4d922;
  font-weight: 700;
}

.orig-stat-card small {
  font-size: 11px;
  color: #888390;
}

.orig-stats-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.orig-dash-card {
  background: rgba(18, 15, 24, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
}

.orig-dash-card h4 {
  margin: 0 0 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f4d922 !important;
}

.orig-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.orig-funnel-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #e4e2e8;
  margin-bottom: 4px;
}

.orig-funnel-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.orig-funnel-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.orig-donut-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}

.orig-donut-ring {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.orig-donut-hole {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #14111a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.orig-donut-hole strong {
  font-size: 16px;
  color: #f4f3f5;
}

.orig-donut-hole span {
  font-size: 10px;
  color: #99969e;
}

.orig-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.orig-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d4cfd9;
}

.orig-donut-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.orig-metric-list > div {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.07);
}

/* Original CRM Calendar Monthly Grid */
.orig-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.orig-cal-weekday {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #a8a2b0;
  padding: 6px 0;
  background: rgba(34, 29, 42, 0.65);
  border-radius: 8px;
}

.orig-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.orig-cal-day {
  min-height: 96px;
  background: rgba(16, 13, 22, 0.72);
  border: 1px solid rgba(225, 222, 231, 0.12);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.orig-cal-day.is-outside {
  opacity: 0.42;
}

.orig-cal-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #d4cfd9;
}

.orig-cal-day-head small {
  font-size: 10px;
  color: #f4d922;
}

.orig-cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orig-cal-event {
  width: 100%;
  text-align: left;
  background: rgba(244, 217, 34, 0.12);
  border: 1px solid rgba(244, 217, 34, 0.35);
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  color: #f4f3f5 !important;
  font-size: 11px;
}

.orig-cal-event:hover {
  background: rgba(244, 217, 34, 0.24);
}

.orig-cal-ev-top {
  display: flex;
  justify-content: space-between;
  color: #f4d922;
  font-size: 10.5px;
}

.orig-cal-ev-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ensure all columns of Original CRM Leads table fit properly without clipping status badges or notes */
.orig-records-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 0 !important;
}

.orig-records-table th,
.orig-records-table td {
  padding: 7px 5px !important;
  font-size: 11px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.orig-records-table th:nth-child(1), .orig-records-table td:nth-child(1) {
  width: 5% !important;
  text-align: center !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.orig-records-table th:nth-child(2), .orig-records-table td:nth-child(2) {
  width: 10.5% !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
}

.orig-records-table th:nth-child(3), .orig-records-table td:nth-child(3) {
  width: 13% !important;
  white-space: nowrap !important;
}

.orig-records-table th:nth-child(4), .orig-records-table td:nth-child(4) {
  width: 11% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.orig-records-table th:nth-child(5), .orig-records-table td:nth-child(5) {
  width: 10% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.orig-records-table th:nth-child(6), .orig-records-table td:nth-child(6) {
  width: 10% !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
}

.orig-records-table th.gold-cell-status,
.orig-records-table td.gold-cell-status,
.orig-records-table th.gold-th-status,
.orig-records-table td.gold-td-status,
.orig-records-table td:has(.gold-status-pill),
.orig-records-table th:nth-child(7),
.orig-records-table td:nth-child(7),
.gold-live-table td.gold-cell-status,
.gold-live-table th.gold-cell-status {
  width: 13.5% !important;
  overflow: visible !important;
  white-space: nowrap !important;
  text-align: center !important;
}

.orig-records-table th:nth-child(8),
.orig-records-table td:nth-child(8),
.gold-live-table td.gold-td-note {
  width: 19% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  font-size: 11px !important;
}

.orig-records-table th:nth-child(9),
.orig-records-table td:nth-child(9) {
  width: 8% !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
}

.orig-records-table th:nth-child(10),
.orig-records-table td:nth-child(10) {
  width: 10% !important;
  text-align: center !important;
}

/* =========================================================================
   MESSENGER COMPOSER: DESKTOP APP PARITY (TEMPLATES, VOICE NOTES, ATTACHMENTS)
   ========================================================================= */

.lead-conversation__composer {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  position: relative;
}

.lead-composer-preview-box {
  background: rgba(23, 20, 29, 0.95);
  border: 1px solid rgba(244, 217, 34, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  position: relative;
}

.lead-composer-preview-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lead-composer-preview-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 217, 34, 0.12);
  border-radius: 8px;
  color: #f4d922;
}

.lead-composer-preview-info {
  flex: 1;
  min-width: 0;
}

.lead-composer-preview-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f4f3f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-composer-preview-sub {
  font-size: 11px;
  color: #b4aebc;
}

.lead-composer-preview-remove {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.lead-composer-preview-remove:hover {
  background: rgba(248, 113, 113, 0.2);
}

.lead-conversation__composer-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 11, 18, 0.85);
  border: 1px solid rgba(225, 222, 231, 0.16);
  border-radius: 12px;
  padding: 6px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lead-conversation__composer-wrapper:focus-within {
  border-color: rgba(244, 217, 34, 0.45);
  box-shadow: 0 0 10px rgba(244, 217, 34, 0.18);
}

.lead-conversation__composer-input {
  flex: 1;
  width: 100%;
  min-height: 36px;
  max-height: 100px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #f4f3f5 !important;
  font-size: 13px !important;
  padding: 7px 10px !important;
  outline: none !important;
  resize: none;
  line-height: 1.35;
}

.lead-conversation__composer-input::placeholder {
  color: #7d7788;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #a49eb0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.btn-icon:hover {
  background: rgba(244, 217, 34, 0.12);
  color: #f4d922;
}

.btn-icon.is-primary {
  background: linear-gradient(#ffee48 0%, #ffd009 100%) !important;
  color: #1f1a06 !important;
  box-shadow: 0 2px 8px rgba(235, 186, 15, 0.35);
}

.btn-icon.is-primary:hover {
  filter: brightness(1.08);
}

.btn-icon.is-recording {
  background: #dc2626 !important;
  color: #fff !important;
  animation: pulse-attention 1.3s infinite;
}

.btn-icon-cancel {
  color: #ef4444 !important;
}

.btn-icon-cancel:hover {
  background: rgba(239, 68, 68, 0.2) !important;
}

.composer-visualizer-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 22, 36, 0.9);
  border-radius: 16px;
  padding: 2px 10px;
  height: 34px;
}

.composer-voice-timer {
  font-size: 11.5px;
  font-weight: 700;
  color: #f4d922;
  font-family: monospace;
}

.lead-conversation__composer-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Templates Popover */
.orig-templates-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 290px;
  max-height: 300px;
  overflow-y: auto;
  background: #17141f;
  border: 1px solid rgba(244, 217, 34, 0.4);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75);
  z-index: 10000;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.orig-templates-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(225, 222, 231, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: #f4d922;
}

.orig-templates-manage-link {
  background: transparent;
  border: none;
  color: #a49eb0;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.orig-templates-manage-link:hover {
  color: #f4d922;
  background: rgba(244, 217, 34, 0.1);
}

.orig-templates-popover-list {
  list-style: none;
  padding: 4px 0 0;
  margin: 0;
}

.orig-templates-folder-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #f4f3f5;
  border-radius: 6px;
  user-select: none;
}

.orig-templates-folder-head:hover {
  background: rgba(244, 217, 34, 0.12);
  color: #f4d922;
}

.orig-templates-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #e4e2e8;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orig-templates-item:hover {
  background: rgba(244, 217, 34, 0.16);
  color: #fff;
}

/* Audio Voice Note Bubble in Chat */
.orig-comm-msg.is-voice-note {
  border-color: rgba(244, 217, 34, 0.45);
}

.orig-comm-media-audio audio {
  filter: invert(0.9) hue-rotate(180deg);
  border-radius: 6px;
}


/* ==========================================================================
   GENRESURS CRM — AUTHENTIC GOLD GLASS LOGIN PAGE (MATRIX RAIN & CHAMFER)
   Exact parity with CRM Desk reference (VectorGlass Chamfered Block)
   ========================================================================== */

/* 1. Page Body: Pure Deep Black with Matrix Rain Canvas (Vertically & Horizontally Centered) */
body[data-path="login"],
body.login-page {
  min-height: 100vh !important;
  background-color: #000000 !important;
  background: #000000 !important;
  position: relative !important;
  overflow-x: hidden !important;
  color: #e7e5ea !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body[data-path="login"] #page-login {
  position: relative !important;
  z-index: 2 !important;
  background: transparent !important;
  width: 100% !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  margin: auto !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}

body[data-path="login"] .page-content-wrapper,
body[data-path="login"] main.container,
body[data-path="login"] .page_content {
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-path="login"] footer,
body[data-path="login"] .web-footer,
body[data-path="login"] .page-footer {
  display: none !important;
}

/* Ensure Matrix Rain Canvas has high-contrast visibility on Login Page */
body[data-path="login"] .gold-matrix-bg {
  opacity: 0.70 !important;
}

/* 2. Top Navigation Bar (Hidden on login to give clean cyber terminal aesthetic) */
body[data-path="login"] .navbar {
  display: none !important;
}

/* 3. Logo and Header above Login Card */
body[data-path="login"] .page-card-head {
  text-align: center !important;
  padding: 0 0 24px 0 !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-path="login"] .page-card-head .app-logo {
  max-height: 48px !important;
  filter: drop-shadow(0 0 20px rgba(244, 217, 34, 0.45)) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  margin: 0 auto 12px auto !important;
  display: block !important;
}

body[data-path="login"] .page-card-head .app-logo:hover {
  transform: scale(1.05) !important;
}

body[data-path="login"] .page-card-head h4 {
  color: #f4f3f5 !important;
  font-weight: 700 !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 20px rgba(244, 217, 34, 0.25) !important;
  margin: 0 !important;
  text-align: center !important;
}

/* 4. Glass Module Container (Wraps the VectorGlass Chamfered Card) */
body[data-path="login"] section.for-login,
body[data-path="login"] section.for-forgot,
body[data-path="login"] section.for-login-with-email-link,
body[data-path="login"] section.for-signup,
body[data-path="login"] section.for-email-login {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 25px rgba(244, 217, 34, 0.12)) !important;
}

/* Authentic Gold Glass Major Block on Login Card */
body[data-path="login"] .login-content.page-card {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 44px 44px 44px 44px !important;
  width: 100% !important;
  max-width: 460px !important;
  margin: 0 auto !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Ensure contents sit in z-index 3 above the SVG background */
body[data-path="login"] form.form-signin,
body[data-path="login"] .login-content.page-card > form,
body[data-path="login"] .login-content.page-card .page-card-body,
body[data-path="login"] .login-content.page-card .page-card-actions {
  position: relative !important;
  z-index: 3 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body[data-path="login"] form.form-signin,
body[data-path="login"] .login-content.page-card > form {
  margin: auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-path="login"] .page-card .page-card-body {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Form Groups & Containers */
body[data-path="login"] .page-card .form-group {
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body[data-path="login"] .page-card .form-group:last-of-type {
  margin-bottom: 0 !important;
}

body[data-path="login"] .page-card .email-field,
body[data-path="login"] .page-card .password-field {
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 5. Inputs & Fields */
body[data-path="login"] .page-card .page-card-body .form-control {
  background: rgba(18, 15, 24, 0.76) !important;
  border: 1px solid rgba(225, 222, 231, 0.18) !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  height: 48px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
}

body[data-path="login"] .page-card .page-card-body .password-field .form-control {
  padding-left: 48px !important;
  padding-right: 76px !important;
}

body[data-path="login"] .page-card .page-card-body .form-control::placeholder {
  color: rgba(160, 154, 168, 0.55) !important;
  font-weight: 400 !important;
  text-align: center !important;
}

body[data-path="login"] .page-card .page-card-body .form-control:focus {
  background: rgba(25, 20, 32, 0.92) !important;
  border-color: #f4d922 !important;
  box-shadow: 0 0 0 3px rgba(244, 217, 34, 0.22), 0 0 18px rgba(244, 217, 34, 0.32), inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Field Icons inside inputs */
body[data-path="login"] .page-card .page-card-body .field-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 4 !important;
  pointer-events: none !important;
  width: 16px !important;
  height: 16px !important;
}

body[data-path="login"] .page-card .page-card-body .field-icon svg path,
body[data-path="login"] .page-card .page-card-body .field-icon use {
  stroke: #f4d922 !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s ease, stroke 0.2s ease !important;
}

body[data-path="login"] .page-card .page-card-body .form-control:focus + .field-icon svg path,
body[data-path="login"] .page-card .page-card-body .field-icon:has(+ .form-control:focus) svg path {
  opacity: 1 !important;
  stroke: #ffd700 !important;
}

/* Password Visibility Toggle */
body[data-path="login"] .page-card .page-card-body .toggle-password {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #aaa1b0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  z-index: 4 !important;
  line-height: 1 !important;
  user-select: none !important;
  transition: color 0.2s ease !important;
}

body[data-path="login"] .page-card .page-card-body .toggle-password:hover {
  color: #f4d922 !important;
}

/* "Forgot password" Link (Centered) */
body[data-path="login"] .page-card .page-card-body .forgot-password-message {
  margin: 14px auto 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  width: 100% !important;
}

body[data-path="login"] .page-card .page-card-body .forgot-password-message a {
  color: #aaa1b0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

body[data-path="login"] .page-card .page-card-body .forgot-password-message a:hover {
  color: #f4d922 !important;
  text-shadow: 0 0 10px rgba(244, 217, 34, 0.4) !important;
}

/* 6. Main Action Button ("ВХОД В СИСТЕМУ") */
body[data-path="login"] .page-card-actions {
  margin: 22px 0 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

body[data-path="login"] .page-card-actions .btn-primary,
body[data-path="login"] .page-card-actions .btn-login {
  width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #f4d922 0%, #e5a00d 50%, #c97e08 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #121016 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.25 !important;
  box-shadow: 0 4px 20px rgba(244, 217, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  cursor: pointer !important;
}

body[data-path="login"] .page-card-actions .btn-primary:hover,
body[data-path="login"] .page-card-actions .btn-login:hover {
  background: linear-gradient(135deg, #ffe338 0%, #f4d922 50%, #e5a00d 100%) !important;
  box-shadow: 0 6px 28px rgba(244, 217, 34, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transform: translateY(-1.5px) !important;
  color: #0b090e !important;
}

body[data-path="login"] .page-card-actions .btn-primary:active,
body[data-path="login"] .page-card-actions .btn-login:active {
  transform: translateY(0.5px) !important;
  box-shadow: 0 2px 12px rgba(244, 217, 34, 0.4) !important;
}

/* 7. Completely Remove / Hide Secondary Logins, "ИЛИ" and "Вход по ссылке" */
body[data-path="login"] .social-logins,
body[data-path="login"] .login-divider,
body[data-path="login"] .login-with-email-link,
body[data-path="login"] .social-login-buttons,
body[data-path="login"] .btn-login-option,
body[data-path="login"] .sign-up-message {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 8. Error / Validation State */
body[data-path="login"] .page-card-body.invalid {
  border-color: #ef4444 !important;
}

body[data-path="login"] .login-content.page-card.invalid-login {
  animation: chamfer-shake 0.5s ease-in-out !important;
}

@keyframes chamfer-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* 9. Mobile Responsiveness */
@media (max-width: 480px) {
  body[data-path="login"] .login-content.page-card {
    padding: 30px 24px !important;
    margin: 0 12px !important;
  }
}

/* =============================================================================
   10. GENRESURS Brand Intro Overlay
   ============================================================================= */
html.intro-active,
body.intro-active {
  overflow: hidden !important;
  height: 100vh !important;
}

#intro {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: #101419 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

#intro::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(ellipse at center, rgba(32, 48, 59, 0.27), transparent 60%) !important;
  pointer-events: none !important;
}

#intro [hidden],
#intro img[hidden],
#intro video[hidden] {
  display: none !important;
}

#intro.leaving {
  opacity: 0 !important;
  pointer-events: none !important;
}

.intro-media {
  width: min(1100px, 92vw) !important;
  max-width: 100% !important;
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.intro-media video:not([hidden]),
.intro-media img:not([hidden]) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 75vh !important;
  object-fit: contain !important;
}

.intro-top {
  position: absolute !important;
  top: 36px !important;
  left: 42px !important;
  color: #7d858b !important;
  font-size: 10px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  user-select: none !important;
}

.skip {
  position: absolute !important;
  bottom: 38px !important;
  right: 42px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #a4abb0 !important;
  padding: 11px 18px !important;
  font-size: 11px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s !important;
  z-index: 25 !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.skip:hover {
  border-color: #efac47 !important;
  color: #efac47 !important;
  background: rgba(239, 172, 71, 0.08) !important;
}

.progress {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.progress span {
  height: 100% !important;
  display: block !important;
  background: #efac47 !important;
  width: 0% !important;
  transition: width 0.1s linear !important;
}

.intro-caption {
  position: absolute !important;
  bottom: 48px !important;
  left: 42px !important;
  color: #727b83 !important;
  font-size: 9px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  user-select: none !important;
}

@media (max-width: 850px) {
  .intro-media {
    width: min(540px, 90vw) !important;
  }
  .intro-top {
    top: 24px !important;
    left: 20px !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
  }
  .intro-caption {
    left: 20px !important;
    bottom: 30px !important;
    font-size: 8px !important;
    letter-spacing: 1.5px !important;
  }
  .skip {
    right: 20px !important;
    bottom: 24px !important;
    padding: 9px 14px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .intro-media {
    width: 88vw !important;
  }
  .intro-top {
    top: 18px !important;
    left: 16px !important;
    font-size: 8.5px !important;
    letter-spacing: 1.5px !important;
  }
  .intro-caption {
    left: 16px !important;
    bottom: 24px !important;
    font-size: 7.5px !important;
    letter-spacing: 1px !important;
  }
  .skip {
    right: 16px !important;
    bottom: 20px !important;
    padding: 8px 12px !important;
    font-size: 9.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #intro {
    transition: none !important;
  }
}
