/* orb.css — extracted from HomeDashboard.css */

.hdb-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(55px) saturate(200%);
  -webkit-backdrop-filter: blur(55px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hdb-hero-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: rgba(var(--primary-rgb),0.1);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}

.hdb-hero-insights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.hdb-hero-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.4;
}

.hdb-hero-insight .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.hdb-hero-actions-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.hdb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  flex: 1;
}

.hdb-hero-btn-voice {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.hdb-hero-btn-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
  opacity: 0.9;
}

.hdb-hero-btn-voice .material-symbols-outlined {
  font-size: 28px;
}

.hdb-hero-btn {
  flex: 1 1 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 12px;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hdb-hero-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
  color: #fff;
}

.hdb-hero-btn.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.hdb-hero-btn.primary:hover {
  background: var(--primary-color);
  opacity: 0.9;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.hdb-hero-btn .material-symbols-outlined {
  font-size: 18px;
}

.hdb-hero-suggest-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}

.hdb-hero-suggest-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(var(--primary-rgb),0.7);
  margin-bottom: 10px;
}

.hdb-hero-suggest-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hdb-hero-suggest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 200px;
  min-width: 0;
}

.hdb-hero-suggest-card:hover {
  background: rgba(var(--primary-rgb),0.1);
  border-color: rgba(var(--primary-rgb),0.25);
  transform: translateY(-1px);
}

