:root {
  --primary: #5eead4;
  --secondary: #8b5cf6;
  --text: #edf7ff;
  --muted: #bfd4ea;
  --success: #4ade80;
  --danger: #f87171;
  --border: rgba(148, 163, 184, 0.18);
  --shadow: rgba(2, 6, 23, 0.66);
}

 .role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: var(--text);
  font-weight: 800;
}

.logout-btn {
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  cursor: pointer;
  font-weight: 700;
}
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 10, 18, 0.12), rgba(4, 10, 18, 0.28));
}

.smart-room {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 900px;
  background: linear-gradient(110deg, rgba(9, 18, 29, 0.72), rgba(16, 35, 44, 0.25));
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: var(--text);
  font-weight: 800;
}

.logout-btn {
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  cursor: pointer;
  font-weight: 700;
}
  width: clamp(300px, 43vw, 650px);
  height: 72%;
  overflow: hidden;
  border: 8px solid rgba(10, 25, 35, 0.88);
  background: #101e2a;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(180, 250, 255, 0.28);
  transform: rotateY(-5deg);
}

.outside-view {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 50, 67, 0.12), rgba(5, 16, 29, 0.42)),
    url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1200&q=85") center / cover;
  filter: saturate(0.75) brightness(0.72);
  animation: outsideDrift 18s ease-in-out infinite alternate;
}

.window-frame { position: absolute; z-index: 3; background: rgba(7, 23, 32, 0.85); box-shadow: 0 0 12px rgba(162, 243, 255, 0.12); }
.frame-vertical { top: 0; bottom: 0; left: 50%; width: 8px; transform: translateX(-50%); }
.frame-horizontal { left: 0; right: 0; top: 54%; height: 8px; transform: translateY(-50%); }

.room-floor { position: absolute; left: -5%; right: -5%; bottom: -35%; height: 56%; transform: rotateX(62deg); background: repeating-linear-gradient(90deg, rgba(124, 214, 218, 0.12) 0 1px, transparent 1px 90px), linear-gradient(145deg, rgba(10, 33, 39, 0.86), rgba(5, 11, 22, 0.2)); transform-origin: center bottom; }

@keyframes smartPulse { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes consoleFloat { from { transform: rotateY(10deg) rotateX(2deg) translateY(0); } to { transform: rotateY(10deg) rotateX(2deg) translateY(-9px); } }
@keyframes outsideDrift { from { transform: scale(1.03) translateX(-1%); } to { transform: scale(1.08) translateX(2%); } }

.scene-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(103, 232, 249, 0.12), transparent 42%);
  animation: ambientMove 14s ease-in-out infinite alternate;
}

.scene-bg::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -30%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.34), transparent);
  filter: blur(12px);
  transform: rotate(15deg);
  animation: lightSweep 7s linear infinite;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.glow-one {
  width: 420px;
  height: 420px;
  background: rgba(45, 212, 191, 0.18);
  top: 10%;
  right: 8%;
  animation: glowFloatOne 11s ease-in-out infinite alternate;
}

.glow-two {
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.18);
  bottom: 5%;
  left: 8%;
  animation: glowFloatTwo 15s ease-in-out infinite alternate;
}

@keyframes glowFloatOne {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to { transform: translate3d(-55px, 35px, 0) scale(1.1); }
}

@keyframes glowFloatTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, -40px, 0) scale(0.9); }
}

@keyframes ambientMove {
  from { transform: translate3d(-5%, -2%, 0) scale(0.9); opacity: 0.5; }
  to { transform: translate3d(7%, 4%, 0) scale(1.1); opacity: 1; }
}

@keyframes buildingPan {
  from { background-position: 0 0, 46% center; }
  to { background-position: 0 0, 58% center; }
}

@keyframes lightSweep {
  from { left: -30%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.8; }
  to { left: 115%; opacity: 0; }
}

.house-3d {
  position: absolute;
  right: 8%;
  top: 52%;
  transform: translateY(-50%) rotateX(18deg) rotateY(-20deg);
  width: 350px;
  height: 260px;
  perspective: 800px;
  opacity: 0.72;
}

.roof {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 220px;
  height: 120px;
  transform: translateX(-50%) skewX(-32deg);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.9), rgba(45, 212, 191, 0.45));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  box-shadow: 0 20px 30px rgba(45, 212, 191, 0.25);
}

.wall {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 240px;
  height: 170px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.75), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 0 25px rgba(103, 232, 249, 0.12);
}

.window {
  position: absolute;
  top: 90px;
  width: 46px;
  height: 60px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.8), rgba(14, 165, 233, 0.3));
  border: 3px solid rgba(224, 242, 254, 0.4);
  border-radius: 8px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18);
  animation: smartLight 3.5s ease-in-out infinite alternate;
}

.window-left { left: 90px; }
.window-right { right: 90px; }

.door {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58px;
  height: 96px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.9), rgba(13, 148, 136, 0.8));
  border-radius: 10px 10px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.door::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 48%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px 4px rgba(94, 234, 212, 0.9);
}

@keyframes smartLight {
  from { opacity: 0.62; }
  to { opacity: 1; }
}

.auth-page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}

