/* ==========================================================================
   NAToolkit Admin & Telemetry Operations Dashboard
   Theme: Modern Clean Light Dashboard (NAToolkits Brand Theme)
   ========================================================================== */

:root {
  /* Default Clean White / Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #10a37f;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #64748b;

  /* Accent Colors */
  --accent-primary: #10a37f;        /* Emerald / NAToolkit */
  --accent-primary-hover: #0d8a6b;
  --accent-primary-faint: rgba(16, 163, 127, 0.08);

  --color-chatgpt: #059669;
  --color-chatgpt-bg: rgba(16, 163, 127, 0.08);
  --color-chatgpt-border: rgba(16, 163, 127, 0.25);

  --color-claude: #b45309;
  --color-claude-bg: rgba(217, 119, 6, 0.08);
  --color-claude-border: rgba(217, 119, 6, 0.25);

  --color-gemini: #2563eb;
  --color-gemini-bg: rgba(37, 99, 235, 0.08);
  --color-gemini-border: rgba(37, 99, 235, 0.25);

  /* Status Colors */
  --status-pending: #d97706;
  --status-pending-bg: rgba(217, 119, 6, 0.08);
  --status-pending-border: rgba(217, 119, 6, 0.25);

  --status-investigating: #7c3aed;
  --status-investigating-bg: rgba(124, 58, 237, 0.08);
  --status-investigating-border: rgba(124, 58, 237, 0.25);

  --status-resolved: #059669;
  --status-resolved-bg: rgba(5, 150, 105, 0.08);
  --status-resolved-border: rgba(5, 150, 105, 0.25);

  --status-danger: #dc2626;
  --status-danger-bg: rgba(220, 38, 38, 0.08);
  --status-danger-border: rgba(220, 38, 38, 0.25);

  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: 14px;
}

/* ==========================================================================
   1. LOGIN OVERLAY
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  background: var(--accent-primary-faint);
  border: 1px solid rgba(16, 163, 127, 0.3);
  color: var(--accent-primary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.login-brand h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-wrapper input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

.login-error-msg {
  padding: 10px 14px;
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.login-error-msg.hidden {
  display: none;
}

/* Standalone Dedicated Login Page */
.login-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 15%, rgba(16, 163, 127, 0.08), transparent 60%),
              var(--bg-base);
  padding: 24px;
}

