:root {
  --bg: #04060d;
  --bg-2: #0a1020;
  --surface: rgba(14, 22, 40, 0.72);
  --surface-hover: rgba(20, 32, 56, 0.9);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(125, 211, 252, 0.35);
  --text: #eaf2ff;
  --muted: #93a4bd;
  --brand: #38bdf8;
  --brand-2: #22d3ee;
  --accent: #67e8f9;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Syne", "Figtree", sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; max-width: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #031018;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, #050814 0%, #04060d 45%, #070b16 100%);
}
.site-bg-mesh {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 180deg at 50% 50%, rgba(56, 189, 248, 0.05), transparent 40%, rgba(34, 211, 238, 0.04), transparent 75%);
  animation: meshDrift 28s linear infinite;
}
.site-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  opacity: 0.55;
}
.site-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
}
.site-bg-orb.a {
  width: 420px; height: 420px;
  left: -80px; top: 20%;
  background: rgba(34, 211, 238, 0.18);
  animation: floatY 12s ease-in-out infinite;
}
.site-bg-orb.b {
  width: 360px; height: 360px;
  right: -60px; top: 8%;
  background: rgba(56, 189, 248, 0.16);
  animation: floatY 15s ease-in-out infinite reverse;
}
.site-bg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes meshDrift {
  to { transform: rotate(360deg); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(28px); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(4, 6, 13, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(4, 6, 13, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.logo-full { height: 42px; width: auto; }
.nav-links {
  display: none;
  gap: 1.1rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; }
.nav-toggle {
  display: inline-flex;
  margin-left: 0.5rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
  background: rgba(4, 6, 13, 0.96);
}
.mobile-menu.open { display: block; }
.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 1rem; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

.account-menu { position: relative; }
.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.account-trigger-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.account-trigger-text strong { font-size: 0.82rem; }
.account-trigger-text small { font-size: 0.68rem; color: var(--muted); }
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b1220;
  box-shadow: var(--shadow);
  z-index: 60;
}
.account-dropdown a,
.account-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.account-dropdown a:hover,
.account-logout:hover { background: rgba(255, 255, 255, 0.05); }
.account-dropdown-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}
.avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b1220;
  color: #e2e8f0;
  font-weight: 700;
  overflow: hidden;
  vertical-align: middle;
  box-sizing: border-box;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10%;
  box-sizing: border-box;
  background: #0b1220;
}
.avatar.has-img.avatar-gender img {
  padding: 0;
  object-fit: cover;
  background: transparent;
}
.avatar-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: inherit;
  color: #031018;
  font-weight: 800;
}
.avatar-upload-wrap {
  display: inline-block;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
}
.avatar-upload-wrap .avatar-xl {
  width: 72px;
  height: 72px;
}
.avatar-upload-wrap:focus-within .avatar,
.avatar-upload-wrap:hover .avatar {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}
.panel-profile-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.15rem;
  min-width: 0;
}
.panel-profile-card--text {
  display: block;
  padding: 0.35rem 0.15rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.panel-profile-meta {
  flex: 1;
  min-width: 0;
}
.panel-profile-meta strong {
  display: block;
  line-height: 1.3;
  font-size: 1.15rem;
  font-family: var(--display);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}
.panel-profile-meta small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fieldset-choice {
  border: 0;
  padding: 0;
  margin: 0 0 0.85rem;
  min-width: 0;
}
.fieldset-choice legend {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-size: 0.92rem;
}
.choice-pill:has(input:checked) {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(14, 165, 233, 0.14);
}
.choice-pill input {
  margin: 0;
}
.users-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.users-page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}
.users-page-size select {
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}
.embed-fullscreen-btn {
  margin-left: auto;
}
.product-embed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.65rem;
}
.product-embed-toolbar #embedTitle {
  flex: 1 1 auto;
  min-width: 0;
}
body.panel-embed-active:fullscreen .site-header,
body.panel-embed-active:-webkit-full-screen .site-header {
  display: none !important;
}
body.panel-embed-active:fullscreen .panel-page,
body.panel-embed-active:-webkit-full-screen .panel-page {
  padding: 0.5rem;
}
body.panel-embed-active:fullscreen .product-embed-frame,
body.panel-embed-active:-webkit-full-screen .product-embed-frame {
  min-height: calc(100vh - 3.5rem);
  height: calc(100vh - 3.5rem);
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #031018;
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 48px rgba(34, 211, 238, 0.35); }
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ghost:disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.7);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.btn-secondary {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-color: rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(2, 8, 18, 0.35);
}
.btn-secondary:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(180deg, rgba(36, 48, 68, 0.98), rgba(18, 28, 46, 0.98));
  color: #f8fafc;
}
.btn-secondary:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 2px;
}
.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

