/* Reset & Variable Tokens */
:root {
  --bg-color: #0b0d19;
  --panel-bg: rgba(20, 24, 46, 0.45);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-hover-border: rgba(255, 255, 255, 0.15);
  
  --primary-color: #502379;
  --primary-glow: rgba(80, 35, 121, 0.45);
  --accent-color: #8c4bb7;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --success: hsl(145, 80%, 45%);
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: hsl(38, 92%, 50%);
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: hsl(350, 85%, 60%);
  --error-bg: rgba(239, 68, 68, 0.15);
  --info: hsl(210, 90%, 50%);
  --info-bg: rgba(59, 130, 246, 0.1);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Global Link Styles */
a {
  color: var(--accent-color);
  text-decoration: none;
}

a:visited {
  color: var(--accent-color);
}

a:hover {
  text-decoration: underline;
}

/* Background Glowing Accents */
.glow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-1 {
  position: absolute;
  top: -10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(80, 35, 121, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  animation: float 20s ease-in-out infinite alternate;
}

.glow-2 {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  animation: float 25s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
}

.logo:visited,
.logo:hover,
.logo:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.logo-emoji {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 10px rgba(147, 51, 234, 0.4));
  user-select: none;
}

.logo span strong {
  font-weight: 800;
  color: var(--accent-color) !important;
}

.env-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.env-badge i {
  color: var(--accent-color);
  font-size: 0.75rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.hero-section h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #d8b4fe, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Search Bar Input Container */
.search-container {
  max-width: 650px;
  margin: 0 auto;
}

.scan-form {
  display: flex;
  background: rgba(15, 18, 36, 0.8);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 16px;
  padding: 0.5rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.scan-form:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px 0 var(--primary-glow);
}

.input-wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding-left: 1rem;
  gap: 0.75rem;
}

.input-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.scan-form input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1.05rem;
  width: 100%;
}

.scan-form input::placeholder {
  color: var(--text-muted);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(80, 35, 121, 0.45);
}

.primary-btn:active {
  transform: translateY(0);
}

/* Glass Card Global Styles */
.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

/* Loader Section */
.loader-section {
  max-width: 500px;
  margin: 4rem auto;
}

.loader-card {
  text-align: center;
  padding: 3rem 2rem;
}

.spinner-container {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outer-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.inner-ring {
  position: absolute;
  width: 76%;
  height: 76%;
  border: 3px solid transparent;
  border-left-color: var(--info);
  border-right-color: var(--info);
  border-radius: 50%;
  animation: spin-reverse 1.2s linear infinite;
}

.scanning-icon {
  font-size: 1.8rem;
  color: var(--text-primary);
  animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.loader-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.loader-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.progress-bar-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  height: 6px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.step {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.step.active {
  color: var(--text-primary);
  font-weight: 500;
}

.step.active i {
  color: var(--accent-color);
}

.step.done {
  color: var(--success);
}

/* Error State */
.error-section {
  max-width: 500px;
  margin: 4rem auto;
}

.error-card {
  text-align: center;
  padding: 3rem 2rem;
  border-color: rgba(239, 68, 68, 0.2);
}

.error-icon {
  font-size: 3rem;
  color: var(--error);
  margin-bottom: 1.25rem;
}

.error-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* Dashboard Section */
.dashboard-section {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Binary Compliance Card */
.compliance-status-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.compliant-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(20, 24, 46, 0.45) 100%) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

.warning-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(20, 24, 46, 0.45) 100%) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

.non-compliant-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(20, 24, 46, 0.45) 100%) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
}

