:root {
  --bg-main: #0b0f19;
  --bg-gradient: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    #0b0f19;
  --card-bg: rgba(18, 25, 41, 0.78);
  --card-bg-solid: #131b2e;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(99, 102, 241, 0.45);
  --card-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --card-shadow-3d: 0 14px 40px -6px rgba(0, 0, 0, 0.65), 0 0 28px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.09);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #ec4899 70%, #6366f1 100%);
  --primary-glow: 0 0 20px rgba(99, 102, 241, 0.4);

  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;

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

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: #0b0f19;
  background: #0b0f19;
  color: #f8fafc;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

[id] {
  scroll-margin-top: 85px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: #0b0f19;
  background: var(--bg-gradient);
  background-attachment: scroll;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

main,
section,
.hero,
.container,
#workflow {
  background-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* Dynamic Animated Running Gradients */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899, #06b6d4, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 5s ease infinite;
  display: inline-block;
  will-change: background-position;
  transform: translateZ(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0f19;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Layout - Fluid full width with balanced responsive padding */
.container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 2vw, 36px) !important;
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px !important;
  }
}

main {
  flex: 1;
}

/* 3D Glass Navbar */
/* 3D Glass Navbar */
.nav {
  height: 68px;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(99, 102, 241, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
  padding: 4px 6px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(99, 102, 241, 0.45);
  color: #fff;
  font-size: 15px;
  margin-right: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.6);
}

.brand span {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.navlinks {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}

.navlink {
  padding: 7px 15px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.navlink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.navlink.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.42);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.navlink.active:hover {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

/* Nav Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-trigger .dropdown-chevron {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger .dropdown-chevron,
.nav-dropdown.open .nav-dropdown-trigger .dropdown-chevron {
  transform: rotate(180deg);
  color: #c084fc;
}

/* Nav Dropdown Hover Bridge to prevent premature closing */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* Nav Dropdown Floating Menu */
.nav-dropdown-menu {
  display: none !important;
  visibility: hidden;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 326px;
  background: rgba(11, 15, 28, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 24px rgba(99, 102, 241, 0.18);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown:hover>.nav-dropdown-menu,
.nav-dropdown.open>.nav-dropdown-menu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
}

.nav-dropdown-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.14);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.nav-dropdown-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-item:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.36);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon {
  transform: scale(1.06);
}

.nav-dropdown-icon.icon-code {
  background: rgba(99, 102, 241, 0.14);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-code {
  background: rgba(99, 102, 241, 0.25);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.45);
}

.nav-dropdown-icon.icon-file {
  background: rgba(14, 165, 233, 0.14);
  color: #38bdf8;
  border-color: rgba(14, 165, 233, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-file {
  background: rgba(14, 165, 233, 0.25);
  color: #7dd3fc;
  border-color: rgba(14, 165, 233, 0.45);
}

.nav-dropdown-icon.icon-link {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-link {
  background: rgba(168, 85, 247, 0.25);
  color: #e879f9;
  border-color: rgba(168, 85, 247, 0.45);
}

.nav-dropdown-icon.icon-note {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-note {
  background: rgba(236, 72, 153, 0.25);
  color: #fb7185;
  border-color: rgba(236, 72, 153, 0.45);
}

.nav-dropdown-icon.icon-wifi {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-wifi {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.nav-dropdown-icon.icon-qr {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.nav-dropdown-item:hover .nav-dropdown-icon.icon-qr {
  background: rgba(245, 158, 11, 0.24);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.45);
}

.nav-dropdown-content {
  flex: 1;
  min-width: 0;
}

.nav-dropdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.nav-dropdown-title .item-tag {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.nav-dropdown-title .tag-live {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.radar-pulse {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: radarBlink 1.6s infinite ease-in-out;
}

@keyframes radarBlink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.nav-dropdown-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.nav-dropdown-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-dropdown-footer-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-footer-link:hover {
  color: #c084fc;
  transform: translateX(2px);
}

.nav-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.18));
  color: #e0e7ff;
  border: 1px solid rgba(129, 140, 248, 0.4);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.nav-btn:hover {
  background: var(--primary-gradient) !important;
  background-size: 200% 200% !important;
  animation: gradientMove 3s ease infinite !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.58), 0 4px 18px rgba(99, 102, 241, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
}

.nav-btn:active {
  transform: translateY(0) scale(0.98);
}

.nav-btn.nav-btn-theme,
.nav-btn.nav-btn-dashboard,
.nav-btn[href*="dashboard"]:not(.nav-btn-logout) {
  background: var(--primary-gradient) !important;
  background-size: 200% 200% !important;
  animation: gradientMove 4s ease infinite !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5), 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.nav-btn.nav-btn-theme:hover,
.nav-btn.nav-btn-dashboard:hover,
.nav-btn[href*="dashboard"]:not(.nav-btn-logout):hover {
  background: var(--primary-gradient) !important;
  background-size: 200% 200% !important;
  animation: gradientMove 2.5s ease infinite !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.65), 0 4px 18px rgba(99, 102, 241, 0.5) !important;
  transform: translateY(-2px) scale(1.02);
}

.nav-btn.nav-btn-logout,
.nav-btn.btn-logout {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.15) !important;
}

.nav-btn.nav-btn-logout:hover,
.nav-btn.btn-logout:hover {
  background: linear-gradient(135deg, #ef4444, #f43f5e 60%, #e11d48) !important;
  background-size: 200% 200% !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6), 0 4px 16px rgba(239, 68, 68, 0.4) !important;
  transform: translateY(-2px) scale(1.02);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c7d2fe;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.nav-toggle.active {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.4);
  transform: rotate(90deg);
}

/* Mobile Nav Drawer & Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 98;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(14, 20, 38, 0.86) 0%, rgba(9, 13, 27, 0.93) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-bottom: 1px solid rgba(129, 140, 248, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 8px 30px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 16px 16px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
  animation: slideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a,
.mobile-nav button {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mobile-nav a svg,
.mobile-nav button svg {
  color: #818cf8;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.14) 100%);
  border-color: rgba(129, 140, 248, 0.45);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.mobile-nav a:hover svg,
.mobile-nav button:hover svg {
  color: #c084fc;
  transform: scale(1.1);
}

.mobile-nav a.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.18) 100%);
  border-color: rgba(129, 140, 248, 0.6);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mobile-nav a.active svg {
  color: #c084fc;
}

/* Mobile Nav Group & Subitems */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-group-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.mobile-nav-group-row>a {
  flex: 1;
}

.mobile-nav-group-toggle {
  padding: 12px 14px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.mobile-nav-group-toggle:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.14) 100%) !important;
  color: #fff !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.mobile-nav-group-toggle .mobile-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-group.expanded .mobile-nav-group-toggle .mobile-chevron {
  transform: rotate(180deg);
  color: #c084fc;
}

.mobile-nav-subitems {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-top: 3px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 12px;
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mobile-nav-group.expanded .mobile-nav-subitems {
  display: flex;
}

.mobile-sublink {
  padding: 9px 12px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #94a3b8 !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-sublink:hover {
  background: rgba(99, 102, 241, 0.16) !important;
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
  transform: translateX(3px) !important;
}

.mobile-sublink.active {
  background: rgba(99, 102, 241, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.5) !important;
  font-weight: 700 !important;
}

.mobile-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  margin-left: auto;
}

/* Mobile Nav Action Button (CTA) */
.mobile-nav #mobileAccountBtn {
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border-color: rgba(129, 140, 248, 0.45);
  color: #e0e7ff;
  font-weight: 700;
}

.mobile-nav #mobileAccountBtn:hover {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.55), 0 4px 16px rgba(99, 102, 241, 0.4);
}

.mobile-nav #mobileAccountBtn:hover svg {
  color: #ffffff;
}

.mobile-nav #mobileAccountBtn.btn-themed,
.mobile-nav #mobileAccountBtn[href*="dashboard"]:not(.btn-logout) {
  background: var(--primary-gradient) !important;
  background-size: 200% 200% !important;
  animation: gradientMove 4s ease infinite !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 4px 14px rgba(99, 102, 241, 0.4) !important;
}

.mobile-nav #mobileAccountBtn.btn-themed svg,
.mobile-nav #mobileAccountBtn[href*="dashboard"]:not(.btn-logout) svg {
  color: #ffffff !important;
}

.mobile-nav #mobileAccountBtn.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.mobile-nav #mobileAccountBtn.btn-logout svg {
  color: #f87171;
}

.mobile-nav #mobileAccountBtn.btn-logout:hover {
  background: linear-gradient(135deg, #ef4444, #f43f5e 60%, #e11d48);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.6);
}

.mobile-nav #mobileAccountBtn.btn-logout:hover svg {
  color: #ffffff;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  padding: 18px 0 12px;
  text-align: center;
  position: relative;
  background: transparent !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.hero h1,
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #fff;
  word-break: break-word;
  hyphens: auto;
}

.hero h1 span,
.hero-title span {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  animation: gradientMove 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
}

/* ==========================================================================
   User Greeting Banner & Skeleton Shimmer (Home Page)
   ========================================================================== */
.user-greeting-wrapper {
  margin: 0 auto 12px;
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  min-height: 72px;
}

.user-greeting-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.78) 0%, rgba(13, 19, 33, 0.88) 100%);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 7px;
  animation: fadeIn 0.25s ease-out;
}

.user-greeting-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.user-greeting-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  color: #e2e8f0;
  overflow: hidden;
}

.user-greeting-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

.user-greeting-lead {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.user-greeting-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-greeting-dash-link,
.view-dashboard-btn,
#viewDashboardLink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c7d2fe !important;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.32);
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.user-greeting-dash-link:hover,
.view-dashboard-btn:hover,
#viewDashboardLink:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #ffffff !important;
  border-color: rgba(129, 140, 248, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  text-decoration: none !important;
}

.user-greeting-dash-link svg,
.view-dashboard-btn svg,
#viewDashboardLink svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.user-greeting-dash-link:hover svg,
.view-dashboard-btn:hover svg,
#viewDashboardLink:hover svg {
  transform: translateX(2.5px);
}

.user-greeting-dash-link.guest-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  color: #e0e7ff;
}

.user-greeting-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
}

.user-greeting-plan-badge {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 2px 7px !important;
  letter-spacing: 0.4px !important;
}

.user-greeting-spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  font-weight: 500;
  font-size: 11.5px;
  white-space: nowrap;
}

.user-greeting-spec svg {
  color: #818cf8;
  flex-shrink: 0;
}

.user-greeting-hint {
  color: #64748b;
  font-size: 11.5px;
  font-style: italic;
}

/* Skeleton Loading Shimmer */
.user-greeting-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.65) 0%, rgba(13, 19, 33, 0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 14px;
  min-height: 62px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.07) 50%, transparent 100%);
  animation: userSkeletonShimmer 1.8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes userSkeletonShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.skeleton-row.bottom-row {
  justify-content: flex-start;
  gap: 10px;
}

.skeleton-pill {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.skeleton-pill.name-pill {
  width: 140px;
  height: 14px;
}

.skeleton-pill.btn-pill {
  width: 78px;
  height: 20px;
  border-radius: 20px;
}

.skeleton-pill.badge-pill {
  width: 82px;
  height: 14px;
  border-radius: 20px;
}

.skeleton-pill.spec-pill {
  width: 68px;
  height: 12px;
}

@media (min-width: 769px) {
  .user-greeting-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px 0 !important;
    min-height: 44px !important;
  }

  .user-greeting-card {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 18px !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    gap: 20px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .user-greeting-top {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }

  .user-greeting-identity {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
  }

  .user-greeting-lead {
    color: #94a3b8 !important;
    font-size: 13px !important;
  }

  .user-greeting-name {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-size: 13.5px !important;
    color: #ffffff !important;
  }

  .user-greeting-dash-link {
    margin-left: 2px !important;
    padding: 4px 11px !important;
    font-size: 11.5px !important;
    flex-shrink: 0 !important;
  }

  .user-greeting-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
  }

  .user-greeting-skeleton {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 18px !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }
}

/* 3D Glass Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-3d {
  background: linear-gradient(180deg, rgba(22, 30, 48, 0.78) 0%, rgba(13, 18, 30, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--card-shadow-3d);
}

.card h1,
.card h2,
.card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  color: #fff;
}

.card h1 {
  font-size: 22px;
}

.card h2 {
  font-size: 18px;
}

.card h3 {
  font-size: 15.5px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.receive-grid {
  grid-template-columns: 1.65fr 1fr;
}

/* Home Feature Strip */
.features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.feature-mini-card {
  background: rgba(18, 25, 41, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.feature-mini-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(18, 25, 41, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* 2-Column Split Auth Container - Full Container Width matching Global Grid */
.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  margin: 16px 0 36px;
  min-height: auto;
}

.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 28px;
  background: linear-gradient(145deg, rgba(22, 30, 48, 0.82) 0%, rgba(13, 18, 30, 0.82) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow-3d);
}

.auth-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0;
}

.auth-stat-mini {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}

.auth-stat-mini .num {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-stat-mini .lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.auth-trust-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: #c7d2fe;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(2px);
}

.benefit-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 15px;
  flex-shrink: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.active {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.pulse-dot.expired {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

/* Share Tabs with 3D Pill Slider */
.share-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.tab {
  flex: 1;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: var(--transition);
}

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

.tab.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

/* Receive Mode Switcher Tabs */
.receive-mode-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px;
  background: rgba(11, 15, 25, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.receive-mode-tab {
  flex: 1;
  min-width: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.receive-mode-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.receive-mode-tab.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

.receive-panel {
  display: block;
}

.receive-panel.hidden {
  display: none !important;
}

.wifi-feed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: #fff;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  line-height: 1;
  margin-left: 2px;
}

.wifi-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  flex-wrap: nowrap;
  gap: 12px;
}

.wifi-item-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(99, 102, 241, 0.35);
}

.wifi-item-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.wifi-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wifi-item-card .wifi-item-meta,
.wifi-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  gap: 3px;
}

.wifi-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: left;
}

.wifi-item-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: left;
}

.wifi-item-sub span {
  white-space: nowrap;
}

.wifi-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .wifi-item-card {
    flex-wrap: wrap;
  }

  .wifi-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  #receiveWifiFeedList,
  .wifi-feed-list {
    max-height: 468px !important;
  }
}

/* Form Fields */
.field {
  margin-bottom: 14px;
}

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

.field label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
}

.field .char-count {
  font-size: 11.5px;
  color: var(--text-dark);
  font-weight: 600;
}

.field input,
.field textarea:not(.code-editor-textarea),
.field select {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 8px 13px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  background: rgba(11, 15, 25, 0.6);
  color: #fff;
  transition: var(--transition);
}

.field input,
.field select {
  height: 40px;
}

.field input:focus,
.field textarea:not(.code-editor-textarea):focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  background: rgba(11, 15, 25, 0.85);
}

/* Native Select & Option Dark Scheme Baseline */
select,
select option {
  color-scheme: dark;
  background-color: #0c1222;
  color: #f1f5f9;
}

/* RunDrop Unified Custom Select Dropdown System */
.rd-select-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rd-select-wrap {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.rd-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 42px;
  min-height: 42px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(12, 18, 34, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.rd-select-trigger:hover:not(:disabled) {
  border-color: rgba(129, 140, 248, 0.65);
  background: #111a30;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.rd-select-wrap.open .rd-select-trigger,
.rd-select-trigger:focus-visible {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.3);
  background: #111a30;
}

.rd-select-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.rd-select-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f8fafc;
}

.rd-select-chevron-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.rd-select-wrap.open .rd-select-chevron-box {
  transform: rotate(180deg);
}

.rd-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(11, 15, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(99, 102, 241, 0.2);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s;
  box-sizing: border-box;
}

.rd-select-wrap.open .rd-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.rd-select-wrap.dropup .rd-select-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(6px) scale(0.99);
}

.rd-select-wrap.dropup.open .rd-select-dropdown {
  transform: translateY(0) scale(1);
}

.rd-select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.rd-select-dropdown::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}
.rd-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 4px;
}
.rd-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.7);
}

.rd-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
  box-sizing: border-box;
}

.rd-select-option:hover {
  background: rgba(99, 102, 241, 0.18);
  color: #ffffff;
}

.rd-select-option.selected {
  background: rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  font-weight: 700;
}

.rd-select-opt-text {
  flex: 1;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-select-check {
  display: none;
  color: #818cf8;
  flex-shrink: 0;
}

.rd-select-option.selected .rd-select-check {
  display: inline-flex;
}

.rd-select-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.rd-select-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Compact RunDropSelect for Toolbars & Filter Bars */
.rd-select-wrap.rd-select-compact .rd-select-trigger {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
  font-size: 12.5px;
}

.rd-select-wrap.rd-select-compact .rd-select-option {
  padding: 7px 10px;
  font-size: 12.5px;
}

/* Modern File Upload Input Styling */
input[type="file"] {
  font-family: inherit;
  font-size: 13px;
  color: #cbd5e1;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  transition: var(--transition);
}

input[type="file"]:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

input[type="file"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* Premium Interactive File Uploader Zone */
.rd-file-dropzone {
  position: relative;
  background: rgba(11, 15, 26, 0.55);
  border: 1.5px dashed rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.rd-file-dropzone:hover,
.rd-file-dropzone.dragover {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.rd-file-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rd-file-dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.rd-file-dropzone:hover .rd-file-dropzone-icon {
  transform: scale(1.08);
}

.rd-file-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  gap: 12px;
}

.field input::placeholder,
.field textarea:not(.code-editor-textarea)::placeholder {
  color: #475569;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* Password Input with Visibility Toggle */
.password-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  border-radius: 4px;
  transition: var(--transition);
  z-index: 2;
}

.password-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Drag & Drop File Zone */
.dropzone {
  border: 1.5px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  background: rgba(99, 102, 241, 0.02);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.12);
}

.dropzone-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #818cf8;
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.file-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Multi-file preview container & pills */
.file-preview-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.file-preview-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 182px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth !important;
  overscroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(11, 15, 25, 0.6);
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

.file-preview-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.file-preview-list::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.6);
  border-radius: 3px;
}

.file-preview-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.file-preview-list::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.75);
}

.file-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #a5b4fc;
  font-weight: 600;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #fff;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

.file-preview-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(99, 102, 241, 0.3);
}

.file-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.file-item-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex: 1;
  min-width: 0;
}

.file-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.file-item-size {
  font-size: 11.5px;
  color: var(--text-muted);
}

.file-item-remove {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  transition: var(--transition);
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

.file-item-remove:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

/* ==========================================================================
   Pre-Flight File Dropzone Validation & Alert Banner
   ========================================================================== */
.dropzone-alert {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(244, 63, 94, 0.18) 0%, transparent 60%),
              linear-gradient(135deg, rgba(30, 15, 25, 0.94) 0%, rgba(20, 10, 18, 0.96) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(239, 68, 68, 0.48);
  color: #fca5a5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 24px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: dropzoneAlertPuff 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropzoneAlertPuff {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    filter: blur(4px);
  }

  65% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
    filter: blur(0px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.dropzone-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f43f5e, #fb923c, #e11d48, #ef4444);
  background-size: 250% 100%;
  animation: runningToastGradient 2.5s linear infinite;
  z-index: 2;
}

.dropzone-alert.hidden {
  display: none !important;
}

.dropzone-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #ef4444;
}

.dropzone-alert-content {
  flex: 1;
  min-width: 0;
}

.dropzone-alert-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}

.dropzone-alert-msg {
  color: #fca5a5;
  line-height: 1.45;
  font-size: 12.5px;
}

.dropzone-alert-close {
  background: transparent;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.dropzone-alert-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

@keyframes shakeAlert {

  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-3px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(3px, 0, 0);
  }
}

.dropzone.invalid-drop {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================================
   Structured Code & Snippet Editor Component
   ========================================================================== */
.code-editor-component {
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-md);
  background: #080c14;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.code-editor-component:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.08);
}