.hero {
  min-height: min(92vh, 900px);
  display: grid;
  align-items: center;
  padding: 3.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}
.brand-mark {
  margin: 0 0 0.85rem;
  color: var(--brand);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-grid,
.hero-visual,
.container {
  min-width: 0;
  max-width: 100%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-actions .btn {
  max-width: 100%;
}
@media (max-width: 400px) {
  .hero { padding: 2.25rem 0 2.5rem; }
  .hero-tag { display: none; }
  .nav-inner { gap: 0.5rem; }
  .logo-full { max-width: min(148px, 42vw); height: auto; }
}
.hero-lead {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}
.hero-ring {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.12), transparent 42%),
    repeating-conic-gradient(from 0deg, rgba(56, 189, 248, 0.18) 0 2deg, transparent 2deg 14deg);
  border: 1px solid rgba(125, 211, 252, 0.2);
  box-shadow: inset 0 0 80px rgba(34, 211, 238, 0.08), 0 0 80px rgba(14, 165, 233, 0.12);
  animation: ringPulse 8s ease-in-out infinite;
}
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.28);
  animation: meshDrift 40s linear infinite reverse;
}
.hero-code {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  opacity: 0.9;
}
.hero-tag {
  position: absolute;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(4, 10, 20, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.hero-tag.t1 { top: 14%; left: 12%; }
.hero-tag.t2 { top: 22%; right: 10%; }
.hero-tag.t3 { bottom: 18%; left: 18%; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.section { padding: 5rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}
.section-head h2,
.about-split h2,
.cta-band h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-desc {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.service-rail {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .service-rail { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-rail { grid-template-columns: repeat(3, 1fr); }
}
.service-rail article {
  padding: 1.35rem 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.service-rail h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
}
.service-rail p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about-split {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .about-split { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
}
.about-copy p { color: var(--muted); margin: 0 0 1rem; }

.grid-2 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.section-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  text-align: center;
}
.section-empty p { margin: 0; }
.section-empty a { color: var(--brand); }

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.project-card-clickable { cursor: pointer; }
.project-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #070b14;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}
.project-card:hover .project-media img { transform: scale(1.03); }
.project-browser {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
}
.project-browser span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.project-browser span:nth-child(1) { background: #ff5f57; }
.project-browser span:nth-child(2) { background: #febc2e; }
.project-browser span:nth-child(3) { background: #28c840; }
.project-media-placeholder {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(160deg, #0a1220, #070b14 60%, #0c1524);
}
.project-wire {
  position: absolute;
  inset: 2.2rem 1.25rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
}
.pw-bar {
  height: 10px;
  width: 42%;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.35);
  margin-bottom: 0.85rem;
}
.pw-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 0.7fr;
  gap: 0.5rem;
  height: calc(100% - 1.5rem);
}
.pw-grid i {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pw-grid i:first-child {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(255, 255, 255, 0.04));
}
.project-body { padding: 1.35rem 1.4rem 1.5rem; }
.project-body .cat {
  margin: 0 0 0.45rem;
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.project-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.project-body p { margin: 0 0 1rem; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.tech-list li {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.process-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .process-list { grid-template-columns: repeat(4, 1fr); }
}
.process-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  color: var(--brand);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.process-list strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.35rem;
}
.process-list span { color: var(--muted); font-size: 0.95rem; }

.cta-band {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.08), transparent);
}
.cta-band p { color: var(--muted); margin: 0.75rem auto 1.4rem; max-width: 36rem; }

.contact-grid { display: grid; gap: 1.5rem; }
.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 720px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.4rem; }
.field[hidden],
[hidden].field {
  display: none !important;
}
.field span { font-size: 0.85rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  outline: none;
}
.field input[type="radio"],
.field input[type="checkbox"],
.consent-check input[type="radio"],
.consent-check input[type="checkbox"] {
  width: auto;
  min-width: 1.05rem;
  height: auto;
  margin: 0.15rem 0 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  background: transparent;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--line-strong); }
.field select option,
select option {
  background: #0b1220;
  color: #eaf2ff;
}
.panel-form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
}
.panel-form-inline-actions {
  display: flex;
  align-items: end;
  padding-bottom: 0.1rem;
}
.board-screen-settings {
  margin: 0 0 0.35rem;
  max-width: 720px;
}
.board-screen-links {
  margin: 0.35rem 0 0;
}
.menu-board-customer-grid {
  max-height: none;
  overflow: visible;
  flex: none;
}
.menu-board-manage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}
.activity-row,
button.activity-row,
button.overview-nav-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  font: inherit;
}
button.activity-row:hover,
button.overview-nav-card:hover {
  background: rgba(20, 32, 56, 0.9);
  border-color: var(--line-strong);
}
.overview-recent-grid {
  max-height: none;
  overflow: visible;
  flex: none;
}
.overview-recent-grid .activity-row {
  height: max-content;
  min-height: 0;
  display: grid;
  gap: 0.25rem 0.75rem;
  grid-template-columns: 1fr auto;
  align-items: start;
}
.overview-recent-grid .audit-overview-time {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.82rem;
}
.overview-recent-grid .audit-overview-action {
  grid-column: 1;
  font-weight: 600;
}
.overview-recent-grid .muted {
  grid-column: 1;
  font-size: 0.85rem;
}
.overview-recent-grid .badge {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.qr-product-grid {
  max-height: none;
  overflow: visible;
  flex: none;
  margin-top: 0.75rem;
}
.qr-product-pager {
  margin-top: 0.85rem;
  justify-content: center;
  gap: 0.75rem;
}
.qr-product-select {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.qr-product-select input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}
.qr-product-thumb-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.qr-product-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { margin: 0.75rem 0 0; color: var(--muted); }
.form-note.error { color: var(--danger); }
.form-note.success { color: var(--ok); }
.contact-success {
  padding: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.1fr 1fr; }
}
.footer-tag { color: var(--muted); margin: 0.85rem 0 0; }
.footer-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.auth-card {
  width: min(100%, 440px);
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}
.auth-card h1,
.auth-card .auth-heading {
  margin: 0.85rem 0 0.4rem;
  /*
   * Figtree (brand UI font): Turkish capitals keep separated diacritics.
   * Syne (display) draws Ü/Ö/İ marks flush into cap-height — reads as clipped
   * "Üye Ol" at auth sizes even with generous line-height.
   */
  font-family: var(--font);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow: visible;
}
.auth-card .logo {
  display: inline-flex;
  align-items: center;
  margin: 0.35rem 0 0;
}
.auth-card .lead { margin: 0 0 1.35rem; color: var(--muted); }
.auth-back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0;
  color: #7dd3f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.25rem;
}
.auth-back-top:hover,
.auth-back-top:focus {
  color: #b8ecff;
  text-decoration: underline;
  outline: none;
}
.auth-card .auth-back-top + .auth-back-top { display: none; }
#verifyForm .auth-back-top { margin-bottom: 0.75rem; }
.notif-menu { position: relative; }
.notif-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 220, 0.25);
  background: rgba(10, 16, 30, 0.85);
  color: #e8eef8;
  cursor: pointer;
}
.notif-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #00c2ff;
  color: #041018;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(22rem, 86vw);
  max-height: 22rem;
  overflow: auto;
  z-index: 80;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 220, 0.22);
  background: #0c1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  padding: 0.75rem;
}
.notif-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.notif-list { display: grid; gap: 0.4rem; }
.notif-item {
  text-align: left;
  border: 1px solid rgba(120, 160, 220, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: #e8eef8;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}
.notif-item.unread { border-color: rgba(0, 194, 255, 0.45); }
.notif-item span { color: var(--muted); font-size: 0.85rem; }
.ticket-dept-list {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
  border: 1px solid rgba(120, 160, 220, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.ticket-dept-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(120, 160, 220, 0.14);
  background: transparent;
  color: #e8eef8;
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.ticket-dept-btn:last-child { border-bottom: 0; }
.ticket-dept-btn:hover,
.ticket-dept-btn:focus-visible {
  background: rgba(0, 194, 255, 0.08);
  outline: none;
}
.ticket-dept-icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  opacity: 0.85;
}
.ticket-dept-btn strong {
  display: block;
  font-size: 0.98rem;
}
.ticket-dept-btn span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.ticket-dept-selected {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.list-card.is-focus {
  border-color: rgba(0, 194, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(0, 194, 255, 0.35), 0 12px 28px rgba(0, 0, 0, 0.28);
  animation: notifFocusPulse 1.2s ease-out 1;
}
@keyframes notifFocusPulse {
  0% { transform: translateY(2px); }
  40% { transform: none; }
  100% { transform: none; }
}
.ticket-dept-list {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
  border: 1px solid rgba(120, 160, 220, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.ticket-dept-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(120, 160, 220, 0.14);
  background: transparent;
  color: #e8eef8;
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.ticket-dept-btn:last-child { border-bottom: 0; }
.ticket-dept-btn:hover,
.ticket-dept-btn:focus-visible {
  background: rgba(0, 194, 255, 0.08);
  outline: none;
}
.ticket-dept-icon {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  opacity: 0.85;
}
.ticket-dept-btn strong {
  display: block;
  font-size: 0.98rem;
}
.ticket-dept-btn span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.ticket-dept-selected {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.auth-form { display: grid; gap: 0.85rem; }
.auth-form[hidden],
form[hidden],
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.field-error {
  display: block;
  margin-top: 0.35rem;
  color: #fecaca;
  font-size: 0.85rem;
}
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: rgba(248, 113, 113, 0.7);
}
.ticket-card-btn {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: inherit;
  border: 1px solid var(--line);
  cursor: pointer;
}
.ticket-card-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.field-grow { flex: 1; min-width: 0; margin: 0; }
.modal-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 2.5rem;
}
.auth-message {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}
.auth-message.error { background: rgba(248, 113, 113, 0.12); color: #fecaca; }
.auth-message.success { background: rgba(52, 211, 153, 0.12); color: #a7f3d0; }
.auth-message.warn { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.auth-message.warn { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.auth-footer-text { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }
.auth-footer-text a { color: var(--brand); }

/* Panel */
.panel-page { padding: 5.5rem 0 3rem; }
.panel-layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .panel-layout { grid-template-columns: 260px 1fr; align-items: start; }
}
.panel-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.panel-mobile-bar-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 959px) {
  .panel-mobile-bar { display: flex; }
  .panel-side {
    display: none;
    margin-bottom: 0.75rem;
  }
  body.panel-mobile-nav-open .panel-side {
    display: block;
  }
  .panel-page {
    padding: 4.75rem 0 calc(3.5rem + env(safe-area-inset-bottom, 0px));
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ls-fab {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(0.85rem + env(safe-area-inset-right, 0px));
  }
}
.panel-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem;
}
.panel-grid-nav {
  display: grid;
  gap: 0.4rem;
}
.panel-grid-btn {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  text-align: left;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.panel-grid-btn:hover,
.panel-grid-btn.active {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}
.panel-main { min-width: 0; }
.panel-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.6rem;
}
.stat-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.stat-card,
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem 1.2rem;
}
.stat-card .num { margin: 0; color: var(--muted); font-size: 0.85rem; }
.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.6rem;
}
.panel-form { display: grid; gap: 0.85rem; margin-top: 1rem; }
.list-stack { display: grid; gap: 0.75rem; }
.list-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem 1.1rem;
}
.list-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.55rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.badge.ok {
  color: #86efac;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
}
.badge.warn {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.12);
}
.badge.info {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.12);
}
.badge.danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.12);
}
.audit-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.audit-filter-actions { display: flex; align-items: end; padding-bottom: 0.15rem; }
.audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}
.audit-table th,
.audit-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.audit-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: rgba(8, 14, 28, 0.65);
}
.audit-table tr:last-child td { border-bottom: none; }
.audit-row { cursor: pointer; }
.audit-row:hover td { background: rgba(56, 189, 248, 0.06); }
.audit-tech-code {
  font-size: 0.72rem;
  margin-top: 0.2rem;
  word-break: break-all;
}
.audit-overview-row {
  display: grid;
  gap: 0.25rem 0.75rem;
  grid-template-columns: minmax(110px, auto) 1fr auto;
  align-items: center;
}
.audit-overview-row .audit-overview-action {
  grid-column: 2;
  font-weight: 600;
}
.audit-overview-row .muted {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.85rem;
}
.audit-overview-row .badge {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.audit-detail-body { display: grid; gap: 0.45rem; }
.audit-detail-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.audit-detail-meta h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.factory-danger-card {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.12);
}
.panel-subnav { display: flex; gap: 0.45rem; overflow-x: auto; margin: 0 0 1rem; padding-bottom: 0.35rem; }
.panel-subnav button { flex: 0 0 auto; }
.panel-subnav button[aria-pressed="true"] { background: #1f2a22; color: #f6f1e6; }
.license-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.license-meters article, .license-meters .stat-card, .list-stack, #licenseSearchHits { min-width: 0; overflow-wrap: anywhere; }
[data-lic-pane-view][hidden],
[data-mine-pane-view][hidden],
[data-contract-pane-view][hidden] { display: none !important; }
[data-data-pane-view][hidden],
[data-prod-pane-view][hidden],
[data-lic-pane-view][hidden],
[data-mine-pane-view][hidden],
[data-contract-pane-view][hidden] { display: none !important; }
.product-form-section { margin: 1.15rem 0 0; }
.product-form-section h4 { margin: 0 0 .75rem; }
.product-form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
  padding: .75rem 0 .15rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--surface, #fff) 28%);
  z-index: 2;
}
@media (max-width: 720px) {
  .product-form-actions { position: static; background: none; }
}
.data-center-wrap { overflow-x: auto; }
.data-center-table { width: 100%; border-collapse: collapse; min-width: 280px; }
.data-center-table th,
.data-center-table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-center-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid rgba(248, 113, 113, 0.55);
  background: linear-gradient(180deg, #b91c1c, #7f1d1d);
  color: #fff;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}
.factory-reset-warn {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.2);
}
.factory-phrase-box {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(248, 113, 113, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fecaca;
}
@media (max-width: 640px) {
  .audit-overview-row {
    grid-template-columns: 1fr auto;
  }
  .audit-overview-row .audit-overview-time { grid-column: 1; }
  .audit-overview-row .badge { grid-column: 2; grid-row: 1; }
  .audit-overview-row .audit-overview-action,
  .audit-overview-row .muted { grid-column: 1 / -1; }
}
.user-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}
.user-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}
.user-card-title strong {
  font-size: 1.12rem;
  font-family: var(--display);
  margin-right: 0.1rem;
  line-height: 1.25;
}
.user-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.user-card-meta {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  flex: 1 1 auto;
}
.user-card-meta p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}
.user-card-meta span {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.user-card-stats {
  margin: 0;
  padding-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.user-card > img,
.user-card .avatar,
.user-card .user-avatar {
  display: none !important;
}
.user-card .qr-product-thumb {
  display: block !important;
}
.users-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  min-height: 0;
  overflow: auto;
  flex: 1 1 auto;
  padding-right: 0.25rem;
}
.users-grid .user-card {
  height: max-content;
  min-height: max-content;
  max-width: 100%;
  padding: 1.1rem 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  isolation: isolate;
  align-self: start;
  box-sizing: border-box;
}
.users-grid .user-card-stats {
  margin-top: 0.35rem;
}
.users-window {
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 100%);
  width: 100%;
  max-height: min(88vh, 820px);
  min-height: 320px;
  padding: 1.25rem 1.35rem 1.1rem;
  overflow: hidden;
  box-sizing: border-box;
}
.users-lifecycle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  flex-shrink: 0;
}
.users-lifecycle-tabs .btn[aria-pressed="true"] {
  border-color: var(--accent, #0ea5e9);
  color: var(--text, #fff);
}
.users-window .users-toolbar {
  margin-bottom: 1rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .users-window {
    max-height: none;
    min-height: 0;
    padding: 1rem;
  }
  .users-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .users-search-field input {
    min-width: 0 !important;
    width: 100%;
  }
  .users-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 1.25rem 1rem;
  }
}
.users-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.users-page-label {
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.users-pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
[data-panel-view="users"] {
  display: block;
  min-height: 0;
}
[data-panel-view="users"][hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .users-grid {
    grid-template-columns: 1fr;
  }
  .users-window {
    max-width: 100%;
    max-height: min(85vh, 720px);
    min-height: 380px;
  }
}
.field-hint { color: var(--muted); font-size: 0.9rem; }
.section-desc { color: var(--muted); }
.wexlyra-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.wexlyra-feature-card {
  display: block;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.wexlyra-feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.wexlyra-feature-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--display);
}
.wexlyra-feature-card span { color: var(--muted); font-size: 0.85rem; }
.site-admin-card .product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}
.product-embed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 0.65rem;
}
.embed-toolbar-minimal {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  margin: 0;
  padding: 0;
  background: transparent;
}
.embed-back-only {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.product-embed-frame-wrap {
  position: relative;
  min-height: 75vh;
}
.embed-fullscreen-section {
  position: relative;
  margin: 0 !important;
}
.product-embed-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 7.5rem);
  height: 86vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #070b12;
}
/* İncele: hide all panel chrome; preview covers the entire viewport */
body.panel-embed-active {
  overflow: hidden;
}
body.panel-embed-active .navbar,
body.panel-embed-active .site-bg,
body.panel-embed-active .panel-side,
body.panel-embed-active .panel-menu-toggle,
body.panel-embed-active #panelMenuToggle {
  display: none !important;
}
body.panel-embed-active .panel-page,
body.panel-embed-active .panel-layout,
body.panel-embed-active .panel-main,
body.panel-embed-active [data-panel-view="embed"],
body.panel-embed-active .product-embed-frame-wrap {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  grid-template-columns: 1fr !important;
  z-index: 4000;
  background: #070b12;
}
body.panel-embed-active .product-embed-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.panel-embed-active .embed-toolbar-minimal {
  position: fixed !important;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 4010;
}
body.panel-embed-active.panel-nav-open .panel-layout {
  grid-template-columns: 1fr !important;
}
body.panel-embed-active.panel-nav-open .panel-side {
  display: none !important;
}
.products-panel-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sablon-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  min-height: 0;
  overflow: auto;
  flex: 1 1 auto;
  padding: 0.15rem 0.35rem 0.35rem 0;
}
.sablon-window.users-window {
  max-width: min(1100px, 100%);
  max-height: min(92vh, 960px);
  min-height: min(70vh, 640px);
}
.sablon-window .users-pager {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 18, 0.96) 35%);
  z-index: 2;
}
.sablon-window .sablon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .sablon-window.users-window {
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 0.85rem 0.75rem 1rem;
  }
  .sablon-window .sablon-grid,
  .sablon-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow: visible;
    flex: none;
  }
  .sablon-card {
    min-height: 280px;
  }
  .sablon-thumb {
    height: 168px;
    flex: 0 0 168px;
    min-height: 168px;
  }
  .sablon-actions {
    flex-direction: column;
  }
  .sablon-actions .btn {
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}
.sablon-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  height: auto;
  position: relative;
  z-index: 0;
  isolation: isolate;
  cursor: pointer;
}
.sablon-thumb {
  position: relative;
  height: 156px;
  flex: 0 0 156px;
  min-height: 156px;
  background: #070b12;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sablon-thumb iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 200%;
  max-width: none;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}
