/* ==========================================================================
   SimpleShare Support & Customer Telemetry Hub — Design System
   Target Domain: support.simplesharestudio.com
   Canonical Brand Standard: Desktop Software Blue Gradient (#3b82f6 -> #1d4ed8)
   Zero Cyan / Zero Teal Policy Enforced
   Copyright © 2026 Revolution Marketing Team, LLC
   ========================================================================== */

:root {
  --bg-base: #060b14;
  --bg-card: rgba(10, 20, 38, 0.75);
  --bg-card-hover: rgba(14, 28, 54, 0.88);
  --bg-surface: rgba(15, 23, 42, 0.95);
  --bg-input: rgba(6, 12, 24, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.4);
  --border-glow: rgba(59, 130, 246, 0.6);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #7c8ba3;

  /* Canonical SimpleShare Brand Blue (Matches Desktop Software: #3b82f6 -> #1d4ed8) */
  --accent-blue: #3b82f6;
  --accent-blue-deep: #1d4ed8;
  --accent-blue-vibrant: #2563eb;
  --accent-sky: #60a5fa;
  --accent-emerald: #34d399;
  --accent-gold: #fbbf24;
  --accent-rose: #f43f5e;
  --accent-purple: #c084fc;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

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

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

html, body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.09) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(29, 78, 216, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.support-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 11, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 28px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  word-spacing: 0.06em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text span {
  font-weight: 400;
  color: var(--accent-sky);
  opacity: 0.9;
}


.brand-subtext {
  font-size: 0.72rem;
  color: var(--accent-sky);
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-support {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--accent-sky);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.system-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.status-beacon.live-pulse {
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.nav-tabs-wrapper {
  max-width: 1240px;
  margin: 0 auto 32px;
  padding: 0 20px;
}

.nav-tabs-container {
  display: flex;
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
}

.tab-btn {
  flex: 1;
  min-width: 190px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-smooth);
  user-select: none;
  white-space: nowrap;
}

.tab-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn:hover svg {
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.22) 0%, rgba(29, 78, 216, 0.12) 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tab-btn.active svg {
  stroke: var(--accent-sky);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 60px;
  flex: 1;
  width: 100%;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-panel[hidden] {
  display: none;
}

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

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

/* ==========================================================================
   Card System
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: clip;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
}

.card-header-lockup {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Buttons (Canonical Brand Blue & Secondaries)
   ========================================================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-smooth);
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible,
.tab-btn:focus-visible,
.form-control:focus-visible,
.brand-lockup:focus-visible,
.support-footer a:focus-visible,
.kb-summary:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.85);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* Primary Brand Button (Exact Match to Desktop Software Properties & Export Button) */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #60a5fa;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #93c5fd;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.7), 0 0 25px rgba(59, 130, 246, 0.5), inset 0 1px 0 #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Secondary Button (Exact Match to Desktop Software Toolbar & Properties Secondary Button) */
.btn-secondary {
  background: linear-gradient(180deg, rgba(22, 34, 58, 0.75) 0%, rgba(11, 18, 32, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(34, 52, 88, 0.85) 0%, rgba(17, 28, 50, 0.95) 100%);
  border-color: rgba(96, 165, 250, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: rgba(244, 63, 94, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  min-height: 36px;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--accent-rose);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(8, 16, 32, 0.85);
}

.form-control::placeholder {
  color: var(--text-dim);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  padding-right: 36px;
}

.form-hint {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.lookup-controls {
  display: flex;
  gap: 10px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: rgba(6, 12, 24, 0.4);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.empty-state strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0 auto 18px;
  max-width: 560px;
}

.error-state strong { color: #fca5a5; }
.accent-text { color: var(--accent-sky); font-weight: 700; }
.inline-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.results-summary { color: var(--text-muted); margin-bottom: 16px; }
.results-summary strong { color: #ffffff; }
.license-summary { min-width: 0; }
.license-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.seat-count { color: var(--text-muted); font-size: 0.8rem; }
.seat-count strong { color: #ffffff; }
.seats-available { color: var(--accent-emerald); margin-left: 6px; }
.seats-full { color: var(--accent-rose); margin-left: 6px; }
.section-label { font-size: 0.84rem; font-weight: 600; color: #cbd5e1; margin-bottom: 10px; }
.device-empty { padding: 16px; background: rgba(6, 12, 24, 0.4); border-radius: var(--radius-sm); color: var(--text-dim); font-size: 0.84rem; }
.device-copy { min-width: 0; }
.device-date { font-size: 0.74rem; color: var(--text-dim); }

/* ==========================================================================
   License & Devices Grid
   ========================================================================== */
.license-card {
  background: rgba(13, 23, 44, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

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

.license-key-pill {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(6, 11, 20, 0.85);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.badge-tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.tier-lifetime {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
}

.tier-annual {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-sky);
}

.devices-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 16px;
}

.device-item {
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.device-item:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(10, 18, 36, 0.8);
}

.device-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  flex-shrink: 0;
}

.device-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
}

.device-meta {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Ticket Timeline & Thread
   ========================================================================== */
.ticket-banner {
  background: rgba(14, 25, 48, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.ticket-number-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent-sky);
  background: rgba(59, 130, 246, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.status-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-open {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-sky);
}

.status-in_progress {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
}

.status-waiting_on_customer {
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: var(--accent-purple);
}

.status-resolved {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--accent-emerald);
}

.status-closed {
  background: rgba(100, 116, 139, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.38);
  color: #cbd5e1;
}

.ticket-badge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.ticket-subject { font-family: var(--font-display); font-size: 1.35rem; color: #ffffff; }
.ticket-meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.ticket-meta span { color: #cbd5e1; }
.empty-thread { text-align: center; color: var(--text-dim); padding: 24px; }
.reply-panel { background: rgba(10, 18, 34, 0.6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 20px; margin-top: 24px; }
.reply-panel h3 { font-family: var(--font-display); font-size: 1.05rem; color: #ffffff; margin-bottom: 12px; }
.reply-panel .form-group { margin-bottom: 12px; }
.form-actions { display: flex; justify-content: flex-end; }
.closed-ticket-note { padding: 16px; background: rgba(100, 116, 139, 0.1); border-radius: var(--radius-md); text-align: center; color: var(--text-dim); font-size: 0.88rem; }

.thread-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.message-bubble {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  max-width: 88%;
}

.message-bubble.customer {
  align-self: flex-start;
  background: rgba(10, 18, 34, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.message-bubble.admin {
  align-self: flex-end;
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.message-sender {
  font-weight: 700;
  color: #ffffff;
}

.message-bubble.admin .message-sender {
  color: var(--accent-sky);
}

.message-time {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.message-body {
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Knowledge Base / Downloads Grid
   ========================================================================== */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-top: 24px;
}

.kb-card {
  background: rgba(10, 18, 34, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-smooth);
}

.kb-card[open] {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(14, 26, 50, 0.8);
}

.kb-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.kb-summary::-webkit-details-marker { display: none; }
.kb-summary::after {
  content: '+';
  color: var(--accent-sky);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  margin-left: auto;
}
.kb-card[open] .kb-summary::after { content: '−'; }
.kb-summary > span:nth-child(2) { min-width: 0; }

.kb-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(14, 26, 50, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kb-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sky);
  margin-bottom: 0;
}

.kb-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: block;
}

.kb-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: block;
}

.kb-steps {
  color: #cbd5e1;
  margin: 18px 0 0 58px;
  padding-left: 18px;
  line-height: 1.65;
  font-size: 0.84rem;
}

.kb-steps li + li {
  margin-top: 8px;
}

/* Download Hero Box */
.download-box {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.2) 0%, rgba(10, 18, 36, 0.8) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.download-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.download-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.download-info .download-status {
  color: var(--accent-sky);
  font-size: 0.82rem;
  margin-top: 8px;
  max-width: 620px;
}

.download-button {
  padding: 12px 24px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 440px;
  backdrop-filter: blur(12px);
  animation: slideInToast 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-copy { flex: 1; }
.toast-close {
  min-width: 44px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.success-panel {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.success-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(52, 211, 153, 0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--accent-emerald); }
.success-panel h3 { font-family: var(--font-display); font-size: 1.3rem; color: #ffffff; margin-bottom: 6px; }
.success-panel p { color: var(--text-muted); font-size: 0.9rem; max-width: 560px; margin: 0 auto 16px; }
.success-panel strong { color: var(--accent-sky); font-family: var(--font-mono); }

.toast.success { border-color: rgba(52, 211, 153, 0.5); }
.toast.error { border-color: rgba(244, 63, 94, 0.5); }
.toast.info { border-color: rgba(96, 165, 250, 0.5); }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.support-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(6, 11, 20, 0.9);
}

.support-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  transition: color var(--transition-fast);
}

.support-footer a:hover {
  color: var(--accent-sky);
}

/* ==========================================================================
   Security PIN Verification Card
   ========================================================================== */
.pin-verification-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  max-width: 520px;
  margin: 24px auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pin-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .header-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .header-status { width: 100%; justify-content: space-between; }
  .nav-tabs-container { flex-direction: row; scroll-snap-type: x mandatory; }
  .tab-btn { justify-content: flex-start; flex: 0 0 auto; min-width: 225px; scroll-snap-align: start; }
  .glass-card { padding: 20px; }
  .download-box { flex-direction: column; align-items: flex-start; }
  .download-button { width: 100%; justify-content: center; min-height: 48px; }
  .download-box > div:last-child { width: 100%; }
  .btn-sm { min-height: 44px; }
  .device-item { align-items: flex-start; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; width: 100%; max-width: none; }
}

@media (max-width: 560px) {
  .support-header { padding: 12px 16px; }
  .header-brand-group { align-items: flex-start; flex-wrap: wrap; }
  .badge-support { margin-left: 46px; }
  .system-pill { font-size: 0.72rem; padding: 5px 9px; }
  .hero-section { padding: 36px 20px 24px; }
  .hero-description { font-size: 0.95rem; margin-bottom: 12px; }
  .nav-tabs-wrapper { margin-bottom: 22px; padding: 0 16px; }
  .nav-tabs-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .tab-btn { min-width: 0; width: 100%; white-space: normal; font-size: 0.78rem; line-height: 1.35; padding: 10px; }
  .main-container { padding: 0 16px 44px; }
  .lookup-controls { flex-direction: column; }
  .lookup-controls .btn { width: 100%; justify-content: center; min-height: 48px; }
  .license-card { padding: 18px; }
  .license-key-pill { width: 100%; justify-content: space-between; font-size: 0.84rem; overflow-wrap: anywhere; }
  .license-key-pill span { min-width: 0; }
  .device-item { flex-direction: column; }
  .device-item > .btn { width: 100%; justify-content: center; }
  .message-bubble { max-width: 100%; }
  .message-header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .download-box { padding: 24px 20px; }
  .download-info h3 { font-size: 1.35rem; }
  .kb-card { padding: 20px; }
  .kb-steps { margin-left: 0; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