.auth-card {
  width: min(560px, 100%);
  background: rgba(10, 16, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 25px 60px var(--shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  backdrop-filter: blur(16px);
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.brand-logo {
  width: clamp(150px, 30vw, 260px);
  height: auto;
  max-height: 125px;
  object-fit: contain;
  filter: invert(1) brightness(1.8);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121b;
}

.brand-text { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.03em; }
.auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--muted); font-size: 0.95rem; }

.tab-switch {
  display: flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04131c;
}

#authForm { display: grid; gap: 1rem; }
.input-group { display: grid; gap: 0.5rem; }
.input-group label { font-size: 0.9rem; color: var(--muted); }

.input-group input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.2rem 0.4rem 0.2rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field:focus-within {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.password-field input {
  background: transparent;
  border: none;
  padding: 0.75rem 0.25rem 0.75rem 0;
  box-shadow: none;
}

.password-field input:focus {
  border: none;
  box-shadow: none;
}

.password-toggle {
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.08);
  color: var(--primary);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(94, 234, 212, 0.14);
}

.password-toggle:active {
  transform: translateY(1px);
}

.input-group input:focus {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.submit-btn {
  margin-top: 0.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04131c;
  font-weight: 800;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(94, 234, 212, 0.25); }
.message { min-height: 24px; font-size: 0.9rem; margin-top: 0.2rem; }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }

.text-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.25rem;
  text-align: start;
}

.hidden { display: none !important; }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 3rem));
  min-height: 100vh;
  margin-inline: auto;
  padding: 1.5rem 0;
}

.dashboard-panel {
  min-height: calc(100vh - 3rem);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  background: rgba(10, 16, 28, 0.8);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 25px 60px var(--shadow);
  backdrop-filter: blur(18px);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.dashboard-header,
.status-grid,
.control-hero {
  grid-column: 1 / -1;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.dashboard-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.dashboard-subtitle {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: var(--text);
  font-weight: 800;
}

.logout-btn {
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  cursor: pointer;
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  min-height: 112px;
}

.info-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.info-card strong {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.online-value {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a7f3d0;
}

.online-value i,
.overview-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.1), 0 0 14px rgba(74, 222, 128, 0.8);
}

.control-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 1.5rem;
  min-height: 250px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(240, 171, 84, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(29, 32, 42, 0.98), rgba(17, 43, 52, 0.92)),
    radial-gradient(circle at 90% 5%, rgba(240, 171, 84, 0.2), transparent 35%);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.3), inset 0 1px rgba(255, 255, 255, 0.06);
}

.control-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: linear-gradient(rgba(165, 243, 252, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(165, 243, 252, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.control-hero-main,
.control-hero-monitor {
  position: relative;
  z-index: 1;
}

.control-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.control-hero-main h3 {
  max-width: 500px;
  margin: 0.45rem 0 0.7rem;
  color: #fff7e6;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.25;
}

.control-hero-main p {
  max-width: 460px;
  color: #c7d7df;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.3rem;
}

.hero-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  border-radius: 9px;
  padding: 0.75rem 1rem;
  background: #f0ab54;
  color: #25180b;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-action-primary:hover {
  background: #ffc978;
  transform: translateY(-2px);
}

.hero-action-primary span {
  font-size: 1.1rem;
}

.hero-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a7f3d0;
  font-size: 0.78rem;
}

.hero-live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1), 0 0 14px rgba(74, 222, 128, 0.75);
}

.control-hero-monitor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid rgba(165, 243, 252, 0.15);
}

.health-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(240, 171, 84, 0.38);
  border-radius: 50%;
  background: conic-gradient(#f0ab54 0 98%, rgba(240, 171, 84, 0.08) 98% 100%);
  box-shadow: 0 0 30px rgba(240, 171, 84, 0.13);
}

.online-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.2) 62%, transparent 63%);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.18);
}

.online-orbit-ring {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: orbitSpin 9s linear infinite reverse;
}

.online-orbit-core {
  display: grid;
  gap: 0.2rem;
  place-items: center;
  z-index: 1;
}

.online-orbit-core strong {
  color: #93c5fd;
  font-size: 1.35rem;
}

.online-orbit-core small {
  color: var(--muted);
  font-size: 0.68rem;
}

.health-orbit::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #17252d;
}

.health-orbit-ring {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(165, 243, 252, 0.34);
  border-radius: 50%;
  animation: orbitSpin 14s linear infinite;
}

.health-orbit-core {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.health-orbit-core strong {
  color: #fff1cf;
  font-size: 1.55rem;
}

.health-orbit-core small {
  color: #a9c1c8;
  font-size: 0.62rem;
}

.monitor-readouts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.monitor-readouts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(165, 243, 252, 0.12);
}

.monitor-readouts span {
  color: #a9c1c8;
  font-size: 0.72rem;
}

.monitor-readouts strong {
  color: #e8fbf4;
  font-size: 0.95rem;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.smart-overview {
  position: relative;
  min-height: 225px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 1.8rem;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(100deg, rgba(9, 31, 44, 0.96), rgba(11, 48, 57, 0.72)),
    radial-gradient(circle at 80% 10%, rgba(94, 234, 212, 0.2), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(2, 6, 23, 0.2);
}

.smart-overview::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  left: 42%;
  bottom: -310px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(103, 232, 249, 0.03), 0 0 0 58px rgba(103, 232, 249, 0.025);
}

.overview-copy {
  position: relative;
  z-index: 1;
}

.overview-copy h3 {
  max-width: 350px;
  margin: 0.3rem 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.overview-copy p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.9;
}

.overview-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  color: #a7f3d0;
  font-size: 0.8rem;
}

.overview-status small {
  color: rgba(191, 212, 234, 0.7);
  margin-right: 0.4rem;
}

.smart-home-visual {
  position: relative;
  min-height: 200px;
  z-index: 1;
}

