/* Store360 brand layer — identity system based on the official visual direction. */
:root {
  --brand-core: #080b0f;
  --brand-surface: #0f1820;
  --brand-surface-raised: #14212b;
  --brand-pulse: #4fe6a1;
  --brand-cyan: #42cff5;
  --brand-violet: #8874ff;
  --brand-text: #f5f7fa;
  --brand-muted: #a6afbd;
  --brand-line: rgba(166, 175, 189, .16);
  --brand-display: 'Space Grotesk', sans-serif;
  --primary: var(--brand-pulse);
  --secondary: var(--brand-text);
  --text: var(--brand-text);
  --text-light: var(--brand-muted);
  --bg-dark: var(--brand-core);
  --bg-darker: #05070a;
  --border: var(--brand-line);
  --edge-border: var(--brand-line);
  --edge-panel: rgba(15, 24, 32, .86);
  --edge-muted: var(--brand-muted);
  --edge-green: var(--brand-pulse);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(66, 207, 245, .055), transparent 28rem),
    radial-gradient(circle at 85% 35%, rgba(79, 230, 161, .035), transparent 32rem),
    var(--brand-core);
  color: var(--brand-text);
  font-family: 'Inter', sans-serif;
}

.ui-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

h1, h2, h3, .edge-title, .brand-wordmark, .stat-edge .n {
  font-family: var(--brand-display);
}

a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
}

/* Header */
.navbar-fixed {
  height: 76px;
  padding: 0;
  background: rgba(8, 11, 15, .84);
  border-bottom: 1px solid var(--brand-line);
  backdrop-filter: blur(22px) saturate(135%);
}

.navbar-fixed::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(30vw, 420px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), var(--brand-pulse));
  opacity: .7;
}

.navbar-container {
  height: 100%;
  max-width: 1360px;
  padding-inline: 28px;
  gap: 28px;
}

.navbar-logo a {
  gap: 11px;
  color: var(--brand-text);
}

.navbar-logo .logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--brand-text);
  letter-spacing: -.045em;
  line-height: 1;
}

.brand-wordmark strong {
  font-weight: 700;
}

.brand-wordmark em {
  color: var(--brand-muted);
  font-style: normal;
  font-weight: 500;
}

.navbar-menu {
  justify-content: center;
}

.navbar-menu ul {
  gap: 28px;
}

.navbar-menu a {
  color: #c5ccd6;
  font-size: 13px;
  font-weight: 600;
}

.navbar-menu a::after {
  bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-pulse), var(--brand-cyan));
}

.navbar-menu a:hover {
  color: var(--brand-text);
}

.navbar-search {
  max-width: 280px;
}

.navbar-search form {
  height: 40px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.search-input {
  min-width: 0;
  font-size: 13px;
}

.search-btn {
  width: 42px;
  padding: 0;
  color: var(--brand-text);
  background: transparent;
}

.search-btn:hover {
  color: var(--brand-core);
  background: var(--brand-pulse);
  transform: none;
}

.btn-login, .btn-register {
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-login {
  border: 1px solid var(--brand-line);
  color: var(--brand-text);
}

.btn-register {
  color: #07110c;
  background: var(--brand-pulse);
}

/* Account navigation */
.navbar-actions .edge-user-links {
  gap: 5px;
}

.user-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.user-greeting i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-pulse);
  box-shadow: 0 0 0 4px rgba(79, 230, 161, .1), 0 0 14px rgba(79, 230, 161, .5);
}

.edge-user-links .user-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #aeb8c5;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.edge-user-links .user-nav-link .ui-icon {
  width: 16px;
  height: 16px;
  color: #778594;
  transition: color .2s;
}

.edge-user-links .user-nav-link:hover,
.edge-user-links .user-nav-link:focus-visible {
  border-color: var(--brand-line);
  color: var(--brand-text);
  background: rgba(255, 255, 255, .035);
  transform: translateY(-1px);
}

.edge-user-links .user-nav-link:hover .ui-icon,
.edge-user-links .user-nav-link:focus-visible .ui-icon {
  color: var(--brand-pulse);
}

