:root {
  --bg: #f4f8fc;
  --bg-soft: #eef7ff;
  --card: #ffffff;
  --text: #111827;
  --muted: #607086;
  --muted-2: #8b98aa;
  --line: rgba(33, 65, 95, 0.12);
  --blue: #35b9ff;
  --blue-2: #3478ff;
  --cyan: #78e2ff;
  --navy: #10233f;
  --green: #2fc47d;
  --red: #ff5e68;
  --purple: #7c5cff;
  --shadow: 0 26px 70px rgba(34, 83, 128, 0.14);
  --shadow-soft: 0 14px 36px rgba(34, 83, 128, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 42%, var(--blue-2) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 226, 255, 0.28), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(52, 120, 255, 0.16), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.site-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy);
  white-space: nowrap;
}
.brand-mark {
  width: 56px;
  height: 38px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(53, 185, 255, 0.28);
}
.brand-text { font-size: 19px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
}
.site-nav a {
  position: relative;
  padding: 10px 0;
  opacity: 0.82;
  transition: 0.2s ease;
}
.site-nav a:hover,
.site-nav a.active { opacity: 1; color: var(--blue-2); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 99px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.2s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  opacity: 0.8;
}
.header-cta,
.primary-btn,
.secondary-btn,
.outline-btn {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.header-cta,
.primary-btn {
  color: white;
  background: var(--gradient);
  box-shadow: 0 16px 34px rgba(53, 185, 255, 0.30);
}
.header-cta:hover,
.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover { transform: translateY(-2px); }
.secondary-btn {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.outline-btn {
  color: var(--blue-2);
  background: rgba(53, 185, 255, 0.08);
  border: 1px solid rgba(53, 185, 255, 0.24);
}
.mobile-menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 99px;
  margin: 5px 0;
}

.page-section { padding: 84px 0; }
.page-section.tight { padding: 54px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-2);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.11em;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 16px;
}
h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
p { color: var(--muted); }
.lead {
  font-size: 20px;
  line-height: 1.65;
  color: #53647a;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 40px auto auto 50%;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 226, 255, .38), rgba(52, 120, 255, .08) 48%, transparent 68%);
  transform: translateX(-6%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 58px;
  align-items: center;
}
.hero-slider {
  min-height: 420px;
  position: relative;
}
.hero-slide {
  display: none;
  animation: fadeUp .45s ease both;
}
.hero-slide.active { display: block; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 26px;
}
.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: rgba(16, 35, 63, 0.16);
  cursor: pointer;
  transition: .22s ease;
}
.hero-dot.active {
  width: 34px;
  background: var(--gradient);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(34, 83, 128, 0.08);
}
.trust-chip i { color: var(--blue-2); }

