* {
  box-sizing: border-box;
}

:root {
  --sp-navy: #10123f;
  --sp-blue: #0019ff;
  --sp-sky: #53aef1;
  --sp-steel: #8fb0c2;
  --sp-soft: #e8f1f6;
  --sp-gray: #a8aabb;
  --sp-text: #111827;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--sp-text);
  background: #f8fafc;
  overflow-x: hidden;
}

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

img,
svg,
video {
  max-width: 100%;
}

button {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 7%;
  background: var(--sp-navy);
  color: #fff;
  font-size: 14px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 10px;
  outline: none;
}

.topbar-left option {
  color: var(--sp-navy);
}

.social-icons,
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icons a,
.footer-social a {
  color: #fff;
  transition: transform 0.25s ease, color 0.25s ease;
}

.social-icons > a:not(.top-admin-link) {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.social-icons a:hover,
.footer-social a:hover {
  color: #60a5fa;
  transform: translateY(-3px) rotate(8deg);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 7%;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.admin-topbar {
  display: none;
}

.admin-navbar {
  justify-content: flex-start;
  gap: 48px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.admin-navbar .brand-logo {
  margin-right: auto;
}

.admin-navbar .menu {
  margin-left: auto;
}

.admin-navbar .menu a {
  padding: 8px 0;
}

.admin-appbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 7%;
  background: #171a1b;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  height: 58px;
}

.admin-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 8px;
  padding: 6px;
}

.admin-top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.admin-top-nav a,
.admin-nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 9px 12px;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-top-nav a:hover,
.admin-top-nav a.active,
.admin-nav-dropdown:hover .admin-nav-dropdown-btn,
.admin-nav-dropdown.active .admin-nav-dropdown-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-nav-dropdown {
  position: relative;
}

.admin-nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: none;
  min-width: 220px;
  transform: translateX(-50%);
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.2);
  z-index: 120;
}

.admin-nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.admin-nav-dropdown:hover .admin-nav-menu,
.admin-nav-dropdown:focus-within .admin-nav-menu {
  display: grid;
  gap: 6px;
}

.admin-nav-menu a {
  justify-content: flex-start;
  width: 100%;
  color: #334155;
  padding: 10px;
}

.admin-nav-menu a:hover,
.admin-nav-menu a.active {
  color: #0f766e;
  background: #eef6ff;
  border-color: transparent;
}

.admin-top-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.admin-appbar.logged-out {
  grid-template-columns: 240px 1fr;
}

.admin-appbar.logged-out .admin-top-nav,
.admin-appbar.logged-out .admin-top-actions {
  display: none;
}

.admin-user-menu {
  position: relative;
}

.admin-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.admin-user-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 240px;
  display: none;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.2);
}

.admin-user-menu:hover .admin-user-dropdown,
.admin-user-menu:focus-within .admin-user-dropdown {
  display: grid;
  gap: 8px;
}

.admin-user-dropdown strong,
.admin-user-dropdown small {
  display: block;
}

.admin-user-dropdown small {
  color: #64748b;
  margin-bottom: 8px;
}

.admin-user-dropdown a,
.admin-user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  padding: 9px;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.admin-user-dropdown a:hover,
.admin-user-dropdown button:hover {
  background: #eef6ff;
  color: #0f766e;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 260px;
  min-width: 260px;
  height: 74px;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.navbar .brand-logo img {
  max-height: 74px;
}

.footer-brand {
  width: 260px;
  min-width: 260px;
  height: 74px;
}

.footer-brand img {
  filter: none;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.admin-link {
  opacity: 0.78;
  font-size: 13px;
}

.admin-link:hover {
  opacity: 1;
  color: var(--sp-sky);
}

.top-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(83, 174, 241, 0.16));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.top-admin-link:hover {
  background: #fff;
  border-color: #fff;
  color: var(--sp-navy);
  transform: translateY(-2px);
}

.top-admin-link i {
  color: var(--sp-sky);
}

.top-admin-link:hover i {
  color: var(--sp-blue);
}

.admin-page {
  padding: 42px 7% 80px;
  background: #eef3f0;
  min-height: 70vh;
}

.admin-page.locked {
  display: none;
}

.admin-login-page {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  padding: 60px 18px;
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 25, 255, 0.14), transparent 28%),
    radial-gradient(circle at 76% 72%, rgba(83, 174, 241, 0.18), transparent 28%),
    linear-gradient(135deg, #f8fbff, #eef6ff);
}

.admin-login-page.hidden {
  display: none;
}

.admin-login-card {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid #e5edf4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  text-align: center;
  backdrop-filter: blur(16px);
}

.admin-login-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  color: #fff;
  font-size: 26px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 34px;
}

.admin-login-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 10px 0 20px;
}

.admin-login-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
}

.admin-login-card input:focus {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 4px rgba(0, 25, 255, 0.1);
}

.admin-login-card button {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--sp-blue);
  color: #fff;
  padding: 13px;
  cursor: pointer;
  font-weight: 900;
}

.admin-login-card small {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: #ef4444;
  font-weight: 800;
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  padding: 18px;
  border: 1px solid #d8e4dd;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e5edf4;
}

.admin-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  color: #fff;
}

.admin-profile strong,
.admin-profile span {
  display: block;
}

