:root {
  --ink: #eaf2f8;
  --ink-soft: #aab9c8;
  --surface: #08111e;
  --white: #ffffff;
  --brand: #f12b3a;
  --brand-deep: #bd1325;
  --accent: #ff5360;
  --border: rgb(184 205 223 / 20%);
}

.control-plane-page {
  min-height: 100vh;
  margin: 0;
  color: #e9edf2;
  background: #10151d;
  font-family: Inter, "Segoe UI", sans-serif;
}
.control-plane-page *, .control-plane-page *::before, .control-plane-page *::after { box-sizing: border-box; }
.control-plane {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 70px;
}
.control-plane__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.control-plane__header h1, .control-plane__editor h2 { margin: 0; color: #fff; }
.control-plane__header p:not(.control-plane__eyebrow) { margin: 8px 0 0; color: #b7c0ce; }
.control-plane__eyebrow { margin: 0 0 7px; color: #f4bf3d; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.control-plane__logout, .control-plane button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid #e1a928;
  border-radius: 7px;
  color: #171208;
  background: #ffd35c;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.control-plane__logout { color: #edf1f6; border-color: #4b5667; background: #222a35; }
.control-plane__card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #344051;
  border-radius: 12px;
  background: #18202b;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}
.control-plane__search { display: flex; align-items: end; gap: 10px; }
.control-plane__search label, .control-plane__editor label { display: grid; gap: 5px; color: #c4ccd7; font-size: 13px; font-weight: 700; }
.control-plane input:not([type="checkbox"]), .control-plane textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #465366;
  border-radius: 6px;
  color: #fff;
  background: #0e141c;
  font: inherit;
}
.control-plane textarea { min-height: 80px; resize: vertical; }
.control-plane__search input { max-width: 380px; }
.control-plane__notice { margin: 18px 0 0; color: #aeb8c7; font-size: 13px; }
.control-plane__table-wrap { overflow-x: auto; margin-top: 14px; }
.control-plane table { width: 100%; min-width: 690px; border-collapse: collapse; }
.control-plane th, .control-plane td { padding: 12px 9px; border-bottom: 1px solid #334052; text-align: left; }
.control-plane th { color: #abb6c6; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.control-plane td { color: #edf1f6; font-size: 14px; }
.control-plane__badge { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.control-plane__badge.is-active { color: #c3f8d4; background: #155b32; }
.control-plane__badge.is-blocked { color: #ffd0d0; background: #702526; }
.control-plane__link { color: #ffda6d; font-weight: 750; }
.control-plane__editor { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(300px, 1fr); gap: 28px; }
.control-plane__editor form { display: grid; gap: 13px; }
.control-plane__checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.control-plane__checkbox input { width: 18px; height: 18px; accent-color: #f0ba32; }
.control-plane span.field-validation-error { color: #ff9c9c; font-size: 12px; }
.control-plane__success { padding: 12px 14px; border: 1px solid #2a9a57; border-radius: 8px; color: #c8f7d8; background: #124327; }
@media (max-width: 720px) {
  .control-plane { width: min(100% - 24px, 1180px); padding-top: 24px; }
  .control-plane__header, .control-plane__search, .control-plane__editor { display: grid; grid-template-columns: 1fr; }
  .control-plane__logout { width: 100%; }
  .control-plane__search input { max-width: none; }
}

html[data-theme="light"] {
  --ink: #102a43;
  --ink-soft: #486581;
  --surface: #f5f8fc;
  --white: #ffffff;
  --brand: #e52335;
  --brand-deep: #b51222;
  --accent: #f43b4b;
  --border: rgb(43 80 112 / 18%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #030a12;
  background-image: linear-gradient(rgb(3 10 18 / 74%), rgb(3 10 18 / 92%)), url("/images/softlink-hero-desktop.png");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid #f3b32c;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  color: var(--ink);
  background: var(--white);
  border-radius: 0.5rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgb(3 10 18 / 92%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  overflow: hidden;
  border-radius: .65rem;
  box-shadow: 0 .25rem .8rem rgb(0 0 0 / 30%);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-actions,
.header-social-links {
  display: flex;
  align-items: center;
}

.header-actions { gap: 0.75rem; }
.header-social-links { gap: 0.4rem; }
.header-social-link {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  color: #d8e2ec;
  border: 1px solid rgb(202 226 242 / 36%);
  border-radius: 50%;
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.header-social-link:hover,
.header-social-link:focus-visible { color: var(--white); transform: translateY(-1px); }
.header-social-link--facebook:hover,
.header-social-link--facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.header-social-link--instagram:hover,
.header-social-link--instagram:focus-visible { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #fd1d1d; }
.header-social-link svg { width: 1rem; height: 1rem; fill: currentColor; }
.header-social-link--instagram svg { fill: none; stroke: currentColor; stroke-width: 2; }
.header-social-link--instagram .header-social-dot { fill: currentColor; stroke: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  color: var(--white);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(202 226 242 / 48%);
  border-radius: .45rem;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}

.menu-toggle:hover { background: rgb(255 255 255 / 14%); }
.menu-toggle__lines { display: grid; width: 1rem; gap: .18rem; }
.menu-toggle__lines span { display: block; height: 1px; background: currentColor; }

.site-menu {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  display: flex;
  width: min(21rem, calc(100vw - 2.5rem));
  height: 100dvh;
  padding: 1.25rem;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  background: #07111d;
  border-left: 1px solid rgb(255 255 255 / 15%);
  box-shadow: -1.5rem 0 3rem rgb(0 0 0 / 36%);
  transform: translateX(105%);
  transition: transform 190ms ease;
}

.site-menu a { padding: .78rem .85rem; color: #d5e2ee; border-radius: .5rem; font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-menu a:hover { color: var(--white); background: rgb(255 255 255 / 8%); }
.site-menu__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; color: var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.menu-close { width: 2rem; height: 2rem; color: var(--white); background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 22%); border-radius: .45rem; cursor: pointer; font-size: 1.35rem; line-height: 1; }
.site-menu .culture-selector { margin-top: .7rem; }
.site-menu .culture-selector select { width: 100%; }
.site-menu .theme-toggle { width: 100%; margin-top: .35rem; }
.site-menu .nav-cta { margin-top: .7rem; text-align: center; }
.menu-backdrop { position: fixed; z-index: 35; inset: 0; visibility: hidden; background: rgb(0 0 0 / 48%); opacity: 0; transition: opacity 190ms ease, visibility 190ms ease; }
body.menu-open { overflow: hidden; }
body.menu-open .site-menu { transform: translateX(0); }
body.menu-open .menu-backdrop { visibility: visible; opacity: 1; }

.site-menu a:hover { color: var(--accent); }
.nav-cta { padding: 0.52rem 0.85rem; color: var(--white); border: 1px solid rgb(202 226 242 / 60%); border-radius: 0.45rem; }
.nav-cta:hover { background: rgb(255 255 255 / 10%); color: var(--white); }
.culture-selector select {
  padding: .48rem .62rem;
  color: var(--white);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(202 226 242 / 48%);
  border-radius: .45rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}

.culture-selector option { color: #07111d; }
.theme-toggle {
  padding: .48rem .68rem;
  color: var(--white);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(202 226 242 / 48%);
  border-radius: .45rem;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}

.theme-toggle:hover { background: rgb(255 255 255 / 14%); }

.site-footer { background: #02070d; color: #d8e2ec; }
.site-footer__inner { display: flex; min-height: 7.5rem; align-items: center; gap: 1.5rem; }
.site-footer .brand { color: var(--white); }
.site-footer p { margin: 0 auto 0 0; font-size: 0.87rem; }
.site-footer__privacy { color: #d8e2ec; font-size: 0.87rem; }
.social-links { display: flex; align-items: center; gap: 0.55rem; }
.social-link {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 50%;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.social-link:hover,
.social-link:focus-visible { color: var(--white); transform: translateY(-2px); }
.social-link--facebook:hover,
.social-link--facebook:focus-visible { background: #1877f2; border-color: #1877f2; }
.social-link--instagram:hover,
.social-link--instagram:focus-visible { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: #fd1d1d; }
.social-link svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.social-link--instagram svg { fill: none; stroke: currentColor; stroke-width: 2; }
.social-link--instagram .social-link__dot { fill: currentColor; stroke: none; }

.legal-page { width: min(48rem, calc(100% - 3rem)); min-height: 55vh; margin: 0 auto; padding: 6rem 0; }
.legal-page > p:not(.eyebrow) { color: var(--ink-soft); }

.whatsapp-float {
  position: fixed;
  z-index: 20;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  width: 3.9rem;
  height: 3.9rem;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, #32df78, #17b957);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 .65rem 1.5rem rgb(0 0 0 / 36%), inset 0 1px 0 rgb(255 255 255 / 45%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: var(--white);
  box-shadow: 0 .85rem 1.8rem rgb(0 0 0 / 42%);
  transform: translateY(-3px) scale(1.04);
}

.whatsapp-float svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: currentColor;
}

html[data-theme="light"] body {
  background-color: #e8f0f7;
  background-image: linear-gradient(rgb(240 247 252 / 82%), rgb(229 240 248 / 92%)), url("/images/softlink-hero-desktop.png");
}

html[data-theme="light"] .site-header {
  background: rgb(255 255 255 / 91%);
}

html[data-theme="light"] .brand,
html[data-theme="light"] .menu-toggle {
  color: #102a43;
}

html[data-theme="light"] .site-menu { background: #f7fafc; border-color: rgb(43 80 112 / 20%); }
html[data-theme="light"] .site-menu__header,
html[data-theme="light"] .menu-close,
html[data-theme="light"] .site-menu a { color: #102a43; }
html[data-theme="light"] .site-menu a:hover { color: var(--brand); background: rgb(229 35 53 / 8%); }
html[data-theme="light"] .menu-close { background: rgb(16 42 67 / 6%); border-color: rgb(43 80 112 / 24%); }
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .culture-selector select,
html[data-theme="light"] .theme-toggle {
  color: #102a43;
  background: rgb(255 255 255 / 62%);
  border-color: rgb(43 80 112 / 30%);
}

html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .theme-toggle:hover {
  background: rgb(229 35 53 / 12%);
  color: #102a43;
}

html[data-theme="light"] .site-footer {
  background: #0b1d2d;
}

@media (max-width: 720px) {
  body {
    background-image: linear-gradient(rgb(3 10 18 / 72%), rgb(3 10 18 / 88%)), url("/images/softlink-hero-tech-mobile.png");
    background-position: center, center top;
    background-attachment: scroll;
  }

  .site-header__inner, .site-footer__inner, .legal-page { width: min(100% - 2rem, 1120px); }
  .site-footer__inner { flex-wrap: wrap; padding: 1.75rem 0; gap: 0.75rem 1rem; }
  .site-footer p { flex-basis: 100%; order: 3; }
  .whatsapp-float { right: 1rem; bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
