:root {
  color-scheme: dark;
  --bg: #060914;
  --bg-2: #0a1020;
  --panel: #0d1426;
  --panel-2: #111a31;
  --panel-3: #16213d;
  --line: rgba(134, 162, 255, 0.18);
  --line-strong: rgba(82, 167, 255, 0.45);
  --text: #f5f7ff;
  --muted: #9ba9c8;
  --muted-2: #7180a2;
  --blue: #2f8eff;
  --blue-2: #24c7ff;
  --violet: #8e3cff;
  --violet-2: #b666ff;
  --teal: #2ee6c5;
  --danger: #ff5d7d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgba(47, 142, 255, 0.07), transparent 36%),
    linear-gradient(300deg, rgba(142, 60, 255, 0.08), transparent 42%),
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 54px,
      rgba(255, 255, 255, 0.025) 55px,
      rgba(255, 255, 255, 0.025) 56px
    ),
    var(--bg);
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(36, 199, 255, 0.65);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 320px;
  min-height: 100vh;
}

.sidebar,
.right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: rgba(8, 12, 24, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}

.right-rail {
  padding: 18px 16px;
  border-left: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #f6f7fb;
  box-shadow: 0 10px 30px rgba(47, 142, 255, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 1.1rem;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-card {
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(47, 142, 255, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 142, 255, 0.92), rgba(142, 60, 255, 0.72)),
    #1b4fe8;
  box-shadow: 0 16px 38px rgba(47, 142, 255, 0.18);
}

.quick-card h2,
.quick-card p {
  margin: 0;
}

.quick-card h2 {
  margin-top: 8px;
  font-size: 1.16rem;
}

.quick-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.eyebrow {
  color: #9fdcff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
}

.side-link:hover,
.side-link.active {
  color: #fff;
  border-color: rgba(47, 142, 255, 0.38);
  background: linear-gradient(135deg, rgba(47, 142, 255, 0.85), rgba(142, 60, 255, 0.45));
}

.nav-icon,
.google-mark,
.service-icon,
.metric-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(92, 164, 255, 0.45);
  border-radius: 7px;
  background: rgba(47, 142, 255, 0.14);
  color: #eaf4ff;
  font-weight: 900;
  font-size: 0.78rem;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  color: #b8c7eb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
}

.content {
  min-width: 0;
  padding: 22px 28px 36px;
}

.topbar,
.section-heading,
.rail-panel header,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: 54px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin: 7px 0 0;
  font-size: 1.45rem;
}

.live-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 11px;
  color: #cbf7ff;
  border: 1px solid rgba(46, 230, 197, 0.35);
  border-radius: var(--radius);
  background: rgba(46, 230, 197, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
}

.live-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 16px var(--teal);
}

.top-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(142, 60, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(142, 60, 255, 0.16);
}

.icon-action span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
}

.google-button,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.rail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.google-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.rail-action:hover,
.icon-action:hover {
  transform: translateY(-1px);
}

.google-button {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.google-mark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(47, 142, 255, 0.85), rgba(142, 60, 255, 0.85)),
    #111a31;
}

.google-mark.large {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 1.15rem;
}

.primary-button {
  color: #fff;
  border: 1px solid rgba(47, 142, 255, 0.7);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 36px rgba(47, 142, 255, 0.22);
}

.secondary-button,
.ghost-button,
.rail-action {
  color: #e8f0ff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.danger-button {
  color: #fff;
  border: 1px solid rgba(255, 93, 125, 0.55);
  background: rgba(255, 93, 125, 0.16);
}

.full {
  width: 100%;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

.category-tab span {
  color: #8adfff;
  font-size: 0.76rem;
}

.category-tab:hover,
.category-tab.active {
  color: #fff;
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(47, 142, 255, 0.26), rgba(142, 60, 255, 0.2)),
    rgba(255, 255, 255, 0.045);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(6, 9, 20, 0.98) 0%, rgba(12, 21, 40, 0.92) 55%, rgba(13, 55, 87, 0.86) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 22px
    );
  box-shadow: var(--shadow);
}

.hero-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 58%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  padding: 34px;
}

.hero-copy h2 {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 2.55rem;
  line-height: 1.05;
}

.hero-copy p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #cbd6ee;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 26px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 22px;
}

