/* Features page styles */

/* Features */
.features { padding: var(--section-padding) 24px; }

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 60px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-feature.reverse { direction: rtl; }
.hero-feature.reverse > * { direction: ltr; }

.hero-feature-visual {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 32px;
}

.hero-feature-visual > .feature-demo {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.hero-feature-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-feature-content p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-benefits { list-style: none; }

.feature-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.feature-benefits i {
  color: var(--green);
  font-size: 12px;
}

/* Workflow Demo */
.workflow-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.workflow-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.workflow-node.trigger {
  background: var(--green);
  color: var(--white);
}

.workflow-node.action {
  background: var(--bg-card);
  color: var(--text-primary);
}

.workflow-arrow { color: var(--gray-300); }

/* Workflow Animation - simulates execution on page load */
@keyframes workflow-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}

@keyframes workflow-arrow-flow {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

@keyframes workflow-trigger-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(48, 209, 88, 0.4);
  }
}

/* Initial state - slightly dimmed */
.workflow-node {
  animation: workflow-pulse 2s ease-in-out infinite;
  animation-play-state: running;
}

.workflow-node.trigger {
  animation: workflow-trigger-pulse 2s ease-in-out infinite;
}

.workflow-arrow {
  animation: workflow-arrow-flow 2s ease-in-out infinite;
}

/* Staggered delays for sequential flow effect */
.workflow-demo .workflow-node:nth-child(1) {
  animation-delay: 0s;
}

.workflow-demo .workflow-arrow:nth-child(2) {
  animation-delay: 0.3s;
}

.workflow-demo .workflow-node:nth-child(3) {
  animation-delay: 0.6s;
}

.workflow-demo .workflow-arrow:nth-child(4) {
  animation-delay: 0.9s;
}

.workflow-demo .workflow-node:nth-child(5) {
  animation-delay: 1.2s;
}

/* Security Demo */
.security-visual-mini { text-align: center; }

.lock-icon {
  width: 64px;
  height: 64px;
  background: var(--green);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lock-icon i {
  font-size: 28px;
  color: var(--white);
}

.security-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.security-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 13px;
}

.line-label { color: var(--gray-500); }

.line-encrypted {
  font-family: monospace;
  color: var(--gray-400);
}

.line-value.negative {
  color: var(--green);
  font-weight: 600;
}

/* Policy Demo (Features Page) */
.policy-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-visual {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
}

.policy-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  color: #b9bbbe;
  font-size: 14px;
}

.policy-option-row.highlighted {
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid #4a7c59;
  color: #ffffff;
}

.policy-icon-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #40444b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #b9bbbe;
}

.policy-option-row.highlighted .policy-icon-small {
  background: #4a7c59;
  color: #ffffff;
}

.policy-check {
  margin-left: auto;
  color: #4a7c59;
}

/* Groups Demo (Features Page) */
.groups-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.groups-visual {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  max-width: 260px;
}

.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
}

.group-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.group-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.group-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.group-perms {
  color: #72767d;
  font-size: 12px;
}

/* Owners Demo (Features Page) */
.owners-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.owners-visual {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  max-width: 240px;
}

.owners-title-visual {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #484c52;
}

.owner-row-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #3f4044;
}

.owner-row-visual:last-child {
  border-bottom: none;
}