.edge-user-links .telegram-link {
  border-color: rgba(42, 171, 238, .2);
  color: #b9e9ff;
  background: linear-gradient(145deg, rgba(42,171,238,.1), rgba(66,207,245,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.edge-user-links .telegram-link .ui-icon { color: #42c7f5; }
.edge-user-links .telegram-link:hover,
.edge-user-links .telegram-link:focus-visible {
  border-color: rgba(66, 207, 245, .48);
  color: #e0f7ff;
  background: linear-gradient(145deg, rgba(42,171,238,.17), rgba(79,230,161,.055));
  box-shadow: 0 8px 24px rgba(20, 145, 205, .12);
}

.edge-user-links .telegram-link:hover .ui-icon,
.edge-user-links .telegram-link:focus-visible .ui-icon { color: #78dcff; }

.edge-user-links .user-logout {
  min-width: 38px;
  min-height: 38px;
  margin-left: 4px;
  padding: 0 10px;
  border-color: var(--brand-line);
  border-radius: 10px;
  color: #c4ccd6;
  background: rgba(255, 255, 255, .035);
}

.edge-user-links .user-logout .ui-icon {
  width: 16px;
  height: 16px;
}

/* Admin console */
.admin-shell {
  grid-template-columns: 248px 1fr;
  background: rgba(5, 8, 11, .28);
}

.admin-side-edge {
  top: 76px;
  height: calc(100vh - 76px);
  padding: 22px 16px;
  border-right-color: var(--brand-line);
  background:
    radial-gradient(circle at 0 0, rgba(66, 207, 245, .065), transparent 190px),
    linear-gradient(180deg, rgba(11, 17, 22, .98), rgba(7, 11, 15, .98));
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 4px 25px;
  padding: 0 4px 18px;
  border-bottom: 1px solid var(--brand-line);
}

.admin-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(79, 230, 161, .24);
  border-radius: 11px;
  color: var(--brand-pulse);
  background: linear-gradient(145deg, rgba(79,230,161,.12), rgba(66,207,245,.055));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.24);
}

.admin-brand-mark .ui-icon {
  width: 19px;
  height: 19px;
}

.admin-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.admin-brand small {
  color: #6f7e8d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.admin-brand strong {
  color: var(--brand-text);
  font-family: var(--brand-display);
  font-size: 18px;
  letter-spacing: -.025em;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-side-edge .admin-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 11px;
  color: #96a1ae;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}

.admin-nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #697786;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}

.admin-nav-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.admin-side-edge .admin-nav button:hover {
  border-color: rgba(166, 175, 189, .1);
  color: var(--brand-text);
  background: rgba(255, 255, 255, .025);
  transform: translateX(2px);
}

.admin-side-edge .admin-nav button.active {
  border-color: rgba(79, 230, 161, .17);
  color: var(--brand-text);
  background: linear-gradient(90deg, rgba(79, 230, 161, .105), rgba(66, 207, 245, .035));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.admin-side-edge .admin-nav button.active::before {
  content: '';
  position: absolute;
  left: -1px;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: linear-gradient(var(--brand-pulse), var(--brand-cyan));
  box-shadow: 0 0 12px rgba(79, 230, 161, .55);
}

.admin-side-edge .admin-nav button.active .admin-nav-icon {
  border-color: rgba(79, 230, 161, .2);
  color: var(--brand-pulse);
  background: rgba(79, 230, 161, .08);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

.admin-view-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-heading-icon {
  width: 25px;
  height: 25px;
  color: var(--brand-pulse);
  filter: drop-shadow(0 0 10px rgba(79,230,161,.18));
}

.admin-content-edge {
  padding: 34px 36px;
}

.password-gate {
  position: relative;
  overflow: hidden;
  border-color: rgba(79, 230, 161, .28);
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.035);
}

.password-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-pulse), var(--brand-cyan), transparent 85%);
}

.password-gate > p {
  margin: 0 0 22px;
  line-height: 1.65;
}

.automation-table td:first-child {
  min-width: 210px;
}

.automation-table td:first-child strong,
.automation-table td:first-child small {
  display: block;
}

.automation-table td:first-child small {
  margin-top: 4px;
  color: var(--brand-muted);
}

.automation-actions {
  display: flex;
  min-width: 235px;
  gap: 7px;
  flex-wrap: wrap;
}

.automation-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: #b8c2cd;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.automation-badge.status-completed,
.automation-badge.status-sent,
.automation-badge.status-active,
.automation-badge.status-approved {
  border-color: rgba(79,230,161,.28);
  color: #8ff1bd;
  background: rgba(79,230,161,.08);
}

.automation-badge.status-retrying,
.automation-badge.status-whatsapp_pending,
.automation-badge.status-pending,
.automation-badge.status-user_created {
  border-color: rgba(66,207,245,.25);
  color: #8fdef5;
  background: rgba(66,207,245,.075);
}

.automation-badge.status-error,
.automation-badge.status-failed,
.automation-badge.status-blocked,
.automation-badge.status-suspended,
.automation-badge.status-revoked {
  border-color: rgba(255,92,92,.28);
  color: #ffaaaa;
  background: rgba(255,92,92,.075);
}

.automation-badge.status-configuration_required {
  border-color: rgba(255,190,80,.3);
  color: #ffd18a;
  background: rgba(255,190,80,.08);
}

.automation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.automation-detail-grid > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 78px;
  padding: 13px;
  border: 1px solid var(--brand-line);
  border-radius: 11px;
  background: rgba(255,255,255,.022);
}

.automation-detail-grid .full {
  grid-column: 1 / -1;
}

.automation-detail-grid small {
  color: #73808d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.automation-detail-grid strong {
  color: var(--brand-text);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.automation-modal-actions {
  margin-top: 18px;
}

.evolution-manager {
  position: relative;
  margin-top: 22px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(79, 230, 161, .2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(66, 207, 245, .1), transparent 34%),
    linear-gradient(145deg, rgba(8, 17, 24, .96), rgba(9, 14, 19, .92));
}

.evolution-manager::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: '';
  background: linear-gradient(180deg, var(--brand-green), rgba(66, 207, 245, .2));
}

.evolution-manager.is-refreshing { opacity: .72; }

.evolution-manager-head,
.evolution-actions,
.evolution-connected,
.evolution-loading {
  display: flex;
  align-items: center;
}

.evolution-manager-head {
  justify-content: space-between;
  gap: 18px;
}

.evolution-manager-head h3 {
  margin: 10px 0 4px;
  color: var(--brand-text);
  font-size: 19px;
}

.evolution-manager-head p,
.evolution-empty p,
.evolution-connected p,
.evolution-steps small {
  margin: 0;
  color: var(--brand-muted);
  font-size: 12px;
  line-height: 1.6;
}

.evolution-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.evolution-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: #b8c2cd;
  background: rgba(255,255,255,.035);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.evolution-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 11px currentColor;
}