.sablon-code {
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  background: rgba(2, 8, 18, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}
.sablon-badge {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.9);
  color: #031018;
}
.sablon-body {
  padding: 0.75rem 0.85rem 0.9rem;
  display: grid;
  gap: 0.4rem;
  flex: 0 0 auto;
  background: rgba(6, 10, 18, 0.95);
  position: relative;
  z-index: 1;
}
.sablon-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.sablon-code-main {
  font-family: var(--display);
  font-size: 1.05rem;
  color: #7dd3fc;
  letter-spacing: 0.03em;
}
.sablon-title-row span {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.sablon-body small {
  color: var(--muted);
  font-size: 0.8rem;
}
.sablon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}
body.sablon-modal-open {
  overflow: hidden;
}
.sablon-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sablon-detail-modal[hidden] {
  display: none !important;
}
.sablon-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}
.sablon-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.98), rgba(6, 10, 18, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  outline: none;
}
.sablon-detail-x {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 8, 18, 0.75);
  color: #e2e8f0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.sablon-detail-media {
  position: relative;
  height: 180px;
  background: #070b12;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sablon-detail-media iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.sablon-detail-body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.45rem;
}
.sablon-detail-code {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7dd3fc;
}
.sablon-detail-body h3 {
  margin: 0;
  font-size: 1.2rem;
}
.sablon-detail-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.sablon-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.sablon-detail-actions .btn {
  flex: 1 1 auto;
  min-width: 7rem;
}
@media (max-width: 430px) {
  .sablon-detail-modal {
    padding: 0.65rem;
    align-items: flex-end;
  }
  .sablon-detail-dialog {
    width: 100%;
    max-height: min(88vh, 640px);
  }
  .sablon-detail-media {
    height: 150px;
  }
}
.demo-strip {
  position: sticky;
  top: 0;
  z-index: 80;
  text-align: center;
  padding: 0.55rem 1rem;
  background: rgba(14, 165, 233, 0.16);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  color: #e2e8f0;
  font-size: 0.9rem;
}
.demo-strip a {
  color: #7dd3fc;
  font-weight: 700;
}
.chat-thread {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-bubble small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.chat-bubble.user {
  justify-self: end;
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.35);
}
.chat-bubble.staff {
  justify-self: start;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}
