/* aD Network Support Center - Corporate Portal Theme matching aadnetwork.com */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --orange: #f59e0b;
  --orange-hover: #d97706;
  --orange-dark: #ea580c;
  --orange-light: #fef3c7;
  --orange-border: #fde68a;

  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --footer-bg: #0b1120;

  --accent: #0ea5e9;
  --accent-light: #f0f9ff;

  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-family: var(--font-sans);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.brand-orange {
  color: var(--orange, #f59e0b) !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top System Status Bar */
.top-bar {
  background-color: var(--secondary);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-link:hover {
  color: white;
}

/* Main Site Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.brand-info h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--secondary);
}

.brand-info span {
  color: var(--primary);
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Navigation Tabs */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: none;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.nav-tab-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.staff-login-btn {
  background-color: var(--secondary);
  color: white !important;
  border: 1px solid var(--secondary);
}

.staff-login-btn:hover {
  background-color: #1e293b;
}

/* Main Content Area */
main {
  flex: 1;
  padding-bottom: 4rem;
}

/* Sections */
.tab-view {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

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

/* Hero Section (Home View) */
.hero-banner {
  background: radial-gradient(circle at 50% 10%, #1e3a8a 0%, #0f172a 75%, #050b14 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 85%);
  opacity: 0.85;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.15rem;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Hero Omni Lookup Bar */
.hero-search-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 0.45rem;
  max-width: 580px;
  margin: 0 auto 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.hero-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.hero-search-input::placeholder {
  color: #94a3b8;
}

.hero-search-btn {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: white;
  border: none;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #0369a1);
  transform: translateY(-1px);
}

/* Hero KPI Metric Bar */
.hero-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-kpi-item {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.hero-kpi-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.85);
}

.hero-kpi-number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.hero-kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-white {
  background-color: white;
  color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background-color: #f8fafc;
}

.btn-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-orange:hover {
  background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-outline-orange {
  background: transparent;
  color: #f59e0b;
  border-color: #f59e0b;
}

.btn-outline-orange:hover {
  background-color: #f59e0b;
  color: white;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* Feature Quick Cards */
.quick-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3.5rem;
}

.action-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-border);
}

.card-micro-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.85rem;
}

/* Global Telemetry & POP Monitor Card */
.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.telemetry-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.telemetry-node {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: all 0.2s ease;
}

.telemetry-node:hover {
  border-color: var(--primary-border);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.telemetry-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.telemetry-node h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.telemetry-node p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.telemetry-ping {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.telemetry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Emergency Escalation Banner */
.emergency-escalation-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.15);
  position: relative;
  overflow: hidden;
}

.emergency-escalation-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(239, 68, 68, 0.15), transparent 70%);
  pointer-events: none;
}

.emergency-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.emergency-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #f87171;
  flex-shrink: 0;
}

.emergency-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.emergency-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 580px;
}

.action-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.action-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.action-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Cards & Surfaces */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.view-page-header {
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}

.view-page-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.view-page-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.35rem;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.required-star {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topic-context-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Technical Knowledgebase Runbooks */
.kb-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.kb-filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kb-filter-btn:hover {
  border-color: var(--primary-border);
  color: var(--primary);
  background: var(--bg-subtle);
}

.kb-filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.kb-runbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.kb-runbook-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-md);
}

.kb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kb-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kb-severity-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kb-severity-p1 {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.kb-severity-p2 {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.kb-severity-p3 {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.kb-terminal-box {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.75rem 0;
  overflow-x: auto;
}

.kb-step-list {
  margin: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.6;
}

.kb-step-list li {
  margin-bottom: 0.35rem;
}

.kb-expand-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  transition: all 0.2s ease;
}

.kb-expand-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
}

.kb-details-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: none;
}