.visual-sun {
  position: absolute;
  top: 12px;
  right: 23%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef08a;
  box-shadow: 0 0 0 12px rgba(254, 240, 138, 0.08), 0 0 35px rgba(254, 240, 138, 0.5);
}

.visual-house {
  position: absolute;
  right: 12%;
  bottom: 4px;
  width: 245px;
  height: 145px;
}

.visual-roof {
  position: absolute;
  top: 0;
  left: 19px;
  width: 190px;
  height: 105px;
  transform: rotate(45deg) skew(-8deg, -8deg) scale(0.72);
  border-radius: 14px;
  background: linear-gradient(135deg, #155e75, #0f766e);
  box-shadow: 0 0 0 1px rgba(165, 243, 252, 0.3), 0 18px 30px rgba(8, 47, 73, 0.55);
}

.visual-wall {
  position: absolute;
  right: 26px;
  bottom: 0;
  width: 190px;
  height: 110px;
  border: 1px solid rgba(165, 243, 252, 0.35);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(135deg, rgba(20, 91, 102, 0.95), rgba(8, 47, 73, 0.95));
  box-shadow: inset 0 0 28px rgba(103, 232, 249, 0.13), 0 20px 35px rgba(2, 6, 23, 0.35);
}

.visual-wall i {
  position: absolute;
  top: 25px;
  width: 35px;
  height: 42px;
  border: 2px solid rgba(191, 250, 255, 0.6);
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.8), rgba(14, 116, 144, 0.5));
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.35);
}

.visual-wall i:first-child { right: 35px; }
.visual-wall i:nth-child(2) { right: 105px; }

.visual-wall b {
  position: absolute;
  bottom: 0;
  right: 74px;
  width: 42px;
  height: 67px;
  border: 1px solid rgba(165, 243, 252, 0.35);
  border-bottom: 0;
  background: linear-gradient(135deg, rgba(6, 78, 89, 0.9), rgba(15, 23, 42, 0.8));
}

.visual-label {
  position: absolute;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(165, 243, 252, 0.25);
  border-radius: 999px;
  background: rgba(6, 34, 47, 0.76);
  color: #bffaff;
  font-size: 0.7rem;
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.2);
}

.visual-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 0.3rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.visual-label-light { top: 42%; right: 1%; }
.visual-label-security { top: 16%; right: 54%; }
.visual-label-climate { bottom: 6%; right: 3%; }

.permission-panel,
.admin-area {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.2rem;
}

.overview-data-panel {
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.overview-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.overview-data-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 15px;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.42);
  color: var(--text);
  text-align: right;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.overview-data-card:hover {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.07);
  transform: translateY(-2px);
}

.overview-data-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.09);
  color: var(--primary);
  font-size: 1.2rem;
}

.overview-data-copy {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.overview-data-copy small,
.overview-data-copy em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.overview-data-copy strong {
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-arrow {
  margin-right: auto;
  color: var(--primary);
  font-size: 1.2rem;
}

.device-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
}

.device-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-mode-option input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.device-mode-option:has(input:checked) {
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--text);
}

.records-panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.2rem;
}

.touch-panel-status-panel {
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.3);
}

.touch-panel-status-panel .panel-header {
  margin-bottom: 0.7rem;
}

.status-panel-note {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.touch-panel-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.touch-panel-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.touch-panel-table th,
.touch-panel-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: right;
  white-space: nowrap;
}

.touch-panel-table th {
  color: var(--primary);
  background: rgba(15, 23, 42, 0.82);
  font-size: 0.76rem;
}

.touch-panel-table td {
  color: var(--text);
  font-size: 0.8rem;
}

.touch-panel-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.28);
}

.touch-panel-id {
  color: var(--primary);
  direction: ltr;
}

.protocol-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.protocol-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.protocol-status-online {
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
}

.protocol-status-offline {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
}

.protocol-status-warning {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
}

.protocol-status-checking {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.12);
}

.protocol-status-building {
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
}

.wireguard-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr);
  gap: 1.5rem;
  align-items: center;
  margin: 1.2rem 0;
  padding: 1.4rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(94, 234, 212, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(15, 30, 45, 0.95), rgba(12, 21, 35, 0.86));
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
}

.wireguard-filter-control {
  display: grid;
  gap: 0.3rem;
  margin-inline-start: auto;
}

.wireguard-filter-control label {
  color: var(--muted);
  font-size: 0.72rem;
}

.wireguard-filter-control select {
  min-width: 145px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
}

.wireguard-summary-heading h3 {
  margin: 0.35rem 0 0;
}

.wireguard-summary-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.wireguard-summary-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.wireguard-donut {
  --connected: 0%;
  --warning: 0%;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#4ade80 0 var(--connected), #facc15 var(--connected) calc(var(--connected) + var(--warning)), #f87171 calc(var(--connected) + var(--warning)) 100%);
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.12);
}

.wireguard-donut > div {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #101e2a;
}

.wireguard-donut strong {
  color: var(--text);
  font-size: 1.55rem;
}

.wireguard-donut span {
  color: var(--muted);
  font-size: 0.72rem;
}

.wireguard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 0.7rem;
}