.admin-profile span {
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.admin-list-title {
  display: block;
  margin: 4px 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.admin-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-side-link:hover,
.admin-side-link.active {
  background: #dff3eb;
  color: #0f766e;
  transform: translateX(3px);
}

.admin-main-panel {
  min-width: 0;
}

.admin-section-hidden {
  display: none !important;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: linear-gradient(135deg, #e6fff3, #ffffff 72%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.admin-head h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.admin-head p {
  margin: 8px 0 0;
  color: #64748b;
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logout-btn {
  border: 1px solid #e5edf4;
  border-radius: 8px;
  background: #fff;
  color: var(--sp-navy);
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.logout-btn:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 0;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.notification-btn span {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 12px;
}

.notification-panel {
  display: none;
  position: fixed;
  top: 84px;
  right: 7%;
  z-index: 120;
  width: min(360px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid #d8e4dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.notification-panel.show {
  display: block;
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.notification-panel-head button {
  border: 0;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--sp-blue);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

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

.notification-list p {
  margin: 0;
  color: #64748b;
}

.notification-item {
  padding: 12px;
  border-radius: 12px;
  background: #f5fbf8;
  border-left: 4px solid #0f766e;
}

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

.notification-item span {
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #0f766e;
  font-weight: 900;
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.admin-grid:has(.admin-chat-workspace),
.admin-grid:has(.admin-table-card),
.admin-grid:has(.contact-message-board) {
  grid-template-columns: 1fr;
}

.compact-admin-grid {
  margin-bottom: 28px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.analytics-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.analytics-head-actions span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e4dd;
  border-radius: 999px;
  background: #fff;
  color: #0f766e;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.analytics-head-actions i {
  color: #22c55e;
  font-size: 9px;
}

.dashboard-stat {
  position: relative;
  overflow: hidden;
  min-height: 154px;
  background: linear-gradient(180deg, #fff, #fbfefd);
  border: 1px solid #d8e4dd;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-stat:hover {
  border-color: #b7d9cb;
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.11);
  transform: translateY(-3px);
}

.dashboard-stat i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-size: 15px;
}

.dashboard-stat::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.09);
}

.dashboard-stat span {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--sp-navy);
  font-size: 34px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dashboard-stat small {
  display: block;
  margin-top: 9px;
  color: #74839a;
  font-size: 12px;
  font-weight: 750;
}

.metric-progress {
  height: 6px;
  margin-top: 15px;
  border-radius: 999px;
  background: #e8f2ee;
  overflow: hidden;
}

.metric-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #22c55e);
}

.metric-progress.warning span {
  background: linear-gradient(90deg, #f97316, #facc15);
}

.metric-progress.blue span {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 8px 0 18px;
  padding: 14px;
  border: 1px solid #d8e4dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr);
  gap: 22px;
  margin-bottom: 24px;
}

.admin-analytics-card,
.admin-traffic-card {
  border: 1px solid #d8e4dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfefd);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.admin-analytics-card {
  padding: 24px;
}

.admin-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-card-heading h2,
.admin-traffic-card h2 {
  margin: 0;
  color: #111827;
  font-size: 26px;
}

.admin-card-heading p {
  margin: 5px 0 0;
  color: #64748b;
}

.admin-card-heading span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #dff3eb;
  color: #0f766e;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-legend span {
  background: #f7fbfa;
  border: 1px solid #edf3ef;
  color: #334155;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.messages {
  background: #9d2d56;
}

.legend-dot.activity {
  background: #0f766e;
}

.admin-line-chart {
  position: relative;
  height: 286px;
  border: 1px solid #edf3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfefd, #f6fbf8);
  overflow: hidden;
  padding-bottom: 42px;
}

.admin-line-chart svg {
  width: 100%;
  height: calc(100% - 38px);
}

.chart-area {
  fill: rgba(157, 45, 86, 0.09);
}

.chart-grid {
  fill: none;
  stroke: #dbe7e0;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: #9d2d56;
  stroke-width: 4;
  stroke-linecap: round;
}

.admin-line-chart circle {
  fill: #9d2d56;
  stroke: #fff;
  stroke-width: 4;
}

.chart-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.chart-footer strong {
  color: #0f766e;
}

.chart-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.chart-insights div {
  border: 1px solid #edf3ef;
  border-radius: 12px;
  background: #fbfefd;
  padding: 13px 14px;
}

.chart-insights span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.chart-insights strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 16px;
}

.admin-traffic-card {
  padding: 24px;
}

.traffic-ring {
  width: 190px;
  height: 190px;
  margin: 18px auto 24px;
  border-radius: 50%;
  background: conic-gradient(#6d50d8 0 58%, #0f8f79 58% 84%, #0ea5e9 84% 94%, #d94687 94% 100%);
  position: relative;
  box-shadow: 0 18px 40px rgba(109, 80, 216, 0.18);
}

.traffic-ring::after {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf3ef;
}

.traffic-ring span {
  position: absolute;
  inset: 42px;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.traffic-ring small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-traffic-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #64748b;
  font-weight: 800;
}

.admin-traffic-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid #edf3ef;
  border-radius: 12px;
  background: #fbfefd;
  padding: 11px 12px;
}

.admin-traffic-card li span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.admin-traffic-card li b {
  flex: 1;
  color: #334155;
}

.admin-traffic-card li strong {
  color: #0f766e;
  font-size: 13px;
}

.admin-traffic-card .direct { background: #6d50d8; }
.admin-traffic-card .referral { background: #0f8f79; }
.admin-traffic-card .social { background: #0ea5e9; }
.admin-traffic-card .search { background: #d94687; }

.dashboard-toolbar h2 {
  margin: 0;
}

.dashboard-toolbar p {
  margin: 4px 0 0;
  color: #64748b;
}

.admin-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d8e4dd;
  border-radius: 10px;
  background: #f5fbf8;
}

.admin-tabs button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: #0f766e;
  color: #fff;
}

.admin-search-inline {
  min-width: min(360px, 100%);
  display: grid;
  gap: 7px;
}

.admin-search-inline input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #b7d9cb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.admin-search-inline input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.admin-search-inline span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.admin-analytics-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}

.analytics-list {
  display: grid;
  gap: 12px;
}

.analytics-subtitle {
  margin: 22px 0 12px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.analytics-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #edf3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfefd, #f8fcfa);
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.analytics-list div:hover {
  border-color: #b7d9cb;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.analytics-list .metric-row,
.top-pages-list div {
  position: relative;
  min-height: 76px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 18px 22px;
}

.analytics-list .metric-row::before,
.top-pages-list div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #0f766e, #2563eb);
}

.analytics-list .metric-row em,
.top-pages-list em {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 5px;
  border-radius: 999px;
  background: #e8f2ee;
  overflow: hidden;
}

.analytics-list .metric-row em::after,
.top-pages-list em::after {
  content: "";
  display: block;
  width: var(--bar, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #38bdf8);
}

.analytics-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 850;
}

.social-click-list i {
  width: 18px;
  color: #0019ff;
}

.analytics-list strong {
  min-width: 42px;
  border-radius: 999px;
  background: #dff3eb;
  color: #0f766e;
  padding: 5px 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.top-pages-list {
  display: grid;
  gap: 14px;
}

.top-pages-list div {
  border: 1px solid #edf3ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfefd, #f8fcfa);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-pages-list div:hover {
  border-color: #b7d9cb;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  transform: translateY(-2px);
}

.top-pages-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-weight: 900;
}

.top-pages-list i,
.analytics-list .metric-row span i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e9f8f2;
  color: #0f766e;
}

.top-pages-list strong {
  border-radius: 999px;
  background: #dff3eb;
  color: #0f766e;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 900;
}

.analytics-list .metric-row strong {
  min-width: 42px;
  border-radius: 999px;
  background: #dff3eb;
  color: #0f766e;
  padding: 6px 11px;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.admin-chat-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.5fr);
  gap: 22px;
}

.conversation-list,
.conversation-panel,
.admin-table-card {
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.conversation-list {
  padding: 16px;
}

.conversation-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.conversation-list-head strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dff3eb;
  color: #0f766e;
  letter-spacing: 0;
}

.conversation-items {
  display: grid;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.conversation-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  width: 100%;
  border: 1px solid #edf3ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.conversation-item:hover,
.conversation-item.active {
  border-color: #0f766e;
  background: #effaf5;
  transform: translateY(-2px);
}

.conversation-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3eb;
  color: #0f766e;
}

.conversation-item strong,
.conversation-item small,
.conversation-item em {
  display: block;
}

.conversation-item strong {
  color: #111827;
}

.conversation-item small {
  color: #64748b;
  font-size: 12px;
  margin: 2px 0 8px;
}

.conversation-item em {
  color: #334155;
  font-style: normal;
  line-height: 1.45;
}

.conversation-item b {
  align-self: end;
  color: #0f766e;
  font-size: 11px;
}

.conversation-panel {
  display: none;
  padding: 22px;
}

.conversation-panel.active {
  display: block;
}

.quick-replies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-replies button {
  border: 1px solid #b7d9cb;
  border-radius: 8px;
  background: #f5fbf8;
  color: #0f766e;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.quick-replies button:hover {
  background: #dff3eb;
}

.admin-table-card {
  overflow: auto;
}

.admin-data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-data-table th,
.admin-data-table td {
  padding: 16px;
  border-bottom: 1px solid #edf3ef;
  text-align: left;
  vertical-align: top;
}

.admin-data-table th {
  background: #f5fbf8;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.admin-data-table td {
  color: #334155;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-data-table td span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-top: 3px;
}

.subscriber-table th:nth-child(1),
.subscriber-table td:nth-child(1) {
  width: 10%;
}

.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2) {
  width: 22%;
}

.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
  width: 36%;
}

.subscriber-table th:nth-child(4),
.subscriber-table td:nth-child(4) {
  width: 16%;
}

.subscriber-table th:nth-child(5),
.subscriber-table td:nth-child(5) {
  width: 16%;
}

.request-board {
  display: grid;
  gap: 18px;
}

.request-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.request-summary-grid div {
  border: 1px solid #d8e4dd;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.request-summary-grid span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.request-summary-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 28px;
}

.request-list {
  display: grid;
  gap: 16px;
}

.contact-message-board {
  display: grid;
  gap: 18px;
}

.contact-message-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.contact-message-toolbar h3 {
  margin: 0;
  color: #111827;
  font-size: 24px;
}

.contact-message-toolbar p {
  margin: 5px 0 0;
  color: #64748b;
}

.contact-message-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-message-controls button {
  border: 1px solid #d8e4dd;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.contact-message-controls button.active,
.contact-message-controls button:hover {
  background: #0f766e;
  color: #fff;
  transform: translateY(-1px);
}

.contact-message-controls input {
  min-width: 260px;
  border: 1px solid #cfe0eb;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  padding: 11px 13px;
  font-size: 14px;
  outline: none;
}

.contact-message-controls input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.contact-message-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.contact-message-list {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.contact-message-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #e5ece8;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 14px;
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-message-item:hover,
.contact-message-item.active {
  border-color: #0f766e;
  background: #effaf6;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}

.contact-message-item span:not(.contact-avatar) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-message-item strong,
.contact-message-item b,
.contact-message-item small,
.contact-message-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-message-item strong {
  font-size: 15px;
  color: #111827;
}

.contact-message-item em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.contact-message-item b {
  color: #334155;
  font-size: 13px;
}

.contact-message-item small {
  color: #64748b;
  font-size: 12px;
}

.contact-message-item i {
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #fff;
  font-weight: 900;
}

.contact-avatar.small {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.contact-detail-card {
  position: relative;
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.contact-delete-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 16px;
  cursor: default;
  opacity: 0.7;
}

.contact-detail-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid #e5ece8;
  padding-bottom: 16px;
}

.contact-detail-header h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 22px;
}

.contact-detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.contact-detail-meta span {
  overflow-wrap: anywhere;
}

.contact-message-box {
  margin-top: 18px;
}

.contact-message-box strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-weight: 900;
}

.contact-message-box p {
  margin: 10px 0 0;
  border: 1px solid #e5ece8;
  border-radius: 10px;
  background: #fbfefd;
  color: #334155;
  padding: 14px;
  min-height: 48px;
}

.contact-reply-panel {
  background: #f7fbfa;
}

.composer-helper {
  margin: 2px 0 0;
  border-radius: 9px;
  background: #eef7ff;
  color: #416485;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.request-card {
  border: 1px solid #d8e4dd;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.request-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.request-card h3 {
  margin: 4px 0 0;
  color: #111827;
}

.request-date {
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.request-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.request-info-grid div {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  background: #f7fbf9;
  padding: 11px 12px;
  color: #334155;
  min-width: 0;
}

.request-info-grid i {
  color: #0f766e;
  width: 18px;
  flex: 0 0 auto;
}

.request-info-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.request-message {
  margin: 0 0 14px;
  border-radius: 10px;
  background: #fbfefd;
  border: 1px solid #edf3ef;
  padding: 13px;
  color: #334155;
  line-height: 1.6;
}

.request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.request-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b7d9cb;
  border-radius: 8px;
  background: #f5fbf8;
  color: #0f766e;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.request-actions a:hover {
  background: #dff3eb;
  transform: translateY(-2px);
}

.admin-mail-composer,
.newsletter-composer {
  margin-top: 16px;
  border: 1px solid #d8e4dd;
  border-radius: 12px;
  background: #f8fbff;
  padding: 16px;
}

.newsletter-composer h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #111827;
  font-weight: 900;
}

.admin-mail-composer {
  display: grid;
  gap: 10px;
}

.mail-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mail-composer-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-size: 15px;
  font-weight: 900;
}

.mail-composer-head span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.newsletter-composer p {
  margin: 0 0 14px;
  color: #64748b;
}

.admin-mail-composer input,
.admin-mail-composer textarea,
.newsletter-fields input,
.newsletter-fields textarea {
  width: 100%;
  border: 1px solid #cfe0eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.admin-mail-composer textarea {
  min-height: 96px;
  resize: vertical;
}

.mail-composer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-fields {
  display: grid;
  gap: 10px;
}

.newsletter-fields textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-mail-composer input:focus,
.admin-mail-composer textarea:focus,
.newsletter-fields input:focus,
.newsletter-fields textarea:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.admin-mail-composer button,
.newsletter-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.admin-mail-composer button {
  margin-top: 0;
}

.admin-mail-composer button:hover,
.newsletter-actions button:hover {
  background: #115e59;
  transform: translateY(-2px);
}

.admin-mail-composer button:disabled,
.newsletter-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.mail-composer-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b7d9cb;
  border-radius: 9px;
  background: #fff;
  color: #0f766e;
  padding: 10px 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mail-composer-actions a:hover {
  background: #e9f8f2;
  transform: translateY(-2px);
}

.newsletter-composer {
  grid-column: 1 / -1;
  margin: 0 0 18px;
}

.subscriber-reply-composer {
  display: grid;
  gap: 14px;
}

.subscriber-row-reply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #b7d9cb;
  border-radius: 9px;
  background: #f5fbf8;
  color: #0f766e;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.subscriber-row-reply:hover {
  background: #dff3eb;
  transform: translateY(-2px);
}