.code-editor-component:focus-within {
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), 0 12px 40px rgba(99, 102, 241, 0.18);
}

/* ==========================================================================
   Full-Screen Mode for Code & Snippet Editor
   ========================================================================== */
body.editor-is-fullscreen {
  overflow: hidden !important;
}

.code-editor-component.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  background: #080c14 !important;
}

.code-editor-component.is-fullscreen .editor-toolbar {
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.99) 0%, rgba(13, 18, 30, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.code-editor-component.is-fullscreen .editor-container {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.code-editor-component.is-fullscreen .editor-gutter {
  height: 100% !important;
}

.code-editor-component.is-fullscreen .editor-input-area {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  position: relative !important;
}

.code-editor-component.is-fullscreen .code-editor-textarea {
  height: 100% !important;
  max-height: none !important;
}

.code-editor-component.is-fullscreen .code-editor-backdrop {
  height: 100% !important;
  max-height: none !important;
}

.code-editor-component.is-fullscreen .editor-output-drawer:not(.hidden):not(.is-fullscreen) {
  flex-shrink: 0 !important;
  max-height: calc(100vh - 110px) !important;
  max-height: calc(100dvh - 110px) !important;
  min-height: 42px !important;
  z-index: 15;
}

.code-editor-component.is-fullscreen .editor-footer {
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  padding: 8px 18px !important;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  z-index: 10;
}

.editor-tool-btn.fullscreen-active,
.output-tool-btn.fullscreen-active {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: rgba(129, 140, 248, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3) !important;
}

.editor-tool-btn.fullscreen-active svg,
.output-tool-btn.fullscreen-active svg {
  color: #a5b4fc !important;
}

/* Fullscreen Receiver Code Viewer */
.code-viewer-component.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  background: #080c14 !important;
}

.code-viewer-component.is-fullscreen .editor-toolbar {
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.99) 0%, rgba(13, 18, 30, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.code-viewer-component.is-fullscreen .code-viewer-container {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.code-viewer-component.is-fullscreen .editor-gutter {
  height: 100% !important;
}

.code-viewer-component.is-fullscreen .code-viewer-body {
  height: 100% !important;
  max-height: none !important;
  flex: 1 1 auto !important;
}

.code-viewer-component.is-fullscreen .editor-footer {
  flex-shrink: 0 !important;
  border-radius: 0 !important;
  padding: 8px 18px !important;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  z-index: 10;
}

/* Fullscreen Live Preview / Output Drawer on Editor & Receiver Pages */
body.drawer-fullscreen-active,
body.editor-is-fullscreen {
  overflow: hidden !important;
}

body.drawer-fullscreen-active .card,
body.drawer-fullscreen-active .card-3d,
body.drawer-fullscreen-active #shareArea,
body.drawer-fullscreen-active .code-editor-component:not(.is-fullscreen),
body.drawer-fullscreen-active .code-viewer-component:not(.is-fullscreen),
body.drawer-fullscreen-active .container,
body.editor-is-fullscreen .card,
body.editor-is-fullscreen .card-3d,
body.editor-is-fullscreen #shareArea,
body.editor-is-fullscreen .container {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
  position: static !important;
}

body.drawer-fullscreen-active .nav,
body.editor-is-fullscreen .nav {
  z-index: 10 !important;
}

.editor-output-drawer:fullscreen,
.editor-output-drawer:-webkit-full-screen,
.editor-output-drawer.is-fullscreen,
.code-editor-component .editor-output-drawer.is-fullscreen,
.code-editor-component.is-fullscreen .editor-output-drawer.is-fullscreen,
.code-viewer-component .editor-output-drawer.is-fullscreen,
.code-viewer-component.is-fullscreen .editor-output-drawer.is-fullscreen,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #060911 !important;
  box-shadow: none !important;
  transform: none !important;
}

.editor-output-drawer:fullscreen .editor-drawer-resizer,
.editor-output-drawer:-webkit-full-screen .editor-drawer-resizer,
.editor-output-drawer.is-fullscreen .editor-drawer-resizer,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .editor-drawer-resizer {
  display: none !important;
}

.editor-output-drawer:fullscreen .editor-output-header,
.editor-output-drawer:-webkit-full-screen .editor-output-header,
.editor-output-drawer.is-fullscreen .editor-output-header,
.code-editor-component .editor-output-drawer.is-fullscreen .editor-output-header,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .editor-output-header {
  flex: 0 0 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 23, 42, 0.98) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10 !important;
}

.editor-output-drawer:fullscreen .editor-output-body,
.editor-output-drawer:-webkit-full-screen .editor-output-body,
.editor-output-drawer.is-fullscreen .editor-output-body,
.code-editor-component .editor-output-drawer.is-fullscreen .editor-output-body,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .editor-output-body {
  flex: 1 1 auto !important;
  height: calc(100vh - 44px) !important;
  height: calc(100dvh - 44px) !important;
  min-height: 0 !important;
  max-height: calc(100vh - 44px) !important;
  max-height: calc(100dvh - 44px) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: #060911 !important;
}

/* In fullscreen, preview-iframe MUST be strictly hidden if it has class .hidden */
.preview-iframe.hidden,
.editor-output-drawer .preview-iframe.hidden,
.editor-output-drawer:fullscreen .preview-iframe.hidden,
.editor-output-drawer:-webkit-full-screen .preview-iframe.hidden,
.editor-output-drawer.is-fullscreen .preview-iframe.hidden,
.code-editor-component .editor-output-drawer.is-fullscreen .preview-iframe.hidden,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .preview-iframe.hidden,
.receive-output-drawer .preview-iframe.hidden,
.receive-output-drawer:fullscreen .preview-iframe.hidden,
.receive-output-drawer:-webkit-full-screen .preview-iframe.hidden,
.receive-output-drawer.is-fullscreen .preview-iframe.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* In fullscreen, preview-iframe is ONLY displayed when it is NOT hidden (HTML/SVG preview) */
.editor-output-drawer:fullscreen .preview-iframe:not(.hidden),
.editor-output-drawer:-webkit-full-screen .preview-iframe:not(.hidden),
.editor-output-drawer.is-fullscreen .preview-iframe:not(.hidden),
.code-editor-component .editor-output-drawer.is-fullscreen .preview-iframe:not(.hidden),
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .preview-iframe:not(.hidden),
.receive-output-drawer:fullscreen .preview-iframe:not(.hidden),
.receive-output-drawer:-webkit-full-screen .preview-iframe:not(.hidden),
.receive-output-drawer.is-fullscreen .preview-iframe:not(.hidden) {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  flex: 1 1 auto !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}

.editor-output-drawer:fullscreen .terminal-stdout,
.editor-output-drawer:-webkit-full-screen .terminal-stdout,
.editor-output-drawer.is-fullscreen .terminal-stdout,
.code-editor-component .editor-output-drawer.is-fullscreen .terminal-stdout,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .terminal-stdout,
.receive-output-drawer:fullscreen .terminal-stdout,
.receive-output-drawer:-webkit-full-screen .terminal-stdout,
.receive-output-drawer.is-fullscreen .terminal-stdout {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  padding: 16px 20px !important;
  box-sizing: border-box !important;
  background: #060911 !important;
  color: #f1f5f9 !important;
}

.editor-output-drawer:fullscreen .terminal-stdout.hidden,
.editor-output-drawer:-webkit-full-screen .terminal-stdout.hidden,
.editor-output-drawer.is-fullscreen .terminal-stdout.hidden,
.code-editor-component .editor-output-drawer.is-fullscreen .terminal-stdout.hidden,
.receiver-desktop-output-slot .editor-output-drawer.is-fullscreen .terminal-stdout.hidden,
.receive-output-drawer:fullscreen .terminal-stdout.hidden,
.receive-output-drawer.is-fullscreen .terminal-stdout.hidden {
  display: none !important;
}

@media (max-width: 640px) {

  .code-editor-component.is-fullscreen .editor-toolbar,
  .code-viewer-component.is-fullscreen .editor-toolbar {
    padding: 8px 10px !important;
  }

  .code-editor-component.is-fullscreen .editor-footer,
  .code-viewer-component.is-fullscreen .editor-footer {
    padding: 7px 10px !important;
  }

  .editor-output-drawer.is-fullscreen .editor-output-header {
    padding: 8px 12px !important;
  }
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.98) 0%, rgba(13, 18, 30, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #c7d2fe;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.editor-tag svg {
  color: #818cf8;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.5));
}

.editor-lang-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.editor-lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 28px;
  min-height: 28px;
  padding: 0 24px 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  background-color: rgba(15, 23, 42, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 6px) center;
  background-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.editor-lang-select:hover {
  border-color: rgba(129, 140, 248, 0.65);
  background-color: #111a30;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
  color: #ffffff;
}

.editor-lang-select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  background-color: #111a30;
}

.editor-lang-select option {
  background-color: #0b0f1a;
  color: #cbd5e1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
}

.word-style-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 28px;
  min-height: 28px;
  padding: 0 24px 0 8px;
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(15, 23, 42, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 6px) center;
  background-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.word-style-select:hover {
  border-color: rgba(129, 140, 248, 0.65);
  background-color: #111a30;
  color: #ffffff;
}

.word-style-select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  background-color: #111a30;
}

.word-style-select option {
  background-color: #0b0f1a;
  color: #cbd5e1;
  padding: 8px 12px;
  font-size: 12px;
}

.quota-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 36px;
  min-height: 36px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  background-color: rgba(15, 23, 42, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 8px) center;
  background-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.quota-select:hover {
  border-color: rgba(129, 140, 248, 0.65);
  background-color: #111a30;
}

.quota-select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  background-color: #111a30;
}

.editor-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.editor-tools-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.editor-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.editor-toolbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.editor-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.editor-tool-btn svg {
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.editor-tool-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
}

.editor-tool-btn:hover:not(:disabled) svg {
  color: #818cf8;
}

.editor-tool-btn:active:not(:disabled) {
  transform: translateY(0);
  background: rgba(99, 102, 241, 0.22);
}

.editor-tool-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.04);
  background: transparent;
  box-shadow: none;
  color: #64748b;
}

.editor-run-action-btn {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.28) 100%);
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}

.editor-run-action-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.38) 0%, rgba(139, 92, 246, 0.45) 100%);
  border-color: rgba(165, 180, 252, 0.7);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}

@media (max-width: 640px) {
  .editor-toolbar {
    padding: 8px 10px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }

  .editor-toolbar-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .editor-toolbar-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
  }

  .editor-tools-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
  }

  .editor-btn-group {
    gap: 3px;
  }

  .editor-tool-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .editor-toolbar-divider {
    margin: 0 2px;
  }

  .editor-toolbar-divider.run-divider {
    display: none !important;
  }

  #editorRunBtn {
    width: 100%;
    justify-content: center;
    height: 34px;
    margin-top: 2px;
    border-radius: 7px;
    font-weight: 700;
  }
}

@media (max-width: 520px) {
  .editor-tools-group .btn-label {
    display: none;
  }

  .editor-tools-group .editor-tool-btn {
    padding: 6px 10px;
    min-width: 32px;
    height: 32px;
    justify-content: center;
  }

  #editorRunBtn .btn-label,
  #editorRunBtnText {
    display: inline !important;
  }
}

@media (max-width: 380px) {
  .editor-tag {
    font-size: 10px;
    padding: 3px 7px;
    letter-spacing: 0.2px;
  }

  .editor-lang-select {
    height: 28px;
    font-size: 11px;
    padding: 0 24px 0 8px;
  }

  .editor-tools-group .editor-tool-btn {
    padding: 5px 8px;
    min-width: 30px;
    height: 30px;
  }

  .editor-btn-group {
    gap: 2px;
  }

  .editor-toolbar-divider {
    margin: 0 1px;
  }
}

.editor-container {
  display: flex;
  position: relative;
  min-height: 200px;
  max-height: 480px;
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.15) 0%, rgba(8, 12, 20, 0.98) 100%), #080c14;
}

.editor-gutter {
  width: 36px;
  flex-shrink: 0;
  background: rgba(12, 17, 29, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0 !important;
  user-select: none;
  overflow: hidden;
}

.editor-line-numbers {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Consolas, Monaco, monospace;
  font-size: 12px !important;
  line-height: 22px !important;
  color: #475569;
  text-align: right;
  padding-right: 6px;
  padding-left: 2px;
  white-space: pre;
}

.editor-input-area {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: transparent;
}

.code-editor-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 12px 8px !important;
  box-sizing: border-box !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Source Code Pro', 'SF Mono', Consolas, Monaco, monospace !important;
  font-size: 13px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  tab-size: 2 !important;
  -moz-tab-size: 2 !important;
  white-space: pre !important;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  border: none !important;
  color: #e2e8f0;
  z-index: 1;
  display: block;
}

.code-editor-backdrop code {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  font-weight: inherit !important;
  font-style: inherit !important;
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline-block;
  min-width: 100%;
}

.field textarea.code-editor-textarea,
textarea.code-editor-textarea,
.code-editor-textarea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 12px 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: #38bdf8;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Source Code Pro', 'SF Mono', Consolas, Monaco, monospace !important;
  font-size: 13px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  tab-size: 2 !important;
  -moz-tab-size: 2 !important;
  white-space: pre !important;
  overflow-wrap: normal !important;
  overflow-x: auto;
  overflow-y: auto;
  resize: none;
  z-index: 2;
}

.code-editor-textarea::selection {
  background: rgba(99, 102, 241, 0.42) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* ==========================================================================
   Word-Style Rich Text Note Editor Component & Toolbar Styles
   ========================================================================== */
.word-editor-card {
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-md);
  background: #080c14;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-editor-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.12);
}

.word-editor-card:focus-within {
  border-color: rgba(192, 132, 252, 0.75);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.22), 0 12px 40px rgba(168, 85, 247, 0.2);
}

/* Single-row Word-style Toolbar */
.word-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(22, 27, 46, 0.98) 0%, rgba(13, 17, 30, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
}

.word-toolbar::-webkit-scrollbar {
  display: none;
}

.word-toolbar-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.word-style-select {
  height: 29px;
  padding: 0 22px 0 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f1f5f9;
  background-color: rgba(255, 255, 255, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23c084fc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 6px) center;
  background-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s ease;
}

.word-style-select:hover {
  background-color: rgba(168, 85, 247, 0.15);
  border-color: rgba(192, 132, 252, 0.4);
}

.word-style-select option {
  background: #0f172a;
  color: #f1f5f9;
}

.word-size-select {
  width: 78px;
  padding-right: 18px;
}

.word-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 3px;
  flex-shrink: 0;
}

.word-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 6px;
}

.word-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 29px;
  height: 29px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.word-btn.with-text {
  width: auto;
  padding: 0 8px;
}

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

.word-btn:hover svg {
  color: #c084fc;
}

.word-btn:active {
  transform: scale(0.96);
}

.word-btn.active {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(192, 132, 252, 0.5) !important;
  color: #ffffff !important;
}

.word-btn.active svg {
  color: #c084fc !important;
}

.word-btn svg {
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.word-btn-text {
  font-size: 11.5px;
  font-weight: 600;
}

/* Word Document Canvas */
.word-document-container {
  display: flex;
  flex-direction: column;
  position: relative;
  background: #080c14;
  min-height: 220px;
}

.word-document-canvas {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 480px;
  overflow-y: auto;
  padding: 16px 20px;
  outline: none;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
  word-break: break-word;
  white-space: normal;
  caret-color: #c084fc;
  box-sizing: border-box;
}

.word-document-canvas[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #475569;
  font-style: normal;
  pointer-events: none;
  display: block;
}

.word-document-canvas h1,
.word-document-canvas h2,
.word-document-canvas h3,
.word-document-canvas h4 {
  color: #ffffff;
  margin-top: 14px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.word-document-canvas h1 {
  font-size: 21px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.word-document-canvas h2 {
  font-size: 18px;
  font-weight: 700;
}

.word-document-canvas h3 {
  font-size: 16px;
  font-weight: 600;
}

.word-document-canvas p {
  margin: 0 0 8px 0;
}

.word-document-canvas p:last-child {
  margin-bottom: 0;
}

.word-document-canvas blockquote {
  border-left: 3px solid #c084fc;
  background: rgba(168, 85, 247, 0.06);
  padding: 8px 14px;
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
  color: #cbd5e1;
  font-style: italic;
}

.word-document-canvas ul,
.word-document-canvas ol {
  padding-left: 24px;
  margin: 8px 0;
}

.word-document-canvas li {
  margin-bottom: 4px;
}

.word-document-canvas a {
  color: #818cf8;
  text-decoration: underline;
  cursor: pointer;
}

.word-document-canvas pre {
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 10px 0;
}

.word-document-canvas code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: #f472b6;
}

.word-document-canvas pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.word-document-canvas hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

/* Footer / Status Bar */
.word-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.98) 0%, rgba(9, 13, 22, 0.99) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

.word-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.word-footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.word-footer-right {
  display: inline-flex;
  align-items: center;
}

/* Fullscreen Mode for Word-style Editor */
.word-editor-card.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #080c14 !important;
}

.word-editor-card.is-fullscreen .word-toolbar {
  flex-shrink: 0 !important;
  padding: 8px 18px !important;
  background: rgba(15, 23, 42, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.word-editor-card.is-fullscreen .word-document-container {
  flex: 1 1 auto !important;
  height: calc(100vh - 84px) !important;
  height: calc(100dvh - 84px) !important;
  overflow-y: auto !important;
  background: #04070e !important;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.word-editor-card.is-fullscreen .word-document-canvas {
  max-width: 820px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  background: #090e18 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 36px 42px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  font-size: 15.5px !important;
}

.word-editor-card.is-fullscreen .word-editor-footer {
  flex-shrink: 0 !important;
  padding: 8px 20px !important;
}

/* Font sizes inside Word Document Canvas */
.word-document-canvas font[size="1"] {
  font-size: 11px;
}

.word-document-canvas font[size="2"] {
  font-size: 13px;
}

.word-document-canvas font[size="3"] {
  font-size: 14.5px;
}

.word-document-canvas font[size="4"] {
  font-size: 16px;
}

.word-document-canvas font[size="5"] {
  font-size: 18px;
}

.word-document-canvas font[size="6"] {
  font-size: 24px;
}

.word-document-canvas font[size="7"] {
  font-size: 32px;
}

/* Custom Word Link Modal */
.word-link-modal-overlay {
  z-index: 1000005;
}

.word-link-modal-box {
  max-width: 420px;
  text-align: left;
  position: relative;
  background: linear-gradient(145deg, #0d1424 0%, #080c16 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.2);
}

.word-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.word-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.word-link-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.word-link-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.word-link-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.word-link-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.word-link-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 16px rgba(168, 85, 247, 0.2);
  background: #0b0f19;
}

/* ==========================================================================
   Receiver Read-Only Code Viewer Component
   ========================================================================== */
.code-viewer-component {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: #080c14;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  position: relative;
}

.code-viewer-container {
  display: flex;
  position: relative;
  min-height: 160px;
  max-height: 480px;
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.15) 0%, rgba(8, 12, 20, 0.98) 100%), #080c14;
  overflow: hidden;
}

.code-viewer-body {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: 12px 8px;
  margin: 0;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Source Code Pro', 'SF Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 22px;
  tab-size: 2;
  -moz-tab-size: 2;
  white-space: pre;
  color: #e2e8f0;
  user-select: text;
  -webkit-user-select: text;
}

.code-viewer-body code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: transparent;
  padding: 0;
  border: none;
}