.hero-visual img {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.glass-screen {
  position: absolute;
  top: 34px;
  right: 46px;
  width: 210px;
  aspect-ratio: 1.35;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.glass-screen div,
.glass-screen span {
  display: block;
  border-radius: 6px;
}

.glass-screen div {
  height: 42px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.glass-screen span {
  height: 10px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.17);
}

.glass-screen span:nth-child(3) {
  width: 72%;
}

.glass-screen span:nth-child(4) {
  width: 48%;
}

.promo-stack {
  display: grid;
  gap: 16px;
}

.promo-card {
  display: flex;
  min-height: 157px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(12, 20, 40, 0.95), rgba(20, 42, 78, 0.86)),
    #10182e;
}

.promo-card.cyan {
  border-color: rgba(36, 199, 255, 0.34);
}

.promo-card.violet {
  border-color: rgba(142, 60, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(17, 22, 47, 0.96), rgba(49, 33, 92, 0.82)),
    #11172d;
}

.promo-card span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  color: #bdeaff;
  border: 1px solid rgba(36, 199, 255, 0.34);
  border-radius: 6px;
  background: rgba(36, 199, 255, 0.1);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-card strong {
  margin-top: 14px;
  font-size: 1.15rem;
}

.promo-card small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1500px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .promo-card {
    min-height: 145px;
  }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.metrics article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.metrics span {
  display: grid;
  width: 44px;
  height: 44px;
  grid-row: span 2;
  place-items: center;
  color: #e9f5ff;
  border: 1px solid rgba(47, 142, 255, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 142, 255, 0.18), rgba(142, 60, 255, 0.16));
  font-weight: 900;
}

.metrics strong {
  min-width: 0;
  align-self: end;
}

.metrics small {
  min-width: 0;
  color: var(--muted);
}

.section-heading {
  margin: 30px 0 16px;
}

.section-heading h2,
.portfolio-band h2,
.rail-panel h2,
.modal-card h2 {
  margin: 6px 0 0;
}

.section-heading h2 {
  font-size: 1.55rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.service-media {
  position: relative;
  display: grid;
  aspect-ratio: 1.34;
  overflow: hidden;
  place-items: center;
  background: #0b1020;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 28px;
  padding: 6px 9px;
  color: #eaf8ff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(6, 9, 20, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-card-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}

.mini-button {
  min-height: 34px;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: rgba(6, 9, 20, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-content {
  padding: 15px;
}

.service-content h3 {
  margin: 0;
  font-size: 1.05rem;
}

.service-content p {
  min-height: 58px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: #dfe8ff;
  font-weight: 900;
}

.small-link {
  min-height: 34px;
  padding: 7px 10px;
  color: #bfeeff;
  border: 1px solid rgba(36, 199, 255, 0.25);
  border-radius: 7px;
  background: rgba(36, 199, 255, 0.06);
  font-weight: 900;
}

.mockup {
  position: relative;
  width: 82%;
  height: 72%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
}

.mockup-site {
  display: grid;
  grid-template-rows: 18px 1fr;
}

.mockup-site::before {
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 26%, transparent 26% 100%),
    rgba(255, 255, 255, 0.08);
}

.mockup-site::after {
  content: "";
  margin: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 142, 255, 0.95), rgba(142, 60, 255, 0.88)) top left / 64% 42% no-repeat,
    linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.34)) bottom left / 42% 12% no-repeat,
    linear-gradient(135deg, rgba(46, 230, 197, 0.28), rgba(255, 255, 255, 0.08));
}

.mockup-design {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18%, transparent 18%),
    linear-gradient(135deg, rgba(47, 142, 255, 0.3), rgba(142, 60, 255, 0.24)),
    #101a30;
}

.mockup-design::before,
.mockup-design::after {
  position: absolute;
  content: "";
  border-radius: var(--radius);
}