.hdb-hero-suggest-icon {
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.hdb-hero-suggest-body { min-width: 0; flex: 1; }

.hdb-hero-suggest-text {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdb-hero-suggest-hint {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.hdb-hero-suggest-cta {
  font-size: 16px;
  color: rgba(var(--primary-rgb),0.5);
  flex-shrink: 0;
  transition: color 0.2s;
}

.hdb-hero-suggest-card:hover .hdb-hero-suggest-cta { color: var(--primary-color); }

.hdb-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hdb-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
/* Tablet: wrap skill-pills to second row */

.hdb-hero-main { flex: 1; }

.hdb-hero-weather {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}

.hdb-hero-weather-temp { font-size: 28px; font-weight: 700; color: #fff; }

.hdb-hero-weather-cond { font-size: 12px; color: #94a3b8; }

.hdb-hero-weather-info { font-size: 11px; color: #64748b; }

.hdb-hero-weather-footer { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; width: 100%; }

.hdb-hero-weather-icon { font-size: 28px; color: #fbbf24; margin-bottom: 2px; }
/* ── Family Status ── */

.hdb-msg-overlay, .hdb-notif-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  display: flex; align-items: center; justify-content: center;
  animation: hdbFadeIn 0.3s ease;
}

.hdb-msg-modal, .hdb-notif-modal {
  background: rgba(18, 20, 36, 0.82);
  backdrop-filter: blur(60px) saturate(210%);
  -webkit-backdrop-filter: blur(60px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  padding: 0;
  width: 95%; 
  max-width: 520px;
  max-height: 85vh;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden !important;
  animation: hdbModalSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hdb-msg-modal { padding: 36px; }

.hdb-msg-modal-title {
  font-size: 24px; font-weight: 800; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.02em;
}

.hdb-msg-modal-sub {
  font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px;
  font-weight: 500;
}

.hdb-msg-textarea {
  width: 100%; min-height: 120px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px 20px;
  color: #fff; font-size: 15px; resize: none;
  font-family: inherit;
  box-sizing: border-box;
  outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hdb-msg-textarea:focus { 
  border-color: var(--primary-color); 
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.hdb-msg-actions {
  display: flex; gap: 14px; margin-top: 24px;
}

.hdb-msg-btn {
  padding: 14px 24px; border-radius: 18px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; font-family: inherit;
}

.hdb-msg-cancel {
  flex: 1; 
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.hdb-msg-cancel:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

.hdb-msg-send {
  flex: 2; 
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.hdb-msg-send:hover { 
  box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.45); 
  transform: translateY(-2px); 
}

.hdb-msg-send.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.hdb-msg-send.danger:hover {
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.45);
}

.hdb-msg-send:disabled { opacity: 0.5; cursor: default; transform: none !important; box-shadow: none !important; }

.hdb-msg-file-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; min-height: 32px;
}

.hdb-msg-attach-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; color: rgba(255,255,255,0.7);
  cursor: pointer; font-size: 13px;
  transition: all 0.2s;
}

.hdb-msg-attach-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.hdb-msg-file-name {
  font-size: 12px; color: rgba(255,255,255,0.5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px;
}

.hdb-msg-file-clear {
  background: none; border: none; color: rgba(255,255,255,0.3);
  cursor: pointer; font-size: 16px; padding: 0 4px;
  line-height: 1; transition: color 0.15s;
}

.hdb-msg-file-clear:hover { color: #ef4444; }
/* ── Notification badge & modal ── */

.hdb-hero-insight--notif { cursor: pointer; }

.hdb-hero-insight--notif:hover { opacity: 0.82; }

[data-mode="light"] .hdb-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.60) 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

[data-mode="light"] .hdb-hero-insight {
  color: #334155 !important;
}

[data-mode="light"] .hdb-hero-weather {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-mode="light"] .hdb-hero-weather-temp {
  color: #0f172a !important;
}

[data-mode="light"] .hdb-hero-weather-cond {
  color: #475569 !important;
}

[data-mode="light"] .hdb-hero-weather-info {
  color: #64748b !important;
}

[data-mode="light"] .hdb-hero-weather-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}
/* Hero actions */

[data-mode="light"] .hdb-hero-btn {
  background: rgba(var(--primary-rgb), 0.08) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.20) !important;
  color: var(--primary-dark) !important;
}

[data-mode="light"] .hdb-hero-btn:hover {
  background: rgba(var(--primary-rgb), 0.15) !important;
  border-color: rgba(var(--primary-rgb), 0.40) !important;
  color: var(--primary-dark) !important;
}
/* Hero suggest cards */

[data-mode="light"] .hdb-hero-suggest-section {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

[data-mode="light"] .hdb-hero-suggest-card {
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

[data-mode="light"] .hdb-hero-suggest-card:hover {
  background: rgba(var(--primary-rgb), 0.06) !important;
  border-color: rgba(var(--primary-rgb), 0.20) !important;
}

[data-mode="light"] .hdb-hero-suggest-text {
  color: #0f172a !important;
}

[data-mode="light"] .hdb-hero-suggest-hint {
  color: #64748b !important;
}
/* Skill pills */

[data-mode="light"] .hdb-msg-overlay,

[data-mode="light"] .hdb-msg-modal,

[data-mode="light"] .hdb-msg-modal-title {
  color: #0f172a !important;
}

[data-mode="light"] .hdb-msg-modal-sub {
  color: rgba(0, 0, 0, 0.5) !important;
}

[data-mode="light"] .hdb-msg-textarea {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #0f172a !important;
}

[data-mode="light"] .hdb-msg-textarea:focus {
  background: rgba(0, 0, 0, 0.02) !important;
}

[data-mode="light"] .hdb-msg-cancel {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #334155 !important;
}

[data-mode="light"] .hdb-msg-cancel:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-mode="light"] .hdb-msg-attach-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
  color: #475569 !important;
}

[data-mode="light"] .hdb-msg-attach-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

[data-mode="light"] .hdb-msg-file-name {
  color: #475569 !important;
}

[data-mode="light"] .hdb-msg-file-clear {
  color: rgba(0, 0, 0, 0.3) !important;
}
/* Reminder / Event modal — light mode */

.hdb-voice-orb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hdb-voice-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
  animation: hdbOrbPulse 2.5s ease-in-out infinite;
}

.hdb-voice-orb:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
  animation: none;
}

.hdb-voice-orb:active { transform: scale(0.95); }

.hdb-voice-orb .material-symbols-outlined { font-size: 32px; }

.hdb-voice-orb-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(var(--primary-rgb), 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.agent-orb-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 80px;
  min-height: 420px;
  box-sizing: border-box;
}

/* ── Wrap: sized to the orb, anchors buttons ── */

.agent-orb-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* ── The Circle ── */

.agent-orb {
  position: relative;
  width: clamp(280px, 38vw, 400px);
  height: clamp(280px, 38vw, 400px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(45px) saturate(180%);
  -webkit-backdrop-filter: blur(45px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 80px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.agent-orb:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    inset 0 0 80px rgba(255, 255, 255, 0.03);
}

/* ── Ambient glow behind orb ── */

.agent-orb::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* ── Agent name — top 1/5 of circle ── */

.agent-orb-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20%;
  width: 100%;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
  flex-shrink: 0;
}

/* ── Agent mood badge ── */

.agent-orb-mood {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  margin-top: -4px;
  margin-bottom: 2px;
}

/* ── Divider line ── */

.agent-orb-divider {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.2) 70%, transparent 100%);
  flex-shrink: 0;
}

/* ── Dynamic content area — bottom 4/5 ── */

.agent-orb-dynamic {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 28px 10px;
  box-sizing: border-box;
}

/* ── Individual slide ── */

.agent-orb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 36px 40px;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.agent-orb-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── DateTime block in weather slide ── */

.agent-orb-datetime {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
/* ── Slide content styles ── */

.agent-orb-slide-icon {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.agent-orb-slide-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.agent-orb-slide-value {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.agent-orb-slide-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  max-width: 200px;
  line-height: 1.4;
}

.agent-orb-slide-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 240px;
  overflow: hidden;
  text-align: left;
  max-height: calc(100% - 50px);
}

.agent-orb-slide-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
  min-width: 0;
}

.agent-orb-slide-item-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.agent-orb-slide-item .material-symbols-outlined {
  font-size: 15px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 1px; /* визуальное выравнивание с первой строкой текста */
}

.agent-orb-slide-more {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ── Voice mode: Listening state ── */

.agent-orb--listening {
  border-color: rgba(var(--primary-rgb), 0.4);
  animation: orbListenPulse 1.8s ease-in-out infinite;
}

.agent-orb--listening::before {
  opacity: 1;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
}

.agent-orb-listen-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.agent-orb-listen-dots {
  display: inline-flex;
  gap: 4px;
}

.agent-orb-listen-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: orbDotBounce 1.4s ease-in-out infinite;
}

.agent-orb-listen-dots span:nth-child(2) { animation-delay: 0.15s; }

.agent-orb-listen-dots span:nth-child(3) { animation-delay: 0.3s; }

/* ── Voice mode: chat messages in orb ── */

.agent-orb-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  padding: 0 4px; /* небольшой отступ, чтобы текст не обрезался краями круга */
}

.agent-orb-chat::-webkit-scrollbar { display: none; }

.agent-orb-chat-msg {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 90%;
  word-break: break-word;
  box-sizing: border-box;
}

.agent-orb-chat-msg.user {
  background: rgba(var(--primary-rgb), 0.15);
  color: #e2e8f0;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.agent-orb-chat-msg.agent {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ── Slide indicators (dots at bottom of orb) ── */

.agent-orb-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.agent-orb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.agent-orb-dot.active {
  background: rgba(var(--primary-rgb), 0.8);
  width: 14px;
  border-radius: 3px;
}

/* ── Action buttons around orb ── */

.agent-orb-action {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.agent-orb-action:hover {
  transform: scale(1.08);
}

.agent-orb-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.agent-orb-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.agent-orb-action-btn .material-symbols-outlined {
  font-size: 24px;
}

.agent-orb-action-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s;
}

.agent-orb-action:hover .agent-orb-action-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Voice Orb action (primary accent) ── */

.agent-orb-action--voice .agent-orb-action-btn {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.35);
  animation: hdbOrbPulse 2.5s ease-in-out infinite;
}

.agent-orb-action--voice .agent-orb-action-btn:hover {
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
  animation: none;
}

.agent-orb-action--voice .agent-orb-action-btn .material-symbols-outlined {
  font-size: 28px;
}

.agent-orb-action--voice.active .agent-orb-action-btn {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  animation: orbListenPulse 1.8s ease-in-out infinite;
}

/* ── Notification badge ── */

.agent-orb-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  line-height: 1.2;
}

/* ── Primary action button (Написать) ── */

.agent-orb-action--primary .agent-orb-action-btn {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.3);
  color: var(--primary-color);
}

.agent-orb-action--primary .agent-orb-action-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.5);
  color: #fff;
}