.code-viewer-body::selection,
.code-viewer-body *::selection {
  background: rgba(99, 102, 241, 0.45) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Universal Syntax Highlighting IDE Color Tokens
   ========================================================================== */
.code-highlight-block {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Source Code Pro', 'SF Mono', Consolas, Monaco, monospace;
  font-size: 13px !important;
  line-height: 22px !important;
  tab-size: 2;
  -moz-tab-size: 2;
  color: #e2e8f0;
}

.code-highlight-block code {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: transparent;
  padding: 0;
  border: none;
}

.code-editor-backdrop .token-keyword,
.code-editor-backdrop .token-builtin,
.code-editor-backdrop .token-function,
.code-editor-backdrop .token-string,
.code-editor-backdrop .token-number,
.code-editor-backdrop .token-boolean,
.code-editor-backdrop .token-comment,
.code-editor-backdrop .token-operator,
.code-editor-backdrop .token-punctuation,
.code-editor-backdrop .token-tag,
.code-editor-backdrop .token-attr,
.code-editor-backdrop .token-variable,
.code-editor-backdrop span {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

.token-keyword {
  color: #c084fc !important;
}

.token-builtin {
  color: #22d3ee !important;
}

.token-function {
  color: #60a5fa !important;
}

.token-string {
  color: #34d399 !important;
}

.token-number {
  color: #fbbf24 !important;
}

.token-boolean {
  color: #fb7185 !important;
}

.token-comment {
  color: #64748b !important;
}

.token-operator {
  color: #f43f5e !important;
}

.token-punctuation {
  color: #94a3b8 !important;
}

.token-tag {
  color: #f472b6 !important;
}

.token-attr {
  color: #facc15 !important;
}

.token-variable {
  color: #e2e8f0 !important;
}

.code-editor-textarea::placeholder {
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-style: italic;
  font-weight: 400;
  opacity: 0.85;
}

.code-editor-textarea::-webkit-scrollbar,
.editor-gutter::-webkit-scrollbar,
.code-viewer-body::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.code-editor-textarea::-webkit-scrollbar-track,
.editor-gutter::-webkit-scrollbar-track,
.code-viewer-body::-webkit-scrollbar-track {
  background: transparent;
}

.code-editor-textarea::-webkit-scrollbar-thumb,
.editor-gutter::-webkit-scrollbar-thumb,
.code-viewer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.code-editor-textarea::-webkit-scrollbar-thumb:hover,
.editor-gutter::-webkit-scrollbar-thumb:hover,
.code-viewer-body::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.45);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.95) 0%, rgba(9, 13, 22, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11.5px;
  color: var(--text-dark);
  flex-wrap: wrap;
  gap: 8px;
}

.editor-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

#editorStats {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.editor-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(129, 140, 248, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 5px;
  color: #c7d2fe;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.editor-status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

#textCount {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================================
   Syntax Highlighting Theme (VS Code Dark+ & Tokyo Night Palette)
   ========================================================================== */
.code-highlight-block {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.token-keyword {
  color: #c084fc !important;
  /* Neon Violet / Pink */
  font-weight: 600;
}

.token-builtin {
  color: #38bdf8 !important;
  /* Cyan */
  font-weight: 500;
}

.token-function {
  color: #60a5fa !important;
  /* Sky Blue */
  font-weight: 600;
}

.token-string {
  color: #34d399 !important;
  /* Emerald Mint Green */
}

.token-number {
  color: #fbbf24 !important;
  /* Amber Gold */
}

.token-boolean {
  color: #f59e0b !important;
  /* Orange Amber */
  font-weight: 600;
}

.token-comment {
  color: #64748b !important;
  /* Muted Slate Gray */
  font-style: italic;
}

.token-operator {
  color: #f43f5e !important;
  /* Rose Red / Coral */
}

.token-punctuation {
  color: #94a3b8 !important;
  /* Slate */
}

.token-tag {
  color: #818cf8 !important;
  /* Indigo */
  font-weight: 600;
}

.token-attr {
  color: #38bdf8 !important;
  /* Cyan */
}

.token-type {
  color: #2dd4bf !important;
  /* Teal */
}

.token-variable {
  color: #e2e8f0 !important;
  /* Light Slate */
}

.token-property {
  color: #38bdf8 !important;
  /* Cyan / Light Blue - CSS properties */
}

.token-selector {
  color: #c084fc !important;
  /* Violet / Magenta - CSS Selectors & Classes */
  font-weight: 600;
}

.token-unit {
  color: #fbbf24 !important;
  /* Amber Gold - CSS Dimensions & Units */
}

.code-viewer-lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #c7d2fe;
  letter-spacing: 0.3px;
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.code-viewer-lang-badge .lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Execution & Terminal Output Drawer
   ========================================================================== */
.editor-output-drawer,
.receive-output-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060911;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: height 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  position: relative;
  min-height: 42px;
  height: 350px;
}

.editor-output-drawer.is-dragging,
.receive-output-drawer.is-dragging {
  transition: none !important;
}

.editor-output-drawer.hidden,
.receive-output-drawer.hidden {
  display: none !important;
}

/* ==========================================================================
   Editor Output Drawer Resizer & Splitter Controls
   ========================================================================== */
.editor-drawer-resizer {
  position: relative;
  height: 10px;
  margin-top: -5px;
  margin-bottom: -5px;
  cursor: row-resize;
  cursor: ns-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 30;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.editor-drawer-resizer::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(99, 102, 241, 0.25);
  transition: all 0.2s ease;
}

.drawer-resizer-handle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.45);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.editor-drawer-resizer:hover::before,
.editor-drawer-resizer:active::before,
body.drawer-is-resizing .editor-drawer-resizer::before {
  height: 2px;
  background: rgba(129, 140, 248, 0.85);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7);
}

.editor-drawer-resizer:hover .drawer-resizer-handle,
.editor-drawer-resizer:active .drawer-resizer-handle,
body.drawer-is-resizing .drawer-resizer-handle {
  width: 68px;
  background: #a5b4fc;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.9), 0 1px 4px rgba(0, 0, 0, 0.4);
}

body.drawer-is-resizing {
  cursor: row-resize !important;
  cursor: ns-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.drawer-is-resizing iframe {
  pointer-events: none !important;
}

.editor-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  flex-shrink: 0;
}

.editor-output-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #c7d2fe;
}

.editor-output-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.output-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.output-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

#outputCopyBtn,
#receiverOutputCopyBtn {
  color: #c7d2fe;
}

#outputCopyBtn:hover,
#receiverOutputCopyBtn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
}

#outputSlideToggleBtn,
#receiverSlideToggleBtn {
  color: #c7d2fe;
}

#outputSlideToggleBtn:hover,
#receiverSlideToggleBtn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
}

#outputSlideToggleBtn.slide-active,
#receiverSlideToggleBtn.slide-active {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(165, 180, 252, 0.6);
  color: #ffffff;
}

#outputFullscreenBtn.fullscreen-active,
#receiverFullscreenBtn.fullscreen-active {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(165, 180, 252, 0.6);
  color: #ffffff;
}

.output-tool-btn.close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.editor-output-body {
  padding: 12px 16px;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  background-color: #060911;
  background: #060911;
  color: #f1f5f9;
}

.terminal-stdout {
  white-space: pre-wrap;
  word-break: break-word;
  color: #f1f5f9;
  background: transparent;
  flex: 1 1 auto;
  overflow-y: auto;
}

.output-log-line {
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.output-log-line.log-info {
  color: #e2e8f0;
}

.output-log-line.log-success {
  color: #34d399;
}

.output-log-line.log-error {
  color: #f87171;
}

.output-log-line.log-warn {
  color: #fbbf24;
}

.output-log-line.log-meta {
  color: #64748b;
  font-size: 11.5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  margin-top: 8px;
}

.preview-iframe {
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #ffffff;
  display: block;
}

.preview-iframe.hidden {
  display: none !important;
}

.editor-tool-btn.primary-glow {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: rgba(129, 140, 248, 0.5);
  color: #c7d2fe;
}

.editor-tool-btn.primary-glow:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.45));
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.4);
}

/* Live Active Button Mode */
.editor-run-action-btn.is-live-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25)) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  color: #6ee7b7 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
}

.editor-run-action-btn.is-live-active:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.38), rgba(6, 182, 212, 0.38)) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.5) !important;
}

.editor-run-action-btn.is-live-active .run-btn-icon-play {
  display: none !important;
}

/* Pulsing Live Dot */
.live-dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  margin-right: 5px;
  vertical-align: middle;
  animation: livePulseAnim 1.6s infinite ease-in-out;
}

@keyframes livePulseAnim {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px #10b981;
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
    box-shadow: 0 0 3px #10b981;
  }
}

/* Live Sync Pill in Output Drawer Header */
.output-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  margin-left: 10px;
  letter-spacing: 0.2px;
  vertical-align: middle;
  animation: fadeIn 0.2s ease;
}

.output-live-pill.is-updating {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.output-live-pill.is-updating .live-dot-pulse {
  background-color: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

/* ==========================================================================
   Helping Assistant Card & Diagnostics Panel (Theme-Integrated)
   ========================================================================== */
.helping-assistant-card {
  margin-bottom: 12px;
  background: rgba(22, 17, 34, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.38);
  box-shadow: 0 8px 26px -4px rgba(0, 0, 0, 0.65), 0 0 22px rgba(244, 63, 94, 0.12);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--text-main);
  font-size: 12.5px;
  line-height: 1.5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: assistantSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 12px;
  color: #f43f5e;
}

.assistant-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  margin-left: 4px;
}

.assistant-location-badge {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.assistant-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
  transition: var(--transition);
}

.assistant-dismiss-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.assistant-code-snippet {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11.5px;
  overflow-x: auto;
  line-height: 1.6;
}

.assistant-code-line {
  display: flex;
  gap: 10px;
}

.assistant-line-num {
  color: #64748b;
  min-width: 24px;
  text-align: right;
  user-select: none;
}

.assistant-code-text {
  color: #e2e8f0;
  white-space: pre;
}

.assistant-code-line.is-error-line {
  background: rgba(244, 63, 94, 0.18);
  margin: 0 -12px;
  padding: 0 12px;
  border-left: 3px solid #f43f5e;
}

.assistant-code-line.is-error-line .assistant-line-num {
  color: #f43f5e;
  font-weight: 700;
}

.assistant-code-line.is-error-line .assistant-code-text {
  color: #ffe4e6;
  font-weight: 600;
}

.assistant-explanation {
  color: #cbd5e1;
  margin-bottom: 6px;
  font-size: 12px;
}

.assistant-explanation strong {
  color: #ffffff;
}

.assistant-suggestion {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid #6366f1;
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  color: #c7d2fe;
  font-size: 11.5px;
  margin-bottom: 10px;
}

.assistant-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.assistant-action-btn.btn-jump {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fda4af;
}

.assistant-action-btn.btn-jump:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #ffffff;
}

.assistant-action-btn.btn-fix {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.assistant-action-btn.btn-fix:hover {
  background: rgba(16, 185, 129, 0.32);
  border-color: #34d399;
  color: #ffffff;
}

.assistant-action-btn.btn-dismiss {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text-dark);
}

.assistant-action-btn.btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}


/* ==========================================================================
   Receiver Desktop Live Output & Preview Slot (Right Sidebar Placement)
   ========================================================================== */
.receiver-desktop-output-slot:empty,
.receiver-desktop-output-slot>.hidden {
  display: none !important;
}

@media (min-width: 901px) {
  .receiver-desktop-output-slot .editor-output-drawer:not(.is-fullscreen) {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(22, 30, 48, 0.88) 0%, rgba(13, 18, 30, 0.88) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--card-shadow-3d);
    overflow: hidden;
  }

  .receiver-desktop-output-slot .editor-output-drawer:not(.is-fullscreen) .editor-output-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .receiver-desktop-output-slot .editor-output-drawer:not(.is-fullscreen) .editor-output-body {
    padding: 14px 16px;
    max-height: 480px;
  }

  .receiver-desktop-output-slot .editor-output-drawer:not(.is-fullscreen) .preview-iframe {
    height: 380px;
    min-height: 300px;
  }
}

/* ==========================================================================
   Receive Page Input Mask & Format Validation Hints
   ========================================================================== */
.receive-validation-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
  color: var(--text-dark);
  transition: var(--transition);
}

.receive-validation-hint.valid {
  color: #34d399;
}

.receive-validation-hint.invalid {
  color: #f87171;
}

.receive-validation-hint.warning {
  color: #fbbf24;
}

#dropzoneProgressBar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

#dropzoneBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #34d399);
  background-size: 200% 100%;
  animation: gradientMove 2.5s ease infinite;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8), 0 0 4px rgba(236, 72, 153, 0.6);
  transition: width 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Upload & Download Progress HUD */
.upload-hud {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease-out;
}

.upload-hud.hidden {
  display: none !important;
}

.upload-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.upload-hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.upload-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-cancel-upload {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-upload:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
  border-color: #ef4444;
}

.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress div,
#uploadBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
  background-size: 200% 100%;
  animation: shimmerProgress 2s linear infinite;
  border-radius: 999px;
  transition: width 0.12s ease-out;
}

@keyframes shimmerProgress {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.upload-hud-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.upload-stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.upload-stat-item strong {
  color: #a5b4fc;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  background: #1e293b;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  height: 40px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

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

.btn.primary {
  background: var(--primary-gradient);
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.35);
}

.btn.primary:hover {
  box-shadow: 0 5px 18px rgba(99, 102, 241, 0.5);
  filter: brightness(1.06);
}

.btn.ultra {
  background: var(--accent-gradient);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
}

.btn.ultra:hover {
  box-shadow: 0 5px 18px rgba(245, 158, 11, 0.5);
  filter: brightness(1.06);
}

.btn.light {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: #fff;
}

.btn.light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
}

.btn.danger:hover {
  box-shadow: 0 5px 16px rgba(239, 68, 68, 0.45);
}

.btn.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
}

.btn.sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  height: 30px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

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

/* Result Card */
.result {
  margin-top: 16px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(180deg, rgba(22, 30, 48, 0.88) 0%, rgba(13, 18, 30, 0.88) 100%);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 15, 25, 0.75);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin: 12px 0;
}

.code {
  font-family: 'Outfit', monospace;
  font-size: 24px;
  letter-spacing: 3px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.history-code {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.qr-box {
  display: inline-flex;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  min-width: 130px;
  min-height: 130px;
  align-items: center;
  justify-content: center;
}

/* Shortened Link Display Card - Fluid & Responsive on Mobile */
.short-link-display {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.short-link-url-box {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-all;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: all;
}

.short-link-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .short-link-display {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .short-link-btn-row {
    width: auto;
    flex-shrink: 0;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.badge.ultra,
.badge.ultra_max,
.badge.ultra-max {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(239, 68, 68, 0.22) 100%);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge.premium,
.badge.premium_pro,
.badge.premium-pro,
.badge.file,
.badge.type-file {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(139, 92, 246, 0.22) 100%);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.badge.note,
.badge.type-note {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.18);
}

.badge.link,
.badge.type-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
}

.badge.text,
.badge.type-text {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.4);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.18);
}

.badge.free {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid var(--card-border);
}

.badge.guest {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.badge.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.active {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.badge.expired {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Feedback Status Badges */
.badge.new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.badge.in_progress {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge.resolved {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge.closed {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Priority Badges */
.badge.urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
  animation: pulseGlow 2s infinite;
}

.badge.high {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.38);
}

.badge.normal {
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge.low {
  background: rgba(100, 116, 139, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 10px 2px rgba(239, 68, 68, 0.3);
  }
}

/* Password Strength & Requirements UI */
.password-strength-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strength-bar-bg {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.strength-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dark);
}

.password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(11, 15, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
}

.req-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.req-item.valid {
  color: #34d399;
}

.req-item.valid svg {
  color: #34d399;
}

.req-item svg {
  width: 12px;
  height: 12px;
  color: #64748b;
  flex-shrink: 0;
}

/* Auth Trust Badges Strip */
.auth-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Support & Feedback Page Layout - Full Container Width */
.support-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  width: 100%;
  margin: 16px 0 32px;
}

.support-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(18, 25, 41, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.channel-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(18, 25, 41, 0.85);
  transform: translateY(-2px);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 18px;
  flex-shrink: 0;
}

.pill-select-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pill-option {
  position: relative;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pill-option input[type="radio"]:checked+.pill-label {
  background: rgba(99, 102, 241, 0.18);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.pill-label:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Progress Bar */
.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 10px;
  display: none;
}

.progress div {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: rgba(11, 15, 25, 0.45);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table th {
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  padding: 10px 14px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap !important;
}

.table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap !important;
}

.table .actions,
.comparison-table .actions {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Responsive Scrollable Share History Blocks (8 Items Desktop / 4 Items Mobile)
   ========================================================================== */
#recentList {
  max-height: 418px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth !important;
  overscroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  will-change: scroll-position;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(11, 15, 25, 0.6);
}

#receiveWifiFeedList,
.wifi-feed-list {
  max-height: 284px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scroll-behavior: smooth !important;
  overscroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  will-change: scroll-position;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(11, 15, 25, 0.6);
}

.dashboard-history-scroll {
  max-height: 425px;
  overflow-y: auto;
  overflow-x: auto;
  scroll-behavior: smooth !important;
  overscroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  will-change: scroll-position;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(11, 15, 25, 0.6);
  position: relative;
}

/* Universal seamless scroll chaining for all embedded boxes */
.table-wrap,
.comparison-table-wrap,
.batch-files-list,
.file-preview-list,
.share-detail-content-box,
.editor-output-body,
#receiveWifiFeedList,
.wifi-feed-list {
  overscroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.dashboard-history-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #131b2e;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--card-border);
}

#recentList::-webkit-scrollbar,
#receiveWifiFeedList::-webkit-scrollbar,
.wifi-feed-list::-webkit-scrollbar,
.dashboard-history-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#recentList::-webkit-scrollbar-track,
#receiveWifiFeedList::-webkit-scrollbar-track,
.wifi-feed-list::-webkit-scrollbar-track,
.dashboard-history-scroll::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.6);
  border-radius: 3px;
}

#recentList::-webkit-scrollbar-thumb,
#receiveWifiFeedList::-webkit-scrollbar-thumb,
.wifi-feed-list::-webkit-scrollbar-thumb,
.dashboard-history-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 3px;
  transition: background 0.2s ease;
}

#recentList::-webkit-scrollbar-thumb:hover,
#receiveWifiFeedList::-webkit-scrollbar-thumb:hover,
.wifi-feed-list::-webkit-scrollbar-thumb:hover,
.dashboard-history-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.75);
}

/* ==========================================================================
   Dashboard Active Share History Filter & Sorting Toolbar
   ========================================================================== */
.history-toolbar {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 10px);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.history-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-toolbar-primary {
  justify-content: space-between;
}

.history-toolbar-secondary {
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.history-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  min-width: 220px;
}

.history-search-icon {
  position: absolute;
  left: 11px;
  color: var(--text-dark, #64748b);
  pointer-events: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.history-search-wrap:focus-within .history-search-icon {
  color: #818cf8;
}

.history-search-input {
  width: 100%;
  height: 34px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  color: #fff;
  padding: 0 32px 0 34px;
  font-size: 12.5px;
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
}

.history-search-input::placeholder {
  color: #475569;
}

.history-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  background: rgba(18, 25, 41, 0.98);
}

.history-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-dark, #64748b);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.history-search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.history-type-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
  flex-wrap: wrap;
}

.history-pill {
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.history-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.history-pill.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.pill-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  color: inherit;
}

.history-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.history-filter-selects {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.history-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
}

.select-prefix-icon {
  position: absolute;
  left: 9px;
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}

.history-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(18, 25, 41, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 6px);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  height: 31px;
  padding: 0 24px 0 28px;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  box-sizing: border-box;
}

.history-select:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  background-color: rgba(26, 36, 60, 0.95);
}

.history-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  color: #fff;
}