.owner-name-visual {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.owner-badge-visual {
  background: #4a7c59;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.owner-full-visual {
  color: #72767d;
  font-size: 12px;
}

/* Triggers Demo (Features Page) */
.triggers-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.triggers-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trigger-input-visual {
  background: #40444b;
  border: 1px solid #484c52;
  border-radius: 6px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trigger-prefix {
  color: #4a7c59;
  font-size: 16px;
  font-weight: 600;
}

.trigger-command {
  color: #dfe0e2;
  font-size: 15px;
  font-weight: 500;
}

.trigger-arrow {
  color: #72767d;
  font-size: 14px;
}

.trigger-result-visual {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trigger-result-badge {
  background: #4a7c59;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.trigger-result-text {
  color: #b9bbbe;
  font-size: 12px;
  font-family: monospace;
}

/* DM Demo (Features Page) */
.dm-demo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dm-visual {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  max-width: 260px;
}

.dm-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #484c52;
  margin-bottom: 12px;
}

.dm-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.dm-status-icon.off {
  background: #4a4d52;
  color: #72767d;
}

.dm-status-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-status-title {
  color: #dfe0e2;
  font-size: 14px;
  font-weight: 600;
}

.dm-status-state {
  color: #72767d;
  font-size: 12px;
}

.dm-enable-btn-visual {
  background: #4a7c59;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.dm-note-visual {
  color: #72767d;
  font-size: 11px;
  text-align: center;
  line-height: 1.4;
}

/* Simple Features */
.features-grid-simple {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.feature-simple {
  text-align: center;
  padding: 20px;
}

.feature-simple i {
  font-size: 24px;
  color: var(--blue);
  margin-bottom: 12px;
}

.feature-simple h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-simple p {
  font-size: 12px;
  color: var(--gray-500);
}

/* Feature Demos Section - mssgs App Style */
.feature-demos {
  padding: var(--section-padding) 24px;
  background: var(--bg-secondary);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.demo-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.demo-more-link {
  text-align: center;
  margin-top: 32px;
}

.demo-more-link .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}

.demo-more-link .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--blue);
  color: var(--blue);
}

.demo-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.demo-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.demo-visual {
  padding: 24px;
  background: #2c2d32;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-info {
  padding: 24px;
}

.demo-info h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.demo-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-benefits {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.demo-benefits li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.demo-benefits li i {
  color: #4a7c59;
  font-size: 10px;
}

/* Chat Message Demo - matching mssgs-electron .chat-message */
.chat-message-demo {
  display: flex;
  gap: 8px;
  padding: 3px 12px;
  border-radius: 4px;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 200px;
  align-items: flex-start;
}

.chat-message-demo:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chat-message-image-container {
  width: 38px;
  flex-shrink: 0;
  padding-top: 6px;
}

.chat-message-demo .user-img {
  width: 38px;
  height: 38px;
  border-radius: 4px;
}

.chat-message-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.view-message-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-message-header-name {
  color: #dfe0e2;
  font-weight: 600;
  font-size: 15px;
}

.chat-message-text-inline {
  color: #dfe0e2;
  font-size: 15px;
  line-height: 1.375;
  word-break: break-word;
  margin-top: -2px;
}

/* Mock Context Menu - mssgs style */
.mock-context-menu {
  background: #3c3d44;
  border: 1px solid #47484f;
  border-radius: 8px;
  padding: 2px 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 188px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.context-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 2px 0;
  font-size: 14px;
  font-weight: 500;
  color: #babbbe;
  border-radius: 4px;
  cursor: default;
}

.context-item:hover {
  background: #494a52;
}

.context-item i {
  width: 16px;
  color: #babbbe;
  font-size: 14px;
}

.context-item.danger {
  color: #e5807a;
}

.context-item.danger:hover {
  background: #523f43;
  color: #ef9790;
}

.context-item.danger i {
  color: inherit;
}

/* Reminder Modal - matching mssgs-electron */
.reminder-modal-container {
  background: #36393f;
  border: 1px solid #585c62;
  border-radius: 8px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.reminder-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #484c52;
}

.reminder-modal-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.reminder-modal-content {
  padding: 16px 20px;
}

.reminder-form-group {
  margin-bottom: 12px;
}

.reminder-form-group label {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.reminder-form-description {
  display: block;
  color: #b9bbbe;
  font-size: 13px;
}

.reminder-message-preview {
  display: flex;
  gap: 10px;
  background: #40444b;
  border: 1px solid #52535a;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.reminder-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reminder-avatar-initials {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.reminder-message-content {
  flex: 1;
  min-width: 0;
}

.reminder-message-header {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.reminder-message-name {
  color: #dfe0e2;
  font-size: 14px;
  font-weight: 600;
}

.reminder-message-badge {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
}

.reminder-message-badge img {
  width: 16px;
  height: 16px;
}

.reminder-message-time {
  color: #72767d;
  font-size: 11px;
  margin-left: 4px;
}

.reminder-message-text {
  color: #dcddde;
  font-size: 14px;
  line-height: 1.375;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reminder-time-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #40444b;
  border: 1px solid #52535a;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}

.reminder-time-placeholder {
  color: #72767d;
  font-size: 14px;
}

.reminder-time-trigger i {
  color: #72767d;
  font-size: 12px;
}

.reminder-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #2f3136;
}

.reminder-cancel-button {
  background: none;
  border: 1px solid #52535a;
  border-radius: 4px;
  padding: 10px 20px;
  color: #b9bbbe;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.reminder-cancel-button:hover {
  border-color: #72767d;
  color: #dcddde;
}

.reminder-confirm-button {
  background: #4a7c59;
  border: 1px solid #5a8c69;
  border-radius: 4px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.reminder-confirm-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reminder-confirm-button:not(.disabled):hover {
  background: #5a8c69;
}

/* Mock Chat Window for Trigger Demo */
.demo-visual-chat {
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.mock-chat-window {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-action-area {
  position: relative;
  min-height: 140px;
}

/* Trigger Demo Action Messages */
.trigger-action-msg {
  position: absolute;
  width: 100%;
  opacity: 0;
  border-radius: 4px;
}

.trigger-action-msg .action-message-content {
  padding: 8px;
}

.trigger-action-msg .action-message-inner-container {
  padding: 10px 12px;
}

.trigger-loading-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8b9bf;
  font-size: 14px;
}

/* Loader dots */
.action-loader {
  display: flex;
  gap: 4px;
}

.action-loader span {
  width: 6px;
  height: 6px;
  background: #faa61a;
  border-radius: 50%;
  animation: loader-bounce 1.4s infinite ease-in-out;
}

.action-loader span:nth-child(1) { animation-delay: 0s; }
.action-loader span:nth-child(2) { animation-delay: 0.16s; }
.action-loader span:nth-child(3) { animation-delay: 0.32s; }

@keyframes loader-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Trigger Animation */
.trigger-action-msg-loading {
  animation: trigger-loading 4s infinite;
}

.trigger-action-msg-success {
  animation: trigger-success 4s infinite;
}

@keyframes trigger-loading {
  0%, 5% { opacity: 0; transform: translateY(10px); }
  10%, 50% { opacity: 1; transform: translateY(0); }
  55%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes trigger-success {
  0%, 50% { opacity: 0; transform: translateY(10px); }
  55%, 95% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

/* Chat Input Demo - matching mssgs-electron .chat-input */
.chat-input-demo {
  display: flex;
  align-items: center;
  background: #393a40;
  border: 1px solid #48494e;
  border-radius: 6px;
  padding: 8px 12px;
  position: relative;
}

.chat-input-view {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 16px;
  font-size: 15px;
  padding-right: 8px;
}

.input-prefix {
  color: #4a7c59;
  font-weight: 600;
  font-size: 15px;
}

.input-text {
  color: #dfe0e2;
  font-size: 15px;
}

.input-cursor {
  width: 2px;
  height: 18px;
  background: #dfe0e2;
  margin-left: 1px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.chat-input-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-input-btn {
  width: 28px;
  height: 28px;
  background: #40444b;
  border: 1px solid #52535a;
  border-radius: 4px;
  color: #b9bbbe;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.chat-input-btn span {
  font-size: 10px;
  font-weight: 600;
}

.chat-input-btn:hover {
  background: #47484f;
  color: #dcddde;
}

/* Action Message - matching mssgs-electron */
.action-message-container {
  border-radius: 4px;
  border-left: 2px solid;
  width: 100%;
  max-width: 320px;
}

.action-message-container-orange {
  background: rgba(250, 166, 26, 0.15);
  border-left-color: #faa61a;
}

.action-message-container-green {
  background: rgba(74, 124, 89, 0.15);
  border-left-color: #4a7c59;
}

.action-message-container-blue {
  background: rgba(88, 101, 242, 0.15);
  border-left-color: #5865f2;
}

.action-message-container-red {
  background: rgba(218, 55, 60, 0.15);
  border-left-color: #da373c;
}

.action-message-content {
  padding: 12px;
}

.action-message-inner-container {
  background: #2b2d31;
  border: 1px solid #3f4044;
  border-radius: 4px;
  padding: 12px 14px;
}

.action-message-system-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.action-message-system-badge-text {
  color: #b8b9bf;
  font-size: 12px;
  font-weight: 500;
}

.action-message-verified-icon-wrapper {
  display: flex;
  align-items: center;
}

.action-message-verified-icon {
  width: 14px;
  height: 14px;
}

.action-message-title {
  color: #f3f3f3;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.action-message-description {
  color: #b8b9bf;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.action-message-description strong {
  color: #dbdcde;
}

.action-message-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.action-message-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.action-message-btn-primary {
  background: #4a7c59;
  color: #ffffff;
}

.action-message-btn-primary:hover {
  background: #5a8c69;
}

.action-message-btn-secondary {
  background: #40444b;
  border: 1px solid #52535a;
  color: #b9bbbe;
}

.action-message-btn-secondary:hover {
  background: #47484f;
}

.action-message-timestamp {
  font-size: 12px;
  color: #b8b9bf;
  text-align: center;
}

/* User Groups Modal - matching mssgs-electron */
.user-groups-modal {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  width: 100%;
  overflow: hidden;
}

.user-groups-header {
  padding: 16px 20px;
  border-bottom: 1px solid #484c52;
}

.user-groups-header h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.user-groups-subtitle {
  color: #b9bbbe;
  font-size: 13px;
}

.user-groups-list {
  padding: 8px;
}

.user-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.user-group-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.user-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-group-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-group-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.user-group-count {
  color: #72767d;
  font-size: 12px;
}

.user-group-arrow {
  color: #72767d;
  font-size: 12px;
}

/* Owners Modal - matching mssgs-electron */
.owners-modal {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  width: 100%;
  overflow: hidden;
}

.owners-header {
  padding: 16px 20px;
  border-bottom: 1px solid #484c52;
}

.owners-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.owners-header h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.owners-add-btn {
  background: #4a7c59;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.owners-add-btn:hover {
  background: #5a8c69;
}

.owners-subtitle {
  color: #b9bbbe;
  font-size: 13px;
}

.owners-table {
  border: 1px solid #53585f;
  border-radius: 6px;
  margin: 12px;
  overflow: hidden;
  background: #40444b;
}

.owners-table-header {
  display: grid;
  grid-template-columns: 2fr 2fr 70px;
  gap: 12px;
  background: #373b40;
  border-bottom: 1px solid #53585f;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #b9bbbe;
}

.owners-row {
  display: grid;
  grid-template-columns: 2fr 2fr 70px;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid #53585f;
  font-size: 13px;
}

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

.owner-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 500;
}

.primary-owner-badge {
  background: #4a7c59;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.owner-email {
  color: #b9bbbe;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.owner-delete-btn {
  background: none;
  border: 1px solid #52535a;
  border-radius: 4px;
  padding: 6px 8px;
  color: #b9bbbe;
  cursor: pointer;
  font-size: 12px;
}

.owner-delete-btn:hover {
  background: #bd6764;
  border-color: #bd6764;
  color: #ffffff;
}

/* User Policy Modal - matching mssgs-electron */
.user-policy-modal {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  width: 100%;
  max-width: 320px;
  overflow: hidden;
}

.user-policy-header {
  padding: 16px 20px;
  border-bottom: 1px solid #484c52;
}

.user-policy-header h3 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.user-policy-subtitle {
  color: #b9bbbe;
  font-size: 13px;
}

.user-policy-options {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid #484c52;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.policy-option:hover {
  border-color: #52535a;
  background: rgba(255, 255, 255, 0.02);
}

.policy-option.highlighted {
  border-color: #4a7c59;
  background: rgba(74, 124, 89, 0.1);
}

.policy-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #40444b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9bbbe;
  font-size: 14px;
  flex-shrink: 0;
}

.policy-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.policy-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.policy-desc {
  color: #72767d;
  font-size: 12px;
}

.policy-link {
  color: #00a8fc;
  font-size: 12px;
  margin-top: 2px;
}

.policy-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #52535a;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.policy-radio.active {
  border-color: #4a7c59;
}

.policy-radio.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #4a7c59;
  border-radius: 50%;
}

/* DM Requests Demo - matching mssgs-electron */
.dm-requests-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.dm-requests-demo-feature,
.triggers-demo-chat,
.user-groups-demo-feature,
.owners-demo-feature {
  display: block;
}

.dm-requests-popup {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  padding: 16px;
}

.dm-requests-popup h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.dm-requests-popup p {
  color: #b9bbbe;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px 0;
}

.dm-requests-btn {
  width: 100%;
  background: #4a7c59;
  border: 1px solid #5a8c69;
  border-radius: 4px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.dm-requests-btn:hover {
  background: #5a8c69;
}

.dm-requests-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2b2d31;
  border-radius: 6px;
  padding: 10px 12px;
}

.dm-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.dm-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-user-avatar::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #faa61a;
  border: 2px solid #2b2d31;
  border-radius: 50%;
}

.dm-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-user-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.dm-user-status {
  color: #72767d;
  font-size: 12px;
}

/* Encrypted Chat Demo - matching mssgs-electron */
.encrypted-chat-demo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encrypted-chat-container {
  position: relative;
  background: #2c2d32;
  border-radius: 8px;
  padding: 24px;
  min-height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encrypted-messages {
  display: none;
}

.chat-message-demo.encrypted .encrypted-text {
  font-family: monospace;
  color: #72767d;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.encryption-key-popup {
  background: #36393f;
  border: 1px solid #4a4d52;
  border-radius: 8px;
  padding: 24px 28px;
  width: 280px;
  text-align: center;
}

.encryption-key-icon {
  width: 48px;
  height: 48px;
  background: #4a4d52;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.encryption-key-icon i {
  color: #b9bbbe;
  font-size: 20px;
}

.encryption-key-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.encryption-key-desc {
  color: #dcddde;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.encryption-key-btn {
  width: 100%;
  background: #4a7c59;
  border: none;
  border-radius: 4px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.encryption-key-btn:hover {
  background: #5a8c69;
}

.encryption-key-hint {
  color: #72767d;
  font-size: 11px;
  margin-top: 10px;
  line-height: 1.4;
}

/* Features Preview (Homepage) */
.features-preview {
  padding: 80px 24px;
}

.features-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.feature-preview-item {
  text-align: center;
  padding: 28px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-preview-item i {
  font-size: 32px;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.feature-preview-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-preview-item p {
  font-size: 13px;
  color: var(--gray-500);
}

.features-link {
  text-align: center;
}

.features-link a {
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.features-link a:hover {
  text-decoration: underline;
}

/* All Features Grid (Features page) */
.all-features {
  padding: var(--section-padding) 24px;
  background: var(--gray-50);
}

.features-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Dynamic grid with varied sizes */
.features-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

/* Featured cards - span 2 columns */
.features-grid-dynamic .feature-card.wide {
  grid-column: span 2;
}

/* Tall cards - span 2 rows */
.features-grid-dynamic .feature-card.tall {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.features-grid-dynamic .feature-card.tall p {
  flex: 1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

/* Wide cards get more horizontal padding */
.feature-card.wide {
  padding: 24px 32px;
}

/* Background icon decoration - subtle accent */
.feature-bg-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: var(--blue);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Mini Community Moderation Demo (Features Page) */
.community-mod-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.mod-demo-mini {
  width: 100%;
}

.mod-mini-panel {
  background: #36393f;
  border: 1px solid #46474c;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.mod-mini-header {
  background: #47484f;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #47484f;
}

.mod-mini-header i {
  color: #e5807a;
  font-size: 15px;
}

.mod-mini-header span {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.mod-mini-content {
  padding: 16px;
}

.mod-mini-report-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mod-mini-type {
  background: #5e3e3d;
  border: 1px solid #bd6764;
  color: #e5807a;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.mod-mini-id {
  color: #949ba4;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mod-mini-message {
  background: rgba(71, 72, 79, 0.5);
  border: 1px solid #52535a;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.mod-mini-user {
  color: #c4c5c9;
  margin-right: 6px;
  font-weight: 500;
}

.mod-mini-text {
  color: #949ba4;
}

.mod-mini-question {
  color: #c4c5c9;
  font-size: 13px;
  margin-bottom: 10px;
}

.mod-mini-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mod-mini-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.mod-mini-btn-yes {
  background: #5e3e3d;
  border-color: #bd6764;
  color: #e5807a;
}

.mod-mini-btn-no {
  background: #343539;
  border-color: #43494b;
  color: #c4c5c9;
}

.mod-mini-label {
  display: block;
  color: #949ba4;
  font-size: 11px;
  margin-bottom: 6px;
}

.mod-mini-bar {
  height: 4px;
  background: #2b2d31;
  border-radius: 2px;
  overflow: hidden;
}

.mod-mini-fill {
  height: 100%;
  width: 100%;
  background: #4a7c59;
  border-radius: 2px;
}

/* Feature link for moderators */
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
  margin-top: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.feature-link:hover {
  gap: 12px;
}

.feature-link i {
  font-size: 12px;
}

/* ===========================================================
   Ghost messages demo
   =========================================================== */
.ghost-demo {
  width: 100%;
  margin: 0 auto;
  background: #2c2d32;
  border-radius: 10px;
  padding: 16px;
}

.ghost-mock-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ghost-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.ghost-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(230, 140, 50, 0.4), transparent);
}

.ghost-divider-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e68c32;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ghost-divider-text i { font-size: 11px; }

.ghost-message {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(180, 110, 40, 0.06);
  overflow: hidden;
}

.ghost-message-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}

.ghost-message-body { flex: 1; min-width: 0; }

.ghost-message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.ghost-message-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.ghost-message-time {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.ghost-message-text {
  color: #dcddde;
  font-size: 13px;
  line-height: 1.4;
}

.ghost-message-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(44, 45, 50, 0) 50%, rgba(44, 45, 50, 0.85) 100%);
  animation: ghost-fade 4s ease-in-out infinite;
}

@keyframes ghost-fade {
  0%, 50% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

.ghost-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2e2822;
  border: 1px solid rgba(230, 140, 50, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
}

.ghost-input-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.ghost-input-toggle {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: rgba(230, 140, 50, 0.25);
  color: #e68c32;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.ghost-input-toggle.ghost-active {
  animation: ghost-pulse 2.4s ease-in-out infinite;
}

@keyframes ghost-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 140, 50, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(230, 140, 50, 0); }
}

/* ===========================================================
   Voice recording demo
   =========================================================== */
.voice-demo {
  width: 100%;
  margin: 0 auto;
  background: #2c2d32;
  border-radius: 10px;
  padding: 24px 16px;
}

.voice-stage {
  position: relative;
  height: 56px;
}

.voice-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #393a40;
  border: 1px solid #48494e;
  border-radius: 8px;
  opacity: 0;
}

.voice-frame-idle {
  animation: voice-cycle-idle 9s ease-in-out infinite;
}

.voice-frame-recording {
  animation: voice-cycle-recording 9s ease-in-out infinite;
  background: linear-gradient(135deg, #2f2024 0%, #2a2326 100%);
  border-color: rgba(248, 113, 113, 0.35);
}

.voice-frame-preview {
  animation: voice-cycle-preview 9s ease-in-out infinite;
}

@keyframes voice-cycle-idle {
  0%, 25% { opacity: 1; }
  30%, 100% { opacity: 0; }
}

@keyframes voice-cycle-recording {
  0%, 30% { opacity: 0; }
  35%, 60% { opacity: 1; }
  65%, 100% { opacity: 0; }
}

@keyframes voice-cycle-preview {
  0%, 65% { opacity: 0; }
  70%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

.voice-input-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.voice-mic-btn,
.voice-stop-btn,
.voice-play-btn,
.voice-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}

.voice-mic-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #dcddde;
}

.voice-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  animation: voice-rec-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes voice-rec-pulse {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.voice-rec-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.voice-rec-timer {
  color: #ffffff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.voice-frame-recording .voice-rec-timer { margin-left: 0; }

.voice-waves {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.voice-waves span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.25));
  animation: voice-wave 1s ease-in-out infinite;
}

.voice-waves span:nth-child(1) { height: 40%; animation-delay: 0s; }
.voice-waves span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.voice-waves span:nth-child(6) { height: 75%; animation-delay: 0.5s; }
.voice-waves span:nth-child(7) { height: 45%; animation-delay: 0.6s; }

@keyframes voice-wave {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}

.voice-stop-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.voice-stop-square {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 2px;
}

.voice-play-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.voice-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.voice-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.35));
  animation: voice-progress 2.2s linear infinite;
}

@keyframes voice-progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.voice-send-btn {
  background: linear-gradient(135deg, rgba(74, 124, 89, 0.6), rgba(74, 124, 89, 0.4));
  color: #ffffff;
}

/* ===========================================================
   Location map demo (real Mapbox)
   =========================================================== */
.map-demo {
  width: 100%;
  margin: 0 auto;
}

.map-frame {
  position: relative;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #1f2229;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-canvas { position: absolute; inset: 0; }

.map-canvas-mock {
  background: #15171c;
  overflow: hidden;
}

.map-streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-water {
  fill: #1a2e3f;
}

.map-park {
  fill: rgba(56, 142, 84, 0.22);
}

.map-buildings rect {
  fill: rgba(255, 255, 255, 0.04);
}

.map-streets-minor path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.map-streets-arterial path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 5;
  stroke-linecap: round;
}

.map-street-major {
  fill: none;
  stroke: #d4b06a;
  stroke-opacity: 0.55;
  stroke-width: 7;
  stroke-linecap: round;
}

.map-you {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  pointer-events: none;
}

.map-you::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #3b82f6;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.map-you span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.55);
  animation: map-pulse 2.4s ease-out infinite;
}

.map-you span:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes map-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3.2); opacity: 0; }
}

