/* FlorStore CRM Theme - Based on main FlorStore design */
:root {
  --bg: #000;
  --bg-card: #0a0a0a;
  --bg-light: #111;
  --bg-sidebar: #050505;
  --text: #fff;
  --text-dim: #555;
  --text-secondary: #888;
  --accent: #ff2d75;
  --accent-2: #7928ca;
  --accent-3: #00d4ff;
  --gradient: linear-gradient(135deg, #ff2d75 0%, #7928ca 50%, #00d4ff 100%);
  --gradient-btn: linear-gradient(135deg, #ff2d75, #7928ca);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.9);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.app {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

/* ========== AUTH SCREEN ========== */
.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
}

.auth__visual {
  position: relative;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 45, 117, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(121, 40, 202, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.auth__overlay { display: none; }

.auth__content {
  position: relative;
  z-index: 10;
  max-width: 500px;
  text-align: center;
}

/* FlorStore Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  justify-content: center;
}

.brand__mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.brand__cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.brand__card {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 45, 117, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand__card img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand__card--1 { background: linear-gradient(135deg, #ff2d75, #ff6b9d); animation: cardGlow1 6s ease-in-out infinite; }
.brand__card--2 { background: linear-gradient(135deg, #7928ca, #a855f7); animation: cardGlow2 6s ease-in-out infinite; }
.brand__card--3 { background: linear-gradient(135deg, #00d4ff, #06b6d4); animation: cardGlow3 6s ease-in-out infinite; }
.brand__card--4 { background: linear-gradient(135deg, #f97316, #fb923c); animation: cardGlow4 6s ease-in-out infinite; }

@keyframes cardGlow1 {
  0%, 15%, 100% { 
    box-shadow: 0 4px 15px rgba(255, 45, 117, 0.3); 
    transform: scale(1); 
  }
  5%, 10% { 
    box-shadow: 0 0 30px rgba(255, 45, 117, 0.9), 0 0 60px rgba(255, 45, 117, 0.5); 
    transform: scale(1.15); 
  }
}

@keyframes cardGlow2 {
  0%, 20%, 40%, 100% { 
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.3); 
    transform: scale(1); 
  }
  25%, 35% { 
    box-shadow: 0 0 30px rgba(121, 40, 202, 0.9), 0 0 60px rgba(121, 40, 202, 0.5); 
    transform: scale(1.15); 
  }
}

@keyframes cardGlow3 {
  0%, 45%, 65%, 100% { 
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); 
    transform: scale(1); 
  }
  50%, 60% { 
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.9), 0 0 60px rgba(0, 212, 255, 0.5); 
    transform: scale(1.15); 
  }
}

@keyframes cardGlow4 {
  0%, 70%, 90%, 100% { 
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3); 
    transform: scale(1); 
  }
  75%, 85% { 
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.9), 0 0 60px rgba(249, 115, 22, 0.5); 
    transform: scale(1.15); 
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.brand__name {
  display: flex;
  gap: 1px;
}

.brand__name span {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: letterShine 6s ease-in-out infinite;
}

.brand__name span:nth-child(1) { animation-delay: 0s; }
.brand__name span:nth-child(2) { animation-delay: 0.1s; }
.brand__name span:nth-child(3) { animation-delay: 0.2s; }
.brand__name span:nth-child(4) { animation-delay: 0.3s; }
.brand__name span:nth-child(5) { animation-delay: 0.4s; }
.brand__name span:nth-child(6) { animation-delay: 0.5s; }
.brand__name span:nth-child(7) { animation-delay: 0.6s; }
.brand__name span:nth-child(8) { animation-delay: 0.7s; }
.brand__name span:nth-child(9) { animation-delay: 0.8s; }

@keyframes letterShine {
  0%, 20%, 100% {
    filter: brightness(1) drop-shadow(0 0 0 transparent);
    transform: translateY(0);
  }
  5%, 15% {
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 45, 117, 0.8));
    transform: translateY(-2px);
  }
}

.brand__subtitle {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.brand--compact .brand__mark { width: 46px; height: 46px; }
.brand--compact .brand__cards { gap: 3px; }
.brand--compact .brand__card { width: 20px; height: 20px; border-radius: 5px; }
.brand--compact .brand__card img { width: 10px; height: 10px; }
.brand--compact .brand__name span { font-size: 18px; }
.brand--compact .brand__subtitle { font-size: 10px; }
.brand--compact { margin-bottom: 0; }

.auth__title {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth__description {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  text-align: left;
}

.auth__bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.auth__bullets li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

/* Auth Panel */
.auth__panel {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.auth__panel-inner {
  width: 100%;
  max-width: 380px;
  padding: 48px 40px;
}

.auth__panel-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.auth__panel-subtitle {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth__footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ========== FORMS ========== */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.form__row--between { justify-content: space-between; }

.form__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.field__input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-light);
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.field__input::placeholder { color: var(--text-dim); }

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.15);
}

.field__input--textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

/* Buttons */
.btn {
  height: 48px;
  border-radius: 12px;
  border: none;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--gradient-btn);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(255, 45, 117, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(255, 45, 117, 0.4);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 45, 117, 0.1);
}

.btn--sm { height: 36px; font-size: 13px; padding: 0 16px; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.link-button {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s;
}

.link-button:hover { color: var(--accent-3); }

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ========== MAIN LAYOUT ========== */
.layout {
  display: flex;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

.layout--hidden { display: none; }

/* ========== SIDEBAR ========== */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
}

.sidebar__header {
  padding: 8px 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.sidebar__nav::-webkit-scrollbar { width: 4px; }
.sidebar__nav::-webkit-scrollbar-track { background: transparent; }
.sidebar__nav::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 4px; }

.sidebar__group { margin-bottom: 24px; }

.sidebar__group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin: 0 0 12px 12px;
  font-weight: 600;
}

/* Nav Items */
.nav-item {
  width: 100%;
  border-radius: 12px;
  border: none;
  padding: 10px 14px;
  margin-bottom: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-item--sub {
  padding-left: 32px;
  font-size: 13px;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--gradient);
  transition: height 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.nav-item:hover::before { height: 60%; }

.nav-item--active {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.15), rgba(121, 40, 202, 0.1));
  color: var(--text);
  border: 1px solid rgba(255, 45, 117, 0.2);
}

.nav-item--active::before { height: 60%; }

.nav-item__label {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.nav-item__badges {
  display: flex;
  gap: 4px;
  z-index: 1;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.nav-badge--today { background: var(--accent); color: #fff; }
.nav-badge--tomorrow { background: var(--accent-3); color: #000; }
.nav-badge:empty, .nav-badge[data-count="0"] { display: none; }

/* Submenu */
.sidebar__submenu {
  overflow: hidden;
  max-height: 600px;
  transition: all 0.3s ease;
}

.sidebar__submenu--collapsed {
  max-height: 0;
  opacity: 0;
}

/* Sidebar Footer */
.sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar__settings {
  border-radius: 12px;
  border: none;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  justify-content: space-between;
  transition: all 0.2s;
}

.sidebar__settings:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sidebar__settings-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.sidebar__settings--expanded .sidebar__settings-arrow { transform: rotate(180deg); }

.sidebar__submenu--footer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar__submenu--footer.sidebar__submenu--expanded {
  max-height: 300px;
  opacity: 1;
}

.sidebar__logout {
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar__logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ========== WORKSPACE ========== */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 10% 20%, rgba(255, 45, 117, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(121, 40, 202, 0.05) 0%, transparent 40%),
    var(--bg);
  overflow: hidden;
}

/* ========== TOPBAR ========== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.topbar__title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar__subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search */
.topbar__search { min-width: 280px; }

.topbar__search--advanced {
  position: relative;
  min-width: 450px;
}

.topbar__search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.topbar__search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.15);
}

.topbar__search-type {
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  padding: 12px 14px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 160px;
}

.topbar__search-type:hover { background: rgba(255, 255, 255, 0.05); }
.topbar__search-type option { background: var(--bg-card); color: var(--text); }

.topbar__search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.topbar__search-input::placeholder { color: var(--text-dim); }

.topbar__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--gradient-btn);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.topbar__search-btn:hover { filter: brightness(1.1); }

/* Search Results */
.topbar__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.topbar__search-results--visible { display: block; }
.topbar__search-results:empty { display: none; }

/* User */
.topbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.topbar__user-name {
  font-size: 13px;
  font-weight: 500;
}

.topbar__user-role {
  font-size: 11px;
  color: var(--text-dim);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 45, 117, 0.3);
}

/* ========== CONTENT ========== */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 3px; }