.history-select-wrap .rd-select-wrap {
  width: auto;
}
.history-select-wrap .rd-select-wrap .rd-select-trigger {
  padding-left: 28px;
  height: 31px;
  min-height: 31px;
  font-size: 11.5px;
  background: rgba(18, 25, 41, 0.9);
  border-radius: var(--radius-sm, 6px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.history-select-wrap .rd-select-wrap .rd-select-trigger:hover {
  background: rgba(26, 36, 60, 0.95);
  border-color: rgba(99, 102, 241, 0.45);
}
.history-select-wrap .rd-select-wrap .rd-select-trigger:focus-visible,
.history-select-wrap .rd-select-wrap.open .rd-select-trigger {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.history-select-wrap .rd-select-wrap .rd-select-dropdown {
  min-width: 170px;
}
.history-select-wrap .rd-select-wrap .rd-select-option {
  font-size: 11.5px;
  padding: 6px 10px;
}

/* Code Editor Toolbar Language Select Integration */
.editor-lang-wrapper .rd-select-wrap {
  width: auto;
}
.editor-lang-wrapper .rd-select-wrap .rd-select-trigger {
  height: 28px;
  min-height: 28px;
  font-size: 11.5px;
  padding: 0 8px;
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: none;
}
.editor-lang-wrapper .rd-select-wrap .rd-select-dropdown {
  min-width: 180px;
}
.editor-lang-wrapper .rd-select-wrap .rd-select-option {
  font-size: 12px;
  padding: 6px 10px;
}

/* Word Toolbar Paragraph & Font Size Select Integration */
.word-toolbar-item .rd-select-wrap {
  width: auto;
}
.word-toolbar-item .rd-select-wrap .rd-select-trigger {
  height: 28px;
  min-height: 28px;
  font-size: 12px;
  padding: 0 8px;
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: none;
}
.word-toolbar-item .rd-select-wrap .rd-select-dropdown {
  min-width: 140px;
}
.word-toolbar-item .rd-select-wrap .rd-select-option {
  font-size: 12px;
  padding: 6px 10px;
}

/* Quota Limits Select Integration */
.quota-select-wrapper .rd-select-wrap {
  width: 100%;
}
.quota-select-wrapper .rd-select-wrap .rd-select-trigger {
  height: 34px;
  min-height: 34px;
  font-size: 12.5px;
  padding: 0 10px;
}

.history-order-btn {
  height: 31px !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
  border-radius: var(--radius-sm, 6px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.history-order-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

.history-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.history-count-badge {
  font-size: 11.5px;
  color: var(--text-dark, #64748b);
  white-space: nowrap;
  font-weight: 500;
}

.history-count-badge strong {
  color: #e2e8f0;
}

.history-reset-btn {
  height: 31px !important;
  padding: 0 9px !important;
  font-size: 11.5px !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.06) !important;
  border-radius: var(--radius-sm, 6px) !important;
}

.history-reset-btn:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}

/* Sortable Table Headers */
.sortable-th {
  cursor: pointer !important;
  user-select: none !important;
  transition: color 0.15s ease, background 0.15s ease !important;
}

.sortable-th:hover {
  color: #fff !important;
  background: rgba(99, 102, 241, 0.14) !important;
}

.th-content {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sort-icon {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sortable-th:hover .sort-icon {
  opacity: 0.75;
}

.sortable-th.sorted-asc .sort-icon,
.sortable-th.sorted-desc .sort-icon {
  opacity: 1 !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
}

.sortable-th.sorted-asc .sort-icon {
  transform: translateY(-1px);
}

.sortable-th.sorted-desc .sort-icon {
  transform: translateY(1px);
}

@media (max-width: 768px) {

  /* Landing Page: Show exactly 4 items cleanly on mobile without cutting off */
  #recentList {
    max-height: 275px;
    scroll-behavior: smooth !important;
    overscroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #recentList>div {
    padding: 8px 0 !important;
    gap: 6px !important;
  }

  /* Dashboard: Redesigned modern mobile card layout showing 4 items cleanly */
  .history-toolbar {
    padding: 8px 10px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .history-toolbar-primary,
  .history-toolbar-secondary {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .history-search-wrap {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    height: auto !important;
  }

  .history-type-pills {
    width: 100% !important;
    overflow-x: auto !important;
    display: flex !important;
    scrollbar-width: thin !important;
    padding-bottom: 2px !important;
  }

  .history-pill {
    flex: 1 0 auto !important;
    justify-content: center !important;
  }

  .history-filter-selects {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .history-select-wrap {
    width: 100% !important;
  }

  .history-select {
    width: 100% !important;
  }

  .history-order-btn {
    grid-column: span 2 !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .history-toolbar-meta {
    width: 100% !important;
    justify-content: space-between !important;
    margin-left: 0 !important;
    padding-top: 4px !important;
  }

  .dashboard-history-scroll {
    max-height: 520px;
    overflow-y: auto !important;
    overflow-x: auto !important;
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    scroll-behavior: smooth !important;
    overscroll-behavior: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dashboard-history-scroll table,
  .dashboard-history-scroll tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .dashboard-history-scroll thead {
    display: none !important;
  }

  .dashboard-history-scroll tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto) !important;
    grid-template-areas:
      "type code status"
      "meta meta id"
      "actions actions actions" !important;
    align-items: center !important;
    gap: 6px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: rgba(18, 25, 41, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md, 10px) !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transition: var(--transition) !important;
  }

  .dashboard-history-scroll tbody tr:last-child {
    margin-bottom: 0 !important;
  }

  .dashboard-history-scroll tbody tr:hover {
    background: rgba(26, 36, 60, 0.95) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
  }

  .dashboard-history-scroll tbody tr:has(td[colspan]) {
    display: block !important;
    padding: 18px !important;
    text-align: center !important;
  }

  .dashboard-history-scroll tbody td {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
  }

  .dashboard-history-scroll tbody td[colspan] {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
  }

  /* Cell 1: Share ID */
  .dashboard-history-scroll tbody td:nth-child(1) {
    grid-area: id !important;
    justify-self: end !important;
    justify-content: flex-end !important;
    font-size: 11px !important;
  }

  /* Cell 2: Type badge & indicators */
  .dashboard-history-scroll tbody td:nth-child(2) {
    grid-area: type !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Cell 3: Share Code */
  .dashboard-history-scroll tbody td:nth-child(3) {
    grid-area: code !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .dashboard-history-scroll tbody td:nth-child(3) .code {
    font-size: 14.5px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
  }

  /* Cell 4: Created Date (hidden on mobile cards to keep layout compact & clean) */
  .dashboard-history-scroll tbody td:nth-child(4) {
    display: none !important;
  }

  /* Cell 5: Expires Date */
  .dashboard-history-scroll tbody td:nth-child(5) {
    grid-area: meta !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .dashboard-history-scroll tbody td:nth-child(5)::before {
    content: "Expires: ";
    color: var(--text-dark, #64748b);
    margin-right: 4px;
    font-weight: 500;
  }

  /* Cell 6: Status Badge */
  .dashboard-history-scroll tbody td:nth-child(6) {
    grid-area: status !important;
    justify-self: end !important;
    justify-content: flex-end !important;
  }

  /* Cell 7: Redesigned Action Buttons (Full width with smooth horizontal scroll if needed) */
  .dashboard-history-scroll tbody td:nth-child(7) {
    grid-area: actions !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .dashboard-history-scroll tbody td:nth-child(7) .actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  .dashboard-history-scroll tbody td:nth-child(7) .actions .btn {
    flex: 1 0 auto !important;
    min-width: 65px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    gap: 4px !important;
    min-height: 30px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .dashboard-history-scroll tbody td:nth-child(7) .actions .btn svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  /* ==========================================================================
     Enhanced Dashboard Mobile Telemetry Strip (2x2 Grid) & Plan Quotas Card
     ========================================================================== */
  #userStatsGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #userStatsGrid .stat-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(13, 19, 33, 0.94) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #userStatsGrid .stat-card>div:last-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  #userStatsGrid .stat-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  }

  #userStatsGrid .stat-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  #userStatsGrid .stat-val {
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #f8fafc !important;
    letter-spacing: -0.3px !important;
    word-break: break-word !important;
  }

  #userStatsGrid #userStatPlanBadge {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    border: 1px solid rgba(236, 72, 153, 0.35) !important;
    color: #f472b6 !important;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.2) !important;
  }

  #userStatsGrid .stat-label {
    font-size: 10.5px !important;
    letter-spacing: -0.15px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    margin-top: 3px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Plan Quotas & Storage Gauge Mobile Elevation */
  .storage-progress-bar-wrap {
    height: 8px !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6) !important;
  }

  .storage-progress-bar-fill {
    height: 100% !important;
    border-radius: 5px !important;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 55%, #818cf8 100%) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45) !important;
  }

  .plan-quota-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    white-space: normal !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .plan-quota-row.is-current {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(236, 72, 153, 0.08) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15) !important;
  }

  .plan-quota-label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    white-space: normal !important;
  }

  .plan-quota-specs {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-align: left !important;
    width: 100% !important;
    flex-shrink: 1 !important;
  }

  #dashboardContent {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Pricing Card Component */
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.pricing-card.popular {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 32px -6px rgba(99, 102, 241, 0.22), 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.pricing-card.ultra-card {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 32px -6px rgba(245, 158, 11, 0.22), 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.pricing-badge.ultra-badge {
  background: var(--accent-gradient);
}

/* Billing Cycle Segmented Selector */
.billing-cycle-bar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px auto;
  width: 100%;
}

.billing-cycle-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.billing-cycle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 20px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

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

.billing-cycle-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cycle-save-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.2px;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.billing-cycle-btn.active .cycle-save-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cycle-save-pill.highlight {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.billing-cycle-btn.active .cycle-save-pill.highlight {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 640px) {
  .billing-cycle-switcher {
    width: 100%;
    justify-content: space-between;
    padding: 4px;
    border-radius: 14px;
  }
  .billing-cycle-btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    gap: 4px;
    border-radius: 10px;
  }
  .cycle-save-pill {
    font-size: 9.5px;
    padding: 1px 5px;
  }
}

.price-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin: 12px 0;
  color: #fff;
}

.price-tag span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.feature-item.highlight {
  color: #fff;
  font-weight: 600;
}

.feature-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #34d399;
}

/* Stats Metric Cards */
.stat-card {
  background: linear-gradient(135deg, rgba(24, 32, 50, 0.55) 0%, rgba(14, 20, 32, 0.55) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #a5b4fc;
}

.stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--card-bg-solid);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: 500px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Modern Toast Notification System (State-of-the-Art Glassmorphic Floating HUD)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-width: 420px;
  width: calc(100% - 48px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .toast-container {
    top: 14px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    align-items: center;
    gap: 9px;
  }
}

.toast-item {
  --toast-accent: #6366f1;
  --toast-border: rgba(99, 102, 241, 0.45);
  --toast-glow: rgba(99, 102, 241, 0.32);
  --toast-highlight: rgba(165, 180, 252, 0.16);
  --toast-badge-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(56, 189, 248, 0.24));
  --toast-badge-color: #c7d2fe;
  --toast-badge-border: rgba(99, 102, 241, 0.48);
  --toast-dot: #818cf8;

  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px 14px 15px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 0% 0%, var(--toast-highlight) 0%, transparent 60%),
              linear-gradient(135deg, rgba(11, 17, 33, 0.96) 0%, rgba(16, 25, 48, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(105%);
  border: 1px solid var(--toast-border);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.07),
              0 0 34px -4px var(--toast-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  opacity: 0;
  overflow: hidden;
  max-height: 240px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.32s ease,
              margin 0.32s ease,
              padding 0.32s ease,
              border-width 0.32s ease;
  will-change: transform, opacity;
}

.toast-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 18px -4px var(--toast-glow);
  pointer-events: none;
  opacity: 0.6;
}

/* 3-Phase Elastic Puff-In Entrance Pop */
.toast-item.toast-visible {
  opacity: 1;
  animation: toastPuffIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Puff-Out Exit Pop with Height Collapse */
.toast-item.toast-hiding {
  opacity: 0;
  animation: toastPuffOut 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: -10px;
  border-width: 0;
  pointer-events: none;
}

/* Active Dragging / Swiping State */
.toast-item.toast-swiping {
  cursor: grabbing !important;
  transition: none !important;
}

/* Subtle Swipe Handle Affordance */
.toast-swipe-handle {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, width 0.2s ease;
  pointer-events: none;
  z-index: 6;
}

.toast-item:hover .toast-swipe-handle {
  background: rgba(255, 255, 255, 0.36);
  width: 34px;
}

/* Glowing Squircle Icon Badge Wrapper */
.toast-icon-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--toast-border);
  color: var(--toast-dot);
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.toast-icon-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--toast-glow);
  filter: blur(10px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

.toast-item:hover .toast-icon-wrap {
  transform: scale(1.08);
}

.toast-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  min-width: 0;
  z-index: 2;
  cursor: inherit;
}

.toast-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modern Badge with Live Pulsing Dot */
.toast-badge {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 6px;
  line-height: 1.2;
  background: var(--toast-badge-bg);
  color: var(--toast-badge-color);
  border: 1px solid var(--toast-badge-border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.toast-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--toast-dot, currentColor);
  box-shadow: 0 0 8px var(--toast-dot, currentColor);
  animation: toastDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes toastDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px var(--toast-dot, currentColor);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
    box-shadow: 0 0 2px var(--toast-dot, currentColor);
  }
}

.toast-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.toast-message {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.44;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

/* Modern Frosted Close Button */
.toast-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  width: 25px;
  height: 25px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  margin-top: 1px;
  z-index: 4;
}

.toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.1) rotate(90deg);
}

.toast-close:active {
  transform: scale(0.92);
}

/* Running Gradient Animations */
@keyframes runningToastGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: -250% 50%;
  }
}

@keyframes toastProgressCountdown {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* React-style Elastic 3-Phase Puff Animations */
@keyframes toastPuffIn {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.78);
    filter: blur(8px);
  }

  55% {
    opacity: 1;
    transform: translateY(3px) scale(1.035);
    filter: blur(0px);
  }

  80% {
    transform: translateY(-1px) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes toastPuffOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.84);
    filter: blur(6px);
  }
}

/* Toast Top Accent Running Gradient Bar */
.toast-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #8b5cf6, #ec4899, #10b981, #f59e0b, #6366f1);
  background-size: 300% 100%;
  animation: runningToastGradient 3.5s linear infinite;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  z-index: 5;
}

/* Laser Countdown Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  z-index: 5;
}

.toast-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left;
  animation: toastProgressCountdown linear forwards;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, var(--toast-accent, #6366f1) 75%, #ffffff 100%);
  box-shadow: 0 0 10px var(--toast-glow);
}

.toast-item:hover .toast-progress-bar {
  animation-play-state: paused;
}

/* Themed Variants with Dynamic Variables & Distinct Glow Personas */
/* Success: Electric Emerald, Aquamarine, Neon Mint */
.toast-item.toast-success {
  --toast-accent: #10b981;
  --toast-border: rgba(16, 185, 129, 0.48);
  --toast-glow: rgba(16, 185, 129, 0.36);
  --toast-highlight: rgba(52, 211, 153, 0.22);
  --toast-badge-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.24));
  --toast-badge-color: #6ee7b7;
  --toast-badge-border: rgba(16, 185, 129, 0.52);
  --toast-dot: #34d399;
}

/* Error & Danger: Crimson Red, Solar Flame, Hot Magenta */
.toast-item.toast-error,
.toast-item.toast-danger {
  --toast-accent: #ef4444;
  --toast-border: rgba(239, 68, 68, 0.48);
  --toast-glow: rgba(244, 63, 94, 0.36);
  --toast-highlight: rgba(251, 113, 133, 0.22);
  --toast-badge-bg: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(244, 63, 94, 0.24));
  --toast-badge-color: #fca5a5;
  --toast-badge-border: rgba(239, 68, 68, 0.52);
  --toast-dot: #f87171;
}

/* Warning: Solar Amber, Golden Topaz, Coral Tangerine */
.toast-item.toast-warning {
  --toast-accent: #f59e0b;
  --toast-border: rgba(245, 158, 11, 0.48);
  --toast-glow: rgba(245, 158, 11, 0.36);
  --toast-highlight: rgba(252, 211, 77, 0.22);
  --toast-badge-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.24));
  --toast-badge-color: #fde68a;
  --toast-badge-border: rgba(245, 158, 11, 0.52);
  --toast-dot: #fbbf24;
}

/* Info & Notice: Electric Indigo, Neon Sky Blue, Cyber Purple */
.toast-item.toast-info {
  --toast-accent: #6366f1;
  --toast-border: rgba(99, 102, 241, 0.48);
  --toast-glow: rgba(99, 102, 241, 0.36);
  --toast-highlight: rgba(165, 180, 252, 0.22);
  --toast-badge-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(56, 189, 248, 0.24));
  --toast-badge-color: #c7d2fe;
  --toast-badge-border: rgba(99, 102, 241, 0.52);
  --toast-dot: #818cf8;
}

/* Fallback/Legacy #toast element (Upgraded with React-Toaster Puff Aesthetics) */
.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(165, 180, 252, 0.18) 0%, transparent 60%),
              linear-gradient(135deg, rgba(11, 17, 33, 0.96) 0%, rgba(16, 25, 48, 0.98) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.48);
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 28px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999999;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #6366f1, #38bdf8, #8b5cf6, #06b6d4, #6366f1);
  background-size: 250% 100%;
  animation: runningToastGradient 2.5s linear infinite;
}

.toast.show {
  display: flex;
  animation: toastPuffIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Modern Custom Confirmation Dialog System (Ultra Glassmorphic Prompt)
   ========================================================================== */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.confirm-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.confirm-modal-box {
  background: radial-gradient(120% 120% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
              linear-gradient(145deg, #0d1424 0%, #080c16 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px 28px 26px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 28px 70px -10px rgba(0, 0, 0, 0.88), 0 0 36px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: scale(0.9) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
}

.confirm-modal-overlay.open .confirm-modal-box {
  animation: confirmModalPuffIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes confirmModalPuffIn {
  0% {
    opacity: 0;
    transform: scale(0.82) translateY(20px);
    filter: blur(8px);
  }

  60% {
    opacity: 1;
    transform: scale(1.025) translateY(-2px);
    filter: blur(0px);
  }

  85% {
    transform: scale(0.995) translateY(1px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
  }
}

.confirm-modal-icon-badge {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.confirm-modal-icon-badge::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px dashed currentColor;
  opacity: 0.35;
  animation: confirmBadgeRotate 14s linear infinite;
}

@keyframes confirmBadgeRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.confirm-modal-icon-badge.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.24) 0%, rgba(185, 28, 28, 0.12) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.3);
}

.confirm-modal-icon-badge.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.3);
}

.confirm-modal-icon-badge.info {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(67, 56, 202, 0.12) 100%);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #818cf8;
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.3);
}

.confirm-modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.confirm-modal-msg {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: stretch;
}

.confirm-modal-actions button {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.confirm-modal-actions button:active {
  transform: translateY(1px) scale(0.98);
}

.btn-confirm-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.btn-confirm-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-confirm-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-confirm-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.btn-confirm-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-confirm-success:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-confirm-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-confirm-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

/* Notice Banners */
.notice {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.notice.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.22);
  color: #f87171;
}

.notice.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.muted {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Modern SaaS Multi-Column Footer */
.site-footer {
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.7) 0%, rgba(6, 9, 16, 0.99) 100%);
  border-top: 1px solid var(--card-border);
  padding: 34px 0 24px;
  color: var(--text-muted);
  font-size: 13px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.3), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.05fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

@media (max-width: 1200px) and (min-width: 961px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 960px) and (min-width: 601px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
  }

  50% {
    box-shadow: 0 0 24px 6px rgba(168, 85, 247, 0.85);
    transform: scale(1.03);
  }
}

.pulse-highlight {
  animation: pulseGlow 0.9s ease-in-out 2 !important;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  letter-spacing: -0.3px;
}

.footer-brand-title span {
  color: #818cf8;
}

.footer-brand-title .brand-icon {
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.1);
  }

  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f8fafc;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1.4;
}