.wireguard-metric {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.wireguard-metric i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.wireguard-metric span {
  color: var(--muted);
  font-size: 0.72rem;
}

.wireguard-metric strong {
  font-size: 1.35rem;
}

.wireguard-metric.connected { color: #86efac; }
.wireguard-metric.warning { color: #fde68a; }
.wireguard-metric.disconnected { color: #fca5a5; }

@media (max-width: 900px) {
  .wireguard-summary {
    grid-template-columns: 1fr;
  }

  .wireguard-summary-content {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .wireguard-summary-content {
    display: grid;
  }
}

.touch-panel-info-panel {
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(8, 18, 32, 0.7));
  }

  .touch-panel-info-header {
    align-items: center;
    margin-bottom: 0;
    min-height: 86px;
    padding: 1.15rem 1.3rem;
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(94, 234, 212, 0.1), rgba(139, 92, 246, 0.12));
  }

  .touch-panel-info-header h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
  }

  .touch-panel-info-header .section-kicker {
    font-size: 0.82rem;
  }

  .panel-description {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
  }

  .sync-status-badge,
  .panel-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: #86efac;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .sync-status-badge i,
  .panel-online-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
  }

  .touch-panel-info-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 2fr);
    gap: 1rem;
  }

  .touch-panel-selector-panel,
  .selected-touch-panel-card,
  .touch-panel-files-panel,
  .auto-publish-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.35);
  }

  .touch-panel-selector-panel {
    padding: 1rem;
  }

  .selector-heading,
  .files-panel-heading,
  .selected-touch-panel-card,
  .touch-panel-info-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .selector-heading h4,
  .files-panel-heading h4,
  .selected-touch-panel-card h4 {
    margin: 0;
    font-size: 1.02rem;
  }

  .touch-panel-search {
    display: block;
    margin: 1rem 0 0.75rem;
  }

  .touch-panel-search span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.7rem;
  }

  .touch-panel-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    font: inherit;
    font-size: 0.76rem;
  }

  .touch-panel-search input:focus {
    border-color: rgba(94, 234, 212, 0.65);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.08);
  }

  .touch-panel-selector-list {
    display: grid;
    gap: 0.45rem;
    max-height: 430px;
    overflow-y: auto;
  }

  .touch-panel-selector-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: right;
    font: inherit;
    transition: 0.2s ease;
  }

  .touch-panel-selector-item:hover,
  .touch-panel-selector-item.is-selected {
    border-color: rgba(94, 234, 212, 0.35);
    background: rgba(94, 234, 212, 0.09);
  }

  .touch-panel-selector-item.is-selected {
    box-shadow: inset -3px 0 var(--primary);
  }

  .selector-item-icon {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #04202a;
    background: linear-gradient(135deg, var(--primary), #99f6e4);
    font-size: 0.62rem;
    font-weight: 800;
  }

  .selector-item-copy {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
  }

  .selector-item-copy strong,
  .selector-item-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .selector-item-copy strong { font-size: 0.77rem; }
  .selector-item-copy small { color: var(--muted); font-size: 0.66rem; direction: ltr; text-align: right; }

  .touch-panel-content {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
  }

  .selected-touch-panel-card {
    align-items: center;
    padding: 1rem 1.15rem;
    background: linear-gradient(105deg, rgba(45, 212, 191, 0.12), rgba(139, 92, 246, 0.1));
  }

  .selected-panel-identity,
  .selected-panel-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .touch-panel-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #04202a;
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    font-size: 0.8rem;
    font-weight: 800;
  }

  .selected-panel-identity p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.7rem;
  }

  .secondary-action-btn {
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    background: rgba(94, 234, 212, 0.08);
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .secondary-action-btn span { margin-right: 0.3rem; font-size: 1rem; }

  .touch-panel-files-panel { padding: 1rem; }
  .files-panel-heading { align-items: center; margin-bottom: 0.8rem; }

  .touch-panel-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .touch-panel-file-card {
    position: relative;
    display: grid;
    gap: 0.65rem;
    min-height: 225px;
    padding: 1.15rem;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.13), rgba(2, 6, 23, 0.4));
  }

  .touch-panel-file-card::after {
    position: absolute;
    top: -25px;
    left: -22px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(94, 234, 212, 0.14);
    content: "";
  }

  .file-card-top,
  .file-card-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .file-type-icon {
    display: grid;
    place-items: center;
    min-width: 72px;
    height: 46px;
    padding: 0 0.55rem;
    box-sizing: border-box;
    border-radius: 11px;
    color: #e9d5ff;
    background: rgba(139, 92, 246, 0.28);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .file-sync-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.65rem;
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 999px;
    color: #86efac;
    background: rgba(74, 222, 128, 0.1);
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .file-sync-state.is-empty {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.25);
  }

  .touch-panel-file-card h5 { position: relative; z-index: 1; margin: 0; font-size: 1.08rem; }
  .touch-panel-file-card p { position: relative; z-index: 1; min-height: 2.3rem; margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.7; }
  .file-meta { position: relative; z-index: 1; color: #9fb7d0; font-size: 0.65rem; direction: ltr; text-align: right; }

  .file-card-actions { justify-content: flex-start; margin-top: auto; }
  .file-card-actions button,
  .file-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
  }

  .file-card-actions button {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.6);
    color: var(--muted);
  }

  .file-upload-label {
    border: 1px solid rgba(94, 234, 212, 0.35);
    background: rgba(94, 234, 212, 0.12);
    color: var(--primary);
  }

  .touch-panel-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .file-card-actions button:disabled { cursor: not-allowed; opacity: 0.45; }

  .auto-publish-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-color: rgba(94, 234, 212, 0.25);
    background: rgba(94, 234, 212, 0.06);
  }

  .auto-publish-icon {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #04202a;
    background: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
  }

  .auto-publish-copy { flex: 1; }
  .auto-publish-copy strong { display: block; font-size: 0.8rem; }
  .auto-publish-copy p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.68rem; line-height: 1.7; }

  .switch-control { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--primary); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
  .switch-control input { position: absolute; opacity: 0; pointer-events: none; }
  .switch-control span { position: relative; width: 38px; height: 21px; border-radius: 999px; background: rgba(148, 163, 184, 0.3); cursor: pointer; transition: 0.2s; }
  .switch-control span::after { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; content: ""; transition: 0.2s; }
  .switch-control input:checked + span { background: var(--primary); }
  .switch-control input:checked + span::after { right: 20px; }
  .touch-panel-info-message { min-height: 1rem; margin: 0; color: var(--primary); font-size: 0.74rem; }

  @media (max-width: 900px) {
    .touch-panel-info-layout { grid-template-columns: 1fr; }
    .touch-panel-selector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  }

  @media (max-width: 620px) {
    .touch-panel-info-header,
    .selected-touch-panel-card,
    .auto-publish-card { align-items: flex-start; flex-direction: column; }
    .touch-panel-file-grid { grid-template-columns: 1fr; }
    .touch-panel-info-panel { padding: 0.85rem; }
    .touch-panel-info-header { padding: 1rem; }
    .touch-panel-selector-list { grid-template-columns: 1fr; }
    .selected-panel-actions { width: 100%; justify-content: space-between; }
  }

