/* ═══ LICENSE GATE — PREMIUM REDESIGN ═══ */
.lic-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #01030c;
  overflow-y: auto;
  transition: opacity .6s cubic-bezier(.4, 0, .2, 1), transform .6s cubic-bezier(.4, 0, .2, 1);
}

.lic-gate.license-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.lic-gate.license-gone {
  display: none;
}

/* ── Background Effects ── */
.lic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lic-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.lic-bg-orb--a {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, .18), transparent 70%);
  top: -12%;
  left: -8%;
  animation: lic-drift 12s ease-in-out infinite;
}

.lic-bg-orb--b {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(201, 168, 76, .15), transparent 70%);
  bottom: -15%;
  right: -8%;
  animation: lic-drift 15s ease-in-out infinite reverse;
}

.lic-bg-orb--c {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 223, 160, .12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lic-drift 10s ease-in-out infinite alternate;
}

@keyframes lic-drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(25px, -18px);
  }
}

.lic-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, .025) 1px, transparent 1px);
  background-size: 55px 55px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.lic-bg-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, .04), transparent);
  background-size: 100% 8px;
  animation: lic-scan 4s linear infinite;
}

@keyframes lic-scan {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* ── Container ── */
.lic-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  max-width: 920px;
  width: 95%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow:
    0 50px 120px rgba(0, 0, 0, .7),
    0 0 60px rgba(201, 168, 76, .06);
}

/* ── Left Branding Panel ── */
.lic-brand {
  flex: 0 0 320px;
  background: linear-gradient(180deg, rgba(5, 9, 30, .98), rgba(10, 15, 40, .95));
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.lic-brand::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, .3), transparent);
}

.lic-brand-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lic-brand-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(201, 168, 76, .6);
  border-right-color: rgba(201, 168, 76, .3);
  animation: lic-spin 3s linear infinite;
}

@keyframes lic-spin {
  to {
    transform: rotate(360deg);
  }
}

.lic-brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 0 20px rgba(201, 168, 76, .4));
  position: relative;
  z-index: 2;
}

.lic-brand-name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, #C9A84C, #D4B55A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lic-brand-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lic-brand-badges {
  display: flex;
  gap: 8px;
}

.lic-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(201, 168, 76, .8);
  border: 1px solid rgba(201, 168, 76, .25);
  background: rgba(201, 168, 76, .06);
}

.lic-badge--pro {
  color: #F5DFA0;
  border-color: rgba(245, 223, 160, .25);
  background: rgba(245, 223, 160, .06);
}

.lic-features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.lic-features li {
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lic-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C9A84C;
  box-shadow: 0 0 8px rgba(201, 168, 76, .5);
  flex-shrink: 0;
}

/* ── Right Form Panel ── */
.lic-panel {
  flex: 1;
  background: rgba(6, 10, 24, .97);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 500px;
}

.lic-panel-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C 30%, #D4B55A 50%, #F5DFA0 70%, transparent);
}

/* ── Section ── */
.lic-sec {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lic-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lic-shield-svg {
  color: rgba(201, 168, 76, .6);
}

.lic-sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.lic-sec-head p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

/* ── Input ── */
.lic-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .12em;
  margin-bottom: 4px;
}

.lic-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .4);
  transition: border .3s, box-shadow .3s;
}

.lic-input-wrap:focus-within {
  border-color: rgba(201, 168, 76, .4);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .1), 0 0 30px rgba(201, 168, 76, .06);
}

.lic-input-wrap svg {
  color: rgba(201, 168, 76, .5);
  flex-shrink: 0;
}

.lic-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 17px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.lic-input-wrap input::placeholder {
  color: rgba(255, 255, 255, .15);
  letter-spacing: .1em;
}

/* ── Button ── */
.lic-btn {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #C9A84C 0%, #B8963E 50%, #D4B55A 100%);
  color: #0a0f20;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 30px rgba(201, 168, 76, .25);
}

.lic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 168, 76, .4);
}

.lic-btn:active {
  transform: translateY(0);
}

.lic-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.lic-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}

.lic-btn:hover .lic-btn-shine {
  transform: translateX(100%);
}

.lic-btn--enter {
  background: linear-gradient(135deg, #D4B55A 0%, #E8C878 50%, #C9A84C 100%);
}

/* ── Message ── */
.lic-msg {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  white-space: pre-line;
}

.lic-msg[data-type="error"] {
  background: rgba(255, 70, 100, .1);
  border: 1px solid rgba(255, 70, 100, .25);
  color: #ffa0b5;
}

.lic-msg[data-type="success"] {
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .25);
  color: #F5DFA0;
}

.lic-msg[data-type="info"] {
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .25);
  color: #b8d9ff;
}

/* ── HWID ── */
.lic-hwid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .3);
  font-size: 11px;
}

.lic-hwid code {
  color: rgba(201, 168, 76, .6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  user-select: all;
}

/* ── Success Section ── */
.lic-ok-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(201, 168, 76, .06);
  border: 1px solid rgba(201, 168, 76, .2);
  color: #F5DFA0;
  font-weight: 600;
  font-size: 16px;
}