.footer-links a svg,
.footer-links a i {
  color: #818cf8;
  flex-shrink: 0;
  transition: var(--transition);
  stroke-width: 2;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-links a:hover svg,
.footer-links a:hover i {
  color: #c7d2fe;
  transform: scale(1.15);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-dark);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Generic Icon Utilities */
.icon-svg,
.btn svg,
.tab svg,
.navlink svg,
.mobile-nav svg,
.badge svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Fallback simple footer */
.footer {
  padding: 20px 0 16px;
  border-top: 1px solid var(--card-border);
  color: var(--text-dark);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  margin-top: 24px;
}

.footer a {
  color: var(--text-muted);
  font-weight: 600;
}

/* FAQ Accordion Styles - Modern SaaS Design */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.faq-card {
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.72) 0%, rgba(13, 19, 35, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.faq-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.faq-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(145deg, rgba(26, 36, 60, 0.82) 0%, rgba(16, 24, 44, 0.92) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.faq-card.open {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(145deg, rgba(28, 38, 64, 0.92) 0%, rgba(15, 22, 40, 0.96) 100%);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.45), 0 0 24px rgba(99, 102, 241, 0.12);
}

.faq-card.open::before {
  opacity: 1;
}

/* ==========================================================================
   Multi-Colored Themed FAQ Accordion Gradients (16 Distinct Non-Repeating Themes)
   ========================================================================== */

/* Theme 1: Electric Indigo & Violet */
.faq-card:nth-child(16n + 1).open,
.faq-card:nth-of-type(16n + 1).open,
.faq-card[data-faq-idx="0"].open {
  border-color: rgba(99, 102, 241, 0.55) !important;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(139, 92, 246, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(139, 92, 246, 0.25) !important;
}

.faq-card:nth-child(16n + 1).open::before,
.faq-card:nth-of-type(16n + 1).open::before,
.faq-card[data-faq-idx="0"].open::before {
  background: linear-gradient(180deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.faq-card:nth-child(16n + 1).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 1).open .faq-toggle-icon,
.faq-card[data-faq-idx="0"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
}

.faq-card:nth-child(16n + 1):hover,
.faq-card:nth-of-type(16n + 1):hover,
.faq-card[data-faq-idx="0"]:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq-card:nth-child(16n + 1):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 1):hover .faq-toggle-icon,
.faq-card[data-faq-idx="0"]:hover .faq-toggle-icon {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

/* Theme 2: Cyber Azure & Electric Cyan */
.faq-card:nth-child(16n + 2).open,
.faq-card:nth-of-type(16n + 2).open,
.faq-card[data-faq-idx="1"].open {
  border-color: rgba(6, 182, 212, 0.55) !important;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(56, 189, 248, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(56, 189, 248, 0.25) !important;
}

.faq-card:nth-child(16n + 2).open::before,
.faq-card:nth-of-type(16n + 2).open::before,
.faq-card[data-faq-idx="1"].open::before {
  background: linear-gradient(180deg, #06b6d4, #38bdf8) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.faq-card:nth-child(16n + 2).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 2).open .faq-toggle-icon,
.faq-card[data-faq-idx="1"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #06b6d4, #38bdf8) !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45) !important;
}

.faq-card:nth-child(16n + 2):hover,
.faq-card:nth-of-type(16n + 2):hover,
.faq-card[data-faq-idx="1"]:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.faq-card:nth-child(16n + 2):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 2):hover .faq-toggle-icon,
.faq-card[data-faq-idx="1"]:hover .faq-toggle-icon {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

/* Theme 3: Quantum Emerald & Neo Mint */
.faq-card:nth-child(16n + 3).open,
.faq-card:nth-of-type(16n + 3).open,
.faq-card[data-faq-idx="2"].open {
  border-color: rgba(16, 185, 129, 0.55) !important;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(52, 211, 153, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(52, 211, 153, 0.25) !important;
}

.faq-card:nth-child(16n + 3).open::before,
.faq-card:nth-of-type(16n + 3).open::before,
.faq-card[data-faq-idx="2"].open::before {
  background: linear-gradient(180deg, #10b981, #34d399) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.faq-card:nth-child(16n + 3).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 3).open .faq-toggle-icon,
.faq-card[data-faq-idx="2"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

.faq-card:nth-child(16n + 3):hover,
.faq-card:nth-of-type(16n + 3):hover,
.faq-card[data-faq-idx="2"]:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.faq-card:nth-child(16n + 3):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 3):hover .faq-toggle-icon,
.faq-card[data-faq-idx="2"]:hover .faq-toggle-icon {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Theme 4: Solar Sunset Amber & Flame Orange */
.faq-card:nth-child(16n + 4).open,
.faq-card:nth-of-type(16n + 4).open,
.faq-card[data-faq-idx="3"].open {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(234, 88, 12, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.22), inset 0 1px 0 rgba(234, 88, 12, 0.25) !important;
}

.faq-card:nth-child(16n + 4).open::before,
.faq-card:nth-of-type(16n + 4).open::before,
.faq-card[data-faq-idx="3"].open::before {
  background: linear-gradient(180deg, #f59e0b, #ea580c) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.faq-card:nth-child(16n + 4).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 4).open .faq-toggle-icon,
.faq-card[data-faq-idx="3"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45) !important;
}

.faq-card:nth-child(16n + 4):hover,
.faq-card:nth-of-type(16n + 4):hover,
.faq-card[data-faq-idx="3"]:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.faq-card:nth-child(16n + 4):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 4):hover .faq-toggle-icon,
.faq-card[data-faq-idx="3"]:hover .faq-toggle-icon {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

/* Theme 5: Hyper Rose & Radiant Pink */
.faq-card:nth-child(16n + 5).open,
.faq-card:nth-of-type(16n + 5).open,
.faq-card[data-faq-idx="4"].open {
  border-color: rgba(244, 63, 94, 0.55) !important;
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(236, 72, 153, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 63, 94, 0.22), inset 0 1px 0 rgba(236, 72, 153, 0.25) !important;
}

.faq-card:nth-child(16n + 5).open::before,
.faq-card:nth-of-type(16n + 5).open::before,
.faq-card[data-faq-idx="4"].open::before {
  background: linear-gradient(180deg, #f43f5e, #ec4899) !important;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.6);
}

.faq-card:nth-child(16n + 5).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 5).open .faq-toggle-icon,
.faq-card[data-faq-idx="4"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #f43f5e, #ec4899) !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.45) !important;
}

.faq-card:nth-child(16n + 5):hover,
.faq-card:nth-of-type(16n + 5):hover,
.faq-card[data-faq-idx="4"]:hover {
  border-color: rgba(244, 63, 94, 0.4);
}

.faq-card:nth-child(16n + 5):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 5):hover .faq-toggle-icon,
.faq-card[data-faq-idx="4"]:hover .faq-toggle-icon {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

/* Theme 6: Deep Cosmic Purple & Neon Magenta */
.faq-card:nth-child(16n + 6).open,
.faq-card:nth-of-type(16n + 6).open,
.faq-card[data-faq-idx="5"].open {
  border-color: rgba(139, 92, 246, 0.55) !important;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(217, 70, 239, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(217, 70, 239, 0.25) !important;
}

.faq-card:nth-child(16n + 6).open::before,
.faq-card:nth-of-type(16n + 6).open::before,
.faq-card[data-faq-idx="5"].open::before {
  background: linear-gradient(180deg, #8b5cf6, #d946ef) !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.faq-card:nth-child(16n + 6).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 6).open .faq-toggle-icon,
.faq-card[data-faq-idx="5"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #8b5cf6, #d946ef) !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45) !important;
}

.faq-card:nth-child(16n + 6):hover,
.faq-card:nth-of-type(16n + 6):hover,
.faq-card[data-faq-idx="5"]:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.faq-card:nth-child(16n + 6):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 6):hover .faq-toggle-icon,
.faq-card[data-faq-idx="5"]:hover .faq-toggle-icon {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

/* Theme 7: Luminous Teal & Deep Ocean Blue */
.faq-card:nth-child(16n + 7).open,
.faq-card:nth-of-type(16n + 7).open,
.faq-card[data-faq-idx="6"].open {
  border-color: rgba(20, 184, 166, 0.55) !important;
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(2, 132, 199, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(20, 184, 166, 0.22), inset 0 1px 0 rgba(2, 132, 199, 0.25) !important;
}

.faq-card:nth-child(16n + 7).open::before,
.faq-card:nth-of-type(16n + 7).open::before,
.faq-card[data-faq-idx="6"].open::before {
  background: linear-gradient(180deg, #14b8a6, #0284c7) !important;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
}

.faq-card:nth-child(16n + 7).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 7).open .faq-toggle-icon,
.faq-card[data-faq-idx="6"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #14b8a6, #0284c7) !important;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.45) !important;
}

.faq-card:nth-child(16n + 7):hover,
.faq-card:nth-of-type(16n + 7):hover,
.faq-card[data-faq-idx="6"]:hover {
  border-color: rgba(20, 184, 166, 0.4);
}

.faq-card:nth-child(16n + 7):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 7):hover .faq-toggle-icon,
.faq-card[data-faq-idx="6"]:hover .faq-toggle-icon {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(20, 184, 166, 0.35);
  color: #2dd4bf;
}

/* Theme 8: Vibrant Crimson & Deep Ruby Flame */
.faq-card:nth-child(16n + 8).open,
.faq-card:nth-of-type(16n + 8).open,
.faq-card[data-faq-idx="7"].open {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(190, 18, 60, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(239, 68, 68, 0.22), inset 0 1px 0 rgba(190, 18, 60, 0.25) !important;
}

.faq-card:nth-child(16n + 8).open::before,
.faq-card:nth-of-type(16n + 8).open::before,
.faq-card[data-faq-idx="7"].open::before {
  background: linear-gradient(180deg, #ef4444, #be123c) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.faq-card:nth-child(16n + 8).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 8).open .faq-toggle-icon,
.faq-card[data-faq-idx="7"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #ef4444, #be123c) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
}

.faq-card:nth-child(16n + 8):hover,
.faq-card:nth-of-type(16n + 8):hover,
.faq-card[data-faq-idx="7"]:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.faq-card:nth-child(16n + 8):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 8):hover .faq-toggle-icon,
.faq-card[data-faq-idx="7"]:hover .faq-toggle-icon {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Theme 9: Electric Lime & Forest Jade */
.faq-card:nth-child(16n + 9).open,
.faq-card:nth-of-type(16n + 9).open,
.faq-card[data-faq-idx="8"].open {
  border-color: rgba(132, 204, 22, 0.55) !important;
  background: linear-gradient(145deg, rgba(132, 204, 22, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(16, 185, 129, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(132, 204, 22, 0.22), inset 0 1px 0 rgba(16, 185, 129, 0.25) !important;
}

.faq-card:nth-child(16n + 9).open::before,
.faq-card:nth-of-type(16n + 9).open::before,
.faq-card[data-faq-idx="8"].open::before {
  background: linear-gradient(180deg, #84cc16, #10b981) !important;
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.6);
}

.faq-card:nth-child(16n + 9).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 9).open .faq-toggle-icon,
.faq-card[data-faq-idx="8"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #84cc16, #10b981) !important;
  box-shadow: 0 4px 14px rgba(132, 204, 22, 0.45) !important;
}

.faq-card:nth-child(16n + 9):hover,
.faq-card:nth-of-type(16n + 9):hover,
.faq-card[data-faq-idx="8"]:hover {
  border-color: rgba(132, 204, 22, 0.4);
}

.faq-card:nth-child(16n + 9):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 9):hover .faq-toggle-icon,
.faq-card[data-faq-idx="8"]:hover .faq-toggle-icon {
  background: rgba(132, 204, 22, 0.16);
  border-color: rgba(132, 204, 22, 0.35);
  color: #a3e635;
}

/* Theme 10: Ultramarine Blue & Deep Royal Cobalt */
.faq-card:nth-child(16n + 10).open,
.faq-card:nth-of-type(16n + 10).open,
.faq-card[data-faq-idx="9"].open {
  border-color: rgba(37, 99, 235, 0.55) !important;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(79, 70, 229, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(79, 70, 229, 0.25) !important;
}

.faq-card:nth-child(16n + 10).open::before,
.faq-card:nth-of-type(16n + 10).open::before,
.faq-card[data-faq-idx="9"].open::before {
  background: linear-gradient(180deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.faq-card:nth-child(16n + 10).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 10).open .faq-toggle-icon,
.faq-card[data-faq-idx="9"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.faq-card:nth-child(16n + 10):hover,
.faq-card:nth-of-type(16n + 10):hover,
.faq-card[data-faq-idx="9"]:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.faq-card:nth-child(16n + 10):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 10):hover .faq-toggle-icon,
.faq-card[data-faq-idx="9"]:hover .faq-toggle-icon {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
  color: #60a5fa;
}

/* Theme 11: Golden Topaz & Sunlit Tangerine */
.faq-card:nth-child(16n + 11).open,
.faq-card:nth-of-type(16n + 11).open,
.faq-card[data-faq-idx="10"].open {
  border-color: rgba(234, 179, 8, 0.55) !important;
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(249, 115, 22, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(234, 179, 8, 0.22), inset 0 1px 0 rgba(249, 115, 22, 0.25) !important;
}

.faq-card:nth-child(16n + 11).open::before,
.faq-card:nth-of-type(16n + 11).open::before,
.faq-card[data-faq-idx="10"].open::before {
  background: linear-gradient(180deg, #eab308, #f97316) !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.faq-card:nth-child(16n + 11).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 11).open .faq-toggle-icon,
.faq-card[data-faq-idx="10"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #eab308, #f97316) !important;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45) !important;
}

.faq-card:nth-child(16n + 11):hover,
.faq-card:nth-of-type(16n + 11):hover,
.faq-card[data-faq-idx="10"]:hover {
  border-color: rgba(234, 179, 8, 0.4);
}

.faq-card:nth-child(16n + 11):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 11):hover .faq-toggle-icon,
.faq-card[data-faq-idx="10"]:hover .faq-toggle-icon {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.35);
  color: #fde047;
}

/* Theme 12: Neon Orchid & Pastel Fuchsia */
.faq-card:nth-child(16n + 12).open,
.faq-card:nth-of-type(16n + 12).open,
.faq-card[data-faq-idx="11"].open {
  border-color: rgba(192, 132, 252, 0.55) !important;
  background: linear-gradient(145deg, rgba(192, 132, 252, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(244, 114, 182, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(192, 132, 252, 0.22), inset 0 1px 0 rgba(244, 114, 182, 0.25) !important;
}

.faq-card:nth-child(16n + 12).open::before,
.faq-card:nth-of-type(16n + 12).open::before,
.faq-card[data-faq-idx="11"].open::before {
  background: linear-gradient(180deg, #c084fc, #f472b6) !important;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
}

.faq-card:nth-child(16n + 12).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 12).open .faq-toggle-icon,
.faq-card[data-faq-idx="11"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #c084fc, #f472b6) !important;
  box-shadow: 0 4px 14px rgba(192, 132, 252, 0.45) !important;
}

.faq-card:nth-child(16n + 12):hover,
.faq-card:nth-of-type(16n + 12):hover,
.faq-card[data-faq-idx="11"]:hover {
  border-color: rgba(192, 132, 252, 0.4);
}

.faq-card:nth-child(16n + 12):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 12):hover .faq-toggle-icon,
.faq-card[data-faq-idx="11"]:hover .faq-toggle-icon {
  background: rgba(192, 132, 252, 0.16);
  border-color: rgba(192, 132, 252, 0.35);
  color: #e879f9;
}

/* Theme 13: Glacial Sky & Arctic Aqua */
.faq-card:nth-child(16n + 13).open,
.faq-card:nth-of-type(16n + 13).open,
.faq-card[data-faq-idx="12"].open {
  border-color: rgba(56, 189, 248, 0.55) !important;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(45, 212, 191, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.22), inset 0 1px 0 rgba(45, 212, 191, 0.25) !important;
}

.faq-card:nth-child(16n + 13).open::before,
.faq-card:nth-of-type(16n + 13).open::before,
.faq-card[data-faq-idx="12"].open::before {
  background: linear-gradient(180deg, #38bdf8, #2dd4bf) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.faq-card:nth-child(16n + 13).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 13).open .faq-toggle-icon,
.faq-card[data-faq-idx="12"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #38bdf8, #2dd4bf) !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45) !important;
}

.faq-card:nth-child(16n + 13):hover,
.faq-card:nth-of-type(16n + 13):hover,
.faq-card[data-faq-idx="12"]:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.faq-card:nth-child(16n + 13):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 13):hover .faq-toggle-icon,
.faq-card[data-faq-idx="12"]:hover .faq-toggle-icon {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

/* Theme 14: Sunset Coral & Crimson Glow */
.faq-card:nth-child(16n + 14).open,
.faq-card:nth-of-type(16n + 14).open,
.faq-card[data-faq-idx="13"].open {
  border-color: rgba(251, 146, 60, 0.55) !important;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(225, 29, 72, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(251, 146, 60, 0.22), inset 0 1px 0 rgba(225, 29, 72, 0.25) !important;
}

.faq-card:nth-child(16n + 14).open::before,
.faq-card:nth-of-type(16n + 14).open::before,
.faq-card[data-faq-idx="13"].open::before {
  background: linear-gradient(180deg, #fb923c, #e11d48) !important;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.6);
}

.faq-card:nth-child(16n + 14).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 14).open .faq-toggle-icon,
.faq-card[data-faq-idx="13"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #fb923c, #e11d48) !important;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.45) !important;
}

.faq-card:nth-child(16n + 14):hover,
.faq-card:nth-of-type(16n + 14):hover,
.faq-card[data-faq-idx="13"]:hover {
  border-color: rgba(251, 146, 60, 0.4);
}

.faq-card:nth-child(16n + 14):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 14):hover .faq-toggle-icon,
.faq-card[data-faq-idx="13"]:hover .faq-toggle-icon {
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fb923c;
}

/* Theme 15: Cyber Lavender & Royal Periwinkle */
.faq-card:nth-child(16n + 15).open,
.faq-card:nth-of-type(16n + 15).open,
.faq-card[data-faq-idx="14"].open {
  border-color: rgba(167, 139, 250, 0.55) !important;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(96, 165, 250, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(167, 139, 250, 0.22), inset 0 1px 0 rgba(96, 165, 250, 0.25) !important;
}

.faq-card:nth-child(16n + 15).open::before,
.faq-card:nth-of-type(16n + 15).open::before,
.faq-card[data-faq-idx="14"].open::before {
  background: linear-gradient(180deg, #a78bfa, #60a5fa) !important;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

.faq-card:nth-child(16n + 15).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 15).open .faq-toggle-icon,
.faq-card[data-faq-idx="14"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #a78bfa, #60a5fa) !important;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.45) !important;
}

.faq-card:nth-child(16n + 15):hover,
.faq-card:nth-of-type(16n + 15):hover,
.faq-card[data-faq-idx="14"]:hover {
  border-color: rgba(167, 139, 250, 0.4);
}

.faq-card:nth-child(16n + 15):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 15):hover .faq-toggle-icon,
.faq-card[data-faq-idx="14"]:hover .faq-toggle-icon {
  background: rgba(167, 139, 250, 0.16);
  border-color: rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
}

/* Theme 16: Pistachio Bright & Deep Seafoam */
.faq-card:nth-child(16n + 16).open,
.faq-card:nth-of-type(16n + 16).open,
.faq-card[data-faq-idx="15"].open {
  border-color: rgba(163, 230, 53, 0.55) !important;
  background: linear-gradient(145deg, rgba(163, 230, 53, 0.14) 0%, rgba(13, 19, 35, 0.95) 55%, rgba(5, 150, 105, 0.08) 100%) !important;
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(163, 230, 53, 0.22), inset 0 1px 0 rgba(5, 150, 105, 0.25) !important;
}

.faq-card:nth-child(16n + 16).open::before,
.faq-card:nth-of-type(16n + 16).open::before,
.faq-card[data-faq-idx="15"].open::before {
  background: linear-gradient(180deg, #a3e635, #059669) !important;
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.6);
}

.faq-card:nth-child(16n + 16).open .faq-toggle-icon,
.faq-card:nth-of-type(16n + 16).open .faq-toggle-icon,
.faq-card[data-faq-idx="15"].open .faq-toggle-icon {
  background: linear-gradient(135deg, #a3e635, #059669) !important;
  box-shadow: 0 4px 14px rgba(163, 230, 53, 0.45) !important;
}

.faq-card:nth-child(16n + 16):hover,
.faq-card:nth-of-type(16n + 16):hover,
.faq-card[data-faq-idx="15"]:hover {
  border-color: rgba(163, 230, 53, 0.4);
}

.faq-card:nth-child(16n + 16):hover .faq-toggle-icon,
.faq-card:nth-of-type(16n + 16):hover .faq-toggle-icon,
.faq-card[data-faq-idx="15"]:hover .faq-toggle-icon {
  background: rgba(163, 230, 53, 0.16);
  border-color: rgba(163, 230, 53, 0.35);
  color: #bef264;
}

.faq-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.faq-header:hover {
  color: #c7d2fe;
}

.faq-card.open .faq-header {
  color: #ffffff;
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
}

.faq-card:hover .faq-toggle-icon {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

.faq-card.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  border-top: 1px solid transparent;
}

.faq-card.open .faq-body {
  max-height: 800px;
  opacity: 1;
  padding: 14px 20px 18px 20px;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.faq-body a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-body a:hover {
  color: #c7d2fe;
}

/* Security Architecture & Steps */
.flow-step-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: var(--transition);
}

.flow-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.security-pillar {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.security-pillar strong {
  color: #fff;
}

/* =========================================================
   DOMAIN SEO & INFORMATION ARCHITECTURE STYLES
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: 18px;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 6px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 13.5px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* =========================================================
   COMPARISON MATRIX & BENCHMARK TABLES
   ========================================================= */
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(17, 24, 40, 0.9) 0%, rgba(12, 17, 29, 0.96) 100%);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(99, 102, 241, 0.08);
  margin-top: 18px;
  position: relative;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
  table-layout: auto;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
  white-space: nowrap !important;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #e2e8f0;
  letter-spacing: -0.2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 18px;
}

.comparison-table th:first-child {
  border-top-left-radius: 17px;
}

.comparison-table th:last-child {
  border-top-right-radius: 17px;
}

.comparison-table tr:last-child td:first-child {
  border-bottom-left-radius: 17px;
}

.comparison-table tr:last-child td:last-child {
  border-bottom-right-radius: 17px;
}

.comparison-table tbody tr {
  transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

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

/* Highlighted Column */
.comparison-table th.highlight {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
  border-left: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-right: 1px solid rgba(99, 102, 241, 0.35) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #ffffff !important;
  position: relative;
}

.comparison-table td.highlight {
  background: rgba(99, 102, 241, 0.07) !important;
  border-left: 1px solid rgba(99, 102, 241, 0.25) !important;
  border-right: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #ffffff;
}

.comparison-table tbody tr:hover td.highlight {
  background: rgba(99, 102, 241, 0.12) !important;
}

/* Modern Check & Cross Badges */
.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.check-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.cross-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.cross-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.spec-metric {
  font-weight: 700;
  color: #f1f5f9;
  font-size: 13.5px;
}

.highlight-metric {
  color: #a5b4fc;
}

.spec-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-left: 3px;
}

/* =========================================================
   USE CASES & EVERYDAY TRANSFER SCENARIO CARDS
   ========================================================= */
.use-case-card {
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.7), rgba(14, 21, 38, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.use-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.use-case-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.38);
  background: linear-gradient(145deg, rgba(26, 36, 62, 0.82), rgba(16, 25, 46, 0.95));
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.12);
}

.use-case-card:hover::before,
.use-case-card:hover::after {
  opacity: 1;
}

/* Theme color accents */
.use-case-card.theme-code::before {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
}

.use-case-card.theme-code:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(6, 182, 212, 0.15);
}

.use-case-card.theme-code .use-case-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.2));
  border-color: rgba(6, 182, 212, 0.35);
  color: #38bdf8;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.18);
}

.use-case-card.theme-code .use-case-tag {
  background: rgba(6, 182, 212, 0.1);
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.25);
}

.use-case-card.theme-media::before {
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
}

.use-case-card.theme-media:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.15);
}

.use-case-card.theme-media .use-case-icon {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.2));
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.18);
}

.use-case-card.theme-media .use-case-tag {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.use-case-card.theme-device::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
}

.use-case-card.theme-device:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.15);
}

.use-case-card.theme-device .use-case-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(20, 184, 166, 0.2));
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
}

.use-case-card.theme-device .use-case-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.use-case-card.theme-secure::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
}

.use-case-card.theme-secure:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.15);
}

.use-case-card.theme-secure .use-case-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(244, 63, 94, 0.2));
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.use-case-card.theme-secure .use-case-tag {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.use-case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.use-case-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.use-case-card:hover .use-case-icon {
  transform: scale(1.08);
}

.use-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.use-case-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 14px 0 8px;
  letter-spacing: -0.2px;
}

.use-case-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.use-case-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  margin-top: 14px;
}

/* Technical Specification Matrix */
.tech-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #cbd5e1;
  font-family: 'Outfit', monospace;
}

/* Admin Panel Modern SaaS Tabs & Tooling */
.admin-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.3);
}

.admin-tab.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.admin-tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.2s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-admin-card {
  background: rgba(18, 25, 41, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: var(--transition);
}

.plan-admin-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--card-shadow-3d);
}

.plan-admin-card.inactive {
  opacity: 0.6;
  border-style: dashed;
}

/* Modal Dialogs */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Share Details Modal Styles */
.share-modal-box {
  max-width: 620px;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.12) 0%, #0f172a 100%), #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.share-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  padding-right: 32px;
}

.share-detail-code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-detail-code-badge {
  font-family: monospace;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #fff;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(129, 140, 248, 0.4);
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-detail-code-badge:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: #818cf8;
}

.share-detail-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.share-detail-actions-bar .btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-detail-body {
  display: grid;
  grid-template-columns: minmax(154px, 162px) 1fr;
  gap: 16px;
  align-items: stretch;
}

.share-detail-qr-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.share-detail-qr-card .qr-wrap {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Zero-shaking & Clean styling when displaying Animated QR Stream in Modal */
.share-detail-qr-card.has-aqr,
.share-detail-qr-card:has(.animated-qr-player) {
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(236, 72, 153, 0.28) !important;
  justify-content: flex-start !important;
}

.share-detail-qr-card .qr-wrap.has-aqr,
.share-detail-qr-card .qr-wrap:has(.animated-qr-player) {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: block !important;
  width: 100% !important;
}

/* Landing Page Result Box: Keep on LEFT side, side-by-side with description text */
.qr-box.has-aqr,
.qr-box:has(.animated-qr-player) {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  width: auto !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  align-self: flex-start !important;
}

.qr-box .animated-qr-player {
  margin: 0 !important;
}

.share-detail-preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.share-detail-content-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  max-height: 140px;
  overflow-y: auto;
  word-break: break-word;
  white-space: pre-wrap;
  color: #e2e8f0;
}

.share-detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.share-detail-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
}

