/* 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;
}

.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%;
  max-width: 280px;
}

.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%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

/* 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%;
  max-width: 300px;
  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%;
  max-width: 340px;
  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: 0;
  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: 0;
  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;
}

.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%;
  max-width: 280px;
}

.dm-requests-demo-feature,
.triggers-demo-chat,
.user-groups-demo-feature,
.owners-demo-feature {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.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;
  font-weight: 300;
}

.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%;
  max-width: 280px;
}

.mod-mini-panel {
  background: #36393f;
  border: 1px solid #484c52;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 260px;
}

.mod-mini-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #484c52;
}

.mod-mini-header i {
  color: #5865f2;
  font-size: 16px;
}

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

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

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

.mod-mini-type {
  background: #ed4245;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mod-mini-id {
  color: #72767d;
  font-size: 11px;
}

.mod-mini-message {
  background: #2b2d31;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

.mod-mini-user {
  color: #b9bbbe;
  margin-right: 6px;
}

.mod-mini-text {
  color: #dcddde;
}

.mod-mini-question {
  color: #b9bbbe;
  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: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.mod-mini-btn-yes {
  background: #248046;
  color: white;
}

.mod-mini-btn-no {
  background: #4e5058;
  color: #b5bac1;
}

.mod-mini-progress {
}

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

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

.mod-mini-fill {
  height: 100%;
  width: 100%;
  background: var(--green);
  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;
}

/* Responsive */
@media (max-width: 768px) {
  .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;
  }
}