.status-badge-container {
  display: flex;
  margin: 0.5rem 0 1rem 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.status-compliant {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.status-non-compliant {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.status-explanation {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.45;
}

.url-badge, .time-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

a.url-badge {
  text-decoration: none;
  transition: var(--transition-smooth);
}

a.url-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.2);
}

.compliance-layout-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.compliance-left {
  flex: 1;
}

.compliance-left h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.compliance-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.url-badge i, .time-badge i {
  color: var(--text-muted);
}

.url-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-badge-btn {
  background: rgba(80, 35, 121, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #f3e8ff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.share-badge-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.share-badge-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.share-badge-btn i {
  font-size: 0.9rem;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
}

.stat-card:hover {
  border-color: var(--panel-hover-border);
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.marketing-icon { background: var(--error-bg); color: var(--error); }
.analytics-icon { background: var(--warning-bg); color: var(--warning); }
.tracking-icon { background: rgba(147, 51, 234, 0.15); color: var(--accent-color); }
.security-icon { background: var(--info-bg); color: var(--info); }

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

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.1rem 0;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Special borders for stats */
.border-marketing { border-left: 4px solid var(--error); }
.border-analytics { border-left: 4px solid var(--warning); }
.border-tracking { border-left: 4px solid var(--accent-color); }
.border-security { border-left: 4px solid var(--info); }

/* Details Card & Tabs */
.details-card {
  padding: 0;
  overflow: hidden;
}

.tab-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--panel-border);
}

.tab-btn {
  background: transparent;
  border: none;
  outline: none;
  padding: 1.2rem 1.75rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.01);
}

.tab-btn.active {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tab-btn.active .badge {
  background: rgba(80, 35, 121, 0.25);
  color: var(--accent-color);
}

.tab-content-container {
  padding: 1.75rem;
}

.tab-content.hidden {
  display: none;
}

/* Overview Tab Layout */
.overview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.overview-layout h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diag-group-header {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}

.diag-group-header:first-of-type {
  margin-top: 0;
}

.diag-group-header i {
  font-size: 0.8rem;
}

.diag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--panel-border);
  padding: 1rem 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.diag-item:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--panel-hover-border);
}

.diag-item.active {
  background: rgba(80, 35, 121, 0.1);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(80, 35, 121, 0.2);
}