.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.newsletter-actions label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.subscriber-select,
#selectAllSubscribers {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.admin-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  border: 1px solid #d8e4dd;
}

.admin-card h3 {
  margin: 0;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.open {
  background: #fff7ed;
  color: #c2410c;
}

.status-badge.replied {
  background: #dcfce7;
  color: #15803d;
}

.admin-meta,
.admin-message,
.admin-reply {
  color: #64748b;
  line-height: 1.6;
  margin: 8px 0;
}

.admin-thread {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e5edf4;
}

.admin-thread-message {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.admin-thread-message.user {
  border-bottom-left-radius: 5px;
}

.admin-thread-message.admin {
  margin-left: auto;
  background: linear-gradient(135deg, #eaf3ff, #eef2ff);
  border-color: rgba(0, 25, 255, 0.12);
  border-bottom-right-radius: 5px;
}

.admin-thread-message span {
  display: block;
  margin-bottom: 4px;
  color: var(--sp-blue);
  font-size: 12px;
  font-weight: 900;
}

.admin-thread-message p {
  margin: 0;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}

.admin-card textarea,
.conversation-panel textarea {
  width: 100%;
  min-height: 95px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  resize: vertical;
  outline: none;
}

.admin-card button {
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--sp-blue);
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.admin-card button:hover {
  background: var(--sp-navy);
  transform: translateY(-2px);
}

.save-reply-btn {
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.save-reply-btn:hover {
  background: #115e59;
  transform: translateY(-2px);
}

.admin-empty {
  grid-column: 1 / -1;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  color: #64748b;
  text-align: center;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sp-blue), var(--sp-sky));
  z-index: 2000;
  transition: width 0.08s linear;
  display: block;
}

.logo-fallback {
  display: none;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-block;
  border-left: 8px solid var(--sp-navy);
  border-top: 8px solid var(--sp-navy);
  border-bottom: 8px solid var(--sp-steel);
  transform: skewY(-24deg);
}

.logo-mark span {
  position: absolute;
  right: -12px;
  width: 30px;
  height: 8px;
  display: block;
  transform: skewY(24deg);
}

.logo-mark span:nth-child(1) {
  top: 6px;
  background: var(--sp-sky);
}

.logo-mark span:nth-child(2) {
  top: 17px;
  background: var(--sp-blue);
}

.logo-mark span:nth-child(3) {
  top: 28px;
  background: var(--sp-steel);
}

.logo-copy {
  color: var(--sp-navy);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 0.9;
}

.logo-copy small {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 5px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-brand .logo-copy,
.footer-brand .logo-copy small {
  color: #fff;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}

.menu a {
  position: relative;
  transition: color 0.25s ease;
}

.menu a:hover {
  color: var(--sp-blue);
}

.menu a.active {
  color: var(--sp-blue);
}

.menu > a::after,
.dropdown > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--sp-blue);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.menu > a:hover::after,
.dropdown > a:hover::after,
.menu > a.active::after,
.dropdown > a.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 210px;
  display: none;
  background: #fff;
  border: 1px solid #e5edf4;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  z-index: 80;
}

.dropdown-content::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-content a i {
  width: 18px;
  color: var(--sp-blue);
}

.dropdown-content a:hover {
  background: #eff6ff;
  color: var(--sp-blue);
  padding-left: 18px;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.service-dropdown {
  min-width: 260px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  height: 42px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box:focus-within {
  background: #fff;
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 12px 28px rgba(15, 23, 42, 0.12);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-box button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  color: #fff;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.36);
}

.hero button,
.about-left button,
.footer-col button,
.contact-right button,
.popup-box button {
  border: 0;
  border-radius: 8px;
  background: var(--sp-blue);
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero button:hover,
.about-left button:hover,
.footer-col button:hover,
.contact-right button:hover,
.popup-box button:hover {
  background: var(--sp-navy);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 7%;
  width: 312px;
  display: none;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.3);
  padding: 14px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.search-results.show {
  display: block;
}

.search-title {
  color: #60a5fa;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.result-card {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  cursor: pointer;
  display: block;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.result-card h4,
.result-card p {
  margin: 0;
}

.result-card h4 {
  color: #fff;
  font-size: 15px;
}

.result-card p {
  color: #cbd5e1;
  font-size: 13px;
  margin-top: 2px;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 90px 7%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(124, 58, 237, 0.18), transparent 28%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 46%, #f5f3ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero-left,
.hero-right {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--sp-blue);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  color: #0f172a;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 0.98;
  letter-spacing: -1px;
}

.hero p {
  color: #475569;
  font-size: 20px;
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-actions a:hover {
  color: var(--sp-blue);
  border-color: var(--sp-blue);
  transform: translateY(-3px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--sp-blue);
  font-size: 26px;
}

.hero-stats span {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.hero-right {
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero-right img {
  width: min(360px, 80%);
  animation: floatImage 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-right img:hover {
  transform: scale(1.06) rotate(2deg);
}

.ai-showcase {
  position: relative;
  width: min(520px, 100%);
  min-height: 500px;
}

.ai-showcase::before {
  content: "";
  position: absolute;
  inset: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.08), transparent 68%);
  animation: softSpin 9s linear infinite;
}

.ai-panel {
  position: absolute;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px);
}

.main-panel {
  top: 60px;
  left: 50%;
  width: min(390px, 86vw);
  padding: 18px;
  border-radius: 22px;
  transform: translateX(-50%);
  animation: floatImage 4.5s ease-in-out infinite;
}

.panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.panel-top span:nth-child(1) { background: #ef4444; }
.panel-top span:nth-child(2) { background: #f59e0b; }
.panel-top span:nth-child(3) { background: #22c55e; }

.ai-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-blue));
  color: #fff;
}

.ai-chip i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
}

.ai-chip strong,
.ai-chip small {
  display: block;
}

.ai-chip small {
  margin-top: 4px;
  color: #bfdbfe;
}

.code-lines {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.code-lines span {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #93c5fd, #e0e7ff);
}

.code-lines span:nth-child(1) { width: 90%; }
.code-lines span:nth-child(2) { width: 72%; }
.code-lines span:nth-child(3) { width: 82%; }

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-row div {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.metric-row strong,
.metric-row small {
  display: block;
}

.metric-row strong {
  color: var(--sp-blue);
  font-size: 24px;
}

.metric-row small {
  color: #64748b;
  margin-top: 4px;
}

.mini-panel,
.growth-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 250px;
  padding: 16px;
  border-radius: 18px;
}

.mini-panel {
  left: 0;
  bottom: 96px;
  animation: floatSmall 4.2s ease-in-out infinite;
}

.growth-panel {
  right: 0;
  bottom: 42px;
  animation: floatSmall 4.8s ease-in-out infinite;
}

.mini-panel i,
.growth-panel i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--sp-blue);
}

.growth-panel i {
  background: var(--sp-sky);
}

.mini-panel strong,
.mini-panel small,
.growth-panel strong,
.growth-panel small {
  display: block;
}

.mini-panel small,
.growth-panel small {
  color: #64748b;
  margin-top: 3px;
}

.ai-orbit {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
  z-index: 2;
}

.orbit-one {
  top: 20px;
  right: 60px;
  animation: floatSmall 3.7s ease-in-out infinite;
}

.orbit-two {
  top: 210px;
  left: 22px;
  animation: floatSmall 4.4s ease-in-out infinite;
}

.orbit-three {
  top: 250px;
  right: 26px;
  animation: floatSmall 4s ease-in-out infinite;
}

.about,
.services,
.contact-pro {
  padding: 80px 7%;
}

.about-container,
.contact-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.about-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--sp-blue);
  font-weight: 800;
}

.about-left h1,
.contact-left h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.about-left span,
.contact-left span {
  color: var(--sp-blue);
}

.about-left p,
.contact-left p,
.service-card p,
.footer p {
  color: #64748b;
  line-height: 1.65;
}

.about-right img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  background: #dbeafe;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-right img:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.section-title {
  text-align: center;
  margin: 0 0 36px;
  font-size: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card,
.info-box,
.contact-right form {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 25, 255, 0), rgba(83, 174, 241, 0.8), rgba(0, 25, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--sp-sky), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

a.service-card {
  color: inherit;
  display: block;
  scroll-margin-top: 150px;
}

.service-card:hover,
.info-box:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.16);
}

.service-card:hover {
  border-color: rgba(83, 174, 241, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.16), 0 18px 42px rgba(83, 174, 241, 0.16);
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 1;
}

.service-card.service-focus {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(0, 25, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%),
    radial-gradient(circle at 84% 18%, rgba(83, 174, 241, 0.18), transparent 32%);
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.16),
    0 18px 46px rgba(0, 25, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.service-card.service-focus::before,
.service-card.service-focus::after {
  opacity: 1;
}

.service-card.service-focus .icon {
  transform: scale(1.14) rotate(7deg);
  box-shadow: 0 16px 30px rgba(0, 25, 255, 0.18), 0 0 0 8px rgba(83, 174, 241, 0.08);
}

.service-card:active {
  transform: translateY(-4px) scale(0.995);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 12px;
  color: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover .icon,
.info-box:hover .icon {
  transform: scale(1.14) rotate(7deg);
  box-shadow: 0 16px 30px rgba(0, 25, 255, 0.18), 0 0 0 8px rgba(83, 174, 241, 0.08);
}

.purple { background: var(--sp-navy); }
.blue { background: var(--sp-blue); }
.pink { background: #ec4899; }
.violet { background: #8b5cf6; }
.orange { background: #f97316; }
.green { background: #22c55e; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-box h4,
.info-box p {
  margin: 0;
}

.contact-right form,
.popup-box form {
  display: grid;
  gap: 14px;
}

.contact-right input,
.contact-right textarea,
.popup-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-right input:focus,
.contact-right textarea:focus,
.popup-box input:focus,
.live-chat-form input:focus,
.live-chat-form textarea:focus {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.contact-right textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  background: #020617;
  color: #fff;
  padding: 60px 7% 24px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.popup {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  z-index: 997;
  padding: 20px;
}

.popup.show {
  display: grid;
}

.popup-box {
  position: relative;
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c1d95, #1e293b);
  color: #fff;
  text-align: center;
}

.popup-box h2,
.popup-box p {
  margin: 0 0 10px;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  font-size: 20px;
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #22c55e;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(143, 176, 194, 0.28);
  border-radius: 16px;
  background: rgba(16, 18, 63, 0.96);
  color: #fff;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-banner p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--sp-blue);
  color: #fff;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}

.cookie-actions .secondary-cookie {
  background: rgba(255, 255, 255, 0.12);
}

.admin-notification-toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 2200;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(83, 174, 241, 0.25);
  border-radius: 14px;
  background: rgba(16, 18, 63, 0.96);
  color: #fff;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-notification-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-notification-toast strong,
.admin-notification-toast span {
  display: block;
}

.admin-notification-toast span {
  color: #dbeafe;
  margin-top: 5px;
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0.02s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.14s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.26s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.32s; }

.live-chat-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
  z-index: 998;
  display: grid;
  place-items: center;
  animation: chatPulse 2.2s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.live-chat-button:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 22px 45px rgba(37, 99, 235, 0.48);
}

.live-chat-window {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: all 0.25s ease;
}

.live-chat-window.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.live-chat-header {
  background: linear-gradient(135deg, var(--sp-navy), var(--sp-blue));
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-chat-header h3 {
  margin: 0;
  font-size: 18px;
}

.live-chat-header p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.live-chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.live-chat-body {
  padding: 16px;
  background: #f8fafc;
  max-height: 250px;
  overflow-y: auto;
}

.chat-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message.support {
  background: #e0e7ff;
  color: #1e1b4b;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--sp-blue);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-message.system {
  max-width: 100%;
  margin: 10px auto 14px;
  background: linear-gradient(135deg, #eef6ff, #f5f8ff);
  color: var(--sp-blue);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(83, 174, 241, 0.25);
  box-shadow: 0 10px 22px rgba(0, 25, 255, 0.08);
}

.live-chat-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #fff;
}

.live-chat-form input,
.live-chat-form textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.live-chat-form textarea {
  min-height: 86px;
  resize: vertical;
}

.live-chat-form.chat-active .chat-identity-field {
  display: none;
}

.live-chat-form.chat-active {
  gap: 12px;
}

.live-chat-form.chat-active textarea {
  min-height: 110px;
}

.live-chat-form button {
  border: 0;
  border-radius: 10px;
  background: var(--sp-blue);
  color: #fff;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.live-chat-form button:hover {
  background: var(--sp-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.live-chat-note {
  color: #64748b;
  font-size: 12px;
  margin: 0;
  text-align: center;
}

.service-page {
  background: #f8fafc;
}

.service-hero-detail {
  padding: 80px 7%;
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.service-banner {
  width: min(980px, 100%);
  height: 280px;
  margin: 0 auto 28px;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 60px rgba(16, 18, 63, 0.18);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--sp-blue);
  font-weight: 800;
}

.service-detail-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sp-blue), var(--sp-sky));
  color: #fff;
  font-size: 30px;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.service-hero-detail h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.service-hero-detail p {
  max-width: 760px;
  margin: 18px auto 28px;
  color: #475569;
  font-size: 20px;
  line-height: 1.6;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sp-blue);
  color: #fff;
  padding: 13px 22px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-cta:hover {
  background: var(--sp-navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.34);
}

.service-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 70px 7%;
}

.service-content-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-content-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.14);
}

.service-content-card h2 {
  margin: 0 0 14px;
}

.service-content-card p,
.service-content-card li {
  color: #64748b;
  line-height: 1.7;
}

.service-content-card ul {
  margin: 0;
  padding-left: 20px;
}

.service-content-card li {
  margin-bottom: 10px;
}

.service-footer-bottom {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .navbar {
    gap: 18px;
    padding-left: 5%;
    padding-right: 5%;
  }

  .brand-logo {
    width: 230px;
    min-width: 230px;
    height: 66px;
  }

  .navbar .brand-logo img {
    max-height: 66px;
  }

  .menu {
    gap: 18px;
  }

  .search-box {
    width: 250px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-appbar {
    grid-template-columns: 210px 1fr auto;
    padding-left: 5%;
    padding-right: 5%;
  }

  .admin-appbar.logged-out {
    grid-template-columns: 210px 1fr;
  }

  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-analytics-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navbar,
  .menu,
  .footer-bottom {
    flex-wrap: wrap;
  }

  .hero,
  .about-container,
  .contact-pro,
  .footer-container,
  .service-content-wrap {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .contact-info {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding-top: 70px;
    gap: 36px;
  }

  .hero-right {
    min-height: 440px;
  }

  .ai-showcase {
    min-height: 430px;
  }

  .main-panel {
    top: 35px;
  }

  .navbar {
    gap: 22px;
  }

  .navbar .brand-logo {
    margin-right: auto;
  }

  .menu {
    justify-content: center;
    gap: 22px;
    order: 3;
    width: 100%;
  }

  .search-box {
    order: 2;
    width: min(420px, 100%);
    margin-left: auto;
  }

  .admin-login-page {
    min-height: calc(100vh - 160px);
    padding: 42px 20px;
  }

  .admin-login-card {
    width: min(520px, 100%);
  }

  .admin-appbar {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .admin-appbar.logged-out {
    grid-template-columns: 1fr;
  }

  .admin-brand {
    width: 168px;
  }

  .admin-top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-top-actions {
    justify-self: end;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-chat-workspace {
    grid-template-columns: 1fr;
  }

  .contact-message-layout {
    grid-template-columns: 1fr;
  }

  .contact-message-list {
    max-height: 360px;
  }

  .conversation-items {
    max-height: 360px;
  }

  .admin-card {
    min-width: 0;
  }

  .footer-container {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .topbar,
  .navbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-navbar {
    gap: 18px;
    align-items: center;
  }

  .admin-appbar {
    padding: 12px 16px;
  }

  .admin-brand {
    width: 150px;
    height: 50px;
  }

  .admin-top-nav {
    gap: 18px;
    scrollbar-width: none;
  }

  .admin-top-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-user-trigger span {
    display: none;
  }

  .admin-user-dropdown {
    right: -8px;
  }

  .admin-navbar .menu {
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar-left {
    width: 100%;
    justify-content: space-between;
  }

  .social-icons {
    width: 100%;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 210px;
    min-width: 210px;
    height: 60px;
  }

  .brand-logo img {
    max-height: 60px;
  }

  .logo-copy {
    font-size: 23px;
  }

  .hero,
  .about,
  .services,
  .contact-pro,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .menu,
  .services-grid,
  .contact-info {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .menu {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .dropdown {
    position: static;
  }

  .dropdown-content {
    left: 18px;
    right: 18px;
    top: auto;
    min-width: 0;
    margin-top: 12px;
  }

  .service-dropdown {
    min-width: 0;
  }

  .search-box {
    width: 100%;
  }

  .search-results {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .search-box input {
    flex: 1;
    width: auto;
  }

  .admin-login-page {
    min-height: calc(100vh - 128px);
    padding: 28px 14px;
  }

  .admin-login-card {
    padding: 26px 18px;
    border-radius: 18px;
  }

  .admin-login-card h1 {
    font-size: 28px;
  }

  .admin-login-card p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .admin-login-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 25px;
  }

  .admin-login-card input,
  .admin-login-card button {
    min-height: 52px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 56px;
  }

  .hero h1 {
    letter-spacing: 0;
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
  }

  .hero p {
    font-size: 17px;
    line-height: 1.55;
  }

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

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

  .hero-right {
    min-height: 340px;
  }

  .ai-showcase {
    min-height: 340px;
  }

  .main-panel {
    width: 100%;
    top: 24px;
  }

  .mini-panel,
  .growth-panel {
    width: 210px;
    padding: 13px;
  }

  .mini-panel {
    left: 4px;
    bottom: 86px;
  }

  .growth-panel {
    right: 4px;
    bottom: 18px;
  }

  .ai-orbit {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .orbit-one {
    right: 18px;
  }

  .orbit-two,
  .orbit-three {
    display: none;
  }

  .live-chat-button {
    right: 16px;
    bottom: 16px;
  }

  .live-chat-window {
    left: 12px;
    right: 12px;
    bottom: 82px;
    width: auto;
    max-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
  }

  .live-chat-body {
    max-height: 38vh;
    overflow-y: auto;
  }

  .live-chat-form {
    padding: 14px;
  }

  .live-chat-form textarea,
  .live-chat-form.chat-active textarea {
    min-height: 92px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
  }

  .service-banner {
    height: 190px;
  }

  .admin-head,
  .admin-grid,
  .dashboard-stats,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    gap: 16px;
  }

  .admin-page {
    padding: 24px 14px 64px;
  }

  .admin-sidebar {
    position: static;
    padding: 22px;
  }

  .admin-head {
    align-items: start;
    flex-direction: column;
  }

  .analytics-head-actions,
  .chart-insights {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .analytics-head-actions span {
    width: 100%;
    justify-content: center;
  }

  .admin-head h1 {
    font-size: 38px;
  }

  .stat-card {
    min-height: 120px;
  }

  .admin-thread {
    max-height: 230px;
  }

  .admin-thread-message {
    max-width: 94%;
  }

  .conversation-list,
  .conversation-panel,
  .admin-table-card {
    border-radius: 12px;
  }

  .conversation-panel,
  .conversation-list {
    padding: 16px;
  }

  .admin-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .contact-message-toolbar,
  .contact-detail-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-message-toolbar {
    align-items: stretch;
  }

  .contact-message-controls,
  .mail-composer-actions {
    width: 100%;
  }

  .contact-message-controls input,
  .mail-composer-actions button,
  .mail-composer-actions a {
    width: 100%;
  }

  .contact-detail-header {
    padding-right: 0;
  }

  .admin-tabs button {
    white-space: nowrap;
  }

  .admin-search-inline {
    width: 100%;
  }

  .admin-search-inline span {
    text-align: left;
  }

  .request-summary-grid,
  .request-info-grid {
    grid-template-columns: 1fr;
  }

  .admin-overview-grid {
    gap: 16px;
  }

  .admin-line-chart {
    height: 220px;
  }

  .traffic-ring {
    width: 146px;
    height: 146px;
  }

  .traffic-ring::after {
    inset: 32px;
  }

  .notification-panel {
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .dashboard-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-pro {
    gap: 28px;
  }

  .contact-right form,
  .service-card,
  .info-box {
    padding: 20px;
  }

  .footer-brand {
    width: 210px;
    min-width: 210px;
    height: 60px;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 184px;
    min-width: 184px;
    height: 54px;
  }

  .brand-logo img {
    max-height: 54px;
  }

  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 15px;
  }

  .admin-login-card {
    padding: 24px 14px;
  }

  .admin-head h1 {
    font-size: 32px;
  }

  .admin-brand {
    width: 132px;
  }

  .admin-top-nav {
    gap: 14px;
    font-size: 13px;
  }

  .admin-user-dropdown {
    width: 220px;
  }

  .top-admin-link {
    min-height: 38px;
    padding: 8px 12px;
  }

  .live-chat-button {
    width: 56px;
    height: 56px;
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes chatPulse {
  0%, 100% {
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
  }

  50% {
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.55), 0 0 0 10px rgba(37, 99, 235, 0.08);
  }
}

@keyframes floatSmall {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes softSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}