.hero-visual {
  position: relative;
  min-height: 590px;
}
.hero-phone {
  position: relative;
  width: min(420px, 100%);
  min-height: 580px;
  margin: 0 auto;
  border-radius: 46px;
  padding: 18px;
  background: #0f2038;
  box-shadow: 0 34px 95px rgba(32, 73, 115, 0.24);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 544px;
  border-radius: 34px;
  background: linear-gradient(180deg, #f8fcff 0%, #edf7ff 100%);
}
.map-lines,
.map-lines::before,
.map-lines::after {
  position: absolute;
  content: "";
  background: rgba(20, 67, 100, 0.07);
  border-radius: 20px;
}
.map-lines { inset: 0; background: transparent; }
.map-lines::before { width: 86%; height: 22px; left: -6%; top: 42%; transform: rotate(-12deg); }
.map-lines::after { width: 26px; height: 108%; right: 30%; top: -4%; transform: rotate(8deg); }
.city-block { position:absolute; background:rgba(16,35,63,.075); border-radius: 8px; }
.city-block.b1 { width: 74px; height: 64px; left: 44px; top: 84px; }
.city-block.b2 { width: 96px; height: 72px; right: 44px; top: 116px; }
.city-block.b3 { width: 82px; height: 92px; left: 70px; bottom: 122px; }
.city-block.b4 { width: 132px; height: 54px; right: 36px; bottom: 76px; }
.phone-card-top {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.child-marker {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: grid;
  place-items: center;
}
.child-pulse {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(52,120,255,.14);
  animation: pulse 2.4s ease-in-out infinite;
}
.child-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: white;
  font-size: 36px;
  border: 5px solid white;
  box-shadow: 0 18px 42px rgba(52,120,255,.24);
}
.phone-bottom-sheet {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 -16px 45px rgba(34, 83, 128, .12);
}
.sheet-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-item {
  padding: 14px;
  border:1px solid var(--line);
  border-radius: 18px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}
.sheet-item i { color: var(--blue-2); margin-right: 7px; }
.float-card {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  color: var(--navy);
  font-weight: 900;
}
.float-card i { color: var(--blue-2); font-size: 21px; }
.float-card.sos { right: 0; top: 84px; }
.float-card.battery { left: -18px; bottom: 170px; }
.float-card.video { right: -24px; bottom: 112px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card,
.product-card,
.info-card,
.price-card,
.download-card,
.faq-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}
.feature-card::after,
.product-card::after,
.price-card::after {
  content: "";
  position:absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  right: -70px;
  top: -80px;
  background: rgba(53,185,255,.10);
}
.icon-bubble {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  font-size: 25px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(120,226,255,.22), rgba(52,120,255,.10));
  margin-bottom: 22px;
}
.product-card.big {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card .link-arrow,
.link-arrow {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: var(--blue-2);
  font-weight: 900;
  margin-top: 12px;
}
.gradient-panel {
  border-radius: var(--radius-xl);
  padding: 46px;
  color: white;
  background: linear-gradient(135deg, #103a63 0%, #237cff 48%, #57d9ff 100%);
  box-shadow: var(--shadow);
}
.gradient-panel p { color: rgba(255,255,255,.82); }
.gradient-panel .secondary-btn { color: var(--navy); }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.check-list,
.clean-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.check-list li,
.clean-list li {
  display: flex;
  gap: 12px;
  margin: 13px 0;
  color: #3f5066;
}
.check-list i,
.clean-list i { color: var(--blue-2); margin-top: 4px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  padding: 26px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.stat-card strong {
  display:block;
  font-size: 34px;
  color: var(--navy);
  letter-spacing: -0.05em;
}
.stat-card span { color: var(--muted); font-weight: 700; }

.page-hero {
  padding: 72px 0 34px;
}
.page-hero-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 52px;
}
.hero-mini-visual {
  min-height: 330px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 32% 28%, rgba(52,120,255,.18), transparent 22%),
    radial-gradient(circle at 70% 62%, rgba(120,226,255,.25), transparent 24%),
    linear-gradient(135deg, #f6fbff, #eaf6ff);
  position: relative;
  overflow: hidden;
}
.hero-mini-visual i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  color: white;
  font-size: 44px;
  background: var(--gradient);
  box-shadow: 0 24px 60px rgba(52,120,255,.22);
}
.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item {
  display:grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
}
.timeline-number {
  width:52px; height:52px; border-radius:18px; display:grid; place-items:center;
  background:var(--gradient); color:#fff; font-weight:950;
}
.price-card.featured {
  border-color: rgba(52,120,255,.28);
  transform: translateY(-12px);
}
.price {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.price small { font-size: 15px; color: var(--muted); }
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px;
}
.form-grid { display:grid; gap:14px; }
.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text);
  background: #fbfdff;
}
.form-grid textarea { padding: 14px 16px; min-height: 130px; resize: vertical; }

.site-footer {
  margin-top: 70px;
  padding: 64px 0 30px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 42px;
}
.footer-brand p { max-width: 420px; margin: 20px 0; }
.footer-socials { display:flex; gap:10px; }
.footer-socials a {
  width:42px; height:42px; border-radius:14px; display:grid; place-items:center;
  color: var(--blue-2); background: rgba(53,185,255,.10);
}
.footer-col h4 { margin-bottom: 16px; color: var(--navy); }
.footer-col a { display:block; color: var(--muted); margin: 10px 0; font-weight: 700; }
.footer-col a:hover { color: var(--blue-2); }
.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-weight: 700;
}