/* ── Button positions around the circle (desktop) ── */
/* 15px gap from circle edge. Buttons are 52px (voice: 56px). */
/* Voice: top-right (~1:30 position) */

.agent-orb-action--voice {
  top: 0;
  right: 0;
  transform: translate(60%, -40%);
}

.agent-orb-action--voice:hover {
  transform: translate(60%, -40%) scale(1.08);
}
/* Notifications: top-left (~10:30 position, mirroring voice) */

.agent-orb-action--notif {
  top: 0;
  left: 0;
  transform: translate(-60%, -40%);
}

.agent-orb-action--notif:hover {
  transform: translate(-60%, -40%) scale(1.08);
}
/* Task: bottom-right (~4:30 position) */

.agent-orb-action--task {
  bottom: 0;
  right: 0;
  transform: translate(60%, 40%);
}

.agent-orb-action--task:hover {
  transform: translate(60%, 40%) scale(1.08);
}
/* Write: bottom-center (~6:00 position) */

.agent-orb-action--write {
  bottom: 0;
  left: 50%;
  transform: translate(-50%, calc(100% + 15px));
}

.agent-orb-action--write:hover {
  transform: translate(-50%, calc(100% + 15px)) scale(1.08);
}
/* Learn: bottom-left (~8:00 position) */