.support-inbox-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 0.85rem;
  min-height: 420px;
}
.support-session-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 520px;
  background: rgba(0, 0, 0, 0.18);
}
.support-session-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.support-session-item:hover,
.support-session-item.active {
  background: rgba(14, 165, 233, 0.12);
}
.support-session-item strong {
  font-size: 0.95rem;
}
.support-session-item small,
.support-session-item span {
  color: var(--muted);
  font-size: 0.8rem;
}
.support-thread-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.support-thread-head {
  margin-bottom: 0.55rem;
}
.support-thread-head strong {
  display: block;
}
.support-thread-wrap .chat-thread {
  flex: 1;
  max-height: 420px;
}
.havale-desc-box,
.havale-desc-line {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.1);
}
.havale-pay-block code,
.havale-desc-box code {
  word-break: break-all;
}
.warn-text {
  color: #fcd34d;
}
@media (max-width: 800px) {
  .support-inbox-layout {
    grid-template-columns: 1fr;
  }
  .support-session-list {
    max-height: 220px;
  }
}
.chat-compose {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.chat-compose input {
  flex: 1;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.live-support-fab {
  display: none !important; /* eski emoji FAB — yerine .ls-fab */
}
/* Keep panel forms clear of floating support FAB on phones */
@media (max-width: 640px) {
  body[data-page="panel"] .panel-main {
    padding-bottom: 5.5rem;
  }
}
.ls-root {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  font-family: var(--font, inherit);
}
.ls-fab[hidden] {
  display: none !important;
}
.ls-fab {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ls-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.55);
}
.ls-fab svg {
  display: block;
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
}
.ls-fab.is-open {
  display: none;
}
.ls-widget[hidden] {
  display: none !important;
}
.ls-widget {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(360px, calc(100vw - 1.5rem));
}
.ls-panel {
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100vh - 5rem));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, #0b1220 0%, #07101c 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  color: #e2e8f0;
}
.ls-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(14, 165, 233, 0.1);
}
.ls-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ls-head-icon {
  display: inline-flex;
  color: #7dd3fc;
}
.ls-head-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}
.ls-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
  cursor: pointer;
  padding: 0;
}
.ls-icon-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.15);
}
.ls-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
.ls-icon-btn[hidden] {
  display: none !important;
}
.ls-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem;
}
.ls-foot {
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
}
.ls-empty,
.ls-loading {
  text-align: center;
  padding: 1.5rem 0.75rem;
  color: #cbd5e1;
}
.ls-empty strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #f8fafc;
}
.ls-empty p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ls-empty-inline {
  padding: 1rem 0.25rem;
}
.ls-btn,
.ls-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 11px;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, #0284c7, #22d3ee);
  color: #031018;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.ls-btn:hover,