.section { display: none; }
.section--active { display: block; }

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.section__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.section__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========== GRID & STATS ========== */
.grid { display: grid; gap: 16px; }

.grid--stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.grid--two { grid-template-columns: 1.5fr 1fr; }

@media (max-width: 1200px) {
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .grid--two { grid-template-columns: 1fr; }
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 45, 117, 0.1);
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-card__delta { font-size: 12px; }
.stat-card__delta--up { color: #22c55e; }
.stat-card__delta--down { color: #ef4444; }
.stat-card__delta--neutral { color: var(--text-dim); }

/* ========== PANELS ========== */
.panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.panel__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel__header--compact { padding: 12px 16px; }

.panel__title {
  font-size: 15px;
  font-weight: 600;
}

.panel__subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.panel__body { padding: 20px; }
.panel__body--chart { height: 240px; }
.panel__body--deals { display: flex; flex-direction: column; gap: 16px; }

.panel__body--centered {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.panel__body--centered h3 { margin: 0; font-size: 18px; }
.panel__body--centered p { margin: 0; font-size: 14px; color: var(--text-dim); }

.panel--table { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }

.panel--empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.15);
}

.pill {
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.2));
  color: var(--accent);
  border: 1px solid rgba(255, 45, 117, 0.3);
}