.diag-item-left {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.diag-icon {
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.diag-icon.pass { color: var(--success); }
.diag-icon.warn { color: var(--warning); }
.diag-icon.fail { color: var(--error); }

.diag-details h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.diag-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.diag-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  min-width: 32px;
  text-align: center;
}

.diag-counter.pass {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.diag-counter.fail {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.diag-counter.warn {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Detail Panel Container */
.detail-card-panel {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem !important;
}

.empty-detail-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  color: var(--text-muted);
  gap: 0.85rem;
  padding: 3rem 1rem;
}

.empty-detail-state i {
  font-size: 2.5rem;
}

.empty-detail-state p {
  max-width: 280px;
  font-size: 0.88rem;
}

/* Detail Active Content */
.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.detail-title-area h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.detail-title-area p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.detail-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.article-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.article-tag.clickable-tag {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.article-tag.clickable-tag:hover {
  transform: translateY(-1px);
  filter: brightness(1.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.article-tag.critical { background: var(--error-bg); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }
.article-tag.high { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.article-tag.medium { background: var(--info-bg); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.article-tag.pass { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

.detail-body-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.detail-findings-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.detail-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.detail-item-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.detail-item-bubble span.sec-warn {
  color: var(--warning);
  font-size: 0.75rem;
  font-family: var(--font-main);
  font-weight: 500;
}

.detail-item-bubble.expandable {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}

.detail-item-bubble.expandable:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.3);
}

.detail-item-bubble.expanded {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.4);
}

.detail-item-bubble.expanded .toggle-icon {
  transform: rotate(90deg);
  color: var(--accent-color) !important;
}

.incident-row {
  transition: background-color 0.15s ease;
}

.incident-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.incident-url {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.incident-url:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

.detail-recs-panel h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.risk-explanation-panel {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.risk-explanation-panel.fail {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.risk-explanation-panel.fail strong {
  color: var(--error);
}

.risk-explanation-panel.warn {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.risk-explanation-panel.warn strong {
  color: var(--warning);
}

.risk-explanation-panel strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.risk-explanation-panel p {
  color: var(--text-primary);
  margin: 0;
}

.risk-explanation-panel a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.risk-explanation-panel a:visited {
  color: var(--accent-color);
}

.risk-explanation-panel a:hover {
  text-decoration: underline;
}

.rec-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rec-card-item {
  display: flex;
  gap: 0.75rem;
  background: rgba(59, 130, 246, 0.03);
  border: 1px solid rgba(59, 130, 246, 0.12);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.rec-card-item i {
  color: var(--info);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.rec-card-item p {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.rec-card-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.rec-card-item a:visited {
  color: var(--accent-color);
}

.rec-card-item a:hover {
  text-decoration: underline;
}

/* Tables Styling */
.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.filter-search {
  position: relative;
  max-width: 320px;
  flex-grow: 1;
}

.filter-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.filter-search input {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: var(--transition-smooth);
}

.filter-search input:focus {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.25);
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.report-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
}

.report-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-primary);
  vertical-align: middle;
  word-break: break-all;
}

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

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

.center {
  text-align: center !important;
}

/* Category column styling */
.cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}

.cat-badge.necessary { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }
.cat-badge.analytics { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.cat-badge.marketing { background: var(--error-bg); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.15); }
.cat-badge.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.cat-badge.unclassified { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid var(--panel-border); }

/* Contribution Badge Link */
.contrib-link {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-color);
  border: 1px solid rgba(168, 85, 247, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.contrib-link:hover {
  background: rgba(168, 85, 247, 0.18);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}


/* Flags column styling */
.flag-icon {
  font-size: 0.95rem;
}

.flag-icon.active { color: var(--success); }
.flag-icon.inactive { color: var(--error); }

/* SameSite badge */
.samesite-val {
  font-family: monospace;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Risk column */
.risk-text {
  font-weight: 600;
  font-size: 0.82rem;
}
.risk-text.none { color: var(--success); }
.risk-text.medium { color: var(--warning); }
.risk-text.high { color: var(--error); }

/* No results state */
.no-results {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.no-results p {
  font-size: 0.9rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  padding-top: 2rem;
}

footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-custom-text {
  margin-top: 0.5rem;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

footer a:visited {
  color: var(--accent-color);
}

footer a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive UI adjustments */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search {
    max-width: none;
  }

  .compliance-layout-split {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .compliance-right {
    align-items: stretch;
  }
}

/* Custom Tooltip styling */
.type-tooltip {
  border-bottom: 1px dashed var(--text-secondary);
  cursor: help;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.type-tooltip:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Advanced Options Panel */
.icon-btn-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  margin-right: 0.5rem;
}

.icon-btn-toggle:hover {
  color: var(--accent-color);
  transform: rotate(45deg);
}

.advanced-panel {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem !important;
  text-align: left;
}

.advanced-panel h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.4rem;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.input-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.input-group input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus {
  border-color: var(--accent-color);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.15);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 22, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: var(--transition-smooth);
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Modal Container */
.modal-container {
  width: 90%;
  max-width: 580px;
  background: linear-gradient(135deg, rgba(25, 20, 48, 0.85) 0%, rgba(13, 11, 26, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
  padding: 0 !important;
  animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modal Header */
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.modal-header h3 i {
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Body */
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-family: var(--font-main);
  line-height: 1.5;
  color: var(--text-secondary);
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-section p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.modal-section p.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-section p:last-child {
  margin-bottom: 0;
}

.modal-section ul {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.modal-section li {
  margin-bottom: 0.4rem;
}

.modal-section strong {
  color: var(--text-primary);
}

/* Custom typography & elements for modal body */
.modal-body h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-body h4 {
  font-family: var(--font-display);
  color: var(--accent-color);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 0.25rem;
}

.modal-body h4.error-title {
  color: var(--error);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: none;
  padding-bottom: 0;
}

.modal-body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-body p.highlight {
  color: var(--text-primary);
  font-weight: 500;
}

.modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding-left: 0;
}

.modal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.modal-body a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.modal-body a:visited {
  color: var(--accent-color);
}

.modal-body a:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

/* Modal Size Modifiers */
.modal-container.modal-md {
  max-width: 600px;
}

.modal-container.modal-lg {
  max-width: 800px;
}

@media (max-width: 480px) {
  .loading-steps {
    max-width: 280px;
  }
  .step {
    white-space: normal;
  }
}

/* Dictionaries Modal Table & Scrollbar Styling */
#dictModalContent thead th {
  background: #14182e; /* solid dark background for sticky headers */
  border-bottom: 2px solid var(--panel-border);
}

#dictModalContent tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

#dictModalContent td {
  padding: 0.65rem 1rem;
}

/* Dictionary Badges */
.badge-compliant {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-non-compliant,
.badge-tracker,
.badge-cdn,
.badge-cmp {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Dictionary Switcher Navigation */
.dict-tab-nav {
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

.dict-tab-nav .tab-btn {
  padding: 0.8rem 0.5rem;
  justify-content: center;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  border-radius: 0;
  transition: var(--transition-smooth);
}

.dict-tab-nav .tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.dict-tab-nav .tab-btn.active {
  background: rgba(147, 51, 234, 0.15) !important;
  color: var(--accent-color);
  font-weight: 700;
}

@media (max-width: 600px) {
  .dict-tab-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Layout Banners */
.banner-panel {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  line-height: 1.4;
}

.banner-panel.info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.banner-panel.warning {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.banner-panel i {
  font-size: 1rem;
  flex-shrink: 0;
}

.banner-panel i.info-icon {
  color: var(--info);
}

.banner-panel i.warn-icon {
  color: var(--warning);
}

/* Dynamic Status Spans (sec-warn) */
.sec-warn {
  font-size: 0.75rem;
  font-family: var(--font-main);
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sec-warn.warn {
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
}

.sec-warn.fail {
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.1);
}

.sec-warn.pass {
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.1);
}

.sec-warn.info {
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.1);
}

.sec-warn.neutral {
  color: var(--text-secondary);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.05);
}

/* Incidents list and row elements */
.incidents-list {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.incidents-list.hidden {
  display: none !important;
}

.incident-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  padding: 0.25rem 0;
  width: 100%;
  word-break: break-all;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
}

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

.incident-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
  min-width: 0;
}

.incident-number {
  color: var(--text-muted);
  margin-right: 0.3rem;
}

.incident-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.incident-type-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.bubble-details {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.bubble-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.bubble-header .toggle-icon {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

/* Findings Subheadings */
.findings-subheading {
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.findings-subheading.fail {
  color: var(--error);
}

.findings-subheading.warn {
  color: var(--warning);
}

.findings-subheading.pass {
  color: var(--success);
}

.findings-subheading:not(:first-child) {
  margin-top: 1.25rem;
}

/* Detail panel guide button styling */
.guide-trigger-btn {
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.6rem;
}

/* Credits list styling */
.credits-list {
  margin-top: 0.75rem;
  list-style: none;
  padding-left: 0 !important;
}

.credits-item {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.credits-item strong a {
  font-weight: 600;
}

.credits-item small {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Custom modal table styling */
.modal-table-container {
  margin-top: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8rem;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: rgba(0, 0, 0, 0.2);
}

.modal-table th {
  padding: 0.6rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.2);
}

.modal-table td {
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--panel-border);
}

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

.modal-table td.font-mono {
  font-family: monospace;
}

/* License Modal Copyright & Header Cards */
.app-copyright-card {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.08);
}

.app-copyright-card i {
  color: var(--accent-color);
  font-size: 1.05rem;
}

.app-copyright-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.license-header-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.license-header-card h4 {
  margin: 0 0 0.25rem 0;
  border: none;
  padding: 0;
  color: var(--accent-color);
  font-weight: 800;
  font-family: var(--font-display);
}

.license-header-card .license-version {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.license-header-card .license-fsf {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Dictionary Modal Layout & Elements styling */
.modal-section.divider {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.modal-info-box {
  background: rgba(147, 51, 234, 0.06);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.modal-info-box h5 {
  color: var(--accent-color);
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-info-box p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.modal-info-box ol {
  margin-left: 1.25rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dict-modal-content {
  padding: 0 !important;
  min-height: 250px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.15) !important;
}

#dictTable {
  font-size: 0.82rem;
}

.dict-empty-state {
  padding: 3rem 1rem;
  min-height: 200px;
}

.dict-retry-btn {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

.incident-method {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.guide-trigger-btn i {
  color: var(--accent-color);
}