@media (max-width: 620px) {
  .wireguard-metrics {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.smart-status-panel {
  min-height: 260px;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.smart-status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.smart-status-cards article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.36);
}

.smart-status-cards strong {
  color: var(--primary);
}

.smart-status-cards span {
  color: var(--muted);
  font-size: 0.78rem;
}

.reports-panel {
  width: 100%;
  box-sizing: border-box;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
}

.reports-fullscreen .reports-panel {
  min-height: calc(100vh - 3rem);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.report-summary-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.4);
}

.report-summary-card span {
  color: var(--muted);
  font-size: 0.75rem;
}

.report-summary-card strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.report-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.report-toolbar label {
  display: grid;
  gap: 0.4rem;
  min-width: 210px;
  color: var(--muted);
  font-size: 0.78rem;
}

.report-toolbar select {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.65rem;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font: inherit;
}

.report-date-today-btn,
.report-page-btn {
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: rgba(94, 234, 212, 0.08);
  color: var(--primary);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.report-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.report-date-input {
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.report-date-picker {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 30;
  width: min(320px, 90vw);
  padding: 0.8rem;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.38);
}

.report-date-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 0.82rem;
}

.report-date-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  cursor: pointer;
}

.report-date-weekdays,
.report-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.report-date-weekdays {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.64rem;
  text-align: center;
}

.report-date-cell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.report-date-cell.is-other-month {
  opacity: 0.38;
}

.report-date-cell.is-selected {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.14);
  color: var(--primary);
}

.clear-reports-btn {
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.report-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.report-timeline {
  display: grid;
  gap: 0.75rem;
}

.report-event {
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-right: 3px solid var(--primary);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.38);
}

.report-event-auth { border-right-color: #60a5fa; }
.report-event-user { border-right-color: #c084fc; }
.report-event-device { border-right-color: #4ade80; }
.report-event-account { border-right-color: #f0ab54; }
.report-event-system { border-right-color: #94a3b8; }

.report-event-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--primary);
}

.report-event-body {
  min-width: 0;
  flex: 1;
}

.report-event-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-event-heading h4 {
  font-size: 0.92rem;
}

.report-event-heading time,
.report-event-body small {
  color: var(--muted);
  font-size: 0.7rem;
}

.report-event-body p {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 0.8rem;
}

.report-event-body small {
  display: block;
  margin-top: 0.45rem;
}

.dashboard-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.44);
}

.dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  flex: 1 0 auto;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.7rem 1rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.dashboard-tab:hover {
  color: var(--text);
  background: rgba(94, 234, 212, 0.06);
}

.dashboard-tab.active {
  color: #04202a;
  border-color: rgba(94, 234, 212, 0.6);
  background: linear-gradient(135deg, var(--primary), #a7f3d0);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.14);
}

.tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: 0.95rem;
}

.tab-panel {
  animation: panelReveal 0.25s ease-out;
}

.section-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.placeholder-panel {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(103, 232, 249, 0.3);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.placeholder-panel h3 { font-size: 1.3rem; }
.placeholder-panel p { color: var(--muted); }

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 0.35rem;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 15px;
  color: var(--primary);
  font-size: 1.5rem;
  background: rgba(94, 234, 212, 0.08);
}

@keyframes panelReveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.table-stat {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.records-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.add-record-btn,
.edit-record-btn {
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 9px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.add-record-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
}

.add-record-btn span {
  font-size: 1.1rem;
  line-height: 0.8;
}

.edit-record-btn {
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

.add-record-btn:hover,
.edit-record-btn:hover {
  background: rgba(94, 234, 212, 0.2);
  transform: translateY(-1px);
}

.inline-edit-row {
  background: rgba(240, 171, 84, 0.08) !important;
}

.inline-record-input {
  width: 100%;
  min-width: 92px;
  border: 1px solid rgba(94, 234, 212, 0.42);
  border-radius: 7px;
  padding: 0.45rem 0.5rem;
  background: rgba(2, 6, 23, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  outline: none;
}

.inline-record-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.12);
}

.inline-record-textarea {
  min-height: 58px;
  resize: vertical;
}

.inline-edit-actions {
  display: grid;
  gap: 0.4rem;
}

.save-inline-btn,
.cancel-inline-btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.save-inline-btn {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.14);
  color: #a7f3d0;
}

.cancel-inline-btn {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
  scrollbar-width: none;
}

.table-wrapper::-webkit-scrollbar {
  display: none;
}

.table-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 19px;
  margin-top: 0.7rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  cursor: grab;
  scrollbar-color: var(--primary) rgba(15, 23, 42, 0.9);
  scrollbar-width: auto;
}