/* ========== DEALS ========== */
.deals-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deals-filters__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deals-filters__dates {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.deals-filters__input {
  font-size: 13px;
  padding: 8px 12px;
  width: 140px;
  height: 36px;
}

.deals-filters__dash {
  font-size: 12px;
  color: var(--text-dim);
}

.chip {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 45, 117, 0.1);
}

.chip--active {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.15));
  border-color: var(--accent);
  color: var(--text);
}

.chip--apply {
  background: rgba(255, 45, 117, 0.15);
  border-color: rgba(255, 45, 117, 0.4);
  color: var(--accent);
}

.chip--warning {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* Status Cards */
.deals-status-cards {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.deals-status-card {
  flex: 0 1 auto;
  min-width: 85px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deals-status-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 117, 0.3);
}

.deals-status-card--active {
  background: rgba(255, 45, 117, 0.1);
  border-color: var(--accent);
}

.deals-status-card__count {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.deals-status-card__label {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Status Colors */
.deals-status-card--draft .deals-status-card__count { color: #94a3b8; }
.deals-status-card--planned .deals-status-card__count { color: #3b82f6; }
.deals-status-card--in_progress .deals-status-card__count { color: #f97316; }
.deals-status-card--completed .deals-status-card__count { color: #22c55e; }
.deals-status-card--cancelled .deals-status-card__count { color: #ef4444; }
.deals-status-card--clarification .deals-status-card__count { color: #a855f7; }
.deals-status-card--at_florist .deals-status-card__count { color: #ec4899; }
.deals-status-card--approval .deals-status-card__count { color: #eab308; }
.deals-status-card--reassembly .deals-status-card__count { color: #fb923c; }
.deals-status-card--assembled .deals-status-card__count { color: #14b8a6; }
.deals-status-card--ready_to_ship .deals-status-card__count { color: #06b6d4; }
.deals-status-card--with_courier .deals-status-card__count { color: #6366f1; }
.deals-status-card--return .deals-status-card__count { color: #f43f5e; }

/* Deal Cards */
.deal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1400px) { .deal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .deal-cards { grid-template-columns: 1fr; } }

.deal-card {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.1), rgba(255, 45, 117, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.deal-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 45, 117, 0.1);
}

.deal-card--draft {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(245, 124, 0, 0.08));
  border-color: rgba(255, 152, 0, 0.2);
}

.deal-card--unpaid {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08)) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.deal-card--paid {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.08)) !important;
  border-color: rgba(34, 197, 94, 0.25) !important;
}

.deal-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-card__id { font-size: 13px; font-weight: 600; }

.deal-card__exec-date {
  color: var(--accent-3);
  font-weight: 600;
  background: rgba(0, 212, 255, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.deal-card__meta { font-size: 12px; color: var(--text-dim); }

.deal-card__amount {
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deal-card__amount-label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
}

.deal-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
}

.deal-card__field { min-width: 0; }
.deal-card__label { font-size: 10px; color: var(--text-dim); margin-bottom: 2px; }
.deal-card__value { font-size: 13px; }
.deal-card__value--highlight { color: var(--accent-3); font-weight: 600; }

/* ========== TABLES ========== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table__head {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table__body { display: flex; flex-direction: column; }

.table__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.table__row:hover { background: rgba(255, 45, 117, 0.05); }

.table__row div {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== PRODUCTS ========== */
.products-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.products-search {
  flex: 1;
  min-width: 250px;
}

.products-search__input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-light);
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.products-search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.15);
}

.products-filters {
  display: flex;
  gap: 12px;
}

.products-filter {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-light);
  padding: 0 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  min-width: 150px;
}

.products-filter option { background: var(--bg-card); }

.products-view-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 4px;
}

.view-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.view-btn:hover { color: var(--text); }

.view-btn--active {
  background: var(--gradient-btn);
  color: #fff;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* Products category groups */
.products-category-group {
  grid-column: 1 / -1;
}

.products-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.products-category-header:hover {
  border-color: rgba(255, 45, 117, 0.3);
}

.products-category-header__icon {
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.products-category-header--collapsed .products-category-header__icon {
  transform: rotate(-90deg);
}

.products-category-header__title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.products-category-header__count {
  font-size: 12px;
  color: var(--text-dim);
}

.products-category-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.products-category-content--collapsed {
  display: none;
}

/* Products empty state */
.products-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.products-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.products-empty__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.products-empty__text {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 300px;
}

.products-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px;
  color: var(--text-dim);
}

.products-loading__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 45, 117, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== FINANCE ========== */
.finance-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.finance-tab {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.finance-tab:hover {
  border-color: var(--accent);
  color: var(--text);
}

.finance-tab--active {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.15));
  border-color: var(--accent);
  color: var(--text);
}

.finance-view { display: none; }
.finance-view--active { display: block; }

.finance-filters {
  margin-bottom: 20px;
}

.finance-filters__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.field--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field--inline .field__label {
  white-space: nowrap;
  margin: 0;
}

.field--inline .field__input {
  width: auto;
  min-width: 150px;
}

.finance-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.finance-summary__item {
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.finance-summary__item--total {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.15), rgba(121, 40, 202, 0.1));
  border-color: rgba(255, 45, 117, 0.3);
}

.finance-summary__label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.finance-summary__value {
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.finance-summary__accounts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========== ACCOUNTS ========== */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ========== RESERVATIONS ========== */
.reservations-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.reservations-tab {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.reservations-tab:hover { border-color: var(--accent); color: var(--text); }

.reservations-tab--active {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.15));
  border-color: var(--accent);
  color: var(--text);
}

.reservations-view { display: none; }
.reservations-view--active { display: block; }

.reservations-filters { margin-bottom: 20px; }
.reservations-filters__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reservations-list { display: flex; flex-direction: column; gap: 12px; }

/* ========== TASKS ========== */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ========== BOUQUETS ========== */
.bouquets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ========== CATALOGS ========== */
.catalogs-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========== LOYALTY ========== */
.loyalty-type-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loyalty-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s;
}

.loyalty-option:hover { border-color: rgba(255, 45, 117, 0.3); }

.loyalty-option input { margin-top: 4px; accent-color: var(--accent); }

.loyalty-option__content { flex: 1; }
.loyalty-option__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.loyalty-option__desc { font-size: 12px; color: var(--text-dim); }

/* ========== PERMISSIONS ========== */
.permissions-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  min-height: 400px;
}

.permissions-users {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding-right: 20px;
}

.permissions-editor { padding-left: 20px; }

.permissions-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.permissions-editor__title { margin: 0; font-size: 18px; }

.permissions-editor__actions { display: flex; gap: 8px; }

.btn--success { background: #22c55e; color: #fff; }
.btn--danger { background: #ef4444; color: #fff; }

/* ========== CASH REGISTER ========== */
.cash-filters {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cash-days-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== USER PERFORMANCE ========== */
.user-performance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== LIST ========== */
.list { display: flex; flex-direction: column; gap: 8px; }

.list--ranked .list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.list--ranked .list__item:hover { background: rgba(255, 45, 117, 0.05); }

/* ========== MISC ========== */
.text-muted { color: var(--text-dim); }

.grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Search Results */
.search-result-group { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.search-result-group:last-child { border-bottom: none; }
.search-result-group__title { padding: 4px 16px; font-size: 10px; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover { background: rgba(255, 45, 117, 0.1); }

.search-result-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.search-result-item__icon--deal { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.search-result-item__icon--client { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.search-result-item__icon--bouquet { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.search-result-item__icon--product { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.search-result-item__content { flex: 1; min-width: 0; }
.search-result-item__title { font-size: 14px; font-weight: 500; }
.search-result-item__meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.search-result-item__badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; background: rgba(255, 45, 117, 0.15); color: var(--accent); }

.search-no-results, .search-loading { padding: 24px; text-align: center; color: var(--text-dim); }

/* ========== MODALS ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop--visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop--visible .modal {
  transform: scale(1) translateY(0);
}

.modal--lg { max-width: 1100px; }
.modal--xl { max-width: 1400px; }

.modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal__close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========== FORM GRID ========== */
.form--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field--full { grid-column: span 2; }

/* ========== BADGES & TAGS ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge--success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge--warning { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.badge--danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge--info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge--primary { background: rgba(255, 45, 117, 0.15); color: var(--accent); }

/* ========== TOOLTIPS ========== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-slideUp { animation: slideUp 0.3s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .sidebar { width: 240px; }
  .topbar__search--advanced { min-width: 300px; }
  .deal-cards { grid-template-columns: 1fr; }
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .form--grid { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }
}

@media (max-width: 600px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { display: none; }
  .sidebar { position: fixed; left: -280px; z-index: 100; transition: left 0.3s; }
  .sidebar--open { left: 0; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gradient); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { box-shadow: 0 0 10px rgba(255, 45, 117, 0.5); }

/* ========== SELECTION ========== */
::selection {
  background: rgba(255, 45, 117, 0.3);
  color: var(--text);
}

/* ========== FOCUS STATES ========== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.3);
}

/* ========== MODAL VARIANTS ========== */
.modal--sm { max-width: 420px; }
.modal--md { max-width: 600px; }
.modal--lg { max-width: 900px; width: 95%; }
.modal--wide { max-width: 1000px; width: 95%; }

.modal--draft {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(245, 124, 0, 0.08)), var(--bg-card);
  border-color: rgba(255, 152, 0, 0.3);
}

.modal--draft .modal__header { border-bottom-color: rgba(255, 152, 0, 0.2); }
.modal--draft .modal__footer { border-top-color: rgba(255, 152, 0, 0.2); }

.modal-backdrop--hidden { display: none; }
.modal-backdrop--nested { z-index: 1100; }

/* ========== DEAL SWITCHER ========== */
.deal-switcher {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  max-height: 95vh;
}

.deal-switcher__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 0 8px;
  flex-shrink: 0;
}

.deal-switcher__tab {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deal-switcher__tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.deal-switcher__tab--active {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.15));
  border-color: rgba(255, 45, 117, 0.4);
  color: var(--text);
}

.deal-switcher__tab--draft {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.3);
  color: #ffa726;
}

.deal-switcher__tab--draft.deal-switcher__tab--active {
  background: rgba(255, 152, 0, 0.25);
  border-color: rgba(255, 152, 0, 0.5);
}

.deal-switcher__panel {
  display: none;
  flex: 1;
  min-height: 0;
}

.deal-switcher__panel--active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.deal-switcher__panel .modal {
  flex: 1;
  max-height: none;
}

/* ========== DEAL FORM BLOCKS ========== */
/* Two-column layout for deal form */
[data-form="create-deal"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Full-width blocks */
[data-form="create-deal"] .deal-form-block--order,
[data-form="create-deal"] .deal-form-block--items {
  grid-column: span 2;
}

.deal-form-block {
  border-radius: 16px;
  margin-bottom: 0;
  overflow: hidden;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.deal-form-block:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.deal-form-block__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-form-block__icon {
  font-size: 16px;
}

.deal-form-block__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.deal-form-block__checkbox {
  margin-left: auto;
  font-size: 12px;
}

.deal-form-block__content {
  padding: 16px 18px;
}

.deal-form-block__content--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Block color variants */
.deal-form-block--primary {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.08), rgba(121, 40, 202, 0.05));
}

.deal-form-block--primary .deal-form-block__header {
  background: rgba(255, 45, 117, 0.05);
}

.deal-form-block--client {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(59, 130, 246, 0.05));
}

.deal-form-block--client .deal-form-block__header {
  background: rgba(0, 212, 255, 0.05);
}

.deal-form-block--order {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(234, 179, 8, 0.05));
}

.deal-form-block--order .deal-form-block__header {
  background: rgba(249, 115, 22, 0.05);
}

.deal-form-block--items {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.05));
}

.deal-form-block--items .deal-form-block__header {
  background: rgba(168, 85, 247, 0.05);
}

.deal-form-block--discount {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(249, 115, 22, 0.05));
}

.deal-form-block--discount .deal-form-block__header {
  background: rgba(234, 179, 8, 0.05);
}

.deal-form-block--payment {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(20, 184, 166, 0.05));
}

.deal-form-block--payment .deal-form-block__header {
  background: rgba(34, 197, 94, 0.05);
}

.deal-form-block--total {
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.12), rgba(121, 40, 202, 0.08));
  border-color: rgba(255, 45, 117, 0.2);
}

