@charset "UTF-8";
/* Coinbase Dark Theme — SCSS */
:root {
  --accent: #4e87ff;
  --accent-rgb: 78, 135, 255;
  --accent-hover: #3f74e8;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0A0B0D;
  color: #FFFFFF;
  line-height: 1.5;
  min-height: 100vh;
}

/* Кастомные скроллы Coinbase */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

.header {
  background: #121416;
  border-bottom: 1px solid #2D2F33;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}
.logo .logo-accent {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-nav a {
  font-size: 14px;
  transition: color 0.15s;
}
.header-nav a:hover {
  color: #FFFFFF;
}

.btn-logout {
  padding: 6px 16px;
  border: 1px solid #2D2F33;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.15s;
}
.btn-logout:hover {
  border-color: #FF3B30;
  color: #FF3B30;
}

.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 600;
}

.card, .detail-card {
  background: #1A1B1E;
  border: 1px solid #2D2F33;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #1A1B1E;
  border: 1px solid #2D2F33;
  border-radius: 12px;
  padding: 20px;
}

/* Компактные карточки блока «Сделки» на дашборде (3×2) */
.deals-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.deals-stats-grid .stat-card {
  padding: 12px 14px;
}
.deals-stats-grid .stat-value {
  font-size: 22px;
  margin-bottom: 2px;
}
.deals-stats-grid .stat-label {
  font-size: 12px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #2D2F33;
  border-radius: 8px;
  background: #232528;
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus {
  border-color: var(--accent);
}
.form-input::placeholder {
  color: rgba(156, 163, 175, 0.5);
}
select.form-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.form-input::-ms-expand { display: none; }
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.62;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-hover);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  background: #1A1B1E;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.15s;
  color: var(--accent);
}
.btn-small:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.13);
}
.btn-outline {
  background: transparent;
  border: 1px solid #6B7280;
  color: #6B7280;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(107, 114, 128, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
}
.table th {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2D2F33;
}
.table td {
  border-bottom: 1px solid rgba(45, 47, 51, 0.5);
}
.table tr:hover td {
  background: rgba(26, 27, 30, 0.5);
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters .filter-input {
  max-width: 280px;
}
.filters .filter-select {
  max-width: 200px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.done-badge {
  background: rgba(0, 200, 83, 0.15);
  color: #00C853;
}

.pending-badge {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px;
}

.login-card {
  background: #1A1B1E;
  border: 1px solid #2D2F33;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
}

.login-logo {
  margin-bottom: 32px;
  text-align: center;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(255, 59, 48, 0.15);
  color: #FF3B30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.section {
  margin-bottom: 48px;
  margin-top: 48px;
  border-bottom: 1px dashed #585858cc;
  padding-bottom: 48px;
}

.section h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #FFFFFF;
}

/* Настраиваемая раскладка дашборда (drag&drop блоков) */
.dashboard-blocks .section {
  position: relative;
}
.dashboard-blocks .dash-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dashboard-blocks .dash-section-head h2 {
  margin-bottom: 0;
}
.dashboard-blocks .dash-section-head .drag-handle {
  display: inline-flex;
  align-items: center;
  cursor: grab;
  color: #6B7280;
  flex-shrink: 0;
}
.dashboard-blocks .dash-section-head .drag-handle:hover {
  color: #9CA3AF;
}
.dashboard-blocks .dash-section-head .drag-handle:active {
  cursor: grabbing;
}
.dashboard-blocks .sortable-ghost {
  opacity: 0.4;
}
.dashboard-blocks .sortable-drag {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3);
}

h2 svg, h3 svg, .nav-icon svg, .btn svg, .btn-small svg {
  flex-shrink: 0;
}

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

.source-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.source-item .source-name {
  width: 120px;
  font-size: 14px;
  color: #FFFFFF;
}
.source-item .source-count {
  font-size: 14px;
  width: 40px;
  text-align: right;
}

.source-bar-bg {
  flex: 1;
  height: 8px;
  background: #2D2F33;
  border-radius: 4px;
  overflow: hidden;
}

.source-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.5s;
}

.funnel {
  display: flex;
  gap: 8px;
}