.table-scrollbar.is-floating {
  position: fixed;
  z-index: 20;
  right: 32px;
  bottom: 14px;
  left: 270px;
  margin: 0;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(94, 234, 212, 0.08);
}

.table-scrollbar:active {
  cursor: grabbing;
}

.table-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.table-scrollbar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
}

.table-scrollbar::-webkit-scrollbar-thumb {
  min-width: 90px;
  border: 3px solid rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  background: var(--primary);
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.table-scroll-active .records-panel {
  padding-bottom: 3.3rem;
}

.customer-table th,
.customer-table td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: right;
  vertical-align: top;
}

.customer-table th {
  background: rgba(15, 23, 42, 0.96);
  color: var(--primary);
  font-size: 0.8rem;
  white-space: nowrap;
}

.customer-table th > span {
  display: block;
  margin-bottom: 0.5rem;
}

.column-search,
.column-filter {
  display: block;
  width: 100%;
  min-width: 86px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  padding: 0.42rem 0.5rem;
  background: rgba(2, 6, 23, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 0.68rem;
  outline: none;
}

.column-filter {
  margin-top: 0.35rem;
  color: var(--muted);
  cursor: pointer;
}

.column-search::placeholder {
  color: rgba(191, 212, 234, 0.55);
}

.column-search:focus,
.column-filter:focus {
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.1);
}

.customer-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.28);
}

.customer-table tbody tr:hover {
  background: rgba(94, 234, 212, 0.05);
}

.customer-record-row {
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.customer-record-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.customer-table td {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.7;
}

.file-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.file-badge {
  min-width: 34px;
  padding: 0.25rem 0.6rem;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: var(--primary);
}

.status-badge {
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  text-transform: lowercase;
}

.status-idle {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.status-active {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #a7f3d0;
}

.status-inactive,
.status-old,
.status-lost,
.status-broken,
.status-maybe,
.status-test,
.status-backup,
.status-copy,
.status-support {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.status-badge.status-idle::before,
.status-badge.status-active::before,
.status-badge.status-inactive::before,
.status-badge.status-old::before,
.status-badge.status-lost::before,
.status-badge.status-broken::before,
.status-badge.status-maybe::before,
.status-badge.status-test::before,
.status-badge.status-backup::before,
.status-badge.status-copy::before,
.status-badge.status-support::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: 0.35rem;
  background: currentColor;
  opacity: 0.9;
}

.status-toggle-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.status-toggle-btn:hover,
.status-toggle-btn:focus-visible {
  transform: translateY(-1px);
  opacity: 0.96;
}

.project-cell {
  max-width: 260px;
  word-break: break-word;
}

.description-cell {
  min-width: 220px;
  max-width: 320px;
  color: var(--muted) !important;
  white-space: normal;
  word-break: break-word;
}

.permission-panel h3,
.admin-area h3 {
  margin-bottom: 1rem;
}

.permission-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.permission-list li {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  color: var(--text);
}

.admin-area {
  margin-top: 1.5rem;
}

.user-access-list {
  display: grid;
  gap: 1rem;
}

.user-access-row {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-meta small {
  color: var(--muted);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.user-controls select {
  background: rgba(15, 23, 42, 0.95);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}

.permission-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  color: var(--muted);
}

.toggle-option input {
  accent-color: var(--primary);
}

.settings-block {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
}

.settings-block h4 {
  margin-bottom: 0.9rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.settings-hint {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.password-info {
  margin-top: 0.3rem;
  color: var(--muted);
}

.protected-note {
  color: var(--primary);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
}

.search-box,
.filter-box,
.count-box {
  display: grid;
  gap: 0.45rem;
}

.search-box input,
.filter-box select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
}

.count-box {
  justify-content: center;
  align-content: center;
  text-align: center;
}

.count-box strong {
  font-size: 1.5rem;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.delete-user-btn {
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  cursor: pointer;
}

.delete-user-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
}

.confirm-modal-card {
  width: min(430px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 27, 43, 0.98), rgba(10, 16, 28, 0.98));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: modalEnter 0.2s ease-out;
}

.confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  font-size: 1.6rem;
  font-weight: 800;
}

.confirm-eyebrow {
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 700;
}

.confirm-modal-content h2 {
  margin-top: 0.3rem;
  font-size: 1.35rem;
}

.confirm-modal-content p {
  margin-top: 0.9rem;
  color: var(--text);
  line-height: 1.9;
}

.confirm-modal-content p strong {
  color: #fda4af;
}

.confirm-modal-content small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.confirm-modal-actions button {
  flex: 1;
  border-radius: 11px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cancel-delete-btn {
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
}

.confirm-delete-btn {
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: linear-gradient(135deg, #ef4444, #be123c);
  color: #fff1f2;
  box-shadow: 0 8px 20px rgba(190, 18, 60, 0.22);
}

.confirm-modal-actions button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.activation-result-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(9px);
}

.activation-result-card {
  width: min(520px, 100%);
  display: grid;
  gap: 1rem;
  padding: 1.8rem;
  border: 1px solid rgba(248, 113, 113, 0.65);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(45, 20, 31, 0.99), rgba(15, 18, 30, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  animation: modalEnter 0.22s ease-out;
}

.activation-result-card.success {
  border-color: rgba(74, 222, 128, 0.65);
  background: linear-gradient(145deg, rgba(16, 53, 42, 0.99), rgba(10, 25, 29, 0.99));
}

.activation-result-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  font-size: 1.8rem;
  font-weight: 900;
}

.activation-result-card.success .activation-result-icon {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.16);
  color: #bbf7d0;
}

.activation-result-card h4 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
}

.activation-result-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.activation-result-card:not(.success) .section-kicker {
  color: #fca5a5;
}

.activation-result-card.success .section-kicker {
  color: #86efac;
}

.activation-result-close {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: rgba(248, 113, 113, 0.2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.activation-result-card.success .activation-result-close {
  background: rgba(74, 222, 128, 0.2);
}

.report-clear-modal-card {
  border-color: rgba(248, 113, 113, 0.4);
  background:
    radial-gradient(circle at 90% 0%, rgba(248, 113, 113, 0.12), transparent 40%),
    linear-gradient(145deg, rgba(35, 24, 38, 0.99), rgba(10, 16, 28, 0.99));
}

.report-clear-icon {
  background: rgba(248, 113, 113, 0.14);
  color: #fda4af;
}

.record-modal {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.record-modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 34, 49, 0.98), rgba(10, 16, 28, 0.98));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
}

.record-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.record-modal-header h2 {
  margin-top: 0.3rem;
  font-size: 1.4rem;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
}

.record-section-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
}