.admin-login-body { background: var(--bg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(.92); opacity: .75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 1020px) {
  .site-container { width: min(100% - 32px, 920px); }
  .site-nav,
  .site-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .site-nav.open {
    display: grid;
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    padding: 20px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow);
    gap: 8px;
  }
  .site-nav.open a { padding: 12px 14px; border-radius: 14px; }
  .site-nav.open a:hover { background: rgba(53,185,255,.08); }
  .hero-grid,
  .split-section,
  .page-hero-card { grid-template-columns: 1fr; }
  .hero-slider { min-height: auto; }
  .hero-visual { min-height: auto; }
  .cards-grid,
  .cards-grid.two,
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: 45px; }
  h2 { font-size: 34px; }
  .hero { padding-top: 46px; }
  .hero-phone { min-height: 520px; }
  .phone-screen { min-height: 484px; }
  .cards-grid,
  .cards-grid.two,
  .stats-row,
  .footer-grid { grid-template-columns: 1fr; }
  .page-section { padding: 58px 0; }
  .page-hero-card,
  .gradient-panel { padding: 28px; }
  .float-card.video,
  .float-card.battery { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* ===== Family360+ premium UX patch v3 ===== */
:root {
  --font-main: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blue-glow: rgba(53, 185, 255, 0.36);
  --deep-glow: rgba(52, 120, 255, 0.22);
}

body {
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 8% 8%, rgba(120, 226, 255, 0.30), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(52, 120, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #f2f8fe 42%, #eef6fd 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(39, 118, 186, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 118, 186, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.6), transparent 72%);
}

h1, h2, h3, h4, .brand, .site-nav, .primary-btn, .secondary-btn, .outline-btn, .header-cta {
  font-family: var(--font-main);
}

h1 {
  letter-spacing: -0.055em;
  font-weight: 900;
}

h2 {
  letter-spacing: -0.045em;
  font-weight: 900;
}

h3 { font-weight: 850; }

.site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(36, 110, 174, 0.10);
  box-shadow: 0 18px 50px rgba(16, 55, 95, 0.045);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(16, 55, 95, 0.09);
}

.brand-mark {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,.5) 48%, transparent 64%);
  transform: translateX(-70%) rotate(12deg);
  animation: brandShine 4.8s ease-in-out infinite;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 4px;
}

.site-nav a::after {
  height: 2px;
  bottom: 0;
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.eyebrow {
  gap: 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(120,226,255,.16), rgba(52,120,255,.08));
  border: 1px solid rgba(53, 185, 255, 0.18);
  box-shadow: 0 10px 26px rgba(53, 185, 255, 0.08);
  margin-bottom: 18px;
}

.eyebrow::before { display: none !important; }

.header-cta,
.primary-btn,
.secondary-btn,
.outline-btn {
  position: relative;
  overflow: hidden;
  will-change: transform;
  isolation: isolate;
  transform: translate3d(0,0,0);
}

.header-cta::before,
.primary-btn::before,
.secondary-btn::before,
.outline-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), transparent 42%);
  transition: opacity .22s ease;
}

.header-cta:hover::before,
.primary-btn:hover::before,
.secondary-btn:hover::before,
.outline-btn:hover::before { opacity: 1; }

.header-cta:hover,
.primary-btn:hover {
  box-shadow: 0 22px 46px rgba(53,185,255,.36), 0 8px 18px rgba(52,120,255,.14);
}

.secondary-btn:hover,
.outline-btn:hover {
  box-shadow: 0 18px 42px rgba(34,83,128,.14);
  border-color: rgba(53,185,255,.32);
}

.hero {
  padding-top: 92px;
}

.hero::before {
  filter: blur(4px);
  opacity: .85;
}

.hero-slide {
  animation: premiumFade .58s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-dots {
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 88, 138, .13);
}

.hero-dot.active {
  width: 58px;
  background: var(--gradient);
  box-shadow: 0 8px 20px rgba(53,185,255,.28);
}

.hero-phone {
  transform: perspective(950px) rotateY(-7deg) rotateX(2deg);
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s ease;
}

.hero-phone:hover {
  transform: perspective(950px) rotateY(-3deg) rotateX(0deg) translateY(-8px);
  box-shadow: 0 45px 120px rgba(32, 73, 115, 0.30);
}

.child-avatar,
.icon-bubble,
.hero-mini-visual i {
  box-shadow: 0 18px 42px rgba(52,120,255,.22), inset 0 1px 0 rgba(255,255,255,.42);
}

.float-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.float-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(53,185,255,.24);
  box-shadow: 0 28px 70px rgba(34,83,128,.16);
}

.feature-card,
.product-card,
.info-card,
.price-card,
.download-card,
.faq-card,
.stat-card,
.form-card,
.timeline-item,
.gradient-panel,
.page-hero-card {
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

.feature-card::before,
.product-card::before,
.info-card::before,
.price-card::before,
.download-card::before,
.faq-card::before,
.stat-card::before,
.timeline-item::before,
.page-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(120,226,255,.24), transparent 35%);
  transition: opacity .25s ease;
}

