:root {
  --bg: #000;
  --text: #f5f5f5;
  --muted: #8d8d8d;
  --line: rgba(160, 160, 160, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html, body {
  height: 100%;
  background: #000;
  color: var(--text);
  font-family: "Outfit", "Vazirmatn", sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: #000;
  background-image:
    linear-gradient(45deg, var(--line) 1px, transparent 1px),
    linear-gradient(-45deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
}

.cursor-light {
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 28%, transparent 68%);
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform;
}

.app { position: relative; z-index: 2; min-height: 100vh; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 28px;
  z-index: 5;
}

.brand-mini {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.glass-btn {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font: 560 14px/1 "Outfit", sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: 0.2s ease;
  white-space: nowrap;
}

.glass-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

.glass-btn.danger {
  background: rgba(255, 50, 50, 0.16);
  border-color: rgba(255, 80, 80, 0.35);
  color: #ffd0d0;
}

.online-btn { display: flex; align-items: center; gap: 9px; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.4s ease-in-out infinite;
}

.dot.offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.86); opacity: 0.7; }
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 88px 16px 32px;
}

.hero-inner {
  position: relative;
  display: grid;
  place-items: center;
  padding: 140px 160px;
}

.hero-diamonds {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(210, 210, 210, 0.22) 0, rgba(210, 210, 210, 0.22) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(210, 210, 210, 0.22) 0, rgba(210, 210, 210, 0.22) 1px, transparent 1px, transparent 40px);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 50% 50%, #000 0%, transparent 72%);
  animation: diamondBreathe 7s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 45% 45% at 50% 50%, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
  filter: blur(4px);
}

@keyframes diamondBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.title {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 8vw, 92px);
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.05;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-touch-callout: none;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 96px 16px 32px;
}

.login-box {
  width: min(420px, 100%);
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Outfit", sans-serif;
}

.login-box h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
  direction: ltr;
  text-align: right;
}

.login-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.field { margin-bottom: 12px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #b5b5b5;
}

.field input {
  width: 100%;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  font: 400 14px/1.2 "Vazirmatn", "Outfit", sans-serif;
  outline: none;
  text-align: right;
  direction: rtl;
}

.field input:focus { border-color: rgba(255,255,255,0.28); }

.error {
  min-height: 18px;
  color: #ff8b8b;
  font-size: 13px;
  margin: 2px 0 12px;
}

.row {
  display: flex;
  gap: 10px;
  direction: ltr;
}

.row .glass-btn, .row .buy { flex: 1; }

.dashboard {
  max-width: 980px;
  margin: 0 auto;
  padding: 110px 24px 60px;
}

.dash-head h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
.dash-head p {
  color: var(--muted);
  margin: 6px 0 24px;
  font-size: 14px;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.055);
}

.card h3 { font-size: clamp(20px, 3vw, 24px); font-weight: 700; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: 13px 0 18px;
  color: #9a9a9a;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  text-align: right;
}

.price-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cfcfcf;
  flex-shrink: 0;
}

.buy {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #111;
  font: 650 14px/1 "Outfit", sans-serif;
  cursor: pointer;
  text-align: center;
}

.buy:hover { background: #ececec; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--stroke);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  opacity: 0;
  z-index: 10;
  transition: 0.25s ease;
  font-family: "Vazirmatn", sans-serif;
  max-width: calc(100% - 24px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none) {
  .cursor-light { display: none; }
  .card:hover { transform: none; }
}

@media (max-width: 740px) {
  .grid { grid-template-columns: 1fr; }
  .topbar { padding: 14px 14px; }
  .glass-btn { padding: 9px 13px; font-size: 13px; }
  .dashboard { padding: 92px 14px 40px; }
  .hero-inner { padding: 90px 24px; }
  .login-box { padding: 24px 16px; }
  .grid-bg { background-size: 28px 28px; }
}

@media (max-width: 420px) {
  .brand-mini { letter-spacing: 0.08em; font-size: 11px; }
  .actions { gap: 6px; }
  .glass-btn { padding: 8px 10px; font-size: 12px; }
  .title { font-size: 34px; }
}

.pay-box {
  width: min(460px, 100%);
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  direction: rtl;
  text-align: right;
  font-family: "Vazirmatn", "Outfit", sans-serif;
}

.pay-box h1 {
  font-size: 24px;
  margin-bottom: 16px;
  font-family: "Outfit", sans-serif;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 10px 10px 8px;
  background: rgba(255,255,255,0.03);
}

.copy-val {
  font-size: 18px;
  font-weight: 700;
}

.copy-val.ltr { direction: ltr; letter-spacing: 0.04em; }

.owner {
  margin: 8px 0 16px;
  color: #d7d7d7;
}

.note { color: #cfcfcf; line-height: 1.9; margin-bottom: 8px; }

.warn-red {
  color: #ff4d4d;
  font-weight: 700;
  margin: 8px 0 14px;
}

.timer {
  color: #8f8f8f;
  line-height: 1.9;
}

.ok-msg { color: #2ee56a; margin-bottom: 14px; }

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

.lic-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  direction: rtl;
}

.key-line {
  margin-top: 8px;
  color: #bdbdbd;
  font-family: "Outfit", sans-serif;
  direction: ltr;
  text-align: right;
}

.lic-state { font-weight: 700; white-space: nowrap; }
.lic-state.on { color: #22c55e; }
.lic-state.off { color: #ef4444; }

.empty {
  color: #8d8d8d;
  direction: rtl;
  text-align: right;
}

.pay-box .buy { margin-top: 16px; display: block; text-decoration: none; }


.clock-big {
  font-family: "Outfit", sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  direction: ltr;
  margin: 8px 0 10px;
}