.login-card-standalone {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.login-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-password-wrapper input {
  padding-right: 44px;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.toggle-password-btn:hover {
  color: var(--accent-primary);
}

.login-security-notice {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-mode-hint {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   2. APP LAYOUT & TOP NAVIGATION
   ========================================================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.logo-title {
  color: var(--text-main);
}

.tag-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-primary-faint);
  color: var(--accent-primary);
  border: 1px solid rgba(16, 163, 127, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.nav-link.active {
  color: var(--accent-primary);
  background: var(--accent-primary-faint);
}

.live-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 163, 127, 0.08);
  border: 1px solid rgba(16, 163, 127, 0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 163, 127, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0);
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.admin-profile .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-info {
  display: flex;
  flex-direction: column;
}

.admin-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-role {
  font-size: 10.5px;
  color: var(--accent-primary);
  font-weight: 500;
}

/* ==========================================================================
   3. MAIN CONTENT BODY & STATS GRID
   ========================================================================== */
.main-body {
  flex: 1;
  padding: 28px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   4. CONTROLS BAR & FILTERS
   ========================================================================== */
.controls-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab-btn .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-chatgpt { background: var(--color-chatgpt); }
.dot-claude { background: var(--color-claude); }
.dot-gemini { background: var(--color-gemini); }
.dot-all { background: #64748b; }

.tab-badge {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-muted);
}

.tab-btn.active .tab-badge {
  background: var(--accent-primary-faint);
  color: var(--accent-primary);
}

/* Filters & Search */
.filters-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Brand Select Elements */
.brand-select,
.select-wrapper select {
  height: 40px;
  padding: 0 38px 0 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 500;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310a37f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.brand-select:hover,
.select-wrapper select:hover {
  border-color: #10a37f;
  background-color: #f8fafc;
}

.brand-select:focus,
.select-wrapper select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
  background-color: #ffffff;
}

/* ==========================================================================
   CUSTOM BRAND DROPDOWN COMPONENT (100% Brand Color & SVG, Replaces Native OS Menu)
   ========================================================================== */
.custom-select-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
}

.field-col .custom-select-wrap {
  width: 100%;
}

.custom-select-trigger {
  height: 40px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 500;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 170px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  outline: none;
}

.custom-select-trigger:hover {
  border-color: var(--accent-primary);
  background-color: #f8fafc;
}

.custom-select-trigger:focus-visible,
.custom-select-wrap.open .custom-select-trigger {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
  background-color: #ffffff;
}

.custom-select-arrow {
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-wrap.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 6px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#modalStatusSelectWrap .custom-select-wrap {
  min-width: 140px;
}

#modalStatusSelectWrap .custom-select-trigger {
  height: 36px;
  min-width: 140px;
  font-weight: 600;
}

.modal-section .custom-select-wrap {
  width: 100%;
  max-width: 280px;
  position: relative;
  z-index: 20;
}

.modal-section .custom-select-wrap.open {
  z-index: 30;
}

.modal-section .custom-select-trigger {
  width: 100%;
  justify-content: space-between;
}

.modal-section .custom-select-dropdown {
  width: 100%;
  min-width: 100%;
  z-index: 100;
}

.modal-content .custom-select-dropdown {
  z-index: 1250;
}

.custom-select-wrap.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.custom-select-option:hover {
  background-color: rgba(16, 163, 127, 0.08); /* Brand Emerald Tint */
  color: var(--accent-primary);
}

.custom-select-option.selected {
  background-color: rgba(16, 163, 127, 0.12); /* Selected Brand Background */
  color: var(--accent-primary);
  font-weight: 600;
}

.custom-select-option .check-icon {
  color: var(--accent-primary);
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.custom-select-option.selected .check-icon {
  opacity: 1;
  transform: scale(1);
}

/* Custom Scrollbar for Dropdown Menu */
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--text-faint);
  pointer-events: none;
}

.search-input-wrapper input {
  height: 40px;
  width: 250px;
  padding: 0 32px 0 36px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input-wrapper input:focus {
  width: 290px;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 12px;
}

/* ==========================================================================
   5. REPORTS FEED & CARDS
   ========================================================================== */
.reports-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.feed-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.results-count {
  font-size: 13px;
  color: var(--text-muted);
}

.view-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-surface-elevated);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-view {
  background: transparent;
  border: none;
  padding: 5px 8px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-view:hover {
  color: var(--text-main);
}

.btn-view.active {
  background: var(--bg-surface);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

/* Card Grid Layout */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.report-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.report-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-platform {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-platform.chatgpt {
  background: var(--color-chatgpt-bg);
  color: var(--color-chatgpt);
  border: 1px solid var(--color-chatgpt-border);
}

.badge-platform.claude {
  background: var(--color-claude-bg);
  color: var(--color-claude);
  border: 1px solid var(--color-claude-border);
}

.badge-platform.gemini {
  background: var(--color-gemini-bg);
  color: var(--color-gemini);
  border: 1px solid var(--color-gemini-border);
}

.badge-platform.all {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.badge-tool {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.badge-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status svg {
  flex-shrink: 0;
}

.badge-status.pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
  border: 1px solid var(--status-pending-border);
}

.badge-status.investigating {
  background: var(--status-investigating-bg);
  color: var(--status-investigating);
  border: 1px solid var(--status-investigating-border);
}

.badge-status.resolved {
  background: var(--status-resolved-bg);
  color: var(--status-resolved);
  border: 1px solid var(--status-resolved-border);
}

.card-body {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-screenshot-preview {
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  background: #000;
}

.card-screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.card-user-email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   6. TABLE VIEW ALTERNATIVE
   ========================================================================== */
.reports-table-wrap {
  overflow-x: auto;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.reports-table th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.reports-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.reports-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.table-desc-cell {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-thumb {
  width: 44px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

/* ==========================================================================
   7. EMPTY STATE
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  color: var(--text-faint);
  margin-bottom: 14px;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   8. REPORT DETAIL MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.report-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-faint);
}

.modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  background: var(--bg-surface-elevated);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-all;
}

.status-select {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label,
.modal-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.description-box,
.modal-text-content {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-main);
}

.screenshot-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0f172a;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-container img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.screenshot-container:hover .screenshot-overlay {
  opacity: 1;
}

#zoomScreenshotBtn {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 0 18px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#zoomScreenshotBtn svg {
  color: var(--accent-primary);
}

#zoomScreenshotBtn:hover {
  background: #ffffff !important;
  color: var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;
}

.modal-section textarea,
.brand-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.modal-section textarea:focus,
.brand-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   9. FULLSCREEN LIGHTBOX
   ========================================================================== */
.lightbox-overlay,
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10000;
}

.lightbox-content img,
#lightboxImg {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.btn-lightbox-close,
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10005;
}

.btn-lightbox-close:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Lightbox Navigation Buttons (Prev / Next) */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10005;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}

.lightbox-nav-btn:hover {
  background: rgba(16, 163, 127, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

/* Lightbox Counter Badge */
.lightbox-counter {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  user-select: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }
  .lightbox-prev {
    left: 12px;
  }
  .lightbox-next {
    right: 12px;
  }
  .lightbox-counter {
    bottom: -32px;
    font-size: 11.5px;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   10. BUTTONS & SHARED UTILITIES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-primary);
}

.btn-ghost:hover {
  background: var(--accent-primary-faint);
}

.btn-danger {
  background: var(--status-danger-bg);
  border-color: var(--status-danger-border);
  color: var(--status-danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   11. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-color: var(--status-resolved-border);
}

.toast.success svg {
  color: var(--status-resolved);
}

.toast.danger {
  border-color: var(--status-danger-border);
}

.toast.danger svg {
  color: var(--status-danger);
}

.toast.info {
  border-color: rgba(59, 130, 246, 0.35);
}

.toast.info svg {
  color: #3b82f6;
}

.toast.warning {
  border-color: rgba(245, 158, 11, 0.35);
}

.toast.warning svg {
  color: #f59e0b;
}

/* ==========================================================================
   11.5 LIVE SERVICE BROADCAST SECTION
   ========================================================================== */
.broadcast-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.broadcast-section.is-active {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.08);
}

.broadcast-summary-bar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: var(--bg-surface);
  transition: background var(--transition-fast);
  user-select: none;
}

.broadcast-summary-bar:hover {
  background: var(--bg-surface-elevated);
}

.broadcast-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.broadcast-icon-pulse {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.broadcast-section.is-active .broadcast-icon-pulse {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

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

.broadcast-headline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.broadcast-headline h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.broadcast-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.broadcast-status-badge.inactive {
  background: var(--bg-surface-elevated);
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
}

.broadcast-status-badge.inactive .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.broadcast-status-badge.active {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.broadcast-status-badge.active .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.broadcast-subtext {
  font-size: 12.5px;
  color: var(--text-muted);
}

#toggleBroadcastPanelBtn {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 34px;
}

#toggleBroadcastPanelBtn:hover {
  background: #f8fafc;
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

#broadcastChevronIcon {
  color: var(--accent-primary);
  transition: transform var(--transition-normal);
}

.broadcast-drawer {
  padding: 0 22px 22px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  animation: slideDownFade 0.25s ease;
}

.broadcast-drawer.collapsed {
  display: none;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.broadcast-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding-top: 20px;
}

.broadcast-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.field-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-col label,
.broadcast-field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.broadcast-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.label-with-templates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-btn {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  color: var(--accent-primary);
  border-color: rgba(16, 163, 127, 0.4);
  background: var(--accent-primary-faint);
}

.broadcast-field-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.broadcast-field-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.broadcast-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Extension Mockup Preview Column */
.broadcast-preview-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-card-header {
  display: flex;
  flex-direction: column;
}

.preview-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-hint {
  font-size: 12px;
  color: var(--text-faint);
}

.extension-mockup-window {
  background: #080c14;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-topbar {
  height: 32px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.mockup-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 12px;
  border-radius: 4px;
}

.mockup-canvas {
  height: 190px;
  background: radial-gradient(circle at 50% 50%, #111827 0%, #070a10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

/* The Live Toast inside Extension */
.natk-live-toast {
  width: 100%;
  max-width: 440px;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastPop {
  from {
    transform: translateY(-8px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.natk-live-toast.warning {
  border-color: rgba(245, 158, 11, 0.38);
}

.natk-live-toast.warning .toast-indicator-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.natk-live-toast.info {
  border-color: rgba(59, 130, 246, 0.38);
}

.natk-live-toast.info .toast-indicator-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.natk-live-toast.urgent {
  border-color: rgba(239, 68, 68, 0.45);
}

.natk-live-toast.urgent .toast-indicator-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-indicator-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #f9fafb;
}

.toast-msg {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  word-break: break-word;
}

.toast-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.toast-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   12. RESPONSIVENESS
   ========================================================================== */
@media (max-width: 900px) {
  .top-nav {
    padding: 0 16px;
  }

  .main-body {
    padding: 18px;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-tabs {
    overflow-x: auto;
  }

  .filters-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper input {
    width: 100% !important;
  }

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

/* ==========================================================================
   13. VISUAL ANALYTICS & SVG CHARTS (Zero-Library Pure CSS/SVG)
   ========================================================================== */
.analytics-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .analytics-section {
    grid-template-columns: 1fr;
  }
}

.analytics-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast);
}

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

.analytics-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.analytics-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.analytics-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analytics-header h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.analytics-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.analytics-badge {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Tool Bar Chart */
.chart-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.chart-empty-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

.tool-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.tool-bar-name {
  color: var(--text-main);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-bar-track {
  height: 10px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.tool-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10a37f, #34d399);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-bar-value {
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
  font-size: 12px;
}

/* Platform Distribution Strip */
.platform-strip-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform-strip {
  height: 16px;
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  background: var(--bg-surface-elevated);
}

.platform-seg {
  height: 100%;
  transition: width 0.5s ease;
  position: relative;
}

.platform-seg.seg-chatgpt {
  background: #10a37f;
}

.platform-seg.seg-claude {
  background: #d97706;
}

.platform-seg.seg-gemini {
  background: #3b82f6;
}

.platform-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.dot-chatgpt { background: #10a37f; }
.legend-dot.dot-claude { background: #d97706; }
.legend-dot.dot-gemini { background: #3b82f6; }

.legend-count {
  font-weight: 700;
  color: var(--text-main);
}

/* 1-Click Email Reply */
.email-val-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-xs {
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  border-radius: 6px;
  gap: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   14. DEDICATED ANALYTICS PAGE STYLES (Zero-Library Pure CSS/SVG)
   ========================================================================== */
.analytics-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title-group h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
}

.page-title-group p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Time Horizon Segmented Button Group */
.horizon-btn-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.horizon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease-in-out;
  white-space: nowrap;
  user-select: none;
}

.horizon-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.horizon-btn.active {
  color: var(--accent-primary);
  background: var(--bg-surface);
  font-weight: 600;
  border-color: rgba(16, 163, 127, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .horizon-btn-group {
    width: 100%;
    overflow-x: auto;
  }
  .horizon-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-desc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.kpi-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.kpi-badge.positive {
  background: #dcfce7;
  color: #15803d;
}

.kpi-badge.neutral {
  background: #f1f5f9;
  color: #475569;
}

/* Main Charts Grid */
.charts-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1050px) {
  .charts-grid-layout {
    grid-template-columns: 1fr;
  }
}

.chart-card-large {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-header-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.chart-header-title p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.chart-body-svg {
  position: relative;
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-body-svg svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* SVG Chart Tooltip */
.chart-point-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0f172a;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -100%);
  margin-top: -8px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  z-index: 10;
}

.chart-point-tooltip.visible {
  opacity: 1;
}

/* Secondary Charts Row */
.charts-secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .charts-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* Donut Chart */
.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.donut-svg-box {
  width: 180px;
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-center-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.donut-center-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.donut-legend-vertical {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
}

.donut-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-weight: 500;
}

/* Status Funnel List */
.funnel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.funnel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.funnel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.funnel-count {
  font-weight: 700;
  color: var(--text-main);
}

.funnel-track {
  height: 8px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.funnel-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.funnel-fill.pending { background: #f59e0b; }
.funnel-fill.investigating { background: #8b5cf6; }
.funnel-fill.resolved { background: #10a37f; }

/* Quick Log Table Card */
.quick-log-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* ==========================================================================
   Feature Requests & Roadmap Styling
   ========================================================================== */
.features-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.feature-status-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .features-feed-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.feature-card:hover {
  border-color: var(--accent-primary, #10a37f);
  box-shadow: 0 8px 24px rgba(16, 163, 127, 0.08), var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feature-card-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.feature-card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.feature-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.feature-card-attachments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.feature-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.feature-attachment-pill:hover {
  color: var(--accent-primary);
  border-color: rgba(16, 163, 127, 0.3);
  background: rgba(16, 163, 127, 0.05);
}

.feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  gap: 8px;
}

.feature-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.feature-email {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 160px;
}

.feature-time {
  color: var(--text-faint);
  white-space: nowrap;
}

/* Priority Badges */
.badge-priority {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.badge-priority.game-changer {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-priority.important {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-priority.nice-to-have {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Status Badges for Feature Roadmap */
.badge-status.under-review {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-status.planned {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.badge-status.in-progress {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-status.completed {
  background: rgba(16, 163, 127, 0.1);
  color: #10a37f;
  border: 1px solid rgba(16, 163, 127, 0.25);
}

.badge-status.declined {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Reference Link & Screenshot in Modal */
.reference-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.16s ease;
}

.reference-link-btn:hover {
  background: rgba(16, 163, 127, 0.08);
  border-color: var(--accent-primary);
}

.screenshot-box {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0f172a;
  max-height: 220px;
  cursor: pointer;
}

.screenshot-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.screenshot-box:hover img {
  transform: scale(1.02);
}

.screenshot-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screenshot-box:hover .screenshot-zoom-overlay {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BROADCAST MANAGEMENT HUB & HISTORY STUDIO STYLES
   ══════════════════════════════════════════════════════════════════ */
.broadcast-studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1080px) {
  .broadcast-studio-grid {
    grid-template-columns: 1fr;
  }
}

.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.studio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.studio-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-header-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.studio-header-title p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

.studio-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.studio-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-form .form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-form .field-hint {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

.studio-form textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  outline: none;
  resize: vertical;
  line-height: 1.5;
  font-size: 13.5px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.studio-form textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.15);
}

.studio-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.studio-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-actions-right {
  display: flex;
  align-items: center;
}

/* Simulator Preview Card */
.preview-card {
  display: flex;
  flex-direction: column;
}

.preview-mode-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
}

.toast-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #10a37f;
  background: rgba(16, 163, 127, 0.12);
  border: 1px solid rgba(16, 163, 127, 0.28);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toast-action-btn:hover {
  background: rgba(16, 163, 127, 0.22);
  border-color: rgba(16, 163, 127, 0.45);
  color: #10b981;
}

.toast-dismiss-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toast-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.toast-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.preview-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 14px;
  line-height: 1.4;
}

/* History Table Styling */
.history-table-wrapper {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.history-table th {
  background: var(--bg-surface-elevated);
  padding: 12px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-medium);
}

.history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-main);
}

.history-table tr:last-child td {
  border-bottom: none;
}

.history-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

.badge-status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-status-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.badge-status-expired {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-status-inactive {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-faint);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 600;
}

.badge-severity {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-severity.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-severity.info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.badge-severity.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.table-tool-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.table-tool-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 13px;
}

.table-platform-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.table-msg-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
}

.table-msg-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.45;
}

.history-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(16, 163, 127, 0.08);
  border: 1px solid rgba(16, 163, 127, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.history-action-link:hover {
  background: rgba(16, 163, 127, 0.16);
  border-color: var(--accent-primary);
}

.no-link-badge {
  font-size: 11px;
  color: var(--text-faint);
}

.table-timestamp {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.table-actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.btn-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  gap: 5px;
}

.btn-danger-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-faint);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-danger-icon:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-warning-soft {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-warning-soft:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #b45309;
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #b91c1c;
}

/* Section Title and Header Icon Styling */
.icon-wrap-sm {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.section-title-wrap p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0 0;
}

/* History Counter */
.reports-counter {
  margin: 14px 0 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Status Filter Tabs fallback */
.status-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease-in-out;
  white-space: nowrap;
  user-select: none;
}

.status-tab:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.status-tab.active {
  color: var(--accent-primary);
  background: var(--bg-surface);
  font-weight: 600;
  border-color: rgba(16, 163, 127, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Live Simulator Mockup Elements */
.toast-severity-indicator {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.toast-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.toast-brand {
  font-size: 11.5px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.toast-tool-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 1px 7px;
  border-radius: 4px;
}

.toast-severity-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: capitalize;
}

.toast-message-body {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.toast-close-x {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.toast-close-x:hover {
  color: #e2e8f0;
}

.natk-live-toast[data-severity="warning"] {
  border-color: rgba(245, 158, 11, 0.45);
}
.natk-live-toast[data-severity="warning"] .toast-severity-indicator {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.natk-live-toast[data-severity="info"] {
  border-color: rgba(59, 130, 246, 0.45);
}
.natk-live-toast[data-severity="info"] .toast-severity-indicator {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.natk-live-toast[data-severity="urgent"] {
  border-color: rgba(239, 68, 68, 0.55);
}
.natk-live-toast[data-severity="urgent"] .toast-severity-indicator {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

/* Multiple Screenshot Gallery in Admin Modals */
.screenshots-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.screenshot-gallery-thumb {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--border-subtle, #cbd5e1);
  cursor: pointer;
  transition: all 0.18s ease;
  background: #0f172a;
}

.screenshot-gallery-thumb:hover {
  border-color: #10a37f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ══════════════════════════════════════════════════════════════ */
/* INLINE MODAL DIRECT EMAIL REPLY COMPOSER                       */
/* ══════════════════════════════════════════════════════════════ */
.reply-composer-box {
  background: var(--bg-surface-elevated, #f8fafc);
  border: 1px solid rgba(16, 163, 127, 0.35);
  border-radius: var(--radius-md, 10px);
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: replySlideDown 0.22s ease-out;
  box-shadow: 0 4px 16px rgba(16, 163, 127, 0.06);
}

@keyframes replySlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reply-composer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.reply-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #10a37f;
}

.reply-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.reply-field-row label {
  width: 60px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  flex-shrink: 0;
}

.reply-input-readonly {
  flex: 1;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-main, #0f172a);
  font-family: inherit;
  font-weight: 500;
}

.reply-input {
  flex: 1;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-main, #0f172a);
  font-family: inherit;
}

.reply-input:focus,
.reply-textarea:focus {
  outline: none;
  border-color: #10a37f;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.12);
}

.reply-templates-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
}

.template-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-chip {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #cbd5e1);
  border-radius: var(--radius-full, 9999px);
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-main, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-chip:hover {
  background: rgba(16, 163, 127, 0.08);
  border-color: #10a37f;
  color: #10a37f;
}

.reply-field-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reply-field-col label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.reply-textarea {
  width: 100%;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-sm, 6px);
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-main, #0f172a);
  font-family: inherit;
  resize: vertical;
  min-height: 85px;
}

.reply-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.reply-resolve-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-main, #334155);
  cursor: pointer;
  user-select: none;
}

.reply-resolve-checkbox input[type="checkbox"] {
  accent-color: #10a37f;
  width: 15px;
  height: 15px;
  cursor: pointer;
}