.evolution-status.connected { border-color: rgba(79,230,161,.32); color: #77efb0; background: rgba(79,230,161,.08); }
.evolution-status.connecting { border-color: rgba(66,207,245,.3); color: #83dff8; background: rgba(66,207,245,.08); }
.evolution-status.disconnected { border-color: rgba(255,115,115,.25); color: #ff9c9c; background: rgba(255,92,92,.07); }
.evolution-status.warning { border-color: rgba(255,190,80,.28); color: #ffd18a; background: rgba(255,190,80,.07); }

.evolution-empty,
.evolution-connected {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(166, 175, 189, .22);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.evolution-empty strong,
.evolution-connected strong { display: block; margin-bottom: 4px; color: var(--brand-text); font-size: 13px; }
.evolution-error { border-color: rgba(255,92,92,.3); }
.evolution-error .edge-btn { margin-top: 12px; }

.evolution-connected { gap: 13px; border-style: solid; border-color: rgba(79,230,161,.22); background: rgba(79,230,161,.055); }
.evolution-check { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(79,230,161,.35); border-radius: 50%; color: #77efb0; background: rgba(79,230,161,.1); font-size: 20px; font-weight: 800; }

.evolution-qr-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 20px;
}

.evolution-qr-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 13px;
  border: 1px solid rgba(79,230,161,.3);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.28), 0 0 28px rgba(79,230,161,.08);
}

.evolution-qr-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.evolution-qr-card span { color: #263039; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.evolution-steps ol { display: grid; gap: 9px; margin: 13px 0; padding-left: 20px; color: #cbd4dd; font-size: 13px; line-height: 1.45; }
.evolution-steps code { padding: 4px 7px; border-radius: 6px; color: #9df5c5; background: rgba(79,230,161,.09); }

.evolution-loading { justify-content: center; gap: 10px; min-height: 92px; color: var(--brand-muted); font-size: 12px; }
.evolution-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--brand-green); border-radius: 50%; animation: evolution-spin .8s linear infinite; }
@keyframes evolution-spin { to { transform: rotate(360deg); } }

.telegram-admin-block {
  position: relative;
  overflow: hidden;
  border-color: rgba(42, 171, 238, .22) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(42,171,238,.12), transparent 32%),
    rgba(10, 16, 21, .72);
}

.telegram-admin-block::after {
  position: absolute;
  top: -74px;
  right: -62px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(66,207,245,.12);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.telegram-admin-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 17px;
}

.telegram-admin-head h2 { margin: 0 0 4px; }
.telegram-admin-head p { margin: 0; }
.telegram-admin-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(66,207,245,.3);
  border-radius: 12px;
  color: #62d3fa;
  background: linear-gradient(145deg, rgba(42,171,238,.18), rgba(66,207,245,.045));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(4,99,146,.12);
}
.telegram-admin-icon .ui-icon { width: 21px; height: 21px; }

.main-content {
  margin-top: 76px;
  padding-bottom: 0;
}

/* Signature hero: the orbit frames the library as a portal. */
.hero-banner.brand-hero {
  height: clamp(570px, 72vh, 720px);
  margin-top: 0;
  padding-top: 0;
  isolation: isolate;
  background: #071018;
  border-bottom: 1px solid var(--brand-line);
}

.brand-hero-art {
  position: absolute;
  inset: 0 0 0 41%;
  width: 59%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  filter: saturate(.78) contrast(1.05);
  transform: scale(1.01);
}

.brand-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #080b0f 0%, rgba(8, 11, 15, .98) 34%, rgba(8, 11, 15, .58) 67%, rgba(8, 11, 15, .3) 100%),
    linear-gradient(0deg, #080b0f 0%, transparent 34%, rgba(8, 11, 15, .12) 100%);
}

.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}