.kb-details-section.open {
  display: block;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-open { background-color: #dbeafe; color: #1e40af; }
.badge-assigned { background-color: #ede9fe; color: #5b21b6; }
.badge-in_progress { background-color: #fef3c7; color: #92400e; }
.badge-resolved { background-color: #d1fae5; color: #065f46; }
.badge-closed { background-color: #f1f5f9; color: #475569; }

.badge-critical { background-color: #fee2e2; color: #991b1b; }
.badge-high { background-color: #ffedd5; color: #9a3412; }
.badge-medium { background-color: #fef3c7; color: #854d0e; }
.badge-low { background-color: #e0f2fe; color: #075985; }

/* Stepper Progress Bar */
.stepper-container {
  padding: 1.5rem 0;
  overflow-x: auto;
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 580px;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.stepper-progress {
  position: absolute;
  top: 18px;
  left: 30px;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #10b981);
  z-index: 2;
  transition: width 0.4s ease;
}

.step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90px;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 3px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.step-item.completed .step-circle {
  background-color: var(--success);
  border-color: var(--success);
  color: white;
}

.step-item.active .step-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.step-text {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.completed .step-text,
.step-item.active .step-text {
  color: var(--text-main);
  font-weight: 700;
}

/* Resolution Banner */
.resolution-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.res-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #bbf7d0;
}

.res-headline h3 {
  color: #166534;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Discussion Thread */
.thread-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-color);
}

.thread-msg {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.thread-msg.staff {
  background-color: #f8faff;
  border-color: #bfdbfe;
}

.thread-msg-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.thread-author {
  font-weight: 700;
  color: var(--text-main);
}

/* Knowledgebase Cards */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.kb-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.kb-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.kb-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.kb-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE APP OPERATIONS SHOWCASE & SMARTPHONE SIMULATOR
   ========================================================================== */
.mobile-showcase-container {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-showcase-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.mobile-showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #6366f1;
  box-shadow: 0 0 8px #6366f1;
  animation: pulseLight 1.8s infinite;
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.mobile-showcase-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.mobile-showcase-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 600px;
}

.mobile-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.mobile-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-mobile-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-android {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: 1px solid #22c55e;
}

.btn-android:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.btn-ios {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  border: 1px solid #475569;
}

.btn-ios:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.5);
}

.btn-os-icon {
  font-size: 1.4rem;
}

.btn-os-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn-os-text small {
  font-size: 0.65rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-os-text strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-link-subtle {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link-subtle:hover {
  color: #f8fafc;
  text-decoration: underline;
}

.mobile-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-meta-bar strong {
  color: #f1f5f9;
}

/* Smartphone Teaser Frame */
.mobile-showcase-device {
  display: flex;
  justify-content: center;
}

.phone-frame-teaser {
  width: 260px;
  background: #0f172a;
  border: 3px solid #334155;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(-1deg);
}

.phone-frame-teaser:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
  border-color: #6366f1;
  box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.35);
}

.phone-screen-teaser {
  background: #020617;
  border-radius: 28px;
  padding: 0.85rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.teaser-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.teaser-island {
  width: 45px;
  height: 10px;
  background: #000;
  border-radius: 20px;
}

.teaser-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.teaser-logo-chip {
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.teaser-badge-live {
  font-size: 0.55rem;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
}

.teaser-ticket-card {
  background: #1e293b;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.teaser-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.teaser-ticket-id {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
}

.teaser-pill-crit {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.teaser-ticket-title {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teaser-ticket-meta {
  font-size: 0.62rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.teaser-sla-bar {
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.teaser-sla-fill {
  height: 100%;
  width: 78%;
  background: #ef4444;
}

.teaser-sla-text {
  font-size: 0.58rem;
  color: #f87171;
  font-weight: 600;
}

.teaser-action-strip {
  display: flex;
  gap: 0.35rem;
}

.strip-btn {
  flex: 1;
  text-align: center;
  background: #334155;
  padding: 0.3rem 0.1rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #cbd5e1;
}

.teaser-click-hint {
  text-align: center;
  padding-top: 0.6rem;
  font-size: 0.65rem;
  color: #818cf8;
  font-weight: 700;
}

/* Modal Phone Simulator Specifics */
.modal-box-phone {
  max-width: 820px !important;
  width: 95% !important;
  padding: 0 !important;
}

.phone-modal-body {
  padding: 1.5rem;
  background: #f8fafc;
}

.phone-device-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
}

.smartphone-body {
  width: 320px;
  height: 580px;
  background: #0f172a;
  border: 4px solid #1e293b;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 auto;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #000000;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-cam {
  width: 7px;
  height: 7px;
  background: #1e293b;
  border-radius: 50%;
}

.phone-speaker {
  width: 32px;
  height: 3px;
  background: #334155;
  border-radius: 2px;
}

.phone-screen {
  background: #090d16;
  border-radius: 34px;
  height: 100%;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.25rem 0.25rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.phone-app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.phone-brand-mark {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: white;
}

.phone-app-title {
  font-size: 0.82rem;
  font-weight: 800;
}

.phone-app-sub {
  font-size: 0.62rem;
  color: #94a3b8;
}

.phone-conn-pill {
  font-size: 0.62rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

.phone-tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-tab-btn.active {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
}

.phone-view-tab {
  flex: 1;
  padding: 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phone-queue-item {
  background: #111827;
  border-radius: 12px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.phone-queue-item:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.5);
}

.phone-priority-p1 {
  border-left: 3px solid #ef4444;
}

.phone-priority-p2 {
  border-left: 3px solid #f59e0b;
}

.phone-priority-p3 {
  border-left: 3px solid #3b82f6;
}

.phone-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.phone-ticket-id {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.badge-priority-p1 {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.badge-priority-p2 {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.badge-priority-p3 {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.phone-queue-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}

.phone-queue-desc {
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.phone-queue-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
}

.phone-sla-pill {
  color: #fca5a5;
  font-weight: 600;
}

.phone-badge-action {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #cbd5e1;
}

.phone-telemetry-box {
  background: #111827;
  border-radius: 12px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-tele-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-tele-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 0.35rem 0;
  color: #cbd5e1;
}

.phone-tele-item strong {
  color: #4ade80;
}

.phone-telemetry-card {
  background: #111827;
  border-radius: 12px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-profile-card {
  text-align: center;
  background: #111827;
  border-radius: 12px;
  padding: 1.25rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 0.5rem;
}

.phone-user-name {
  font-size: 0.88rem;
  font-weight: 800;
}

.phone-user-role {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.phone-auth-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.phone-quick-actions {
  background: #111827;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.phone-qa-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
}

.phone-bottom-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-home-indicator {
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.phone-modal-side-actions h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.phone-modal-side-actions p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.phone-install-help {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.8rem;
  color: #1e3a8a;
  line-height: 1.45;
  margin-top: 1rem;
}

.btn-github-source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-top: 1rem;
}

.btn-github-source:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .mobile-showcase-container {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .phone-device-container {
    grid-template-columns: 1fr;
  }
}

/* Modals - Secured from leaking into page flow */
.modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 1.5rem !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-box {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 100%;
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--secondary);
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 1.75rem 1.5rem;
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--secondary);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: none;
  z-index: 100000;
  animation: slideUp 0.3s ease;
}

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

/* Site Footer matching aadnetwork.com */
.site-footer {
  background-color: var(--footer-bg, #0b1120);
  color: #94a3b8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  padding-right: 1rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 55px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 3px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  font-family: var(--font-heading);
}

.footer-brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.footer-iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 0.95rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--orange, #f59e0b);
}

.footer-contact-item strong {
  color: #e2e8f0;
}

.footer-contact-item a {
  display: inline;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
}

.footer-contact-item a:hover {
  color: var(--orange, #f59e0b);
  transform: none;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom-copy strong {
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Ticket Stage & Reason/Support Layout */
.ticket-status-hero {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  background: white;
}

.ticket-status-hero.stage-open {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #bfdbfe;
}

.ticket-status-hero.stage-observation {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
}

.ticket-status-hero.stage-closed {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}

.stage-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-pill.open {
  background: #2563eb;
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.stage-pill.observation {
  background: #d97706;
  color: white;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.stage-pill.closed {
  background: #059669;
  color: white;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.stage-desc {
  font-size: 0.9rem;
  color: var(--secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

/* 3-Stage Lifecycle Stepper */
.stage-stepper-3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 2rem;
  position: relative;
  gap: 0.5rem;
}

.stage-step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: white;
  transition: all 0.2s ease;
}

.stage-step-item.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.stage-step-item.current-observation {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.stage-step-item.completed {
  border-color: #10b981;
  background: #f0fdf4;
}

.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.stage-step-item.active .step-num-circle {
  background: var(--primary);
  color: white;
}

.stage-step-item.current-observation .step-num-circle {
  background: #f59e0b;
  color: white;
}

.stage-step-item.completed .step-num-circle {
  background: #10b981;
  color: white;
}

.step-label-box {
  display: flex;
  flex-direction: column;
}

.step-label-box strong {
  font-size: 0.85rem;
  color: var(--secondary);
}

.step-label-box span {
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* Structured Section Cards for Reason & Support */
.ticket-section-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: white;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.ticket-section-card.reason-card {
  border-left: 4px solid #ef4444;
}

.ticket-section-card.support-card {
  border-left: 4px solid #10b981;
}

.section-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
}

.section-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.section-body-box {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.section-body-box.support-body {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.body-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.body-content {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 868px) {
  .quick-cards-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mobile-app-banner {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    height: auto;
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