.agent-orb-action--learn {
  bottom: 0;
  left: 0;
  transform: translate(-60%, 40%);
}

.agent-orb-action--learn:hover {
  transform: translate(-60%, 40%) scale(1.08);
}

/* ── Responsive: Tablet (≤ 900px) ── */

@media (max-width: 900px) {
  .agent-orb-container {
    padding: 16px 16px 100px;
    min-height: 380px;
  }

  .agent-orb {
    width: clamp(240px, 50vw, 300px);
    height: clamp(240px, 50vw, 300px);
  }

  /* Сжимаем кнопки ближе */
  .agent-orb-action--voice {
    transform: translate(50%, -35%);
  }
  .agent-orb-action--voice:hover {
    transform: translate(50%, -35%) scale(1.08);
  }

  .agent-orb-action--notif {
    transform: translate(-50%, -35%);
  }
  .agent-orb-action--notif:hover {
    transform: translate(-50%, -35%) scale(1.08);
  }

  .agent-orb-action--task {
    transform: translate(50%, 35%);
  }
  .agent-orb-action--task:hover {
    transform: translate(50%, 35%) scale(1.08);
  }

  .agent-orb-action--write {
    transform: translate(-50%, calc(100% + 10px));
  }
  .agent-orb-action--write:hover {
    transform: translate(-50%, calc(100% + 10px)) scale(1.08);
  }

  .agent-orb-action--learn {
    transform: translate(-50%, 35%);
  }
  .agent-orb-action--learn:hover {
    transform: translate(-50%, 35%) scale(1.08);
  }
}

/* ── Responsive: Mobile (≤ 600px) ── */