.brand-hero-content {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 72px 28px;
  justify-content: center;
  align-items: flex-start;
}

.brand-eyebrow,
.brand-section-kicker {
  display: block;
  color: var(--brand-pulse);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.brand-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brand-pulse);
}

.hero-content.brand-hero-content h1 {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--brand-text);
  font-family: var(--brand-display);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.06em;
  text-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.hero-content.brand-hero-content h1 span {
  color: var(--brand-pulse);
}

.hero-content.brand-hero-content > p {
  max-width: 590px;
  margin: 0 0 30px;
  color: #c2cad5;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

.brand-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.edge-btn {
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 11px;
  color: #07110c;
  background: var(--brand-pulse);
  box-shadow: 0 10px 30px rgba(79, 230, 161, .08);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.edge-btn:hover {
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 230, 161, .2);
}

.edge-btn.secondary {
  color: var(--brand-text);
  background: rgba(255,255,255,.045);
  border-color: var(--brand-line);
  box-shadow: none;
}

.brand-text-link,
.brand-section-link {
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.brand-text-link {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245, 247, 250, .28);
}

.brand-text-link:hover,
.brand-section-link:hover {
  color: var(--brand-pulse);
}

.brand-hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  color: var(--brand-muted);
  font-size: 12px;
}

.brand-hero-proof span {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-hero-proof strong {
  color: var(--brand-text);
  font-family: var(--brand-display);
  font-size: 20px;
}

.brand-hero-caption {
  position: absolute;
  right: 30px;
  bottom: 28px;
  color: rgba(245, 247, 250, .72);
  font-family: var(--brand-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.brand-hero-caption strong {
  color: var(--brand-pulse);
}

.brand-orbit {
  position: absolute;
  top: 50%;
  right: clamp(5%, 9vw, 150px);
  width: min(40vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(66, 207, 245, .45);
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(66, 207, 245, .15), inset 0 0 40px rgba(79, 230, 161, .08);
  pointer-events: none;
  transform: translateY(-50%) rotate(-18deg);
}

.brand-orbit::before,
.brand-orbit::after,
.brand-orbit i {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.brand-orbit::before {
  inset: -14px;
  border-top: 5px solid var(--brand-pulse);
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--brand-cyan);
  border-left: 5px solid transparent;
  filter: drop-shadow(0 0 12px rgba(79, 230, 161, .6));
}

.brand-orbit::after {
  inset: 12%;
  border: 1px solid rgba(255,255,255,.22);
}

.brand-orbit i:nth-child(1) {
  top: 1%;
  left: 52%;
  width: 9px;
  height: 9px;
  background: var(--brand-pulse);
  box-shadow: 0 0 20px var(--brand-pulse);
}

.brand-orbit i:nth-child(2) {
  right: 4%;
  bottom: 24%;
  width: 6px;
  height: 6px;
  background: var(--brand-cyan);
  box-shadow: 0 0 16px var(--brand-cyan);
}

.brand-orbit i:nth-child(3) {
  inset: 43%;
  border: 1px solid rgba(255,255,255,.42);
}

/* Sections and catalog */
.edge-page {
  max-width: 1360px;
  padding: 56px 28px;
}

.brand-home {
  display: grid;
  gap: 76px;
}

.brand-section {
  min-width: 0;
}

.edge-section-title {
  align-items: flex-end;
  margin-bottom: 24px;
}

.edge-section-title h2 {
  margin-top: 7px;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.brand-section-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--brand-line);
}

.brand-section-link span {
  margin-left: 5px;
  color: var(--brand-pulse);
}

.catalog-page {
  padding-top: 64px;
}

.catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--brand-line);
}

.catalog-intro h1 {
  margin: 7px 0 6px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}

.catalog-intro p {
  margin: 0;
  color: var(--brand-muted);
}

.catalog-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: max-content;
}