.lic-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lic-info-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lic-info-lbl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lic-info-val {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.lic-val-accent {
  color: #C9A84C;
}

/* ── Guide ── */
.lic-guide {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.lic-guide-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
}

.lic-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lic-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

.lic-step-n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201, 168, 76, .1);
  border: 1px solid rgba(201, 168, 76, .25);
  color: #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.lic-step a {
  color: #C9A84C;
  text-decoration: none;
  font-weight: 600;
}

.lic-step a:hover {
  text-decoration: underline;
}

.lic-contacts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lic-chip {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}

.lic-chip:hover {
  background: rgba(201, 168, 76, .06);
  border-color: rgba(201, 168, 76, .25);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .lic-container {
    flex-direction: column;
    max-width: 460px;
  }

  .lic-brand {
    flex: none;
    padding: 28px 24px;
  }

  .lic-panel {
    padding: 28px 24px;
  }
}

/* ═══════════════════════════════════════════
   SIDEBAR LICENSE WIDGET
   ═══════════════════════════════════════════ */
.sb-license-widget {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.sb-lic-inactive {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 70, 100, .04);
  border: 1px solid rgba(255, 70, 100, .1);
}

.sb-lic-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sb-lic-icon--lock {
  background: rgba(255, 70, 100, .1);
}

.sb-lic-icon--ok {
  background: rgba(201, 168, 76, .1);
}

.sb-lic-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sb-lic-status {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 160, 181, .8);
}

.sb-lic-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, .2);
}

.sb-lic-active {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.08), rgba(0, 242, 254, 0.06));
  border: 1px solid rgba(255, 183, 3, 0.35);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.15), inset 0 0 10px rgba(255, 183, 3, 0.03);
  position: relative;
  overflow: hidden;
}

.sb-lic-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #ffb703, #00f2fe, transparent);
}

.sb-lic-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sb-lic-name {
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sb-lic-countdown-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sb-lic-days {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #ffb703, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 183, 3, 0.5));
}

.sb-lic-days-label {
  font-size: 10.5px;
  color: #a0aec0;
  font-weight: 600;
}

.sb-lic-bar-wrap {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  overflow: hidden;
}

.sb-lic-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffb703, #00f2fe);
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  position: relative;
}

.sb-lic-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: sb-bar-shimmer 1.8s linear infinite;
}

@keyframes sb-bar-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.sb-lic-expiry {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: .03em;
  font-weight: 500;
}

.sb-lic-days.sb-warn {
  background: linear-gradient(135deg, #ffb347, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sb-lic-bar.sb-bar-warn {
  background: linear-gradient(90deg, #ffb347, #ff6b6b);
  box-shadow: 0 0 6px rgba(255, 107, 107, .25);
}

.sb-lic-days.sb-danger {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sb-lic-bar.sb-bar-danger {
  background: linear-gradient(90deg, #ff6b6b, #ff4757);
  box-shadow: 0 0 6px rgba(255, 71, 87, .25);
}

/* ═══════════════════════════════════════════
   UPDATE NOTIFICATION TOAST
   ═══════════════════════════════════════════ */
.upd-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: linear-gradient(145deg, rgba(16, 14, 40, .95), rgba(22, 18, 50, .92));
  border: 1px solid rgba(201, 168, 76, .25);
  border-radius: 18px;
  padding: 20px;
  z-index: 9999;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(201, 168, 76, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: upd-slide-in .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
  overflow: hidden;
}

@keyframes upd-slide-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.upd-toast.upd-exit {
  animation: upd-slide-out .35s ease-in forwards;
}

@keyframes upd-slide-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.upd-toast-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, #C9A84C, #C9A84C, transparent);
  background-size: 200% 100%;
  animation: upd-glow-move 3s linear infinite;
}

@keyframes upd-glow-move {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.upd-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .4);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
}

.upd-toast-close:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.upd-toast-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.upd-toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, .15), rgba(201, 168, 76, .1));
  border: 1px solid rgba(201, 168, 76, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  animation: upd-icon-pulse 2s ease-in-out infinite;
}

@keyframes upd-icon-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.upd-toast-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upd-toast-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.upd-toast-ver {
  font-size: 12px;
  color: rgba(201, 168, 76, .7);
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.upd-toast-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 14px;
}

.upd-toast-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.upd-toast-bar-bg {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.upd-toast-bar {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #C9A84C, #C9A84C);
  transition: width .4s ease;
  position: relative;
}

.upd-toast-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: sb-bar-shimmer 1.5s linear infinite;
}

.upd-toast-pct {
  font-size: 11px;
  font-weight: 700;
  color: rgba(201, 168, 76, .7);
  min-width: 32px;
  text-align: right;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.upd-toast-actions {
  display: flex;
  gap: 8px;
}

.upd-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.upd-btn--later {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
}

.upd-btn--later:hover {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
}

.upd-btn--now {
  background: linear-gradient(135deg, #C9A84C, #4eabfc);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201, 168, 76, .3);
}

.upd-btn--now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, .4);
}

.upd-btn--now:active {
  transform: translateY(0);
}

.upd-btn--now:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.upd-btn--restart {
  background: linear-gradient(135deg, #C9A84C, #3ecfb0);
  color: #0a0e1a;
}

.upd-btn--restart:hover {
  box-shadow: 0 6px 20px rgba(201, 168, 76, .35);
  transform: translateY(-1px);
}