.share-detail-meta-item strong {
  color: #f1f5f9;
}

@media (max-width: 600px) {
  .share-detail-actions-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .share-detail-body {
    grid-template-columns: 1fr;
  }

  .share-detail-qr-card {
    flex-direction: column;
    align-items: center;
  }
}

.actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-insights {
  border-color: rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08) !important;
  transition: all 0.2s ease !important;
}

.btn-insights svg {
  stroke: currentColor !important;
}

.btn-insights:hover {
  background: rgba(56, 189, 248, 0.18) !important;
  border-color: #38bdf8 !important;
  color: #7dd3fc !important;
}

/* File Transfer Insights & Telemetry Modal */
.insights-modal-box {
  max-width: 820px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.14) 0%, rgba(99, 102, 241, 0.08) 35%, #0b1120 75%, #060913 100%), #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.15);
}

.insights-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.insights-kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insights-kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.insights-kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.insights-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.insights-milestones-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
}

.insights-milestone-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 8px;
}

.insights-milestone-item:last-child {
  border-right: none;
}

.insights-milestone-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.insights-milestone-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.insights-chart-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

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

.insights-filter-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 2px;
}

.insights-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.insights-filter-btn.active {
  background: #38bdf8;
  color: #041226;
  font-weight: 700;
}

.insights-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

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

  .insights-milestones-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .insights-milestone-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
  }

  .insights-secondary-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Admin User Insights & Visitor Telemetry Executive UI
   ======================================================== */
.admin-user-insights-modal-box {
  max-width: 1140px !important;
  width: 95vw !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.06) 35%, #0b1120 75%, #070a14 100%), #0b1120 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(14, 165, 233, 0.15) !important;
}

.telemetry-grid-5col {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

.insights-chart-card-compact {
  background: #0f172a !important;
  border: 1px solid rgba(56, 189, 248, 0.16) !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  margin-bottom: 16px !important;
}

.insights-velocity-wrap {
  position: relative !important;
  width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  overflow: hidden !important;
}

.insights-velocity-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
}

.telemetry-charts-grid-2col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.telemetry-card {
  background: #0f172a !important;
  border: 1px solid rgba(56, 189, 248, 0.16) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 220px !important;
  max-height: 240px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.telemetry-card:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.telemetry-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.telemetry-card-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-chart-compact-wrap {
  position: relative !important;
  width: 100% !important;
  height: 130px !important;
  max-height: 130px !important;
  overflow: hidden !important;
}

.telemetry-chart-compact-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 130px !important;
  max-height: 130px !important;
}

.telemetry-chart-center-badge {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.telemetry-center-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
}

.telemetry-center-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.telemetry-legend-count {
  color: #fff;
  font-weight: 700;
}

.telemetry-carrier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.telemetry-carrier-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.telemetry-carrier-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-carrier-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.telemetry-carrier-name {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-carrier-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.telemetry-carrier-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.telemetry-carrier-right {
  text-align: right;
  min-width: 120px;
}

.telemetry-carrier-stats {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 5px;
}

.telemetry-carrier-pct {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

.telemetry-carrier-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.telemetry-carrier-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 999px;
}

.telemetry-chip-ip,
.telemetry-chip-net {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 6px 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #cbd5e1;
}

.telemetry-carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e0f2fe;
}

.telemetry-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  flex-shrink: 0;
}

.telemetry-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.telemetry-copy-btn:active {
  transform: scale(0.95);
}

.telemetry-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10b981 !important;
  color: #34d399 !important;
}

.telemetry-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.telemetry-search-icon {
  position: absolute;
  left: 12px;
  pointer-events: none;
  color: #64748b;
  transition: color 0.2s;
}

.telemetry-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 8px 100px 8px 34px !important;
  color: #f8fafc !important;
  font-size: 12px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box;
}

.telemetry-search-input:focus {
  border-color: #38bdf8 !important;
  background: #0f172a !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.telemetry-search-input:focus+.telemetry-search-icon,
.telemetry-search-wrapper:focus-within .telemetry-search-icon {
  color: #38bdf8;
}

.telemetry-search-input::placeholder {
  color: #64748b;
}

.telemetry-search-count {
  position: absolute;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.telemetry-badge-event {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.telemetry-badge-dl {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.telemetry-badge-view {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.1);
}

.telemetry-table-wrapper {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #0f172a;
}

.telemetry-audit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.telemetry-audit-table th {
  position: sticky;
  top: 0;
  background: #0a0f1d;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  z-index: 5;
}

.telemetry-audit-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: #e2e8f0;
}

.telemetry-audit-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* Announcement Banner & Running Marquee Ticker */
.announcement-banner {
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #ec4899);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.announcement-marquee {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
}

.announcement-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: announcementScroll 36s linear infinite;
}

.announcement-banner:hover .announcement-track {
  animation-play-state: paused;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 60px;
  flex-shrink: 0;
}

.announcement-item svg {
  flex-shrink: 0;
}

@keyframes announcementScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.announcement-close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.announcement-close-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.08);
}

.announcement-close-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Defensive: Suppress Announcement Banner in Admin Portal */
body.admin-body .announcement-banner,
.admin-wrapper .announcement-banner,
body[data-page^="admin"] .announcement-banner,
.admin-page .announcement-banner,
.admin-layout .announcement-banner,
#adminApp .announcement-banner {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  visibility: hidden !important;
}

.announcement-banner[style*="display: none"],
.announcement-banner[style*="display:none"],
.announcement-banner:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Media Queries & Mobile Responsiveness System */
@media (max-width: 900px) {

  .grid2,
  .grid3,
  .grid4,
  .receive-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .auth-split,
  .support-layout {
    grid-template-columns: 1fr !important;
    gap: 20px;
    min-height: auto;
    margin: 14px auto 28px;
  }

  .navlinks:not(.admin-navlinks) {
    display: none;
  }

  .nav-dropdown-menu {
    display: none !important;
  }

  .admin-navlinks {
    display: flex !important;
    gap: 6px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 12px 0 8px;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.22;
    margin-bottom: 7px;
    letter-spacing: -0.4px;
  }

  .hero p,
  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #94a3b8 !important;
    max-width: 350px !important;
    margin: 0 auto 12px !important;
    padding: 0 4px !important;
  }

  .user-greeting-wrapper {
    margin: 0 auto 14px !important;
    padding: 0 2px !important;
  }

  .user-greeting-card {
    padding: 9px 12px !important;
    border-radius: 13px !important;
    min-height: 58px !important;
    gap: 6px !important;
  }

  .user-greeting-identity {
    font-size: 12.5px !important;
    gap: 6px !important;
  }

  .user-greeting-lead {
    font-size: 11.5px !important;
  }

  .user-greeting-name {
    font-size: 12.5px !important;
    max-width: 155px !important;
  }

  .user-greeting-dash-link {
    font-size: 11px !important;
    padding: 3px 9px !important;
  }

  .user-greeting-bottom {
    padding-top: 5px !important;
    gap: 5px 8px !important;
  }

  .user-greeting-plan-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }

  .user-greeting-spec {
    font-size: 11px !important;
    gap: 3.5px !important;
  }

  .user-greeting-spec svg {
    width: 11px !important;
    height: 11px !important;
  }

  .user-greeting-skeleton {
    min-height: 58px !important;
    padding: 9px 12px !important;
  }

  .card {
    padding: 18px 20px;
  }

  .code {
    font-size: 20px;
    letter-spacing: 2.5px;
  }

  .features-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .admin-tab-bar::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .table {
    min-width: 580px;
  }

  /* Receiver Read-Only Code Viewer Mobile Horizontal Scroll & Structure */
  .receive-grid,
  .receive-grid .card,
  #receiveResult,
  .result {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Receive Input Row Responsive Fitting */
  .receive-input-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .receive-input-row input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .receive-input-row button,
  .receive-input-row #receiveBtn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  /* Generic Actions Buttons Fallback */
  .actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
    max-width: 100% !important;
  }

  .actions .btn,
  .actions a.btn {
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    display: inline-flex !important;
  }

  /* Receiving Page Action Buttons Mobile Responsive Redesign (Samsung Galaxy & Mobile Viewports) */
  #receiveResult .actions,
  .result .actions {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    margin-top: 10px !important;
    align-items: stretch !important;
  }

  #receiveResult .actions .btn,
  #receiveResult .actions a.btn,
  .result .actions .btn,
  .result .actions a.btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  #receiveResult .actions .btn svg,
  #receiveResult .actions a.btn svg,
  .result .actions .btn svg,
  .result .actions a.btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
  }

  /* Mobile Secondary / Light Buttons (Copy Content, Edit Code, Copy URL, Copy Note) */
  #receiveResult .actions .btn.light,
  #receiveResult .actions a.btn.light,
  .result .actions .btn.light,
  .result .actions a.btn.light {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    color: #f1f5f9 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }

  #receiveResult .actions .btn.light:active,
  #receiveResult .actions a.btn.light:active,
  .result .actions .btn.light:active,
  .result .actions a.btn.light:active {
    transform: scale(0.98) !important;
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: rgba(99, 102, 241, 0.45) !important;
  }

  /* Mobile Primary Buttons (Download File, Open Link, Download Note) */
  #receiveResult .actions .btn.primary,
  #receiveResult .actions a.btn.primary,
  .result .actions .btn.primary,
  .result .actions a.btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  }

  #receiveResult .actions .btn.primary:active,
  #receiveResult .actions a.btn.primary:active,
  .result .actions .btn.primary:active,
  .result .actions a.btn.primary:active {
    transform: scale(0.98) !important;
    filter: brightness(1.1) !important;
  }

  /* Mobile: Single Action Button Spans Full Width */
  #receiveResult .actions> :only-child,
  .result .actions> :only-child {
    grid-column: 1 / -1 !important;
    height: 40px !important;
  }

  /* Mobile: 3-Button Layout - 3rd button spans full width row (e.g. Download File below Copy & Edit) */
  #receiveResult .actions> :nth-child(3):last-child,
  .result .actions> :nth-child(3):last-child {
    grid-column: 1 / -1 !important;
    height: 40px !important;
  }

  /* Receive Input Button on Mobile */
  .receive-input-row #receiveBtn {
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    -webkit-tap-highlight-color: transparent;
  }

  .receive-input-row #receiveBtn:active:not(:disabled) {
    transform: scale(0.98) !important;
  }

  /* Receiver Code Viewer Live Preview Button on Mobile */
  .editor-toolbar #receiverRunBtn {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    -webkit-tap-highlight-color: transparent;
  }

  .editor-toolbar #receiverRunBtn:active:not(:disabled) {
    transform: scale(0.98) !important;
  }

  /* Code Viewer Responsive Container & Internal Scroll Body */
  .code-viewer-component {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .code-viewer-container {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    touch-action: pan-x pan-y;
  }

  #receiverGutter,
  .code-viewer-container .editor-gutter {
    width: 32px !important;
    padding: 12px 0 !important;
  }

  #receiverLineNumbers,
  .code-viewer-container .editor-line-numbers {
    font-size: 11.5px !important;
    line-height: 22px !important;
    padding-right: 5px !important;
    padding-left: 2px !important;
    letter-spacing: -0.3px !important;
  }

  #receiverCodeBody,
  pre#receiverCodeBody.code-viewer-body,
  .code-viewer-container .code-viewer-body,
  .code-viewer-body,
  pre.code-viewer-body,
  pre.code-viewer-body.code-highlight-block {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 32px) !important;
    width: 0 !important;
    padding: 12px 6px !important;
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    font-size: 13px !important;
    line-height: 22px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(8, 12, 20, 0.8) !important;
    box-sizing: border-box !important;
  }

  .code-viewer-body code,
  pre.code-viewer-body code {
    white-space: pre !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    display: inline-block;
    min-width: 100%;
  }

  .code-viewer-body::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    display: block !important;
  }

  .code-viewer-body::-webkit-scrollbar-track {
    background: rgba(8, 12, 20, 0.7) !important;
  }

  .code-viewer-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.6) !important;
    border-radius: 4px !important;
  }

  .code-viewer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.9) !important;
  }
}