.catalog-count strong {
  color: var(--brand-pulse);
  font-family: var(--brand-display);
  font-size: 44px;
  line-height: 1;
}

.catalog-count span {
  margin-top: 6px;
  color: var(--brand-muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.edge-filters {
  align-items: end;
  margin-bottom: 34px;
  padding: 18px;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  background: rgba(15, 24, 32, .68);
  box-shadow: 0 24px 60px rgba(0,0,0,.14);
}

.edge-filters label > span {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.edge-input,
.edge-form input,
.edge-form select,
.edge-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea {
  border-color: var(--brand-line);
  border-radius: 10px;
  background: rgba(5, 9, 13, .8);
}

.edge-input:focus,
.edge-form input:focus,
.edge-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(66, 207, 245, .1);
}

/* Game cards */
.edge-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.edge-card {
  position: relative;
  border-color: var(--brand-line);
  border-radius: 13px;
  background: rgba(15, 24, 32, .72);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}

.edge-card:hover {
  z-index: 1;
  border-color: rgba(79, 230, 161, .42);
  box-shadow: 0 24px 60px rgba(0,0,0,.34), 0 0 0 1px rgba(79,230,161,.08);
  transform: translateY(-7px);
}

.edge-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0a1015;
}

.edge-card-cover::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(8,11,15,.92));
  opacity: 0;
  transition: opacity .25s;
}

.edge-card img {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .35s;
}

.edge-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.edge-card:hover .edge-card-cover::after {
  opacity: 1;
}

.edge-card-open {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .22s, transform .22s;
}

.edge-card:hover .edge-card-open,
.edge-card-cover:focus-visible .edge-card-open {
  opacity: 1;
  transform: translateY(0);
}

.edge-card-body {
  padding: 15px 15px 14px;
}

.edge-card-tags {
  display: flex;
  gap: 7px;
  min-width: 0;
  margin-bottom: 9px;
  color: var(--brand-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.edge-card-tags span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-card-tags span + span::before {
  content: '•';
  margin-right: 7px;
  color: var(--brand-pulse);
}

.edge-card h3 {
  min-height: 42px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.edge-card h3 a {
  color: var(--brand-text);
  text-decoration: none;
}

.edge-card-stats {
  display: flex;
  gap: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--brand-line);
  color: #7f8997;
  font-size: 10px;
}

.edge-card-stats span:first-child {
  color: #a9d9c4;
}

/* Category library */
.categories-page {
  padding-top: 64px;
}

.categories-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.categories-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1;
}

.categories-intro p {
  margin: 0;
  color: var(--brand-muted);
  font-size: 16px;
}

.category-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-visual-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  color: var(--brand-text);
  background:
    radial-gradient(circle at 78% 20%, rgba(66,207,245,.16), transparent 30%),
    linear-gradient(135deg, #13222c, #0b1218 70%);
  box-shadow: 0 18px 44px rgba(0,0,0,.15);
  text-decoration: none;
  isolation: isolate;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}

.category-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, black, transparent 76%);
}

.category-visual-card img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.08);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s;
}

.category-visual-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8,11,15,.08), rgba(8,11,15,.22) 38%, rgba(8,11,15,.96) 100%),
    linear-gradient(90deg, rgba(8,11,15,.42), transparent 72%);
}