.feature-card:hover,
.product-card:hover,
.info-card:hover,
.price-card:hover,
.download-card:hover,
.faq-card:hover,
.stat-card:hover,
.timeline-item:hover {
  transform: translateY(-8px);
  border-color: rgba(53,185,255,.28);
  box-shadow: 0 28px 72px rgba(34,83,128,.15);
  background: rgba(255,255,255,.96);
}

.feature-card:hover::before,
.product-card:hover::before,
.info-card:hover::before,
.price-card:hover::before,
.download-card:hover::before,
.faq-card:hover::before,
.stat-card:hover::before,
.timeline-item:hover::before,
.page-hero-card:hover::before { opacity: 1; }

.feature-card:hover .icon-bubble,
.product-card:hover .icon-bubble,
.info-card:hover .icon-bubble,
.download-card:hover .icon-bubble {
  transform: translateY(-3px) scale(1.04);
}

.icon-bubble {
  transition: transform .25s ease, box-shadow .25s ease;
}

.page-hero-card,
.feature-card,
.product-card,
.info-card,
.price-card,
.download-card,
.faq-card,
.stat-card,
.form-card,
.timeline-item {
  backdrop-filter: blur(18px);
}

.gradient-panel {
  position: relative;
  overflow: hidden;
}

.gradient-panel::after {
  content: '';
  position: absolute;
  inset: -80px -120px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
}

.footer-socials a,
.footer-col a,
.ghost-link,
.link-arrow {
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.footer-socials a:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 16px 34px rgba(53,185,255,.24);
}

.footer-col a:hover,
.ghost-link:hover,
.link-arrow:hover {
  transform: translateX(3px);
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
  outline: none;
  border-color: rgba(53,185,255,.55);
  box-shadow: 0 0 0 5px rgba(53,185,255,.12);
  background: #fff;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes premiumFade {
  from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes brandShine {
  0%, 62% { transform: translateX(-70%) rotate(12deg); }
  78%, 100% { transform: translateX(70%) rotate(12deg); }
}

@media (max-width: 1020px) {
  .hero-phone { transform: none; }
  .hero-phone:hover { transform: translateY(-6px); }
}

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

/* ===== Family360+ admin/auth recovery patch v4 ===== */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 16%, rgba(120, 226, 255, 0.42), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(52, 120, 255, 0.20), transparent 32%),
    linear-gradient(180deg, #f8fcff 0%, #edf8ff 100%);
  font-family: var(--font-main, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  color: var(--text);
  overflow-x: hidden;
}

.auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 118, 186, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 118, 186, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 78%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: stretch;
}

.auth-visual,
.auth-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(36, 110, 174, 0.12);
  border-radius: 34px;
  box-shadow: 0 28px 82px rgba(24, 84, 139, 0.16);
  backdrop-filter: blur(22px);
}

.auth-visual {
  min-height: 560px;
  padding: 44px;
}

.auth-visual::before,
.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 16%, rgba(120,226,255,.30), transparent 36%),
              radial-gradient(circle at 92% 88%, rgba(52,120,255,.16), transparent 34%);
}

.auth-visual > *,
.auth-card > * { position: relative; z-index: 1; }

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-brand-mark {
  width: 58px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  background: var(--gradient);
  box-shadow: 0 16px 34px rgba(53,185,255,.28);
}

.auth-visual h1,
.auth-card h1 {
  font-family: var(--font-main, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  letter-spacing: -0.055em;
  line-height: .98;
  color: var(--navy);
}

.auth-visual h1 {
  max-width: 560px;
  margin: 54px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
}

.auth-visual p {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.auth-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(36,110,174,.10);
  color: var(--navy);
  font-weight: 800;
}

.auth-benefit i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 12px 24px rgba(53,185,255,.22);
}

.auth-orb {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,226,255,.48), rgba(52,120,255,.10) 55%, transparent 70%);
  filter: blur(1px);
}

.auth-card {
  padding: 34px;
  align-self: center;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
}

.auth-card p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-card form {
  display: grid;
  gap: 16px;
}

.auth-card label,
.settings-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.auth-card input,
.settings-form input,
.settings-form select,
.settings-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(36, 110, 174, 0.16);
  border-radius: 17px;
  padding: 0 16px;
  background: rgba(255,255,255,.88);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-card input:focus,
.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
  border-color: rgba(53,185,255,.58);
  box-shadow: 0 0 0 5px rgba(53,185,255,.13);
  background: #fff;
}

.auth-card .primary-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
}