.deal-form-block--total .deal-form-block__header {
  background: rgba(255, 45, 117, 0.08);
}

.deal-form-block--comment {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(71, 85, 105, 0.05));
}

.deal-form-block--comment .deal-form-block__header {
  background: rgba(100, 116, 139, 0.05);
}

/* Deal form specific styles */
.deal-order-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.deal-order-row .field {
  flex: 1;
}

.time-select-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-select-row span {
  color: var(--text-dim);
}

.deal-budget-row {
  display: flex;
  gap: 16px;
}

.deal-budget-row .field {
  flex: 1;
}

.deal-items-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.deal-items-list {
  min-height: 60px;
}

.deal-items-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.deal-discount-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deal-discount-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-discount-input {
  width: 100px;
}

.deal-discount-label {
  color: var(--text-dim);
  font-size: 14px;
}

.deal-discount-or {
  color: var(--text-dim);
  font-size: 13px;
}

.deal-promocode-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deal-payments-block {
  margin-top: 12px;
}

.deal-payments-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  font-size: 13px;
}

.deal-payments-summary__label {
  color: var(--text-dim);
}

.deal-payments-summary__value {
  font-weight: 600;
  color: var(--accent);
}

.deal-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.deal-total__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.deal-total__value {
  font-size: 14px;
  font-weight: 500;
}