.map-marker-pos {
  position: absolute;
  transform: translate(-50%, -100%);
}

.map-marker-sophie {
  top: 49%;
  left: 28%;
  animation: map-walk 6s ease-in-out infinite alternate;
}

.map-marker-thomas {
  top: 26%;
  left: 64%;
}

.map-marker-emma {
  top: 84%;
  left: 40%;
  transform: translate(-50%, -82%);
}

@keyframes map-walk {
  0%   { transform: translate(calc(-50% - 4px), -100%); }
  100% { transform: translate(calc(-50% + 4px), -100%); }
}

@media (prefers-reduced-motion: reduce) {
  .map-you span,
  .map-marker-sophie,
  .mssgs-map-marker-bubble.has-story {
    animation: none;
  }
}

.map-nearby-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(20, 22, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}

.map-nearby-pill .svg-icon { color: #22c55e; }

.map-nearby-radius {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-left: 2px;
}

.mssgs-map-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.mssgs-map-marker-bubble {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px;
  position: relative;
  backdrop-filter: blur(12px);
}

.mssgs-map-marker-bubble img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.mssgs-map-marker-bubble.has-story {
  background: linear-gradient(45deg, #5865f2, #3b82f6, #06b6d4);
  animation: map-story-glow 2.4s ease-in-out infinite;
}

@keyframes map-story-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(88, 101, 242, 0.5); }
  50% { box-shadow: 0 0 12px rgba(88, 101, 242, 0.8); }
}