.auth-helper {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.auth-helper a {
  color: var(--blue-2);
  font-weight: 850;
}

.alert {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 17px;
  background: rgba(255, 94, 104, .10);
  border: 1px solid rgba(255, 94, 104, .22);
  color: #c5222e;
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(120, 226, 255, 0.18), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(52, 120, 255, 0.12), transparent 30%),
    #f3f8fe;
  font-family: var(--font-main, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  color: var(--text);
}

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

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  overflow-y: auto;
  color: rgba(255,255,255,.78);
  background: linear-gradient(180deg, #10233f 0%, #122b50 58%, #0d1a30 100%);
  box-shadow: 18px 0 56px rgba(16, 35, 63, 0.16);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 10px 10px 20px;
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.04em;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.admin-logo::before {
  content: 'F360+';
  width: 54px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  font-size: 12px;
  background: var(--gradient);
  box-shadow: 0 14px 34px rgba(53,185,255,.24);
}

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

.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 16px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #fff;
  background: rgba(255,255,255,.10);
  transform: translateX(3px);
}

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

.admin-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid rgba(36, 110, 174, 0.10);
  backdrop-filter: blur(18px);
}

.admin-topbar h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.admin-topbar span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-content { padding: 30px; }

.admin-card,
.stat-grid article {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(36, 110, 174, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(24, 84, 139, 0.10);
  backdrop-filter: blur(18px);
}

.admin-card { padding: 26px; }
.admin-card h2 { margin: 0 0 18px; font-size: 24px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.stat-grid article { padding: 22px; }
.stat-grid span { display: block; color: var(--muted); font-weight: 800; font-size: 13px; }
.stat-grid strong { display: block; margin-top: 8px; color: var(--navy); font-size: 34px; letter-spacing: -0.04em; }

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

.admin-card table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.admin-card th,
.admin-card td,
th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(36, 110, 174, 0.10);
}

.admin-card th,
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ghost-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(53,185,255,.10);
  border: 1px solid rgba(53,185,255,.20);
  color: var(--blue-2);
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(53,185,255,.15);
  box-shadow: 0 12px 26px rgba(53,185,255,.14);
}

code {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 9px;
  background: rgba(53,185,255,.10);
  border: 1px solid rgba(53,185,255,.18);
  color: var(--blue-2);
  font-weight: 800;
}

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-card { width: min(440px, 100%); margin: 0 auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid, .admin-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .auth-body { padding: 16px; }
  .auth-card { padding: 24px; border-radius: 26px; }
  .auth-card h1 { font-size: 29px; }
  .admin-content { padding: 18px; }
  .admin-topbar { padding: 18px; align-items: flex-start; flex-direction: column; }
  .admin-sidebar nav { grid-template-columns: 1fr; }
}