@media (max-width: 600px) {
  .agent-orb-container {
    padding: 0;
    min-height: unset;
    flex-direction: column;
    gap: 0;
  }

  /* Орб-wrap становится flex-column: сначала орб, потом кнопки */
  .agent-orb-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-bottom: 20px;
  }

  .agent-orb {
    width: min(230px, 72vw);
    height: min(230px, 72vw);
  }

  /* Кнопки — из absolute в статический горизонтальный ряд */
  .agent-orb-action {
    position: static !important;
    transform: none !important;
    flex-direction: row;
    gap: 4px;
  }

  .agent-orb-action:hover {
    transform: scale(1.08) !important;
  }

  /* Все кнопки строим горизонтально */
  .agent-orb-action--voice,
  .agent-orb-action--notif,
  .agent-orb-action--task,
  .agent-orb-action--write,
  .agent-orb-action--learn {
    /* Flex row задаётся parent-ом через содержимое .agent-orb-wrap */
  }

  /* Лейблы скрываем — нет места */
  .agent-orb-action-label {
    display: none;
  }

  /* Кнопки чуть компактнее */
  .agent-orb-action-btn {
    width: 44px;
    height: 44px;
  }

  .agent-orb-action--voice .agent-orb-action-btn {
    width: 50px;
    height: 50px;
  }

  /* Проще: делаем .agent-orb-wrap grid */
  .agent-orb-wrap {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    row-gap: 16px;
  }

  /* Орб занимает всю первую строку */
  .agent-orb {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  /* Каждая кнопка — своя ячейка второй строки */
  .agent-orb-action {
    grid-row: 2;
    align-self: start;
    justify-self: center;
  }

  /* ── Содержимое слайдов на мобильном ── */

  /* Уменьшаем padding слайда — орб 230px не вмещает 50px+40px отступы */
  .agent-orb-slide {
    padding: 28px 20px 22px;
  }

  /* datetime блок — прижимаем к верхнему краю слайда */
  .agent-orb-datetime {
    top: 6px;
    font-size: 10px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 12px;
  }

  /* Иконка погоды/слайда — меньше */
  .agent-orb-slide-icon {
    font-size: 20px;
    margin-bottom: 2px;
  }

  /* Заголовок «ПОГОДА» */
  .agent-orb-slide-title {
    font-size: 10px;
    margin-bottom: 4px;
  }

  /* Температура: было 32px — уменьшаем */
  .agent-orb-slide-value {
    font-size: 26px;
  }

  /* Подписи — условие, ветер, завтра */
  .agent-orb-slide-sub {
    font-size: 10px;
    margin-top: 2px;
    max-width: 160px;
  }

  /* Имя агента — чуть меньше, чтобы не давить */
  .agent-orb-name {
    font-size: 18px;
    height: 18%;
  }

  /* Настроение — компактнее */
  .agent-orb-mood {
    font-size: 10px;
    margin-top: -2px;
  }

  /* Точки-индикаторы — ближе к низу */
  .agent-orb-indicators {
    bottom: 10px;
  }

  /* В слайде погоды скрываем третью sub-строку (завтра) — не влезает */
  .agent-orb-slide .agent-orb-slide-sub:nth-of-type(3) {
    display: none;
  }
}

/* ── Light mode: action buttons ── */

[data-mode="light"] .agent-orb {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    inset 0 0 80px rgba(255, 255, 255, 0.3) !important;
}

[data-mode="light"] .agent-orb:hover {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.12),
    inset 0 0 80px rgba(255, 255, 255, 0.35) !important;
}

/* ── Ambient glow: softer for light ── */

[data-mode="light"] .agent-orb::before {
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%) !important;
}

/* ── Text inside orb: dark for contrast ── */

[data-mode="light"] .agent-orb-name {
  color: #0f172a !important;
}

[data-mode="light"] .agent-orb-mood {
  color: #475569 !important;
}

[data-mode="light"] .agent-orb-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.1) 70%, transparent 100%) !important;
}

[data-mode="light"] .agent-orb-slide-title {
  color: #475569 !important;
}

[data-mode="light"] .agent-orb-slide-value {
  color: #0f172a !important;
}

[data-mode="light"] .agent-orb-slide-sub {
  color: #64748b !important;
}

[data-mode="light"] .agent-orb-slide-item {
  color: #334155 !important;
}

[data-mode="light"] .agent-orb-slide-more {
  color: rgba(0, 0, 0, 0.35) !important;
}

[data-mode="light"] .agent-orb-dot {
  background: rgba(0, 0, 0, 0.15) !important;
}

[data-mode="light"] .agent-orb-dot.active {
  background: rgba(var(--primary-rgb), 0.7) !important;
}

/* ── Action buttons: white glass ── */

[data-mode="light"] .agent-orb-action-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

[data-mode="light"] .agent-orb-action-btn:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
}

/* ── Voice button keeps primary accent ── */

[data-mode="light"] .agent-orb-action--voice .agent-orb-action-btn {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25) !important;
}

[data-mode="light"] .agent-orb-action--voice .agent-orb-action-btn:hover {
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4) !important;
  color: #fff !important;
}

/* ── Action labels: white for contrast against background ── */

[data-mode="light"] .agent-orb-action-label {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-mode="light"] .agent-orb-action:hover .agent-orb-action-label {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/* ── Listening mode on light ── */

[data-mode="light"] .agent-orb--listening {
  border-color: rgba(var(--primary-rgb), 0.3) !important;
}

[data-mode="light"] .agent-orb-listen-text {
  color: #0f172a !important;
}

[data-mode="light"] .agent-orb-chat-msg.user {
  background: rgba(var(--primary-rgb), 0.12) !important;
  color: #0f172a !important;
}

[data-mode="light"] .agent-orb-chat-msg.agent {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #334155 !important;
}