.ls-send:hover {
  filter: brightness(1.05);
}
.ls-session-list {
  display: grid;
  gap: 0.55rem;
}
.ls-session-item {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
}
.ls-session-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.1);
}
.ls-session-title {
  font-weight: 700;
  font-size: 0.92rem;
}
.ls-session-preview,
.ls-session-meta {
  color: #94a3b8;
  font-size: 0.8rem;
}
.ls-empty-actions {
  margin-top: 0.85rem;
  text-align: center;
}
.ls-thread {
  display: grid;
  gap: 0.55rem;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 0.75rem;
  padding-right: 0.15rem;
}
.ls-bubble {
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
}
.ls-bubble.user {
  justify-self: end;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}
.ls-bubble.staff {
  justify-self: start;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.28);
}
.ls-meta {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  color: #94a3b8;
}
.ls-compose {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.ls-compose input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
}
.ls-send {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}
.ls-send svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: #031018;
  fill: none;
}
@media (max-width: 480px) {
  .ls-root {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .ls-widget {
    width: min(100vw - 1rem, 360px);
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-overlay[hidden] {
  display: none !important;
}
#paytrModal {
  z-index: 95;
}
.modal-dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.modal-dialog.modal-lg {
  width: min(100%, 720px);
}
.modal-dialog.modal-user-v2 {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}
.user-manage-body {
  overflow: auto;
  min-height: 0;
}
.user-manage-tabs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin: .5rem 0 1rem;
}
.user-manage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  flex: 1 1 auto;
}
.user-manage-delete {
  flex: 0 0 auto;
  border-color: rgba(220, 80, 80, .55) !important;
  color: #f5a8a8 !important;
}
.role-perm-host,
.role-perm-groups {
  margin-top: .85rem;
}
.role-perm-host .role-perm-pane,
.role-perm-groups .role-perm-pane {
  display: grid;
  gap: .4rem;
  max-height: 16rem;
  overflow: auto;
  padding: .15rem 0 .35rem;
}
.role-perm-host .role-perm-pane[hidden],
.role-perm-groups .role-perm-pane[hidden] {
  display: none !important;
}
.order-template-picker {
  margin: .35rem 0 .85rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
}
.order-template-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.order-tpl-btn.is-selected,
.order-tpl-btn[aria-pressed="true"] {
  border-color: rgba(56, 189, 248, .55);
  background: rgba(56, 189, 248, .16);
  color: #e8f7ff;
}
.roles-section-title {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.roles-active-list .role-active-card {
  display: grid;
  gap: .75rem;
}
.role-active-summary p {
  margin: 0 0 .35rem;
}
.role-edit-panel {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: .85rem;
  display: grid;
  gap: .65rem;
}
.role-edit-meta {
  display: grid;
  gap: .55rem;
}
.role-perm-tabs.panel-subnav {
  margin-bottom: .65rem;
  flex-wrap: wrap;
  overflow-x: visible;
  padding-bottom: 0;
  scrollbar-width: none;
}
.role-perm-tabs.panel-subnav::-webkit-scrollbar {
  display: none;
}
.role-perm-group {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
.role-perm-group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .85rem;
  font-weight: 650;
  user-select: none;
}
.role-perm-group > summary::-webkit-details-marker { display: none; }
.role-perm-group > summary::before {
  content: "▸";
  margin-right: .35rem;
  opacity: .7;
  transition: transform .15s ease;
}
.role-perm-group[open] > summary::before { content: "▾"; }
.role-perm-group-body {
  display: grid;
  gap: .35rem;
  padding: 0 .85rem .75rem;
}
.user-manage-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .65rem;
  margin: .75rem 0 1rem;
}
.user-manage-danger {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(220, 80, 80, .45);
  border-radius: 12px;
}
.manage-role-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem 1rem 1rem;
  margin: 0 0 1rem;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
}
.manage-role-fieldset legend {
  padding: 0 .35rem;
  color: var(--text);
  font-weight: 600;
}
.manage-role-radios {
  display: grid;
  gap: 0.55rem;
  margin-top: .15rem;
}
.manage-role-radios .consent-check {
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
}
.manage-role-radios .consent-check span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  color: var(--text);
  font-size: 0.92rem;
}
.waiter-email-fieldset .field-hint {
  margin: 0;
}
#managePackageRoleList {
  display: grid;
  gap: 0.55rem;
  margin: 0.15rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