.mssgs-map-marker-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.15);
}

.mssgs-map-marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  font-size: 10px;
  color: #ffffff;
  font-weight: 500;
  margin-top: 6px;
  white-space: nowrap;
}

/* ===========================================================
   Story views demo
   =========================================================== */
.stories-demo {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.stories-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #2c2d32;
  border-radius: 12px;
  width: 100%;
  justify-content: center;
}

.story-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.story-ring {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  padding: 2px;
  display: flex;
}

.story-unviewed .story-ring {
  background: linear-gradient(45deg, #5865f2, #3b82f6, #06b6d4);
  animation: story-glow 2.4s ease-in-out infinite;
}

.story-seen .story-ring {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes story-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(88, 101, 242, 0.4); }
  50% { box-shadow: 0 0 14px rgba(88, 101, 242, 0.7); }
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #2a2b2f;
}

.story-name {
  color: #dcddde;
  font-size: 11px;
  font-weight: 500;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stories-viewer {
  width: 200px;
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.stories-viewer-burgundy {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(180, 90, 60, 0.55) 0%, transparent 70%),
    linear-gradient(160deg, #5a1f1a 0%, #3a1411 70%, #2b0e0c 100%);
}

.stories-viewer-quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.stories-viewer-quote p {
  color: #ffe299;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  letter-spacing: -0.2px;
  margin: 0;
}

.stories-viewer-progress {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  z-index: 2;
}

.story-bar {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.story-bar-done { background: #ffffff; }

.story-bar-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  width: 0;
  animation: story-progress 4s linear infinite;
}

@keyframes story-progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.stories-viewer-header {
  position: absolute;
  top: 22px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.stories-viewer-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}

.stories-viewer-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.stories-viewer-time {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

/* ===========================================================
   Story creation (mobile, iOS-style) demo
   =========================================================== */
.story-create-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.story-phone {
  position: relative;
  width: 220px;
  aspect-ratio: 9 / 18;
  background: #0a0a0a;
  border-radius: 30px;
  border: 7px solid #1a1a1a;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.story-phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 10px;
  z-index: 3;
}

.story-phone-screen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(60, 70, 140, 0.4) 0%, transparent 70%),
    linear-gradient(180deg, #0e1338 0%, #1a1f4a 50%, #2a2566 100%);
  display: flex;
  flex-direction: column;
}

.story-phone-top {
  position: relative;
  padding: 30px 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.story-phone-logo {
  width: 22px;
  height: 28px;
  opacity: 0.55;
  filter: brightness(1.2);
}

.story-phone-timer {
  position: absolute;
  right: 14px;
  top: 26px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.story-phone-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  color: #c8efc4;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.story-phone-pages {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 8px 0;
}

.story-phone-pages span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.story-phone-pages span.active {
  background: #ffffff;
}

.story-phone-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 18px;
  gap: 10px;
}

.story-ctrl {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.story-ctrl-send {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #6a9eff 0%, #3b6fe6 100%);
  box-shadow:
    0 0 28px rgba(79, 138, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-mobile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  color: #5865f2;
  font-size: 11px;
  font-weight: 600;
}

/* ===========================================================
   One-view photos demo (right-aligned, real chat context)
   Uses electron's dm-attachment-container styling 1:1
   =========================================================== */
.oneview-demo {
  width: 100%;
  margin: 0 auto;
  background: #2c2d32;
  border-radius: 10px;
  padding: 20px 16px;
}

.oneview-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oneview-row {
  display: flex;
  justify-content: flex-start;
}

.oneview-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.oneview-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  padding-left: 4px;
}

.oneview-name { color: #dfe0e2; font-weight: 600; }
.oneview-time { color: #aeb0b5; }

/* DM attachment container - mirrors mssgs-electron exactly */
.dm-attachment-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  max-width: 220px;
  --accent-color: #e84c3d;
  --accent-color-muted: #8e8e93;
}

.dm-attachment-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 1px;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.dm-attachment-icon-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dm-attachment-icon { display: flex; align-items: center; justify-content: center; }

.dm-attachment-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

/* Pending state (sender's own outgoing one-view, not opened yet) */
.dm-attachment-container.dm-attachment-pending {
  background: linear-gradient(135deg, rgba(232, 76, 61, 0.10) 0%, rgba(232, 76, 61, 0.06) 100%);
  color: var(--accent-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: dm-attachment-pulse 2.6s ease-in-out infinite;
}

@keyframes dm-attachment-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 0 rgba(232, 76, 61, 0.25); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 5px rgba(232, 76, 61, 0); }
}

.dm-attachment-container.dm-attachment-pending::before {
  background: linear-gradient(135deg, rgba(232, 76, 61, 0.35) 0%, rgba(232, 76, 61, 0.15) 50%, rgba(232, 76, 61, 0.25) 100%);
}

.dm-attachment-container.dm-attachment-pending .dm-attachment-icon-box {
  background-color: transparent;
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
}

/* Was-viewed state (recipient opened the one-view) */
.dm-attachment-container.dm-attachment-was-viewed {
  background: rgba(142, 142, 147, 0.08);
  color: var(--accent-color-muted);
}

.dm-attachment-container.dm-attachment-was-viewed::before {
  background: linear-gradient(135deg, rgba(142, 142, 147, 0.2) 0%, rgba(142, 142, 147, 0.1) 50%, rgba(142, 142, 147, 0.15) 100%);
}

.dm-attachment-container.dm-attachment-was-viewed .dm-attachment-icon-box {
  background-color: transparent;
  border: 1.5px solid var(--accent-color-muted);
}

.dm-attachment-container.dm-attachment-was-viewed .dm-attachment-icon { display: none; }

/* ===========================================================
   Reminder modal demo
   =========================================================== */
.reminder-demo {
  width: 100%;
  margin: 0 auto;
}

.reminder-modal {
  background: rgba(40, 40, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.reminder-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-modal-header h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.reminder-close {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reminder-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reminder-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reminder-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.reminder-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-bottom: 6px;
}

.reminder-preview {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.reminder-preview-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.reminder-preview-body { flex: 1; min-width: 0; }

.reminder-preview-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reminder-preview-name {
  color: #5865f2;
  font-size: 13px;
  font-weight: 600;
}

.reminder-preview-time {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

.reminder-preview-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-top: 2px;
}

.reminder-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  cursor: pointer;
}

.reminder-trigger i {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

.reminder-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-btn-cancel,
.reminder-btn-confirm {
  flex: 1;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid;
}

.reminder-btn-cancel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.reminder-btn-confirm {
  background: rgba(74, 124, 89, 0.3);
  border-color: rgba(74, 124, 89, 0.4);
  color: #ffffff;
  opacity: 0.5;
}

/* ===========================================================
   Push notifications demo
   =========================================================== */
.push-demo {
  width: 100%;
  margin: 0 auto;
  background: #2c2d32;
  border-radius: 10px;
  padding: 18px;
}

.push-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.push-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #393a40;
  border-radius: 8px;
}

.push-channel-row-active {
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
}

.push-channel-name {
  color: #dcddde;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.push-channel-name i { color: #72767d; font-size: 12px; }

.push-enable-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #dcddde;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .push-channel-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .push-enable-btn { justify-content: center; }

  .owners-table-header,
  .owners-row {
    grid-template-columns: 1fr 1fr 40px;
    gap: 8px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .owner-name { font-size: 12px; gap: 6px; }
  .primary-owner-badge { padding: 1px 6px; font-size: 9px; }
  .owner-delete-btn { padding: 4px 6px; }
  .owners-header { padding: 12px 14px; }
  .owners-add-btn { padding: 5px 10px; font-size: 11px; }
}

.push-enable-btn i { font-size: 11px; }

.push-enable-btn.push-enabled {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.4);
  color: #a5b4fc;
}

.push-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(20, 22, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-top: 6px;
  animation: push-toast-in 4s ease-in-out infinite;
}

@keyframes push-toast-in {
  0%, 10% { opacity: 0; transform: translateY(8px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(-4px); }
}

.push-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.push-toast-body { flex: 1; min-width: 0; }

.push-toast-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.push-toast-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================================================
   Chat Status DMs (Snapchat-style) demo
   Mirrors mssgs-electron .dm-channels-view styling
   =========================================================== */
.dm-list-demo {
  width: 100%;
  margin: 0 auto;
}

.dm-list {
  background: #1f2126;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dm-list-header {
  font-size: 11px;
  font-weight: 700;
  color: #6f7177;
  letter-spacing: 0.05em;
  padding: 8px 10px 4px;
}

.dm-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0.85;
}

.dm-list-row:hover {
  background-color: rgba(79, 84, 92, 0.35);
  opacity: 1;
}

.dm-list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex-shrink: 0;
  overflow: hidden;
}

.dm-list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dm-list-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dm-list-name {
  color: #dbdee1;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-list-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 400;
  color: #949ba4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.dm-row-status-ico {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
}

.dm-row-status-ico.dm-status-blue { color: #508ec9; }
.dm-row-status-ico.dm-status-red { color: #ed4245; }
.dm-row-status-ico.dm-status-muted { color: #949ba4; }

.dm-status-label { color: #c4c5c9; font-weight: 500; }
.dm-list-status .dm-status-time { color: #6f7177; font-weight: 400; }

.dm-streak-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.dm-streak-count {
  font-size: 11px;
  font-weight: 700;
  color: #ff9500;
}

.dm-streak-flame { font-size: 11px; }

/* Responsive */
@media (max-width: 1024px) {
  .features-grid-dynamic { grid-template-columns: repeat(2, 1fr); }
  .features-grid-dynamic .feature-card.wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .features-grid-dynamic { grid-template-columns: 1fr; }
  .features-grid-dynamic .feature-card.wide,
  .features-grid-dynamic .feature-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .demo-visual {
    height: 260px;
    padding: 20px;
  }

  .chat-message-demo {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 12px;
  }

  .mock-context-menu {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .map-frame { height: 280px; }
  .stories-row { gap: 12px; padding: 12px; }
  .story-ring { width: 48px; height: 48px; }
  .stories-viewer { width: 170px; }

  .hero-feature-visual {
    width: auto;
    max-width: none;
    padding: 16px;
    align-self: stretch;
  }
  .hero-feature-visual > .feature-demo.voice-demo {
    padding: 28px 18px;
  }
  .voice-stage {
    display: grid;
    grid-template-areas: "frame";
    width: 100%;
    height: 64px;
  }
  .voice-frame {
    position: static;
    grid-area: frame;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 12px;
  }
  .voice-mic-btn,
  .voice-stop-btn,
  .voice-play-btn,
  .voice-send-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .voice-input-text { font-size: 14px; min-width: 0; }
  .voice-rec-label,
  .voice-rec-timer { font-size: 13px; flex-shrink: 0; }
  .voice-waves { height: 28px; min-width: 0; }
  .voice-progress { min-width: 0; }

  .mock-action-area { min-height: 150px; }
  .hero-feature-content h3 { font-size: 22px; }
  .hero-feature-content p { font-size: 15px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-feature .hero-feature-visual {
    width: 100%;
    max-width: 560px;
    align-self: center;
  }
}

@media (max-width: 1024px) {
  .hero-features { gap: 40px; }
  .hero-feature,
  .hero-feature.reverse {
    display: flex;
    flex-direction: column;
    direction: ltr;
    gap: 24px;
  }
  .hero-feature.reverse > * { direction: ltr; }
  .hero-feature .hero-feature-content { order: 1; }
  .hero-feature .hero-feature-visual { order: 2; }
}