.mockup-design::before {
  inset: 26px 24px auto auto;
  width: 42%;
  height: 36%;
  background: linear-gradient(135deg, #f7f9ff, #9fb7e6);
}

.mockup-design::after {
  left: 24px;
  bottom: 24px;
  width: 62%;
  height: 16px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.mockup-modelagem {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(46, 230, 197, 0.16), rgba(142, 60, 255, 0.16)),
    #0c1222;
}

.mockup-modelagem::before {
  width: 45%;
  aspect-ratio: 1;
  content: "";
  transform: rotateX(58deg) rotateZ(45deg);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, #2f8eff, #8e3cff 55%, #dce8ff);
  box-shadow:
    26px 26px 0 rgba(47, 142, 255, 0.18),
    -22px -18px 0 rgba(46, 230, 197, 0.14);
}

.preview-sites {
  background:
    linear-gradient(135deg, rgba(47, 142, 255, 0.26), rgba(46, 230, 197, 0.12)),
    #081123;
}

.preview-design {
  background:
    linear-gradient(135deg, rgba(142, 60, 255, 0.26), rgba(47, 142, 255, 0.14)),
    #0d1020;
}

.preview-modelagem {
  background:
    linear-gradient(135deg, rgba(46, 230, 197, 0.16), rgba(142, 60, 255, 0.2)),
    #07111f;
}

.portfolio-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.portfolio-band h2 {
  font-size: 1.45rem;
}

.portfolio-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.profile-heading {
  margin-top: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
}

.profile-card,
.history-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.profile-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.profile-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(47, 142, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h3,
.history-card h3 {
  margin: 0;
}

.profile-card p {
  margin: 7px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-data {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  margin: 4px 0 0;
}

.profile-data div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(6, 9, 20, 0.42);
}

.profile-data dt,
.profile-data dd {
  margin: 0;
}

.profile-data dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-data dd {
  color: #eaf2ff;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.history-card {
  padding: 18px;
}

.history-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.purchase-list {
  display: grid;
  gap: 10px;
}

.purchase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(6, 9, 20, 0.45);
}

.purchase-item strong,
.purchase-item small,
.purchase-item span {
  display: block;
}

.purchase-item small {
  margin-top: 5px;
  color: var(--muted);
}

.purchase-item span {
  align-self: start;
  padding: 5px 8px;
  color: #c7f7ff;
  border: 1px solid rgba(36, 199, 255, 0.25);
  border-radius: 6px;
  background: rgba(36, 199, 255, 0.07);
  font-size: 0.76rem;
  font-weight: 900;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  border: 1px dashed rgba(134, 162, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.rail-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.rail-panel + .rail-panel {
  margin-top: 16px;
}

.rail-panel header {
  margin-bottom: 14px;
}

.rail-panel h2 {
  font-size: 1.02rem;
}

.announcement-list {
  display: grid;
  gap: 10px;
  min-height: 280px;
}

.announcement {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(9, 15, 30, 0.72);
}

.announcement strong {
  display: block;
  margin-bottom: 5px;
}

.announcement small {
  color: var(--muted);
  line-height: 1.45;
}

.rail-note {
  margin: 14px 0 0;
  color: #89a4d2;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.account-state {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 10px 0 16px;
  text-align: center;
}

.account-state strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.account-state small {
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-only {
  display: none !important;
}

body.is-admin .admin-only {
  display: inline-flex !important;
}

body.is-admin .service-card .admin-only {
  display: flex !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 14, 0.76);
  backdrop-filter: blur(16px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b1224;
  box-shadow: var(--shadow);
}

.modal-card.wide {
  width: min(760px, 100%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #dbe9ff;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.2rem;
}

.form-stack,
.item-form,
.admin-session,
.google-session {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.item-form label:nth-child(3),
.item-form .image-preview,
.item-form .form-actions {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #dbe6ff;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 88px;
  padding: 11px 12px;
}

select option {
  background: #111a31;
}

.image-preview {
  display: grid;
  min-height: 160px;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  border: 1px dashed rgba(134, 162, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-session small,
.google-session small {
  color: var(--muted);
}

@media (max-width: 1320px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    position: static;
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .rail-panel + .rail-panel {
    margin-top: 0;
  }

  .announcement-list {
    min-height: 170px;
  }
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .right-rail {
    position: static;
    height: auto;
  }

  .sidebar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 0.9fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav,
  .sidebar-footer {
    grid-column: 1 / -1;
  }

  .side-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .right-rail {
    grid-column: 1;
  }

  .hero-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-visual {
    min-height: 240px;
  }

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

@media (max-width: 720px) {
  .content {
    padding: 18px 14px 26px;
  }

  .topbar,
  .section-heading,
  .portfolio-band,
  .right-rail,
  .sidebar {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions,
  .hero-actions {
    width: 100%;
  }

  .top-actions > *,
  .hero-actions > * {
    flex: 1 1 170px;
  }

  .top-actions {
    flex-wrap: nowrap;
  }

  .top-actions .icon-action {
    flex: 0 0 54px;
  }

  .top-actions .google-button {
    flex: 1 1 auto;
  }

  .category-strip,
  .side-nav,
  .promo-stack,
  .service-grid,
  .profile-grid,
  .metrics,
  .item-form {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-visual img {
    right: 24px;
    bottom: 24px;
    width: 150px;
    height: 150px;
  }

  .glass-screen {
    top: 24px;
    right: auto;
    left: 24px;
    width: 178px;
  }

  .item-form label:nth-child(3),
  .item-form .image-preview,
  .item-form .form-actions {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .hero-copy h2 {
    font-size: 1.72rem;
  }

  .category-tab {
    justify-content: flex-start;
  }

  .metrics article {
    grid-template-columns: 1fr;
  }

  .metrics span {
    grid-row: auto;
  }

  .service-footer,
  .form-actions,
  .history-card header,
  .purchase-item {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-data div {
    grid-template-columns: 1fr;
  }
}