.record-section-card.is-hidden {
  display: none;
}

.record-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.record-section-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.record-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.record-form-grid label {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.record-form-grid input,
.record-form-grid select,
.record-form-grid textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font: inherit;
  outline: none;
  resize: vertical;
}

.record-form-grid input:focus,
.record-form-grid select:focus,
.record-form-grid textarea:focus {
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

.record-form-wide {
  grid-column: 1 / -1;
}

.record-form-hint,
.record-form-message {
  min-height: 22px;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.record-form-message.error {
  color: var(--danger);
}

.vpn-conflict-card {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 24px 80px rgba(127, 29, 29, 0.35);
}

.vpn-conflict-icon {
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
}

.vpn-conflict-record {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
  font-size: 0.9rem;
}

.record-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.record-modal-actions button {
  flex: 1;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.save-record-btn {
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: linear-gradient(135deg, var(--primary), #a7f3d0);
  color: #04202a;
}

.customer-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.customer-detail-card {
  width: min(900px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(94, 234, 212, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(20, 34, 49, 0.99), rgba(10, 16, 28, 0.99));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62), 0 0 50px rgba(45, 212, 191, 0.08);
  animation: modalEnter 0.22s ease-out;
}

.customer-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.customer-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.detail-edit-btn {
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  background: rgba(94, 234, 212, 0.1);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-edit-btn:hover {
  background: rgba(94, 234, 212, 0.2);
}

.customer-detail-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.customer-detail-header p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.customer-detail-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 17px;
  background: rgba(94, 234, 212, 0.06);
}

.customer-detail-summary > div {
  display: grid;
  gap: 0.2rem;
  flex: 1;
}

.customer-detail-summary small {
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.detail-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px var(--success);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.credential-card {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.credential-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(94, 234, 212, 0.12);
  font-size: 1.25rem;
}

.credential-card h3 {
  margin: 0.75rem 0 1rem;
}

.credential-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.credential-row + .credential-row {
  margin-top: 0.7rem;
}

.credential-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.credential-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: right;
  font-size: 0.82rem;
}

.reveal-password-btn {
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  background: rgba(94, 234, 212, 0.08);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
}

@media (max-width: 760px) {
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .smart-status-cards {
    grid-template-columns: 1fr;
  }
}

@keyframes modalEnter {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-state {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.page-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  cursor: pointer;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* The dashboard uses a vertical control rail instead of horizontal tabs. */
.dashboard-tabs {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 0.45rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
}

.dashboard-tabs::before {
  content: "مرکز کنترل";
  display: block;
  padding: 0.35rem 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(191, 212, 234, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.dashboard-tab {
  justify-content: flex-start;
  width: 100%;
  min-height: 56px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  text-align: right;
}

.dashboard-tab.active {
  color: #fff4df;
  border-color: rgba(240, 171, 84, 0.42);
  background: linear-gradient(90deg, rgba(240, 171, 84, 0.2), rgba(240, 171, 84, 0.05));
  box-shadow: inset -3px 0 #f0ab54;
}

.dashboard-tab.active .tab-icon {
  color: #f0ab54;
  border-color: rgba(240, 171, 84, 0.65);
  background: rgba(240, 171, 84, 0.12);
}

.dashboard-tab .tab-icon {
  flex: 0 0 auto;
}

.tab-panel {
  grid-column: 2;
  grid-row: 4;
  min-width: 0;
}

@media (max-width: 768px) {
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .report-toolbar label {
    min-width: 0;
  }

  .report-event-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .record-form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .record-modal-card {
    padding: 1rem;
  }

  .dashboard-panel {
    display: block;
  }

  .app-shell {
    width: calc(100% - 1rem);
    padding: 0.5rem 0;
  }

  .dashboard-tabs {
    margin-bottom: 1rem;
  }

  .tab-panel {
    min-width: 0;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .smart-overview {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .control-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.25rem;
  }

  .control-hero-monitor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem 0 0;
    border-top: 1px solid rgba(165, 243, 252, 0.15);
    border-right: 0;
  }

  .health-orbit {
    width: 120px;
    height: 120px;
  }

  .online-orbit {
    width: 120px;
    height: 120px;
  }

  .monitor-readouts {
    grid-template-columns: 1fr;
  }

  .smart-home-visual {
    min-height: 170px;
    transform: scale(0.88);
    transform-origin: center bottom;
    margin-top: -0.5rem;
  }

  .permission-stat-card {
    display: none;
  }

  .dashboard-tabs {
    justify-content: flex-start;
  }

  .table-scrollbar.is-floating {
    right: 12px;
    left: 12px;
    bottom: 10px;
  }

  .overview-data-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-tab {
    flex: 0 0 auto;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-controls {
    flex-wrap: wrap;
  }
  .room-window {
    top: 5%;
    right: -18%;
    width: 82vw;
    height: 42%;
    opacity: 0.72;
  }

  .bms-console {
    left: 4%;
    top: 18%;
    width: min(210px, 52vw);
    transform: scale(0.82);
    transform-origin: left top;
  }

  .ceiling-light { top: 4%; }

  .house-3d {
    right: 50%;
    top: 18%;
    transform: translateX(50%) rotateX(16deg) rotateY(-20deg) scale(0.8);
    opacity: 0.8;
  }

  .auth-page { align-items: flex-start; }
  .auth-card { margin: 1rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .scene-bg::before,
  .scene-bg::after,
  .ceiling-light,
  .bms-console,
  .outside-view,
  .glow-one,
  .glow-two {
    animation: none;
  }
}

/* Restore the page atmosphere after the dashboard layout rules. */
body {
  background:
    linear-gradient(90deg, rgba(3, 10, 20, 0.78), rgba(3, 10, 20, 0.42) 52%, rgba(3, 10, 20, 0.2)),
    url("https://portal.loxone.com/admin/wp-content/uploads/2026/07/PH-reference-LeBaron-20.png") center / cover fixed no-repeat;
}

.scene-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 10, 18, 0.12), rgba(4, 10, 18, 0.28));
}

.dashboard-panel h2,
.dashboard-panel h3,
.dashboard-panel h4,
.dashboard-panel strong {
  color: var(--text);
}

.dashboard-panel button {
  font-family: inherit;
}

.new-device-panel {
  display: grid;
  gap: 1.5rem;
}

.activation-admin-shell {
  display: grid;
  gap: 1rem;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12), 0 0 10px rgba(74, 222, 128, 0.7);
}

.status-chip .dot.muted {
  background: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12), 0 0 10px rgba(148, 163, 184, 0.4);
}

.status-chip .dot.amber {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.12), 0 0 10px rgba(251, 191, 36, 0.6);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.kpi-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
}

.kpi-card.primary {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(59, 130, 246, 0.12));
  border-color: rgba(45, 212, 191, 0.24);
}

.kpi-card span {
  color: var(--muted);
  font-size: 0.72rem;
}

.kpi-card strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--text);
}

.kpi-card small {
  color: #a7f3d0;
  font-size: 0.72rem;
}

.recent-activations-panel {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.recent-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recent-panel-header h4 {
  margin: 0.25rem 0 0;
  font-size: 1.3rem;
}

.ghost-btn {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.recent-table-wrap {
  overflow: auto;
}

.recent-activations-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.recent-activations-table th,
.recent-activations-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: right;
  color: var(--text);
}

.recent-activations-table thead th {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.mini-status.success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #a7f3d0;
}

.mini-status.info {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

.mini-status.warning {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.new-device-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
}

.new-device-hero,
.device-activation-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(10, 18, 28, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.new-device-hero::before,
.device-activation-form::before {
  content: "";
  position: absolute;
  inset: auto -15% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.18), transparent 68%);
  pointer-events: none;
}

.new-device-hero {
  display: grid;
  align-content: start;
  gap: 1.2rem;
  padding: 1.75rem;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 15, 25, 0.92));
}