.category-copy {
  position: absolute;
  left: 18px;
  right: 54px;
  bottom: 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-label {
  overflow: hidden;
  font-family: var(--brand-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-count {
  color: #c1cad5;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.category-count strong {
  color: var(--brand-pulse);
  font-family: var(--brand-display);
  font-size: 14px;
}

.category-arrow {
  position: absolute;
  right: 17px;
  bottom: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: var(--brand-text);
  background: rgba(8,11,15,.54);
  backdrop-filter: blur(8px);
  transition: color .22s, background .22s, transform .22s;
}

.category-orbit {
  position: absolute;
  top: -56px;
  right: -46px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(66,207,245,.24);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .3s, transform .38s cubic-bezier(.2,.7,.2,1);
}

.category-orbit::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid transparent;
  border-top-color: var(--brand-pulse);
  border-bottom-color: var(--brand-cyan);
  border-radius: 50%;
}

.category-visual-card:hover,
.category-visual-card:focus-visible {
  border-color: rgba(79,230,161,.48);
  box-shadow: 0 24px 58px rgba(0,0,0,.34), 0 0 0 1px rgba(79,230,161,.08);
  transform: translateY(-5px);
}

.category-visual-card:hover img {
  filter: saturate(1) contrast(1.1);
  transform: scale(1.055);
}

.category-visual-card:hover .category-arrow,
.category-visual-card:focus-visible .category-arrow {
  color: var(--brand-core);
  background: var(--brand-pulse);
  transform: rotate(8deg);
}

.category-visual-card:hover .category-orbit,
.category-visual-card:focus-visible .category-orbit {
  opacity: 1;
  transform: scale(1);
}

.category-visual-card.is-empty .category-copy::before {
  content: 'Em breve';
  width: max-content;
  margin-bottom: 3px;
  color: var(--brand-cyan);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Detail and utility surfaces */
.edge-panel,
.game-hero-edge,
.edge-table-wrap,
.stat-edge,
.edge-modal {
  border-color: var(--brand-line);
  background-color: rgba(15, 24, 32, .86);
}

.game-hero-edge {
  border: 1px solid var(--brand-line);
  border-radius: 18px;
}

.game-hero-edge .shade {
  background: linear-gradient(90deg, rgba(5,8,11,.97), rgba(8,14,18,.55), rgba(5,8,11,.78));
}

.game-hero-copy h1 {
  font-family: var(--brand-display);
  letter-spacing: -.045em;
}

.chip {
  border-color: var(--brand-line);
  background: rgba(8,11,15,.72);
}

#downloads.download-target {
  border-color: var(--brand-pulse);
  box-shadow: 0 0 0 3px rgba(79,230,161,.12), 0 18px 46px rgba(0,0,0,.28);
}

.edge-pagination a,
.edge-pagination button {
  border-color: var(--brand-line);
  background: var(--brand-surface);
}

.edge-pagination .active {
  color: var(--brand-core);
  background: var(--brand-pulse);
}

/* Footer */
.footer {
  margin-top: 64px;
  padding: 0;
  border-color: var(--brand-line);
  background: #05080b;
}

.brand-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 34px;
  position: relative;
}

.brand-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  width: 84px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-pulse), var(--brand-cyan));
}

.footer-wordmark {
  font-size: 22px;
}

.brand-footer p {
  margin: 10px 0 0;
  color: var(--brand-muted);
  font-size: 13px;
}

.brand-footer-links {
  display: flex;
  gap: 24px;
}

.brand-footer-links a {
  color: #c3cad3;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.brand-footer-links a:hover {
  color: var(--brand-pulse);
}

.brand-footer-meta {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--brand-line);
  color: #626c79;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .navbar-container { gap: 16px; }
  .navbar-menu ul { gap: 16px; }
  .navbar-search { max-width: 220px; }
  .edge-user-links .user-nav-link { padding-inline: 8px; }
  .edge-user-links .user-nav-link span { display: none; }
  .edge-user-links .user-logout span { display: none; }
  .brand-hero-art { left: 32%; width: 68%; }
  .brand-orbit { right: 2%; width: min(46vw, 470px); }
  .edge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-visual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side-edge {
    position: relative;
    top: 0;
    display: block;
    height: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }
  .admin-brand { display: none; }
  .admin-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .admin-side-edge .admin-nav button {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 5px 10px 5px 6px;
  }
  .admin-side-edge .admin-nav button.active::before {
    left: 10px;
    right: 10px;
    bottom: -1px;
    width: auto;
    height: 2px;
  }
  .admin-content-edge { padding: 24px 20px; }
}

