/* ==========================================================================
   Affiliate Command Center (ACC) Premium Styling Sheet
   Aesthetics: Sleek FinTech / Cyberpunk Glassmorphism
   Typography: Google Fonts (Outfit & Inter)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Root variables defining our color tokens and responsive grid --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Harmonious Dark Mode HSL Colors */
  --bg-primary: hsl(224, 71%, 4%);
  --bg-secondary: hsl(222, 47%, 7%);
  --bg-card: hsla(223, 45%, 12%, 0.65);
  --bg-card-hover: hsla(223, 45%, 16%, 0.8);
  --bg-glass-input: hsla(223, 45%, 8%, 0.5);

  /* Glowing Accent Gradients */
  --color-cyan: hsl(186, 100%, 50%);
  --color-cyan-glow: hsla(186, 100%, 50%, 0.2);
  --color-purple: hsl(271, 100%, 60%);
  --color-purple-glow: hsla(271, 100%, 60%, 0.2);
  
  --gradient-accent: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  --gradient-accent-soft: linear-gradient(135deg, hsla(186, 100%, 50%, 0.15) 0%, hsla(271, 100%, 60%, 0.15) 100%);
  --gradient-glass-border: linear-gradient(135deg, hsla(186, 100%, 50%, 0.25) 0%, hsla(271, 100%, 60%, 0.05) 50%, hsla(271, 100%, 60%, 0.25) 100%);

  /* Secondary Semantic Colors */
  --color-success: hsl(142, 76%, 45%);
  --color-success-glow: hsla(142, 76%, 45%, 0.15);
  --color-warning: hsl(38, 92%, 50%);
  --color-danger: hsl(350, 89%, 60%);
  --color-danger-glow: hsla(350, 89%, 60%, 0.15);

  /* Typography Text Colors */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 65%);
  --text-muted: hsl(215, 16%, 47%);

  /* Borders and Shadow Values */
  --border-glass: 1px solid hsla(215, 20%, 25%, 0.4);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.15);
  --shadow-purple-glow: 0 0 25px rgba(173, 0, 255, 0.15);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Nav Sidebar Width */
  --sidebar-width: 280px;
}

/* --- Base Rules & Custom Scrollbar --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, hsla(271, 100%, 60%, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(186, 100%, 50%, 0.08) 0px, transparent 50%);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for modern dashboards */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: hsla(215, 20%, 25%, 0.6);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
}

/* --- Application Layout Shell --- */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Navigation Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.brand-logo svg {
  fill: var(--bg-primary);
  width: 24px;
  height: 24px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: hsla(215, 20%, 20%, 0.4);
}

.nav-link:hover svg {
  transform: translateX(3px);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--gradient-accent-soft);
  border: 1px solid hsla(186, 100%, 50%, 0.2);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
}

.nav-link.active svg {
  fill: var(--color-cyan);
}

.sidebar-footer {
  margin-top: auto;
  border-top: var(--border-glass);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 14px;
}

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

.user-name {
  font-size: 14px;
  font-weight: 600;
}

.user-status {
  font-size: 11px;
  color: var(--color-cyan);
  font-weight: 500;
}

/* Main Content Workspace */
.app-workspace {
  flex-grow: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.workspace-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title-group h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.header-title-group p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tabs Panel Layouts */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

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

/* --- Premium Glassmorphism Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: hsla(186, 100%, 50%, 0.25);
  box-shadow: var(--shadow-glow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card.highlighted::before {
  opacity: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  width: 20px;
  height: 20px;
  fill: var(--color-cyan);
}

/* --- GRID SYSTEM --- */
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

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

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

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-bottom: 32px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 1200px) {
  .grid-cols-4, .grid-cols-3, .grid-1-2, .grid-2-1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-4, .grid-cols-3, .grid-cols-2, .grid-1-2, .grid-2-1 {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none; /* In a production app, we would add a mobile hamburger menu */
  }
}

/* --- Stat Indicators (KPIs) --- */
.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background: hsla(215, 20%, 20%, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.stat-card:hover .stat-icon {
  color: var(--color-cyan);
  background: var(--color-cyan-glow);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-top: 8px;
}

.trend-up {
  color: var(--color-success);
}

.trend-down {
  color: var(--color-danger);
}

/* --- Interactive Forms & Inputs --- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.input-prefix {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-glass-input);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-input-prefix {
  padding-left: 32px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-cyan);
  background-color: hsla(223, 45%, 12%, 0.8);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-glass-input);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  background-color: var(--bg-glass-input);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* Custom Range Input (Slider) */
.range-slider-group {
  margin-top: 10px;
}

.range-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.range-slider-value {
  color: var(--color-cyan);
  font-weight: 700;
  font-family: var(--font-heading);
}

.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: hsla(215, 20%, 25%, 0.6);
  border-radius: 3px;
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-accent);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  transition: transform 0.1s ease;
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  font-size: 15px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4);
}

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

.btn-secondary {
  background: hsla(215, 20%, 20%, 0.6);
  color: var(--text-primary);
  border: var(--border-glass);
}

.btn-secondary:hover {
  background: hsla(215, 20%, 25%, 0.8);
  border-color: var(--color-cyan);
}

.btn-success {
  background: var(--color-success-glow);
  color: var(--color-success);
  border: 1px solid hsla(142, 76%, 45%, 0.3);
}

.btn-success:hover {
  background: var(--color-success);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

.btn-danger {
  background: var(--color-danger-glow);
  color: var(--color-danger);
  border: 1px solid hsla(350, 89%, 60%, 0.3);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: var(--text-primary);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.3);
}

.btn-group {
  display: flex;
  gap: 12px;
}

/* --- DYNAMIC CAMPAIGN & NETWORK STUFF --- */