#managePackageRoleList .consent-check {
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  cursor: pointer;
}
#managePackageRoleList .consent-check span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  color: var(--text);
  font-size: 0.92rem;
}
#managePackageRoleList .consent-check input:disabled + span {
  opacity: .55;
}
@media (max-width: 640px) {
  .modal-dialog.modal-user-v2 {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 12px;
  }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0b1220;
  padding-bottom: 0.75rem;
}
.modal-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
}
.paytr-iframe {
  width: 100%;
  min-height: 420px;
  height: 60vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070b14;
}

.prod-badge-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.prod-badge {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--brand);
}
.prod-badge.featured { border-color: rgba(34, 211, 238, 0.4); }
.prod-badge.new { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }

.account-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.account-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.account-tab.active { color: var(--text); border-color: var(--line-strong); }

.consent-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}
.form-divider { border: 0; border-top: 1px solid var(--line); margin: 0.5rem 0; }
.admin-check-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.license-tech-fields {
  margin: 0.35rem 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}
.license-tech-title {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}
.license-tech-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.product-tech-specs {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(14, 165, 233, 0.06);
}
.product-tech-specs > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem;
  align-items: baseline;
}
.product-tech-specs dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.product-tech-specs dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.license-tech-extra {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}
.users-toolbar { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.users-search-field { flex: 1; min-width: 200px; }
.users-count { margin: 0 0 0.25rem; font-size: 0.9rem; }
.muted { color: var(--muted); }

.quote-amount-row {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  flex-wrap: wrap;
  width: 100%;
  max-width: 28rem;
}
.quote-amount-field {
  flex: 1 1 9rem;
  min-width: 0;
  margin: 0;
}
.quote-amount-field input {
  width: 100%;
  max-width: 100%;
}
.quote-period-field {
  flex: 0 0 7.5rem;
  margin: 0;
}
.quote-period-field select {
  width: 100%;
}
.admin-prod-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.75rem;
}
.admin-prod-actions .btn {
  align-self: flex-start;
}

.panel-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}
.panel-toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
  line-height: 1.45;
  animation: panelToastIn 0.22s ease-out;
}
.panel-toast.success {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(6, 78, 59, 0.92);
}
.panel-toast.error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.92);
}
.panel-toast.info,
.panel-toast.warn {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(12, 74, 110, 0.92);
}
@keyframes panelToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.panel-confirm-modal[hidden] { display: none !important; }
.panel-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
}
.panel-confirm-card {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0b1220;
}
.panel-confirm-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.panel-confirm-text {
  margin: 0 0 1.1rem;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.5;
}
.panel-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