@media (max-width: 767px) {
  .navbar-fixed { height: auto; min-height: 68px; }
  .navbar-container { min-height: 68px; padding-inline: 16px; }
  .navbar-logo .logo { width: 36px; height: 36px; }
  .navbar-container.mobile-open { padding-bottom: 14px; }
  .navbar-container.mobile-open .navbar-menu { border-color: var(--brand-line); }
  .navbar-actions .edge-user-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 7px;
  }
  .edge-user-links .user-greeting {
    grid-column: 1 / -1;
    margin: 3px 0 4px;
  }
  .edge-user-links .user-nav-link,
  .edge-user-links .user-logout {
    justify-content: center;
    width: 100%;
    margin: 0;
    border-color: var(--brand-line);
    background: rgba(255, 255, 255, .025);
  }
  .edge-user-links .user-nav-link span,
  .edge-user-links .user-logout span { display: inline; }
  .main-content { margin-top: 68px; }
  .hero-banner.brand-hero { height: 630px; margin-top: 0; padding-top: 0; }
  .brand-hero-art { inset: 35% 0 0; width: 100%; height: 65%; opacity: .7; }
  .brand-hero-shade {
    background: linear-gradient(180deg, #080b0f 0%, rgba(8,11,15,.95) 36%, rgba(8,11,15,.45) 70%, #080b0f 100%);
  }
  .brand-hero-content { justify-content: flex-start; padding: 54px 18px; }
  .hero-content.brand-hero-content h1 { max-width: 620px; font-size: clamp(40px, 11.5vw, 60px); }
  .hero-content.brand-hero-content > p { max-width: 520px; font-size: 14px; line-height: 1.6; }
  .brand-orbit { top: 70%; right: -16%; width: 74vw; opacity: .68; }
  .brand-hero-caption { display: none; }
  .brand-hero-proof { margin-top: 30px; }
  .edge-page { padding: 42px 16px; }
  .brand-home { gap: 58px; }
  .edge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-visual-card { min-height: 176px; }
  .category-label { font-size: 18px; }
  .edge-card-body { padding: 12px; }
  .edge-card h3 { min-height: 38px; font-size: 14px; }
  .edge-card-open { display: none; }
  .catalog-intro { align-items: flex-start; }
  .catalog-count { align-items: flex-start; }
  .catalog-count strong { font-size: 34px; }
  .edge-filters { padding: 14px; }
  .brand-footer { grid-template-columns: 1fr; align-items: start; }
  .brand-footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .admin-content-edge { padding: 20px 14px; }
  .admin-view-title { gap: 9px; }
  .admin-heading-icon { width: 21px; height: 21px; }
  .evolution-manager { padding: 17px; }
  .evolution-manager-head { align-items: flex-start; flex-direction: column; }
  .evolution-actions { justify-content: flex-start; }
  .evolution-qr-layout { grid-template-columns: 1fr; }
  .evolution-qr-card { width: min(100%, 240px); justify-self: center; }
}

@media (max-width: 520px) {
  .brand-wordmark { font-size: 16px; }
  .hero-banner.brand-hero { height: 650px; }
  .brand-hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .brand-hero-proof { gap: 16px; }
  .brand-hero-proof span { align-items: flex-start; flex-direction: column; gap: 0; }
  .catalog-intro { flex-direction: column; }
  .edge-section-title { align-items: flex-start; }
  .brand-section-link { white-space: nowrap; }
  .edge-card-tags { font-size: 8px; }
  .edge-card-stats { gap: 9px; }
  .categories-intro { margin-bottom: 26px; }
  .categories-intro p { font-size: 14px; }
  .category-visual-card { min-height: 158px; border-radius: 13px; }
  .category-copy { left: 13px; right: 42px; bottom: 13px; }
  .category-label { font-size: 16px; }
  .category-count { font-size: 9px; }
  .category-arrow { right: 11px; bottom: 12px; width: 28px; height: 28px; }
  .automation-detail-grid { grid-template-columns: 1fr; }
  .automation-detail-grid .full { grid-column: auto; }
}

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