@media (max-width: 768px) {

  /* Prevent iOS Safari auto-zoom on field focus */
  .field input,
  .field select,
  .field textarea:not(.code-editor-textarea),
  .password-wrapper input {
    font-size: 16px !important;
  }

  /* Code Editor & Code Viewer Compact Mobile Visibility & Spacing Optimization */
  #editorGutter,
  #receiverGutter,
  .editor-gutter,
  .code-viewer-container .editor-gutter {
    width: 32px !important;
    padding: 12px 0 !important;
  }

  #editorLineNumbers,
  #receiverLineNumbers,
  .editor-line-numbers,
  .code-viewer-container .editor-line-numbers {
    font-size: 11.5px !important;
    line-height: 22px !important;
    padding-right: 5px !important;
    padding-left: 2px !important;
    letter-spacing: -0.3px !important;
  }

  #receiverCodeBody,
  pre#receiverCodeBody.code-viewer-body,
  .code-viewer-container .code-viewer-body,
  .field textarea.code-editor-textarea,
  textarea.code-editor-textarea,
  .code-editor-textarea,
  .code-editor-backdrop,
  .code-viewer-body,
  pre.code-viewer-body,
  pre.code-viewer-body.code-highlight-block {
    padding: 12px 6px !important;
  }

  #receiverCodeBody,
  pre#receiverCodeBody.code-viewer-body,
  .code-viewer-container .code-viewer-body,
  .code-viewer-body,
  pre.code-viewer-body,
  pre.code-viewer-body.code-highlight-block {
    max-width: calc(100% - 32px) !important;
  }

  .editor-footer {
    padding: 6px 8px !important;
  }

  .field input,
  .field select {
    height: 44px;
  }

  .btn {
    height: 42px;
    font-size: 14px;
  }

  .btn.sm {
    height: 34px;
    font-size: 12.5px;
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 86vh;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    padding: 20px 16px 28px;
  }

  .modal-box .grid2,
  .modal-box .grid3,
  .modal-box .grid4 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .pricing-card {
    padding: 20px 18px;
  }
}

@media (max-width: 600px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 14px !important;
  }

  .card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .hero-badge {
    font-size: 11px;
    padding: 3px 11px;
    max-width: 100%;
    margin-bottom: 8px;
    word-break: break-word;
    text-align: center;
    justify-content: center;
  }

  .hero p,
  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    padding: 0 4px !important;
    margin: 0 auto 12px !important;
  }

  .share-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 5px;
  }

  .tab {
    min-width: 0;
    padding: 9px 8px;
    font-size: 13px;
    gap: 5px;
    justify-content: center;
  }

  .code-display {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .code-display .code {
    font-size: 22px;
    letter-spacing: 2px;
    text-align: center;
  }

  .code-display button {
    width: 100%;
    justify-content: center;
  }

  .auth-stats-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-showcase {
    padding: 18px 16px;
  }

  .password-requirements {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .upload-hud-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .upload-hud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .upload-hud-header .btn-cancel-upload {
    align-self: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 12px;
  }

  .toast-container {
    top: 14px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 100%;
    gap: 10px;
  }

  .toast-item {
    padding: 12px 14px 14px 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .stat-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .stat-val {
    font-size: 20px;
  }

  .pill-select-group {
    gap: 5px;
  }

  .pill-label {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .admin-navlinks .navlink span,
  .admin-navlinks .nav-btn span {
    display: none;
  }

  .admin-navlinks .navlink,
  .admin-navlinks .nav-btn {
    padding: 6px 10px;
    margin: 0;
  }
}

@media (max-width: 480px) {

  .hero h1,
  .hero-title {
    font-size: 22px;
    letter-spacing: -0.3px;
  }

  #editorGutter,
  #receiverGutter,
  .editor-gutter,
  .code-viewer-container .editor-gutter {
    width: 30px !important;
    padding: 12px 0 !important;
  }

  #editorLineNumbers,
  #receiverLineNumbers,
  .editor-line-numbers,
  .code-viewer-container .editor-line-numbers {
    font-size: 11px !important;
    padding-right: 4px !important;
    padding-left: 2px !important;
  }

  #receiverCodeBody,
  pre#receiverCodeBody.code-viewer-body,
  .code-viewer-container .code-viewer-body,
  .field textarea.code-editor-textarea,
  textarea.code-editor-textarea,
  .code-editor-textarea,
  .code-editor-backdrop,
  .code-viewer-body,
  pre.code-viewer-body,
  pre.code-viewer-body.code-highlight-block {
    padding: 12px 5px !important;
  }

  #receiverCodeBody,
  pre#receiverCodeBody.code-viewer-body,
  .code-viewer-container .code-viewer-body,
  .code-viewer-body,
  pre.code-viewer-body,
  pre.code-viewer-body.code-highlight-block {
    max-width: calc(100% - 30px) !important;
  }
}

/* =========================================================
   GLOBAL TOP PROGRESS BAR & ADVANCED TRANSFER HUD STYLES
   ========================================================= */

/* Top Global Loading Bar (For Page Transitions & API Requests) */
.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #34d399);
  background-size: 200% 100%;
  animation: gradientMove 2s ease infinite;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.9), 0 0 4px rgba(236, 72, 153, 0.6);
  z-index: 999999;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  opacity: 0;
}

.top-progress-bar.active {
  opacity: 1;
}

/* Base Progress Bar */
.progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress div,
#uploadBarFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #34d399);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Upload HUD Container inside Dropzone */
.upload-hud {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(99, 102, 241, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: hudFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-hud.hidden {
  display: none !important;
}

.upload-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.upload-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.btn-cancel-upload {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-upload:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.upload-hud-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
  padding-top: 4px;
}

.upload-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-stat-item strong {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 12.5px;
}

@keyframes hudFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Consent Banner */
.cookie-consent-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  max-width: 680px;
  width: calc(100% - 32px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.15);
  z-index: 9998;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cookie-consent-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-consent-text a {
  color: #a5b4fc;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-consent-bar {
    flex-direction: column;
    align-items: flex-start;
    bottom: 14px;
    padding: 14px 16px;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ==========================================
   GLOBAL LEGAL, POLICY & DOCUMENT STYLING
   ========================================== */
.legal-card,
.doc-card,
.legal-doc {
  padding: 32px 36px;
  line-height: 1.7;
  font-size: 14.5px;
  color: var(--text-muted);
}

.legal-doc section {
  margin-bottom: 28px;
}

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

.legal-doc h2 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-doc h2 .sec-num {
  color: #818cf8;
  font-weight: 800;
}

.legal-doc h3 {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  margin: 16px 0 8px;
}

.legal-doc p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-doc p:last-child {
  margin-bottom: 0;
}

.legal-doc ul,
.legal-doc ol {
  margin: 12px 0 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-doc li {
  line-height: 1.6;
}

.legal-doc li strong {
  color: #fff;
  font-weight: 600;
}

.legal-doc a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.legal-doc a:hover {
  color: #a5b4fc;
}

@media (max-width: 768px) {

  .legal-card,
  .doc-card,
  .legal-doc {
    padding: 22px 18px;
    font-size: 14px;
  }

  .legal-doc h2 {
    font-size: 17.5px;
  }
}

@media (max-width: 600px) {

  .legal-card,
  .doc-card,
  .legal-doc {
    padding: 18px 14px;
    font-size: 13.5px;
  }

  .legal-doc h2 {
    font-size: 16.5px;
  }
}

/* Priority Indicators for Support SLA Matrix */
.priority-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
}

.priority-indicator.urgent {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.priority-indicator.high {
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
}

.priority-indicator.normal {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.priority-indicator.low {
  background: #94a3b8;
  box-shadow: 0 0 6px #94a3b8;
}

/* ==========================================================================
   Circular Scroll-to-Top with Circular Progress Ring
   ========================================================================== */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.88);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #c7d2fe;
  outline: none;
  padding: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(99, 102, 241, 0.45);
}

.scroll-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

.scroll-to-top svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  pointer-events: none;
  overflow: visible;
}

.scroll-to-top svg.progress-ring .progress-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.scroll-to-top svg.progress-ring .progress-indicator {
  fill: none;
  stroke: url(#scrollProgressGradient);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: 132;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.08s linear;
}

.scroll-to-top .scroll-arrow-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.scroll-to-top:hover .scroll-arrow-icon {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top svg.progress-ring {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Admin Analytics & Data Visualization Widgets (Modern Compact SaaS)
   ========================================================================== */
.chart-card {
  background: linear-gradient(135deg, rgba(20, 27, 45, 0.75) 0%, rgba(12, 17, 29, 0.75) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.chart-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

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

.chart-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.chart-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

.chart-filters {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.chart-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.chart-filter-btn.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35);
}

.chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  max-height: 140px;
}

.chart-kpis-strip {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-kpi-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
}

.chart-kpi-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.chart-kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
}

/* Donut Chart with Progress List */
.donut-with-list {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 4px 0;
}

.donut-canvas-holder {
  width: 110px;
  height: 110px;
  min-width: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-canvas-holder canvas {
  width: 110px !important;
  height: 110px !important;
}

.donut-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-badge strong {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}

.donut-center-badge small {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.metric-progress-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-progress-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.metric-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  flex-shrink: 0;
}

.mini-progress-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
  width: 100%;
}

.mini-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* User Account Tiers Bar & Stats */
.segmented-plan-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 0 12px;
}

.segmented-plan-seg {
  height: 100%;
  transition: width 0.4s ease;
}

.plan-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.plan-stat-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.plan-stat-chip .chip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-stat-chip .chip-val {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
}

/* Support Pipeline 2x2 Grid */
.status-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.status-pipeline-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

/* Ephemeral Storage Progress */
.storage-progress-bar-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
  margin: 8px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.storage-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 100%);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-grid-secondary {
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

/* Tab Inline Header KPI Banners */
.tab-kpi-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kpi-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-mini-meta {
  display: flex;
  flex-direction: column;
}

.kpi-mini-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-mini-val {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Expiration Lifespan Radar Grid */
.expiration-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.expiration-radar-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expiration-radar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.cat-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cat-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Dashboard Plan Quotas List Consistency */
.plan-quota-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.plan-quota-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.plan-quota-specs {
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 769px) and (max-width: 1250px) {
  .plan-quota-specs {
    font-size: 11px !important;
  }
}

@media (max-width: 900px) {

  .chart-grid-main,
  .chart-grid-secondary {
    grid-template-columns: 1fr !important;
  }

  .tab-kpi-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Advanced Transfer Security & Expiration Controls (Burn, Passphrase, Quotas)
   ========================================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #94a3b8;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.switch input:checked+.slider {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: rgba(129, 140, 248, 0.6);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.switch input:checked+.slider:before {
  transform: translateX(16px);
  background-color: #ffffff;
}

.transfer-options-panel {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.7) 0%, rgba(15, 23, 42, 0.88) 100%);
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.transfer-options-panel:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.transfer-options-panel.open {
  border-color: rgba(99, 102, 241, 0.52);
  box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.transfer-options-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-main);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease;
  user-select: none;
  outline: none;
}

.transfer-options-toggle:hover {
  background: rgba(99, 102, 241, 0.08);
}

.transfer-options-toggle:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.6);
  outline-offset: -2px;
}

.transfer-options-toggle .toggle-left {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f1f5f9;
  min-width: 0;
}

.transfer-options-toggle .toggle-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.transfer-options-toggle:hover .toggle-icon-wrap {
  transform: scale(1.05);
  border-color: rgba(165, 180, 252, 0.6);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.35);
}

.transfer-options-toggle .toggle-left span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transfer-options-toggle .toggle-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.options-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 3.5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: #e0e7ff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.options-summary-pill .pill-clock-icon {
  color: #a5b4fc;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.transfer-options-toggle:hover .options-summary-pill {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.25) 100%);
  border-color: rgba(165, 180, 252, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-0.5px);
}

.transfer-options-toggle:hover .options-summary-pill .pill-clock-icon {
  color: #c7d2fe;
  transform: rotate(-15deg) scale(1.1);
}

.options-summary-pill.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(168, 85, 247, 0.24) 100%);
  border-color: rgba(248, 113, 113, 0.55);
  color: #ffe4e6;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.options-summary-pill.active .pill-clock-icon {
  color: #fca5a5;
}

.options-summary-pill .pill-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.transfer-options-toggle .chevron-icon {
  color: #a5b4fc;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  flex-shrink: 0;
}

.transfer-options-toggle:hover .chevron-icon {
  color: #ffffff;
}

.transfer-options-panel.open .chevron-icon {
  transform: rotate(180deg);
}

.transfer-options-body {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 13px;
  animation: fadeIn 0.2s ease;
}

.transfer-options-body.hidden {
  display: none;
}

/* 0. Expiration & Retention Row */
.option-row.expiry-info-row {
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  margin-bottom: 2px;
}

.expiry-plan-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1.5px 6.5px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: #c7d2fe;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

.expiry-retention-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4.5px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #a5b4fc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.expiry-retention-pill.burn-active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

@media (max-width: 580px) {
  .transfer-options-toggle {
    padding: 9px 11px;
  }

  .transfer-options-toggle .toggle-left {
    gap: 7px;
  }

  .transfer-options-toggle .toggle-icon-wrap {
    width: 22px;
    height: 22px;
  }

  .transfer-options-toggle .toggle-left span {
    font-size: 12px;
  }

  .options-summary-pill {
    font-size: 10.5px;
    padding: 3px 8px;
    max-width: 145px;
  }

  .options-summary-pill .pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .expiry-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .expiry-retention-pill {
    align-self: flex-start;
    font-size: 11px;
    padding: 3.5px 9px;
  }
}

@media (max-width: 400px) {
  .transfer-options-toggle {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .transfer-options-toggle .toggle-right {
    width: 100%;
    justify-content: space-between;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .options-summary-pill {
    max-width: 220px;
  }
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-info {
  flex: 1;
  min-width: 0;
}

.option-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.option-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
  line-height: 1.4;
}

.passphrase-input-container {
  margin-top: 6px;
  margin-bottom: 6px;
  padding: 10px 14px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.2s ease;
}

.passphrase-input-container.hidden {
  display: none;
}

.passphrase-field {
  width: 100%;
  height: 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 8px 44px 8px 14px;
  font: inherit;
  font-size: 13.5px;
  outline: none;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.passphrase-field:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 2.5px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.98);
}

.passphrase-field::placeholder {
  color: #64748b;
  font-size: 13px;
}

.passphrase-field.input-error,
.password-wrapper input.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2.5px rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.passphrase-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
  font-size: 11.5px;
  color: #94a3b8;
  user-select: none;
}

.passphrase-helper-row .pass-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.passphrase-helper-row .pass-hint svg {
  stroke: #818cf8;
  flex-shrink: 0;
}

.passphrase-helper-row .pass-count {
  font-family: 'JetBrains Mono', monospace, ui-monospace, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.2s ease;
}

.passphrase-helper-row .pass-count.near-limit {
  color: #f59e0b;
}

.passphrase-helper-row .pass-count.at-limit {
  color: #38bdf8;
  font-weight: 700;
}

.quota-select-wrapper select {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  height: 32px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.quota-select-wrapper select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   Recipient Page UI Components (Self-Destruct Warning, Passphrase Unlock, Batch)
   ========================================================================== */
.burn-warning-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(245, 158, 11, 0.16));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 12.5px;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.burn-warning-banner strong {
  color: #fee2e2;
}

.burn-warning-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}

.passphrase-unlock-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.passphrase-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.batch-zip-card {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.batch-files-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  gap: 10px;
  transition: var(--transition);
}

.batch-file-row:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
}

/* ==========================================================================
   CUSTOM 8-CHARACTER SHARE CODES (PRO & ULTRA)
   ========================================================================== */
.custom-code-option-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.custom-code-plan-badge {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25)) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #d8b4fe !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.custom-code-input-wrapper {
  position: relative;
  width: 175px;
  flex-shrink: 0;
}

.custom-code-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-code-field {
  width: 100%;
  height: 38px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 6px 42px 6px 11px;
  font-family: 'Outfit', 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.custom-code-field:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2.5px rgba(168, 85, 247, 0.25);
  background: rgba(15, 23, 42, 0.98);
}

.custom-code-field::placeholder {
  color: #64748b;
  font-family: inherit;
  font-size: 11.5px;
  letter-spacing: 0.3px;
  font-weight: 500;
  text-transform: none;
}

.custom-code-field.is-available {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

.custom-code-field.is-taken {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.custom-code-field.is-checking {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

.custom-code-count {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-family: monospace;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 600;
}

.custom-code-count.at-limit {
  color: #a855f7;
}

.custom-code-field.locked {
  cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
  border-style: dashed;
  color: var(--text-muted);
  opacity: 0.8;
}

.custom-code-field.locked:hover {
  border-color: #a855f7;
  opacity: 1;
}

.custom-code-feedback-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  margin-top: -4px;
  padding: 4px 8px;
  border-radius: 6px;
  animation: fadeIn 0.2s ease;
}

.custom-code-feedback-row.hidden {
  display: none;
}

.custom-code-feedback-row.available {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.custom-code-feedback-row.taken {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.custom-code-feedback-row.checking {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.custom-code-feedback-row.hint {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

@media (max-width: 600px) {
  .custom-code-option-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .custom-code-input-wrapper {
    width: 100%;
  }
}

/* ==========================================================================
   Post-Generation Vanity Slug Editing Styles
   ========================================================================== */
.slug-edit-box {
  animation: fadeIn 0.2s ease-out;
}

.custom-slug-edit-input {
  width: 100%;
  height: 38px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-family: 'Outfit', 'JetBrains Mono', monospace;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.custom-slug-edit-input:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 2.5px rgba(168, 85, 247, 0.3);
  background: rgba(15, 23, 42, 1);
}

/* ==========================================================================
   Same-WiFi / Local Network Radar & P2P Sharing Styles
   ========================================================================== */

/* ==========================================================================
   Same-WiFi / Local Network Radar & P2P Sharing Styles (Redesigned)
   ========================================================================== */

.nearby-radar-card {
  margin-bottom: 22px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 36px -6px rgba(0, 0, 0, 0.55), 0 0 24px rgba(99, 102, 241, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.25s ease;
}

.nearby-radar-card:hover {
  border-color: rgba(99, 102, 241, 0.38);
  box-shadow: 0 12px 40px -6px rgba(0, 0, 0, 0.65), 0 0 28px rgba(99, 102, 241, 0.14);
}

.radar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.radar-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.radar-beacon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.radar-beacon::before,
.radar-beacon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.65);
  animation: radarPulse 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.radar-beacon::after {
  animation-delay: 1.4s;
}

@keyframes radarPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.radar-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.radar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-title-group h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  margin: 0;
  display: flex;
  align-items: center;
}

.radar-badge-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
}

.radar-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 2px;
}

.radar-info-btn:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.radar-status-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.radar-device-name {
  color: #e2e8f0;
  font-weight: 600;
}

.radar-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radar-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #c7d2fe;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.radar-pill-btn:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.radar-pill-btn.active-pin {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* Radar Content & Flawlessly Aligned Empty State */
.radar-content {
  padding: 16px 20px;
}

.radar-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.radar-empty-sweep {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px dashed rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
  animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.radar-empty-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.radar-empty-text strong {
  color: #f1f5f9;
}

/* Peers Grid */
.radar-peers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.peer-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.peer-card:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(99, 102, 241, 0.25);
}

.peer-card.drag-over {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
  transform: scale(1.03);
}

.peer-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.peer-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
}

.peer-details {
  flex: 1;
  min-width: 0;
}

.peer-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peer-meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.peer-send-action {
  color: #818cf8;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.peer-card:hover .peer-send-action {
  opacity: 1;
  transform: translateX(2px);
}

/* Secondary Action Button in Share Area */
.btn-share-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-share-actions-row .btn.primary {
  flex: 1;
  min-width: 200px;
}

.btn-nearby-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: #c7d2fe;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-nearby-drop:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

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

.btn-nearby-drop .peer-count-badge {
  background: #6366f1;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 2px;
}

/* 3rd Button: Animated QR Stream with Beta Tag */
.btn-animated-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-md);
  color: #f472b6;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-animated-qr:hover {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(236, 72, 153, 0.65);
  color: #fff;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.38);
  transform: translateY(-1px);
}

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

.btn-animated-qr svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.btn-animated-qr:hover svg {
  transform: scale(1.1);
}

