.notif-modal {
  max-width: 480px;
}

.notif-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.notif-tab {
  padding: 10px 16px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.notif-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.notif-list {
  max-height: 65vh;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.notif-item:hover {
  background: var(--bg);
}

.notif-item.unread {
  background: #fffbf0;
}

.notif-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  background: var(--bg);
  border-radius: 50%;
}

.notif-content {
  flex: 1;
}

.notif-title {
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.notif-body {
  margin-bottom: 4px;
  color: var(--text-2);
  font-size: 12px;
}

.notif-time {
  color: var(--text-muted);
  font-size: 11px;
}

.ai-support-modal {
  display: flex;
  flex-direction: column;
  max-width: 480px;
}

.ai-avatar,
.ai-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 14px;
}

.ai-status {
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 600;
}

.ai-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 50vh;
  padding: 16px;
  overflow-y: auto;
  background: var(--surface-2);
}

.ai-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.ai-msg.user .ai-bubble {
  color: #fff;
  background: var(--primary);
  border-radius: 16px 4px 16px 16px;
}

.ai-msg.bot .ai-bubble,
.ai-typing {
  border-radius: 4px 16px 16px 16px;
}

.ai-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 10px 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ai-dot {
  width: 6px;
  height: 6px;
  background: #aaa;
  border-radius: 50%;
  animation: aiDot 1.4s infinite;
}

.ai-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes aiDot {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.ai-quick-actions button {
  padding: 5px 10px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: background 0.15s, border-color 0.15s;
}

.ai-quick-actions button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.ai-input-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
}

.ai-send-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  transition: background 0.15s;
}

.ai-send-btn:hover {
  background: var(--primary-dark);
}

.seller-modal {
  max-width: 800px;
}

.seller-stats,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.seller-stat-card,
.analytics-card {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.analytics-card {
  background: #fff;
}

.seller-stat-value,
.analytics-card-value {
  color: var(--text-1);
  font-size: 24px;
  font-weight: 800;
}

.seller-stat-label,
.analytics-card-label {
  color: var(--text-2);
  font-size: 12px;
}

.seller-stat-change,
.analytics-card-sub,
.top-product-revenue {
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 600;
}

.seller-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.seller-tab {
  margin-bottom: -2px;
  padding: 10px 20px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.seller-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.seller-product-table,
.recent-orders-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.seller-product-table th,
.recent-orders-table th {
  padding: 10px 12px;
  font-weight: 600;
  text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.seller-product-table td,
.recent-orders-table td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.seller-product-table tr:hover td {
  background: var(--bg);
}

.add-product-form,
.address-grid,
.address-form-grid,
.analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.add-product-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.add-product-form .form-group label {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.add-product-form .form-group.full,
.address-form-grid .full {
  grid-column: 1 / -1;
}

.analytics-modal {
  max-width: 900px;
}

.analytics-chart-area {
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.analytics-chart-area h3 {
  margin-bottom: 16px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 700;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.bar-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar {
  width: 100%;
  min-height: 4px;
  background: linear-gradient(to top, var(--primary), #ffb84d);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

.bar-label,
.bar-val,
.top-product-sales {
  font-size: 10px;
}

.bar-label,
.top-product-sales {
  color: var(--text-muted);
}

.bar-val,
.top-product-name {
  color: var(--text-1);
  font-weight: 700;
}

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

.top-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.top-product-rank {
  width: 20px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.top-product-info {
  flex: 1;
}

.top-product-name {
  font-size: 13px;
  font-weight: 600;
}

.top-product-revenue {
  font-size: 13px;
}

.address-modal {
  max-width: 600px;
}

.address-grid {
  margin-bottom: 16px;
}

.address-card {
  position: relative;
  padding: 16px;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.address-card:hover {
  border-color: var(--primary);
}

.address-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.address-card-type {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-light);
  border-radius: 3px;
}

.address-card-name {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 700;
}

.address-card-text {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.address-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.address-edit-btn,
.address-delete-btn {
  font-size: 12px;
  background: transparent;
  border: 0;
}

.address-edit-btn {
  color: var(--primary);
}

.address-delete-btn {
  color: var(--accent-red);
}

.address-default-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent-green);
  border-radius: 3px;
}

.add-address-form {
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}

.return-modal {
  max-width: 640px;
}

.return-steps {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.return-step {
  position: relative;
  flex: 1;
  text-align: center;
}

.return-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.return-step.active::after {
  background: var(--primary);
}

.return-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: var(--border);
  border-radius: 50%;
}

.return-step.active .return-step-num {
  background: var(--primary);
}

.return-step-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .seller-stats,
  .analytics-grid,
  .analytics-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .seller-stats,
  .analytics-grid,
  .address-grid,
  .address-form-grid,
  .add-product-form,
  .analytics-two-col {
    grid-template-columns: 1fr;
  }

  .notif-modal,
  .ai-support-modal,
  .seller-modal,
  .analytics-modal,
  .address-modal,
  .return-modal {
    max-width: 100%;
  }
}