.deal-total__value--discount {
  color: #22c55e;
}

.deal-total__value--delivery {
  color: var(--accent-3);
}

.deal-total-row--final {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-total-row--final .deal-total__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.deal-total__value--final {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.deal-bonus-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.deal-total__value--bonus-plus {
  color: #22c55e;
}

.deal-total__value--bonus-minus {
  color: #ef4444;
}

/* Responsive for deal form blocks */
@media (max-width: 1000px) {
  [data-form="create-deal"] {
    grid-template-columns: 1fr;
  }
  
  [data-form="create-deal"] .deal-form-block--order,
  [data-form="create-deal"] .deal-form-block--items {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .deal-form-block__content--grid {
    grid-template-columns: 1fr;
  }
  
  .deal-order-row {
    flex-direction: column;
  }
  
  .deal-discount-row {
    flex-wrap: wrap;
  }
}

/* ========== ADDITIONAL TABLE STYLES ========== */
.table--stock .table__head,
.table--stock .table__row { grid-template-columns: 0.5fr 1fr 1fr 1fr 1.5fr 1fr 1fr 1fr; }

.table--receipts .table__head,
.table--receipts .table__row { grid-template-columns: 0.5fr 1fr 1.5fr 1fr 1.5fr 1fr; }

.table--planning .table__head,
.table--planning .table__row { grid-template-columns: 0.5fr 1fr 1.5fr 1.5fr 1fr 1.5fr; }

.table--writeoffs .table__head,
.table--writeoffs .table__row { grid-template-columns: 0.5fr 1fr 1.5fr 1fr 1.5fr 1fr; }

.table--finance-transactions .table__head,
.table--finance-transactions .table__row { grid-template-columns: 1.2fr 1fr 1.2fr 1fr 1.2fr 1.5fr 1fr; }

.table--finance-docs .table__head,
.table--finance-docs .table__row { grid-template-columns: 0.5fr 1fr 1fr 0.8fr 1fr 1fr 1fr 1fr 1fr 1fr; }

.table--summary .table__head,
.table--summary .table__row { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }

/* ========== PRODUCT CARDS (COMPACT HORIZONTAL) ========== */
.product-card {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 110px;
}

.product-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 45, 117, 0.12);
}

.product-card__image {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.product-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.product-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__height {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.product-card__name-en {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__prices-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.product-card__price-value {
  font-size: 16px;
  font-weight: 600;
}

.product-card__price-value--retail {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card__price-value--web {
  color: #3b82f6;
  font-size: 14px;
}

.product-card__price-value--purchase {
  color: #f59e0b;
}

.product-card__category {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card__stock {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ========== PRODUCT LIST VIEW (TABLE) ========== */
.products-container--list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.products-container--list .products-category-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.products-container--list .product-card {
  display: grid;
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 100px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: none;
  border-right: none;
  border-top: none;
  min-height: auto;
}

.products-container--list .product-card:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.products-container--list .product-card:hover {
  transform: none;
  background: rgba(255, 45, 117, 0.05);
  box-shadow: none;
}

.products-container--list .product-card__image {
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin-bottom: 0;
  border-radius: 6px;
}

.products-container--list .product-card__info {
  display: contents;
}

.products-container--list .product-card__title-row {
  display: none;
}

.products-container--list .product-card__header {
  display: none;
}

.products-container--list .product-card__margin {
  position: static;
  font-size: 13px;
}

.products-container--list .product-card__name {
  font-size: 14px;
  margin-bottom: 0;
}

.products-container--list .product-card__name-en {
  display: none;
}

.products-container--list .product-card__height {
  display: none;
}

.products-container--list .product-card__tags {
  display: none;
}

.products-container--list .product-card__prices-row {
  display: none;
}

.products-container--list .product-card__prices {
  display: contents;
}

.products-container--list .product-card__price {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.products-container--list .product-card__price-label {
  display: none;
}

.products-container--list .product-card__price-value {
  font-size: 14px;
}

.products-container--list .product-card__actions-list {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Products list header */
.products-list-header {
  display: none;
}

.products-container--list + .products-list-header,
.products-container--list .products-list-header {
  display: grid;
  grid-template-columns: 50px 2fr 1fr 1fr 1fr 1fr 100px;
  gap: 16px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

/* ========== PRODUCT VIEW MODAL ========== */
.product-view {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}

.product-view__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-view__main-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-view__main-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-view__thumbnails {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-view__thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
}

.product-view__thumbnail:hover,
.product-view__thumbnail--active {
  border-color: var(--accent);
}

.product-view__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-view__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-view__name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.product-view__name-en {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: -12px;
}

.product-view__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-view__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-view__meta-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-view__meta-value {
  font-size: 15px;
  font-weight: 500;
}

.product-view__prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-view__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.product-view__price-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-view__price-value {
  font-size: 20px;
  font-weight: 700;
}

.product-view__price-value--purchase {
  color: #f59e0b;
}

.product-view__price-value--retail {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-view__price-value--web {
  color: #3b82f6;
}

.product-view__price-value--margin {
  color: #22c55e;
}

.product-view__price-value--margin.negative {
  color: #ef4444;
}

.product-view__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.product-view__stock-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.product-view__stock-value {
  font-size: 16px;
  font-weight: 600;
  color: #22c55e;
}

.product-edit-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== BOUQUET CARDS ========== */
.bouquet-card {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.1), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bouquet-card:hover {
  border-color: rgba(244, 114, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.15);
}

.bouquet-card__image {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.bouquet-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.bouquet-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bouquet-card__catalog {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.bouquet-card__price {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bouquet-card__availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
}

.bouquet-card__availability--available {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.bouquet-card__availability--unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.bouquet-card__availability--substitute {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* ========== ACCOUNT CARDS ========== */
.account-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.account-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-2px);
}

.account-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.account-card__name {
  font-size: 16px;
  font-weight: 600;
}

.account-card__type {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.account-card__balance {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.account-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ========== TASK CARDS ========== */
.task-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s ease;
}

.task-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
  transform: translateY(-2px);
}

.task-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.task-card__title {
  font-size: 15px;
  font-weight: 600;
}

.task-card__type {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(121, 40, 202, 0.15);
  color: #a855f7;
}

.task-card__description {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}

.task-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.task-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.task-card__status--open { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.task-card__status--assigned { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.task-card__status--in_progress { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.task-card__status--completed { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.task-card__status--cancelled { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ========== CATALOG CARDS ========== */
.catalog-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.catalog-card:hover {
  border-color: rgba(255, 45, 117, 0.3);
}

.catalog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.catalog-card__name {
  font-size: 18px;
  font-weight: 600;
}

.catalog-card__count {
  font-size: 13px;
  color: var(--text-dim);
}

.catalog-card__bouquets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

/* ========== CASH DAY CARDS ========== */
.cash-day {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.cash-day__header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cash-day__date {
  font-size: 15px;
  font-weight: 600;
}

.cash-day__summary {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.cash-day__income { color: #22c55e; }
.cash-day__expense { color: #ef4444; }

.cash-day__body {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== USER PERFORMANCE ========== */
.user-performance-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.user-performance-item:hover {
  background: rgba(255, 45, 117, 0.05);
}

.user-performance-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.user-performance-item__info {
  flex: 1;
}

.user-performance-item__name {
  font-size: 14px;
  font-weight: 500;
}

.user-performance-item__role {
  font-size: 12px;
  color: var(--text-dim);
}

.user-performance-item__stats {
  display: flex;
  gap: 20px;
  text-align: right;
}

.user-performance-item__stat-value {
  font-size: 16px;
  font-weight: 600;
}

.user-performance-item__stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* ========== TOP BOUQUETS LIST ========== */
.top-bouquet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.top-bouquet-item__rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.top-bouquet-item__info {
  flex: 1;
}

.top-bouquet-item__name {
  font-size: 13px;
  font-weight: 500;
}

.top-bouquet-item__sales {
  font-size: 11px;
  color: var(--text-dim);
}

.top-bouquet-item__revenue {
  font-size: 14px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== ADDRESS BAR ========== */
.address-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  min-width: 350px;
  transition: all 0.3s ease;
}

.address-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.15);
}

.address-bar__prefix {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
  user-select: none;
}

.address-bar__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  outline: none;
  padding: 0;
}

.address-bar__input::placeholder {
  color: var(--text-dim);
}

.address-bar__suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.address-bar__suggestions--visible {
  display: block;
}

.address-bar__group {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.address-bar__group:last-child {
  border-bottom: none;
}

.address-bar__group-title {
  padding: 4px 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

.address-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.address-bar__item:hover,
.address-bar__item--active {
  background: rgba(255, 45, 117, 0.1);
}

.address-bar__item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 45, 117, 0.2), rgba(121, 40, 202, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.address-bar__item-text {
  flex: 1;
  font-size: 13px;
}

.address-bar__item-path {
  font-size: 11px;
  color: var(--text-dim);
}

.address-bar__no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}


/* ========== PRODUCT PHOTOS UPLOAD ========== */
.product-photos {
  margin-top: 8px;
}

.product-photos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.product-photo-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.product-photo-slot:hover {
  border-color: rgba(255, 45, 117, 0.4);
  background: rgba(255, 45, 117, 0.05);
}

.product-photo-slot--has-photo {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.1);
}

.product-photo-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}

.product-photo-slot:hover .product-photo-slot__placeholder {
  color: var(--accent);
}

.product-photo-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-slot__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-photo-slot:hover .product-photo-slot__remove {
  opacity: 1;
}

.product-photo-slot__remove:hover {
  background: #ef4444;
}

.product-photo-slot__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.product-photo-slot__spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.product-photos__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

.field--full-width {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  .product-photos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .product-photos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===== ПОИСК ТОВАРОВ С АВТОДОПОЛНЕНИЕМ ===== */
.product-search-wrapper {
  position: relative;
  flex: 1;
}

.product-search-input {
  width: 100%;
}

.product-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--bg-card, #0a0a0a);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  margin-top: 4px;
}

.product-search-dropdown--visible {
  display: block;
}

.product-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.05));
  transition: background 0.15s ease;
}

.product-search-item:last-child {
  border-bottom: none;
}

.product-search-item:hover,
.product-search-item--active {
  background: rgba(255, 45, 117, 0.15);
}

.product-search-item__info {
  flex: 1;
  min-width: 0;
}

.product-search-item__name {
  font-size: 14px;
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-search-item__meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  margin-top: 2px;
}

.product-search-item__category {
  color: #60a5fa;
}

.product-search-item__group {
  color: #a78bfa;
}

.product-search-item__height {
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.product-search-item__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #ff2d75);
  white-space: nowrap;
}

.product-search-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary, #888);
  font-size: 13px;
}

/* Подсветка совпадений */
.product-search-highlight {
  background: rgba(255, 45, 117, 0.3);
  color: var(--accent, #ff2d75);
  border-radius: 2px;
  padding: 0 2px;
}

/* ===== SUPPLY ITEMS ===== */
.supply-items-section {
  margin-top: 16px;
}

.supply-items-add {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.supply-items-add__qty {
  width: 80px;
}

.supply-items-add__price {
  width: 120px;
}

.supply-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supply-items-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-secondary, #888);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed var(--border-subtle, rgba(255, 255, 255, 0.1));
}

.supply-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.supply-item-row__name {
  flex: 1;
  font-size: 14px;
  color: var(--text, #fff);
}

.supply-item-row__qty {
  width: 70px;
  text-align: center;
}

.supply-item-row__price {
  width: 100px;
  text-align: right;
}

.supply-item-row__total {
  width: 100px;
  text-align: right;
  font-weight: 600;
  color: var(--accent, #ff2d75);
}

.supply-item-row__remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
}

.supply-item-row__remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

.supply-total-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.supply-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.supply-total__label {
  color: var(--text-secondary, #888);
}

.supply-total__value {
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient, linear-gradient(135deg, #ff2d75, #7928ca));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Deal Items (чек сделки) ===== */
.deal-items-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.deal-items-list {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 300px;
  overflow-y: auto;
}

.deal-items-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.deal-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  position: relative;
}

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

.deal-item-row__drag {
  cursor: grab;
  color: var(--text-dim);
  opacity: 0.4;
  font-size: 16px;
  user-select: none;
  transition: all 0.2s;
  line-height: 1;
  padding: 2px;
  letter-spacing: 1px;
}

.deal-item-row__drag:hover {
  opacity: 1;
  color: var(--accent);
}

.deal-item-row__drag:active {
  cursor: grabbing;
}

.deal-item-row--dragging {
  opacity: 0.2;
  border: 1px dashed var(--accent);
  background: rgba(255, 45, 117, 0.03);
}

.deal-item-row--drag-over {
  border-top: 2px solid var(--accent);
  background: rgba(255, 45, 117, 0.06);
}

.deal-item-row--bouquet {
  background: rgba(249, 115, 22, 0.05);
}

.deal-item-row__icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.deal-item-row__info {
  flex: 1;
  min-width: 0;
}

.deal-item-row__name {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-item-row__meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.deal-item-row__qty {
  width: 60px;
  padding: 6px 8px;
  text-align: center;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.deal-item-row__price {
  width: 100px;
  padding: 6px 8px;
  text-align: right;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text);
}

.deal-item-row__total-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 100px;
}

.deal-item-row__total {
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
}

.deal-item-row__discount {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.deal-item-row__remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.2s;
}

.deal-item-row__remove:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.deal-item-row__edit {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.2s;
}

.deal-item-row__edit:hover {
  background: rgba(121, 40, 202, 0.15);
  color: var(--accent-2);
}

.deal-item-row__subitems {
  padding-left: 36px;
  background: rgba(0, 0, 0, 0.3);
}

.deal-item-row--subitem {
  padding: 6px 14px;
  font-size: 12px;
}

.deal-item-row--subitem .deal-item-row__name {
  font-size: 12px;
  color: var(--text-secondary);
}

.deal-item-row--subitem .deal-item-row__qty {
  width: 50px;
  padding: 4px 6px;
  font-size: 12px;
}

.deal-item-row--subitem .deal-item-row__total {
  font-size: 12px;
}

.deal-item-row--subitem .deal-item-row__total-wrap {
  min-width: 80px;
}

.deal-item-row--subitem .deal-item-row__price {
  width: 60px;
  padding: 4px 6px;
  font-size: 12px;
}

.deal-items-list--readonly {
  max-height: 300px;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .deal-items-actions {
    flex-direction: column;
  }
  .deal-item-row {
    flex-wrap: wrap;
  }
  .deal-item-row__info {
    width: calc(100% - 40px);
  }
}

/* Disabled menu items */
.nav-item--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