/* Distinct Standalone BETA Badge Tag (Different Theme & Separate Tag) */
.badge.badge-beta {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.42) !important;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-transform: uppercase;
  flex-shrink: 0;
  vertical-align: middle;
}

.badge.badge-beta.sm {
  font-size: 8px;
  padding: 1px 4.5px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

/* Distinct Button Beta Tag */
.btn-animated-qr .btn-beta-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 5.5px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  line-height: 1;
  text-transform: uppercase;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Badge for Animated QR */
.badge.a-qr {
  background: rgba(236, 72, 153, 0.18) !important;
  color: #f472b6 !important;
  border: 1px solid rgba(236, 72, 153, 0.35) !important;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Animated QR Player Component - Strict Layout Isolation & Zero Jitter */
.animated-qr-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 160px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(236, 72, 153, 0.32);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(236, 72, 153, 0.15);
  margin: 0;
  /* Default left-aligned so it doesn't center in result card */
  box-sizing: border-box;
  contain: layout paint;
  /* isolates layout strictly so surrounding cards never shake */
  overflow: hidden;
}

.share-detail-qr-card .animated-qr-player {
  margin: 0 auto;
}

.animated-qr-player.compact {
  max-width: 124px;
  padding: 6px;
  border-radius: var(--radius-md);
}

.animated-qr-stage {
  position: relative;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.3);
  border: 1.5px solid rgba(236, 72, 153, 0.5);
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  contain: strict;
}

.animated-qr-stage .aqr-slide {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.animated-qr-stage .aqr-slide.active {
  visibility: visible !important;
  pointer-events: auto;
}

.animated-qr-stage .aqr-slide canvas,
.animated-qr-stage .aqr-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.animated-qr-stage .qr-center-brand img {
  width: 75% !important;
  height: 75% !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  border-radius: 3px;
  display: block;
}

.animated-qr-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  pointer-events: none;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #ec4899, #8b5cf6) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: aqr-pulse 2.2s infinite ease-in-out;
}

@keyframes aqr-pulse {

  0%,
  100% {
    opacity: 0.5;
    filter: blur(0px);
  }

  50% {
    opacity: 0.95;
    filter: blur(0.5px);
  }
}

.animated-qr-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  gap: 3px;
  box-sizing: border-box;
}

.aqr-frame-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 2px 5px;
  border-radius: 5px;
  line-height: 1;
  white-space: nowrap;
}

.aqr-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1.2;
}

.aqr-control-btn:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: #fff;
}

.animated-qr-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

.animated-qr-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ec4899, #a855f7);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.15s ease-out;
}

.animated-qr-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 5px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Universal Glassmorphic Modals */
.qs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.qs-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(135deg, #111827 0%, #0d121f 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.18);
  padding: 24px;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-x:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Redesigned Room PIN Modal */
.pin-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 32px;
}

.pin-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-title-box h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pin-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.pin-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pin-info-trigger:hover {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
  transform: scale(1.1);
}

.pin-info-callout {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.55;
  animation: fadeIn 0.2s ease;
}

.pin-info-callout-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #818cf8;
  margin-bottom: 4px;
  font-weight: 700;
}

.pin-input-group {
  margin-bottom: 6px;
}

.pin-input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 8px;
}

.pin-input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.dark-pin-input {
  width: 100% !important;
  height: 48px !important;
  background: rgba(11, 15, 25, 0.9) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.35) !important;
  border-radius: var(--radius-md) !important;
  color: #ffffff !important;
  font-family: 'JetBrains Mono', 'Outfit', monospace !important;
  font-size: 20px !important;
  letter-spacing: 6px !important;
  text-align: center !important;
  font-weight: 700 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.dark-pin-input::placeholder {
  color: #475569 !important;
  font-size: 15px !important;
  letter-spacing: 2px !important;
  font-weight: 500 !important;
}

.dark-pin-input:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.pin-clear-btn {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pin-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.pin-quick-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pin-quick-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pin-quick-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
}

/* Redesigned Info Explainer Modal */
.nearby-info-card {
  max-width: 500px;
}

.info-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 32px;
}

.info-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

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

.info-row-icon.speed {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.info-row-icon.cloud {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.info-row-icon.security {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.info-row-icon.devices {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.info-feature-row h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px 0;
}

.info-feature-row p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Incoming Transfer & Peer Select Modals */
.incoming-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin: 0 auto 16px;
}

.incoming-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.incoming-desc {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.incoming-file-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
  max-height: 140px;
  overflow-y: auto;
}

.incoming-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.incoming-file-item:last-child {
  border-bottom: none;
}

.incoming-file-name {
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.incoming-file-size {
  color: var(--text-muted);
  font-size: 11.5px;
}

.modal-actions-row {
  display: flex;
  gap: 10px;
}

.modal-actions-row button {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-btn-decline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.modal-btn-decline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.modal-btn-accept {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.modal-btn-accept:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: translateY(-1px);
}

/* LAN Transfer Progress HUD */
.lan-transfer-hud {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease;
}

.lan-transfer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px;
}

.lan-transfer-title {
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lan-transfer-metrics {
  display: flex;
  gap: 12px;
  color: #a5b4fc;
  font-size: 11.5px;
  font-weight: 600;
}

.lan-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.lan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  width: 0%;
  transition: width 0.15s ease-out;
}

/* Mobile Responsiveness for Radar and Modals */
@media (max-width: 768px) {
  .radar-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 10px;
  }

  .radar-header-left {
    width: 100%;
  }

  .radar-header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .radar-pill-btn {
    flex: 1;
    justify-content: center;
  }

  .radar-content {
    padding: 14px 16px;
  }

  .radar-empty {
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
    gap: 10px;
  }

  .radar-empty-sweep {
    margin: 0 auto;
  }

  .pin-quick-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================================
   AirForShare Local Wi-Fi Board Component
   ========================================================================== */
.wifi-board-card {
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88) 0%, rgba(15, 23, 42, 0.94) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wifi-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wifi-board-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wifi-radar-pulse {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wifi-radar-pulse .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.wifi-radar-pulse .pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: wifiPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes wifiPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.wifi-device-tag {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}

.wifi-board-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wifi-board-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.wifi-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 12px;
  flex-wrap: wrap;
}

.wifi-item-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wifi-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.wifi-item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
}

.wifi-item-icon-box.file {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.wifi-item-icon-box.text {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.wifi-item-icon-box.note {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.wifi-item-icon-box.link {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wifi-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wifi-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wifi-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.wifi-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.wifi-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wifi-item-row .wifi-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.wifi-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-wifi-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.btn-wifi-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-wifi-action.primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-wifi-action.primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.btn-wifi-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wifi-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
  transform: scale(1.05);
}

/* ==========================================================================
   ADMIN USER INSIGHTS & VISITOR TELEMETRY MODAL
   ========================================================================== */
.admin-user-insights-modal-box {
  max-width: 1140px !important;
  width: 95vw !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
  border-radius: var(--radius);
  background: #0b1329 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(14, 165, 233, 0.15) !important;
  padding: 24px !important;
}

.admin-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  padding-right: 36px;
}

.admin-insights-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 0;
}

.admin-insights-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Multi-Chart 2-Column Analytics Grid */
.telemetry-charts-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.telemetry-chart-donut-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  max-height: 180px;
  overflow: hidden;
}

.telemetry-chart-donut-wrap canvas {
  display: block;
  width: 100% !important;
  height: 180px !important;
  max-height: 180px !important;
}

.telemetry-chart-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  line-height: 1.15;
  z-index: 2;
}

.telemetry-center-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.telemetry-center-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 2px;
}

.telemetry-chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
}

.telemetry-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
}

.telemetry-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.telemetry-legend-count {
  font-weight: 700;
  color: #fff;
}

.telemetry-chart-bar-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  max-height: 180px;
  overflow: hidden;
}

.telemetry-chart-bar-wrap canvas {
  display: block;
  width: 100% !important;
  height: 180px !important;
  max-height: 180px !important;
}

.telemetry-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.telemetry-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.telemetry-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.telemetry-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.telemetry-breakdown-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #cbd5e1;
}

.telemetry-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.telemetry-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.telemetry-progress-fill.sky {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.telemetry-progress-fill.indigo {
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}

.telemetry-progress-fill.emerald {
  background: linear-gradient(90deg, #059669, #34d399);
}

.telemetry-progress-fill.amber {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.telemetry-progress-fill.purple {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.telemetry-chip-ip {
  font-family: monospace;
  font-size: 11.5px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.telemetry-chip-net {
  font-family: monospace;
  font-size: 11px;
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.telemetry-audit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
}

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

.telemetry-audit-search {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

.telemetry-audit-search:focus {
  border-color: #38bdf8;
}

.telemetry-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.telemetry-audit-table th {
  text-align: left;
  padding: 8px 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-audit-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  vertical-align: middle;
}

.telemetry-audit-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.badge-event-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.badge-event-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.telemetry-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.telemetry-carrier-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.telemetry-carrier-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.telemetry-chip-carrier {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.telemetry-carrier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.telemetry-copy-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.telemetry-copy-btn:hover {
  color: #38bdf8;
}

@media (max-width: 1024px) {
  .telemetry-grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .telemetry-grid-5col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .telemetry-charts-grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .telemetry-grid-5col {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   Universal QR Scanner & Air-Gapped Optical Stream Styles
   ======================================================== */

/* Discreet Info Trigger (ⓘ) on Animated QR Buttons */
.aqr-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
  vertical-align: middle;
}

.aqr-info-trigger:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  transform: scale(1.08);
}

.aqr-info-popover {
  position: absolute;
  z-index: 1000;
  max-width: 290px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 15px rgba(245, 158, 11, 0.15);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text);
  backdrop-filter: blur(12px);
  pointer-events: none;
  animation: fadeIn 0.15s ease-out;
}

.aqr-info-popover-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #fbbf24;
  font-size: 12px;
  margin-bottom: 4px;
}

/* Drag & Drop Highlight on QR Scanner Card */
.qr-scanner-card.drag-over {
  border-color: #818cf8 !important;
  background: rgba(99, 102, 241, 0.08) !important;
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Universal QR Scan Result Card */
.universal-qr-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.2s ease-out;
}

.universal-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.universal-qr-body {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  word-break: break-all;
  max-height: 180px;
  overflow-y: auto;
  color: #e2e8f0;
}

.universal-qr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* RunDrop QR Scanner Internal & Link Badges */
.badge.rundrop-share {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.28));
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.badge.rundrop-link {
  background: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.4);
  font-weight: 600;
}

.badge.contact,
.badge.vcard {
  background: rgba(20, 184, 166, 0.18);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.4);
  font-weight: 600;
}

.badge.call {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-weight: 600;
}

.badge.sms {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-weight: 600;
}

.badge.mail {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 600;
}

.badge.location {
  background: rgba(244, 63, 94, 0.18);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-weight: 600;
}

.badge.event {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 600;
}

.badge.json {
  background: rgba(6, 182, 212, 0.18);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-weight: 600;
}

/* Center Brand Badge on Live QR Elements */
.qr-box,
.qr-wrap {
  position: relative !important;
}

.qr-center-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: #0f172a;
  border: 1.5px solid rgba(139, 92, 246, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px #ffffff, 0 3px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease;
  overflow: hidden;
}

.qr-center-brand img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
}

.qr-box:hover .qr-center-brand,
.qr-wrap:hover .qr-center-brand,
.animated-qr-stage:hover .qr-center-brand {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Custom Dynamic Brand Logo */
.brand-icon.brand-icon-custom {
  background: transparent !important;
  box-shadow: none !important;
  animation: none !important;
  border-radius: 6px;
  overflow: hidden;
}

.brand-icon.brand-icon-custom .brand-custom-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Universal Brand Auto Icon (.brand-auto-icon) */
img.brand-auto-icon {
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 2px;
  flex-shrink: 0;
}

svg.brand-auto-icon {
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

/* Feature Guide Cards (How It Works & Feature Workflows) */
.feature-guide-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.feature-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.feature-guide-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

.feature-guide-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.feature-guide-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.feature-guide-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
  background: rgba(2, 6, 23, 0.45);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.guide-step-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #e2e8f0;
}

.guide-step-bullet {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.4);
  margin-top: 1px;
}

.feature-guide-action {
  margin-top: auto;
  padding-top: 4px;
}

/* Mobile Safe Area & Notch Support (iOS Safari / Android) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .modal-actions,
  .modal-content .actions,
  .bottom-nav,
  .toast-container,
  .toast {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

/* ========================================================
   ADMIN IMPERSONATION SYSTEM (STEALTH ACCESS & CONTROLS)
   ======================================================== */
.rd-admin-impersonation-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: linear-gradient(90deg, #3b0764 0%, #1e1b4b 35%, #0f172a 100%);
  border-bottom: 1px solid rgba(167, 139, 250, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  padding: 7px 18px;
  font-size: 12.5px;
  color: #fff;
  transition: all 0.25s ease;
}
.rd-impersonation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}
.rd-impersonation-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rd-impersonation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.28));
  border: 1px solid rgba(168, 85, 247, 0.55);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #e9d5ff;
  text-transform: uppercase;
}
.rd-impersonation-desc {
  color: #cbd5e1;
  font-size: 12.5px;
}
.rd-impersonation-desc strong {
  color: #fff;
}
.rd-impersonation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rd-impersonation-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.2s ease;
}
.rd-impersonation-link:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(167, 139, 250, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.rd-impersonation-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rd-impersonation-btn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}
.admin-user-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c4b5fd !important;
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  transition: all 0.2s ease !important;
}
.admin-user-login-btn:hover {
  background: rgba(139, 92, 246, 0.25) !important;
  border-color: #a78bfa !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

/* ==========================================================================
   RunDrop - Feature Guides & Knowledge Hub (Unified Design System)
   ========================================================================== */

/* Blog Hero & Filters */
.blog-hero {
  text-align: center;
  padding: 38px 0 28px;
  position: relative;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.blog-hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #ffffff;
}

.blog-hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Search & Filter Toolbar */
.blog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 36px;
}

.blog-search-box {
  position: relative;
  width: 100%;
}

.blog-search-input {
  width: 100%;
  height: 48px;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0 18px 0 44px;
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.blog-search-input:focus {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), 0 6px 24px rgba(0, 0, 0, 0.45);
}

.blog-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.category-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
}

.category-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

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

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-3d);
}

.blog-card:hover::before {
  opacity: 1;
}

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

.blog-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.blog-card-category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: #a5b4fc;
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--text-dark);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-card-readmore {
  color: #818cf8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-readmore {
  transform: translateX(4px);
}

/* ==========================================================================
   Article Detail Page Styles
   ========================================================================== */

.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: #ffffff;
}

.article-breadcrumbs .sep {
  opacity: 0.5;
}

.article-header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 16px;
}

.article-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.article-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  margin-bottom: 12px;
}

.article-meta-row,
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 6px;
}

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

.article-meta-left .dot {
  opacity: 0.35;
  font-size: 10px;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.article-share-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.28);
}

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

/* ==========================================================================
   Guide Feedback Widget ("Was this guide helpful?")
   ========================================================================== */
.guide-feedback-widget {
  margin: 32px 0 24px;
  padding: 18px 22px;
  background: rgba(18, 25, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.guide-feedback-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guide-feedback-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.guide-feedback-title {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.guide-feedback-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.feedback-btn.active-yes {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #4ade80 !important;
  pointer-events: none;
}

.feedback-btn.active-no {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
  pointer-events: none;
}

.guide-feedback-thanks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  animation: fadeIn 0.25s ease;
}

.guide-feedback-support {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.feedback-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #c7d2fe;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.feedback-support-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

@media (max-width: 680px) {
  .guide-feedback-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .article-meta-bar,
  .article-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Article Body Typography & Components */
.article-body {
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.75;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body .lead-text {
  font-size: 16.5px;
  line-height: 1.68;
  color: #f1f5f9;
  margin-bottom: 22px;
}

.article-body h2 {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 30px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.article-body h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 22px 0 10px;
}

.article-body strong {
  color: #ffffff;
}

/* Feature Highlights Grid within Guide */
.feature-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.feature-mini-box {
  background: rgba(18, 25, 41, 0.65);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.feature-mini-box h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 6px;
}

.feature-mini-box p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Step Card Flow within Guide */
.step-card-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.step-card-item {
  display: flex;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  align-items: flex-start;
}

.step-number-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.step-content-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.step-content-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.52;
  margin: 0;
}

/* Pro Tip Callout */
.pro-tip-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 24px 0;
}

.pro-tip-header {
  margin-bottom: 6px;
}

.pro-tip-tag {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pro-tip-box p {
  font-size: 13.5px;
  color: #d1fae5;
  line-height: 1.58;
  margin: 0;
}

/* FAQ List inside Article - Matches Pricing & Home FAQ Cards */
.guide-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 36px;
}

.guide-faq-card {
  background: linear-gradient(145deg, rgba(20, 28, 48, 0.72) 0%, rgba(13, 19, 35, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.guide-faq-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #a855f7);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.guide-faq-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(145deg, rgba(26, 36, 60, 0.82) 0%, rgba(16, 24, 44, 0.92) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.guide-faq-card.open {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(145deg, rgba(28, 38, 64, 0.92) 0%, rgba(15, 22, 40, 0.96) 100%);
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.45), 0 0 24px rgba(99, 102, 241, 0.12);
}

.guide-faq-card.open::before {
  opacity: 1;
}

.guide-faq-card .faq-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  user-select: none;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.2px;
  transition: color 0.2s ease;
}

.guide-faq-card .faq-header:hover {
  color: #c7d2fe;
}

.guide-faq-card.open .faq-header {
  color: #ffffff;
}

.guide-faq-card .faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
  margin-left: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
}

.guide-faq-card:hover .faq-toggle-icon {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

.guide-faq-card.open .faq-toggle-icon {
  transform: rotate(180deg);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.guide-faq-card .faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.guide-faq-card .faq-body,
.guide-faq-list .faq-card .faq-body,
.article-body .faq-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  border-top: 1px solid transparent;
}

.guide-faq-card.open .faq-body,
.guide-faq-list .faq-card.open .faq-body,
.article-body .faq-card.open .faq-body {
  max-height: 1200px !important;
  opacity: 1 !important;
  padding: 14px 20px 18px 20px !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.guide-faq-card .faq-body p,
.guide-faq-list .faq-card .faq-body p,
.article-body .faq-body p {
  margin: 0 0 10px 0 !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.guide-faq-card .faq-body p:last-child,
.guide-faq-list .faq-card .faq-body p:last-child,
.article-body .faq-body p:last-child {
  margin-bottom: 0 !important;
}

/* Feature Call to Action Box */
.article-cta-box,
.article-action-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.1) 100%), #131b2e;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  text-align: center;
  margin: 40px 0 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.5);
}

.article-cta-title,
.article-action-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.article-cta-desc,
.article-action-card p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

.article-cta-actions,
.article-action-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Related Guides */
.related-articles-section,
.related-guides-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related-heading,
.related-guides-title {
  font-size: 18.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .article-cta-box,
  .article-action-card {
    padding: 22px 16px;
  }
}

/* Article Placeholder Notice (when content not yet written) */
.article-placeholder-notice {
  text-align: center;
  padding: 44px 20px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed rgba(99, 102, 241, 0.25);
  border-radius: 16px;
  color: #94a3b8;
  margin: 28px 0;
}
.article-placeholder-notice svg {
  margin-bottom: 10px;
  color: #6366f1;
  opacity: 0.6;
}
.article-placeholder-notice p {
  margin: 4px 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.article-placeholder-notice strong {
  color: #e2e8f0;
  font-size: 16.5px;
}

/* Interactive Navigation Link inside Guides */
.guide-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #818cf8;
  font-weight: 600;
  text-decoration: none;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  padding: 1px 7px;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: baseline;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.guide-inline-link:hover {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  text-decoration: none;
}
.guide-inline-link:active {
  transform: translateY(0);
}