.new-device-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  color: #a7f3d0;
  font-size: 0.7rem;
  font-weight: 800;
}

.new-device-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.new-device-hero h4 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 1.5;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
  font-size: 0.7rem;
  font-weight: 700;
}

.pulse-indicator i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12), 0 0 12px rgba(74, 222, 128, 0.8);
}

.new-device-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  max-width: 560px;
}

.new-device-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-box {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.metric-box small {
  color: var(--muted);
  font-size: 0.68rem;
}

.metric-box strong {
  font-size: 1.5rem;
  color: var(--text);
}

.device-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.device-mini-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 88px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.mini-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(96, 165, 250, 0.24));
  color: #d8fff6;
  font-size: 1.2rem;
  font-weight: 800;
}

.device-mini-card strong,
.device-mini-card small {
  display: block;
}

.device-mini-card strong {
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.device-mini-card small {
  color: var(--muted);
  line-height: 1.6;
}

.new-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.device-activation-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  box-sizing: border-box;
  gap: 1.1rem;
  padding: 1.6rem;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 15, 25, 0.92));
}

.device-activation-header {
  display: grid;
  gap: 0.35rem;
}

.device-activation-header h4 {
  margin: 0;
  font-size: 1.45rem;
}

.device-activation-form label {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
}

.device-activation-form input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-activation-form input:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.8);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12);
}

.device-activation-form input::placeholder {
  color: rgba(191, 212, 234, 0.72);
}

.activate-device-btn {
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, #34d399, #2dd4bf 52%, #60a5fa);
  color: #052a2d;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activate-device-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(45, 212, 191, 0.28);
}

@media (max-width: 980px) {
  .new-device-layout {
    grid-template-columns: 1fr;
  }

  .new-device-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .new-device-metrics,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .device-highlight-grid {
    grid-template-columns: 1fr;
  }
}
