: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; }

body {
  margin: 0;
  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-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); }

.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(2.2rem, 5vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.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:focus,
.field select:focus,
.field textarea:focus { border-color: var(--line-strong); }
.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;
  display: grid;
  place-items: center;
  padding: 2rem 0;
}
.auth-card {
  width: min(100% - 2rem, 440px);
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.65rem;
}
.auth-card .lead { margin: 0 0 1.25rem; color: var(--muted); }
.auth-form { display: grid; gap: 0.85rem; }
.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);
}
.user-card-head {
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}
.user-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}
.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;
}
.users-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  min-height: 0;
  overflow: auto;
  flex: 1 1 auto;
  padding-right: 0.25rem;
}
.users-grid .user-card {
  height: auto;
  min-height: 0;
  padding: 1.1rem 1.15rem;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  isolation: isolate;
}
.users-grid .user-card-stats {
  margin-top: auto;
}
.users-window {
  display: flex;
  flex-direction: column;
  max-width: min(1100px, 100%);
  width: 100%;
  max-height: min(88vh, 820px);
  min-height: 480px;
  padding: 1.25rem 1.35rem 1.1rem;
  overflow: hidden;
}
.users-window .users-toolbar {
  margin-bottom: 1rem;
  flex-shrink: 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-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;
}
.product-embed-frame-wrap {
  position: relative;
  min-height: 75vh;
}
.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;
}
body.panel-embed-active .panel-page {
  padding-top: 4.75rem;
  padding-bottom: 0.75rem;
}
body.panel-embed-active .panel-layout {
  grid-template-columns: 1fr;
  gap: 0;
}
body.panel-embed-active .panel-side {
  display: none;
}
body.panel-embed-active.panel-nav-open .panel-layout {
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  align-items: start;
}
body.panel-embed-active.panel-nav-open .panel-side {
  display: block;
}
body.panel-embed-active .panel-main {
  min-width: 0;
  width: 100%;
}
body.panel-embed-active [data-panel-view="embed"] {
  margin: 0;
}
body.panel-embed-active .product-embed-frame {
  min-height: calc(100vh - 6.5rem);
  height: calc(100vh - 6.5rem);
  border-radius: 12px;
}
@media (max-width: 959px) {
  body.panel-embed-active.panel-nav-open .panel-layout {
    grid-template-columns: 1fr;
  }
  body.panel-embed-active.panel-nav-open .panel-side {
    margin-bottom: 0.75rem;
  }
}
.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: stretch;
  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 .sablon-grid,
  .sablon-grid {
    grid-template-columns: 1fr;
  }
  .sablon-thumb {
    height: 148px;
  }
  .sablon-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
.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: 0;
  height: auto;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.sablon-thumb {
  position: relative;
  height: 156px;
  flex: 0 0 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;
}
.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 */
}
.ls-root {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  font-family: var(--font, inherit);
}
.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-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); }

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