.funnel-step {
  flex: 1;
  border-radius: 8px;
  padding: 20px 12px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.funnel-step span {
  white-space: nowrap;
}

.funnel-all {
  background: var(--accent);
  color: #fff;
}
.funnel-guide {
  background: rgba(var(--accent-rgb), 0.75);
  color: #fff;
}
.funnel-interest {
  background: rgba(var(--accent-rgb), 0.55);
  color: #fff;
}
.funnel-schedule {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-card-full-width {
  grid-column: 1 / -1;
}

.detail-card-chat {
  margin-top: 20px;
}

.detail-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Настраиваемая раскладка карточек */
.detail-card .drag-handle {
  cursor: grab;
}
.detail-card .drag-handle:active {
  cursor: grabbing;
}
.detail-grid .sortable-ghost {
  opacity: 0.4;
  background: #121416;
}
.detail-grid .sortable-drag {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3);
}
.layout-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.deal-row-link:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.3);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 47, 51, 0.5);
  font-size: 14px;
}
.info-row .info-label {
  width: 212px;
  white-space: nowrap;
  flex-shrink: 0;
}

a.source_url_link {
  display: block;
  max-width: 300px;
  overflow: hidden;
}

.status-current {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-form {
  display: flex;
  gap: 8px;
}

.status-form select {
  max-width: 200px;
}

.note-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

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

.note-item {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45, 47, 51, 0.5);
}

.note-date {
  font-size: 12px;
  margin-right: 8px;
}

.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.timeline-date {
}

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

.followup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.mono {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 13px;
}

.muted {
  color: #9CA3AF !important;
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 20px;
  width: 100%;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #2D2F33;
  border-radius: 8px;
  color: #9CA3AF !important;
  font-size: 13px;
  transition: all 0.15s;
}
.nav-icon:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}
.nav-icon.active {
  border-color: var(--accent);
  color: #fff !important;
  background: rgba(var(--accent-rgb),0.12);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle-desktop {
  background: none;
  cursor: pointer;
}

.search-wrapper {
  position: relative;
  max-width: 280px;
}
.search-wrapper .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-wrapper .filter-input {
  max-width: none;
  padding-left: 36px;
}

.page-header h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chart-wrapper {
  position: relative;
  height: 250px;
  margin-top: 16px;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6B7280;
  font-size: 13px;
}

.chart-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-label {
  font-size: 13px;
}

.chart-days {
  display: flex;
  gap: 6px;
}

.day-btn {
  padding: 4px 14px;
  border: 1px solid #2D2F33;
  border-radius: 6px;
  background: #1A1B1E;
  color: #6B7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.day-btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.day-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.day-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .chart-wrapper {
    height: 180px;
  }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.menu-toggle:hover {
  color: #fff;
  background: #1A1B1E;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: #1A1B1E;
  border-left: 1px solid #2D2F33;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.menu-overlay.open .menu-drawer {
  transform: translateX(0);
}

.menu-header {
  padding: 20px 24px;
  border-bottom: 1px solid #2D2F33;
}
.menu-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #D1D5DB !important;
  font-size: 15px;
  transition: background 0.15s, color 0.15s;
  border: none !important;
}
.menu-item svg {
  flex-shrink: 0;
  color: #6B7280;
  transition: color 0.15s;
}
.menu-item:hover,
.menu-item.active {
  background: rgba(255,255,255,0.04);
  color: #fff !important;
}
.menu-item:hover svg,
.menu-item.active svg {
  color: var(--accent);
}

.menu-divider {
  border: none;
  border-top: 1px solid #2D2F33;
  margin: 8px 16px;
}

.menu-logout {
  color: #FF3B30 !important;
}
.menu-logout svg {
  color: #FF3B30;
}
.menu-logout:hover {
  background: rgba(255,59,48,0.1) !important;
}

