*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0A0A;
  --bg-secondary: #1A1A1A;
  --bg-elevated: #222222;
  --text: #FFFFFF;
  --text-secondary: #CACACA;
  --text-muted: #939393;
  --accent: #5865F2;
  --border: #2D2D2D;
  --border-light: #525252;
  --radius: 5px;
  --radius-full: 50px;
  --font: 'Lexend', sans-serif;
  --role-admin: #2BA2F8;
  --role-owner: #F82BB3;
  --role-mod: #F8A22B;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.marketing-route-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: #0A0A0A;
  isolation: isolate;
}

.marketing-route-page {
  min-height: 100vh;
  background: #0A0A0A;
  transform-origin: center center;
}

.marketing-route-forward .marketing-route-page {
  animation: atlasMarketingSwoopRight 220ms ease-out both;
}

.marketing-route-back .marketing-route-page {
  animation: atlasMarketingSwoopLeft 220ms ease-out both;
}

.marketing-route-forward::after,
.marketing-route-back::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  mix-blend-mode: screen;
  opacity: 0;
}

.marketing-route-forward::after {
  animation: atlasMarketingSweepRight 220ms ease-out both;
}

.marketing-route-back::after {
  animation: atlasMarketingSweepLeft 220ms ease-out both;
}

@keyframes atlasMarketingSwoopRight {
  from {
    opacity: .86;
    transform: translate3d(10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes atlasMarketingSwoopLeft {
  from {
    opacity: .86;
    transform: translate3d(-10px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes atlasMarketingSweepRight {
  0% {
    opacity: 0;
    transform: translateX(-115%);
  }
  22% {
    opacity: .16;
  }
  100% {
    opacity: 0;
    transform: translateX(115%);
  }
}

@keyframes atlasMarketingSweepLeft {
  0% {
    opacity: 0;
    transform: translateX(115%);
  }
  22% {
    opacity: .16;
  }
  100% {
    opacity: 0;
    transform: translateX(-115%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-route-forward .marketing-route-page,
  .marketing-route-back .marketing-route-page,
  .marketing-route-forward::after,
  .marketing-route-back::after {
    animation: none;
  }
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2D2D2D;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #525252;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #2D2D2D transparent;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 16px 24px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  gap: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover {
  color: #fff;
}
.nav-links a.active {
  color: #fff;
  font-weight: 600;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius);
  height: 40px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn:hover { opacity: 0.9; }
.btn-invite { background: #EBEBEB; color: #000; }
.btn-login  { background: var(--accent); color: #fff; }
.text-muted { color: var(--text-muted); }
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  z-index: 10;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links span {
  color: #2D2D2D;
  font-size: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.shadcn-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  animation: atlasDialogOverlayIn 160ms ease both;
}

.shadcn-dialog-content {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1001;
  width: min(calc(100vw - 32px), 520px);
  max-height: min(82vh, 720px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid #24242A;
  border-radius: 12px;
  background: #0D0D10;
  color: #FFFFFF;
  padding: 20px;
  box-shadow: none;
  animation: atlasDialogContentIn 180ms cubic-bezier(.2, .84, .26, 1) both;
}

.shadcn-dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2C2C33;
  border-radius: 8px;
  background: #141418;
  color: #A1A1AA;
  cursor: pointer;
}

.shadcn-dialog-close:hover {
  color: #FFFFFF;
  border-color: #3A3A42;
}

.shadcn-dialog-header {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.shadcn-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.shadcn-dialog-title {
  margin: 0;
  color: #FFFFFF;
  font: 850 18px/1.2 Inter, system-ui, sans-serif;
}

.shadcn-dialog-description {
  margin: 0;
  color: #A1A1AA;
  font: 500 13px/1.5 Inter, system-ui, sans-serif;
}

@keyframes atlasDialogOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes atlasDialogContentIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px)) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.quick-action-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.quick-action-form label {
  display: grid;
  gap: 7px;
  color: #A1A1AA;
  font: 750 12px/1.2 Inter, system-ui, sans-serif;
}

.quick-action-form input,
.quick-action-form select,
.quick-action-form textarea {
  width: 100%;
  border: 1px solid #24242A;
  border-radius: 8px;
  background: #08080A;
  color: #FFFFFF;
  padding: 10px 11px;
  font: 600 13px/1.4 Inter, system-ui, sans-serif;
  outline: none;
}

.quick-action-form textarea {
  resize: vertical;
}

.quick-action-form input:focus,
.quick-action-form select:focus,
.quick-action-form textarea:focus {
  border-color: #5865F2;
}

.quick-action-form button,
.cookie-consent-actions button,
.cookie-preferences-footer button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #FFFFFF;
  color: #050505;
  padding: 0 13px;
  font: 850 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.quick-action-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-action-history article {
  display: grid;
  gap: 4px;
  border: 1px solid #24242A;
  border-radius: 9px;
  background: #101013;
  padding: 12px;
}

.quick-action-history strong {
  color: #FFFFFF;
  font-size: 13px;
}

.quick-action-history span {
  color: #A1A1AA;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-consent-panel {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  width: min(760px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  border: 1px solid #2A2A31;
  border-radius: 12px;
  background: #0B0B0D;
  color: #FFFFFF;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
}

.cookie-consent-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.cookie-consent-copy strong {
  color: #FFFFFF;
  font: 850 15px/1.2 Inter, system-ui, sans-serif;
}

.cookie-consent-copy p {
  flex-basis: 100%;
  margin: 0;
  color: #A1A1AA;
  font: 500 13px/1.5 Inter, system-ui, sans-serif;
}

.cookie-consent-copy a {
  color: #D4D4D8;
  font: 750 12px/1.2 Inter, system-ui, sans-serif;
  text-underline-offset: 4px;
}

.cookie-preferences-grid {
  display: grid;
  gap: 8px;
  border-top: 1px solid #24242A;
  padding-top: 12px;
}

.cookie-preferences-grid label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  color: #A1A1AA;
  font: 500 12px/1.45 Inter, system-ui, sans-serif;
}

.cookie-preferences-grid input {
  margin-top: 2px;
  accent-color: #5865F2;
}

.cookie-preferences-grid strong {
  display: block;
  color: #FFFFFF;
  font-weight: 800;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent-actions button.secondary {
  background: #141418;
  color: #E4E4E7;
}

.cookie-preferences-button {
  position: fixed;
  left: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147483646;
  min-height: 28px;
  border: 1px solid #2A2A31;
  border-radius: 999px;
  background: #0B0B0D;
  color: #A1A1AA;
  padding: 0 11px;
  font: 800 11px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.cookie-preferences-button:hover {
  color: #FFFFFF;
  border-color: #3A3A42;
}

@media (max-width: 640px) {
  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions button {
    flex: 1 1 140px;
  }
}