/* Network Cards List Grid */
.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.network-card {
  cursor: pointer;
}

.network-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.network-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background: var(--gradient-accent-soft);
  border: 1px solid hsla(186, 100%, 50%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-cyan);
  font-size: 20px;
}

.network-details-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.network-details-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* Checklist Panel */
.checklist-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist-li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: hsla(215, 20%, 15%, 0.3);
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.checklist-li.completed {
  border-color: var(--color-success-glow);
  background: hsla(142, 76%, 45%, 0.05);
}

.checklist-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: var(--border-glass);
  background: var(--bg-glass-input);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.checklist-checkbox::after {
  content: '✓';
  color: var(--color-success);
  font-weight: 800;
  font-size: 12px;
  display: none;
}

.checklist-li.completed .checklist-checkbox::after {
  display: block;
}

.checklist-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checklist-text {
  font-size: 14px;
  font-weight: 500;
}

.checklist-li.completed .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Dynamic Charts */
.svg-chart-container {
  width: 100%;
  height: 220px;
  position: relative;
  margin-top: 10px;
}

.svg-chart {
  width: 100%;
  height: 100%;
}

.svg-chart path.area {
  fill: url(#gradient-cyan-fade);
  opacity: 0.2;
}

.svg-chart path.line {
  fill: none;
  stroke: var(--color-cyan);
  stroke-width: 3;
  stroke-linecap: round;
}

.svg-chart path.ad-spend-line {
  fill: none;
  stroke: var(--color-purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 4;
}

.svg-chart circle {
  fill: var(--bg-primary);
  stroke: var(--color-cyan);
  stroke-width: 3;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.svg-chart circle:hover {
  transform: scale(1.4);
}

.chart-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 12px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Campaign Table styles */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 16px;
  border-bottom: var(--border-glass);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid hsla(215, 20%, 20%, 0.3);
  font-size: 14px;
}

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

.data-table tr:hover td {
  background-color: hsla(215, 20%, 15%, 0.2);
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cyan {
  background: var(--color-cyan-glow);
  color: var(--color-cyan);
  border: 1px solid hsla(186, 100%, 50%, 0.2);
}

.badge-purple {
  background: var(--color-purple-glow);
  color: var(--color-purple);
  border: 1px solid hsla(271, 100%, 60%, 0.2);
}

.badge-success {
  background: var(--color-success-glow);
  color: var(--color-success);
  border: 1px solid hsla(142, 76%, 45%, 0.2);
}

/* --- GOOGLE ADS COPY GENERATOR VIEWS --- */
.ad-mockup-card {
  background: hsl(0, 0%, 100%);
  border-radius: 8px;
  padding: 18px;
  color: #1a0dab;
  font-family: Arial, sans-serif;
  margin-top: 16px;
  border: 1px solid #dadce0;
}

.ad-mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #202124;
}

.ad-mockup-badge {
  border: 1px solid #202124;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 10px;
  font-weight: 700;
}

.ad-mockup-url {
  color: #202124;
  font-size: 12px;
}

.ad-mockup-title {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 4px;
  font-weight: normal;
  text-decoration: none;
  word-break: break-word;
}

.ad-mockup-desc {
  color: #4d5156;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.ad-copy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.ad-copy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: hsla(215, 20%, 10%, 0.4);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
}

.ad-copy-item-text {
  font-weight: 500;
  word-break: break-word;
  padding-right: 12px;
}

.ad-copy-btn-copy {
  background: transparent;
  border: none;
  color: var(--color-cyan);
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ad-copy-btn-copy:hover {
  text-shadow: 0 0 8px var(--color-cyan);
}

/* --- INTERACTIVE BRIDGE PAGE BUILDER --- */
.bridge-canvas-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  height: calc(100vh - 160px);
}

.bridge-editor-panel {
  overflow-y: auto;
  padding-right: 16px;
}

.bridge-preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: hsla(215, 20%, 5%, 0.5);
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 24px;
  position: relative;
}

.preview-toggle-bar {
  position: absolute;
  top: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.preview-device-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Device mockups styled premium */
.preview-device-container.mobile .mock-device {
  width: 320px;
  height: 568px;
  border-radius: 36px;
  border: 12px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.preview-device-container.desktop .mock-device {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  border: 6px solid #1e293b;
  border-bottom: 24px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mock-device-viewport {
  width: 100%;
  height: 100%;
  background: #0f172a;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Bridge page styling inside mock iframe/viewport */
.bridge-viewport-page {
  padding: 24px 16px;
  color: #f8fafc;
  font-family: sans-serif;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
}

.bridge-viewport-nav {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bridge-viewport-headline {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
  color: #ffffff;
}

.bridge-viewport-subheadline {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.bridge-viewport-features {
  text-align: left;
  margin: 0 auto 24px auto;
  max-width: 240px;
  list-style: none;
}

.bridge-viewport-feature-li {
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bridge-viewport-feature-icon {
  color: #10b981;
  font-weight: 800;
}

.bridge-viewport-btn {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease;
}

.bridge-viewport-disclaimer {
  font-size: 10px;
  color: #64748b;
  margin-top: auto;
  padding-top: 24px;
}

/* Modals & Dialogs */
dialog {
  margin: auto;
  border: var(--border-glass);
  border-radius: var(--border-radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  width: 90%;
  max-width: 500px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  outline: none;
}

dialog::backdrop {
  background-color: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(8px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dialog-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.dialog-close-btn:hover {
  color: var(--color-cyan);
}

.dialog-content {
  margin-bottom: 24px;
}

/* Multi-select network check list for planning */
.network-multiselect {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-glass-input);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.multiselect-option input {
  cursor: pointer;
}

.multiselect-option.active {
  border-color: var(--color-cyan);
  background: var(--color-cyan-glow);
}