.lang-switcher {
  margin-top: auto;
  padding: 14px 24px 20px;
  border-top: 1px solid #2D2F33;
  flex-shrink: 0;
}
.lang-switcher-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6B7280;
  margin-bottom: 8px;
}
.lang-switcher-buttons {
  display: flex;
  gap: 8px;
}
.lang-btn {
  flex: 1;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #D1D5DB;
  background: transparent;
  border: 1px solid #2D2F33;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover {
  border-color: var(--accent);
  color: #fff;
}
.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .info-row .info-label {
    width: auto;
  }
  .page-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .deals-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    flex-direction: column;
  }
  .filters .filter-input, .filters .filter-select {
    max-width: 100%;
  }
  .header-nav {
    display: none;
  }
  .header-right {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }
  .menu-toggle svg {
    color: #fff;
    stroke: #fff;
  }
}

/* Activity feed */
#activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45,47,51,0.4);
  font-size: 13px;
}
.activity-item:last-child {
  border-bottom: none;
}
.activity-icon {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}
.activity-icon .activity-dot {
  margin-top: 6px;
}
.activity-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.activity-text {
  color: #D1D5DB;
  line-height: 1.4;
}
.activity-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.activity-text a:hover {
  text-decoration: underline;
}
.activity-time {
  font-size: 11px;
  color: #6B7280;
}

.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;background:#FF3B30;color:#fff;border-radius:9px;font-size:11px;font-weight:700;padding:0 5px;margin-left:4px;line-height:1}
.board-search{margin-bottom:0}

.activity-limit{display:flex;gap:4px;background:#121416;border:1px solid #2D2F33;border-radius:8px;padding:3px}
.limit-btn{padding:4px 10px;border:none;border-radius:6px;background:transparent;color:#6B7280;font-size:12px;cursor:pointer;transition:all 0.15s}
.limit-btn:hover{color:#D1D5DB}
.limit-btn.active{background:var(--accent);color:#fff}
.activity-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:12px 0 4px;margin-top:8px}
.activity-page-btn{padding:4px 10px;border:none;border-radius:6px;background:transparent;color:#6B7280;font-size:12px;cursor:pointer;min-width:28px}
.activity-page-btn:hover{color:#D1D5DB;background:#1E2126}
.activity-page-btn.active{background:var(--accent);color:#fff}
.activity-page-btn.activity-nav{font-weight:700;font-size:14px}
.activity-page-btn[disabled]{opacity:0.35;cursor:not-allowed;pointer-events:none}
.activity-page-ellipsis{color:#6B7280;padding:4px 2px;font-size:12px}

/* Status pills (compact) */
.status-pills{display:flex;flex-wrap:wrap;gap:6px}
.status-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500;border:1px solid}


.page-search-wrapper{position:relative;flex:1;max-width:360px;margin-left:8px}
.page-search-wrapper .search-icon{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#6B7280;pointer-events:none;z-index:1}
.page-search-wrapper .form-input{padding:8px 14px 8px 35px;width:100%;height:38px;border:1px solid #2D2F33;border-radius:8px;background:#121416;color:#fff;font-size:13px;outline:none}
.page-search-wrapper .form-input:focus{border-color:var(--accent)}
.page-search-wrapper .form-input::placeholder{color:#6B7280}

.board-container>.loading{display:flex;align-items:center;justify-content:center;width:100%;min-height:200px}


/* Utility classes (replacing common inline styles) */
.flex-center{display:flex;align-items:center;justify-content:center}
.gap-8{gap:8px}
.gap-12{gap:12px}
.text-mono{font-family:monospace;font-size:13px;color:#9CA3AF}
.text-muted{color:#9CA3AF;font-size:13px}
.text-white{color:#E5E7EB}
.text-right{text-align:right}
.mb-8{margin-bottom:8px}
.mt-4{margin-top:4px}
.p-20{padding:20px}
.chat-msg-out{display:flex;flex-direction:column;align-items:flex-end}
.chat-msg-in{display:flex;flex-direction:column;align-items:flex-start}
.chat-bubble-out{background:var(--accent);color:#fff;padding:8px 14px;border-radius:12px 12px 4px 12px;font-size:13px;line-height:1.4;word-wrap:break-word}
.chat-bubble-in{background:#273d6c;color:#D1D5DB;padding:8px 14px;border-radius:12px 12px 12px 4px;font-size:13px;line-height:1.4;word-wrap:break-word}
.chat-time{font-size:10px;color:#6B7280;margin-top:2px}


/*# sourceMappingURL=style.css.map */