/* ===== Family360+ release admin additions ===== */
.admin-sidebar a i { width: 20px; text-align: center; margin-right: 10px; color: #38aef5; }
.admin-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(54, 190, 255, .18), rgba(65, 120, 255, .10)), #fff;
  border: 1px solid rgba(56, 174, 245, .18);
  box-shadow: 0 24px 60px rgba(20, 58, 92, .08);
}
.admin-hero-card h2 { margin: 8px 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.admin-hero-card p { max-width: 760px; margin: 0; color: #64748b; line-height: 1.65; }
.admin-kicker { display: inline-flex; align-items: center; gap: 8px; color: #2677ff; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.admin-card.elevated { border: 1px solid rgba(148, 163, 184, .24); box-shadow: 0 18px 50px rgba(15, 23, 42, .06); }
.admin-card-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.admin-card-head p { margin: 5px 0 0; color: #64748b; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.admin-table th { font-size: 12px; text-transform: uppercase; color: #64748b; letter-spacing: .06em; padding: 0 14px 6px; text-align: left; }
.admin-table td { background: #fff; padding: 16px 14px; border-top: 1px solid rgba(226, 232, 240, .9); border-bottom: 1px solid rgba(226, 232, 240, .9); vertical-align: middle; }
.admin-table td:first-child { border-left: 1px solid rgba(226, 232, 240, .9); border-radius: 18px 0 0 18px; }
.admin-table td:last-child { border-right: 1px solid rgba(226, 232, 240, .9); border-radius: 0 18px 18px 0; }
.table-sub { display: block; margin-top: 4px; color: #94a3b8; font-size: 12px; }
.table-link { color: #2677ff; font-weight: 800; }
.muted-cell, .empty-state { color: #94a3b8; text-align: center; padding: 26px !important; }
.plan-badge, .status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #eef6ff; color: #2677ff; }
.plan-premium, .plan-family, .plan-business, .plan-lifetime { background: linear-gradient(135deg, #37c2ff, #2677ff); color: #fff; box-shadow: 0 10px 24px rgba(38, 119, 255, .2); }
.status-pill.active, .status-pill.online, .status-pill.streaming { background: #e8fff4; color: #0f9f5f; }
.status-pill.blocked, .status-pill.deleted, .status-pill.offline { background: #fff1f2; color: #e11d48; }
.status-pill.idle { background: #fff7ed; color: #ea580c; }
.mini-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(56, 174, 245, .25); color: #2677ff; background: #fff; font-weight: 900; box-shadow: 0 10px 24px rgba(38, 119, 255, .08); transition: transform .2s ease, box-shadow .2s ease; }
.mini-action:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(38, 119, 255, .16); }
.danger-link { border: 0; background: transparent; color: #e11d48; font-weight: 900; cursor: pointer; }
.admin-alert { margin-bottom: 18px; padding: 14px 18px; border-radius: 18px; font-weight: 800; }
.admin-alert.success { color: #047857; background: #ecfdf5; }
.admin-alert.error { color: #be123c; background: #fff1f2; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-form-grid label, .modern-form label { display: grid; gap: 8px; color: #475569; font-weight: 800; }
.admin-form-grid input, .admin-form-grid select, .modern-form input, .modern-form select, .modern-form textarea, .inline-create-form input, .inline-create-form select {
  width: 100%; border: 1px solid rgba(148, 163, 184, .36); border-radius: 16px; padding: 13px 14px; font: inherit; background: #fff; color: #0f172a; outline: none; transition: border .2s ease, box-shadow .2s ease;
}
.admin-form-grid input:focus, .admin-form-grid select:focus, .modern-form input:focus, .modern-form select:focus, .modern-form textarea:focus, .inline-create-form input:focus, .inline-create-form select:focus { border-color: #37c2ff; box-shadow: 0 0 0 4px rgba(55, 194, 255, .14); }
.modern-form label span { color: #94a3b8; font-size: 12px; font-weight: 600; }
.device-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-create-form { display: grid; grid-template-columns: 1fr 1fr 140px auto; gap: 10px; margin-bottom: 18px; }
.compact-list { display: grid; gap: 10px; }
.compact-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: #f8fafc; border: 1px solid rgba(226, 232, 240, .8); }
.compact-row span { display: block; color: #64748b; font-size: 13px; margin-top: 3px; }
.user-detail-hero { align-items: flex-end; }
.admin-back-link { color: #2677ff; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.user-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.user-hero-stats span { min-width: 118px; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 14px 34px rgba(15, 23, 42, .05); color: #64748b; font-weight: 800; }
.user-hero-stats strong { display: block; color: #0f172a; font-size: 24px; }
.premium-card { background: radial-gradient(circle at 90% 10%, rgba(55,194,255,.16), transparent 32%), #fff; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.setting-readonly { padding: 18px; border-radius: 20px; background: #f8fafc; border: 1px solid rgba(226, 232, 240, .9); }
.setting-readonly span { display: block; color: #64748b; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.setting-readonly strong { color: #0f172a; word-break: break-word; }
.admin-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .42); backdrop-filter: blur(14px); }
.admin-modal.is-open { display: flex; }
.admin-modal-panel { position: relative; width: min(680px, 100%); padding: 30px; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(15, 23, 42, .25); }
.admin-modal-panel h2 { margin: 0 0 8px; }
.admin-modal-panel p { color: #64748b; margin-top: 0; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #f1f5f9; cursor: pointer; }
@media (max-width: 900px) {
  .admin-hero-card, .admin-card-head, .user-detail-hero { flex-direction: column; align-items: flex-start; }
  .admin-form-grid, .device-form, .settings-grid, .inline-create-form { grid-template-columns: 1fr; }
  .user-hero-stats { justify-content: flex-start; }
}
.security-list{display:grid;gap:12px;margin:20px 0 0;padding:0;list-style:none}.security-list li{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border:1px solid rgba(53,151,255,.16);border-radius:18px;background:linear-gradient(135deg,rgba(53,151,255,.08),rgba(44,213,255,.04))}.security-list i{color:#2fa8ff;margin-top:3px}.muted-text{color:#6f7f95;line-height:1.7}.admin-sidebar nav a i{width:20px;text-align:center}
