/* Havolith user panel - extends ../style.css */

.panel-page,
.auth-page {
  min-height: 100vh;
}

.panel-page #bg-stars,
.auth-page #bg-stars {
  opacity: 0.25;
}

.panel-page #particles,
.auth-page #particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
}

.panel-shell {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 28px 0;
}

.panel-page.is-loaded .panel-side.left-panel {
  animation: panelFadeUp 0.75s ease forwards;
  opacity: 0;
}

.panel-page.is-loaded .panel-main {
  animation: panelFadeUp 0.85s ease 0.1s forwards;
  opacity: 0;
}

.panel-page.is-loaded .site-footer {
  animation: panelFadeUp 0.8s ease 0.18s forwards;
  opacity: 0;
}

.auth-page .auth-wrap {
  opacity: 0;
  transform: translateY(16px);
}

.auth-page.is-loaded .auth-wrap {
  animation: panelFadeUp 0.75s ease forwards;
}

.auth-page.is-loaded .auth-card {
  animation: panelFadeUp 0.85s ease 0.1s forwards;
  opacity: 0;
}

@keyframes panelFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.panel-app {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  min-height: calc(100vh - 140px);
}

.panel-side.left-panel {
  position: sticky;
  top: 20px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 26px 22px;
  min-height: calc(100vh - 160px);
}

.panel-side .left-title {
  font-size: 1.35rem;
  margin: 0;
}

.panel-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.panel-brand .left-title {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.panel-side .left-divider {
  margin: 10px 0 18px;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.panel-nav .tab-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 11px 16px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
  border-radius: 100px !important;
  background: transparent !important;
  border: none !important;
  color: rgba(200, 194, 232, 0.62) !important;
  box-shadow: none !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
  transform: none !important;
}

.panel-nav .tab-btn::before,
.panel-nav .tab-btn::after {
  display: none !important;
}

.panel-nav .tab-btn i {
  width: 18px;
  color: inherit !important;
  font-size: 0.88rem !important;
  filter: none !important;
  transform: none !important;
}

.panel-nav .tab-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.035) !important;
  transform: none !important;
  box-shadow: none !important;
}

.panel-nav .tab-btn.active {
  background: linear-gradient(180deg, #ffffff 0%, #c8c2e8 100%) !important;
  color: #0a0a10 !important;
  box-shadow:
    0 10px 24px -6px rgba(200, 194, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  animation: none !important;
}

.panel-nav .tab-btn.active i {
  color: #0a0a10 !important;
  filter: none !important;
}

.panel-main {
  padding: 0;
  min-width: 0;
  width: 100%;
}

.panel-main .card {
  padding: 24px;
}

.panel-page .site-footer {
  margin-top: auto;
  width: 100%;
}

.panel-main .card:hover {
  transform: translateY(-2px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.panel-head h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel-head h1 span {
  background: linear-gradient(135deg, #ffffff 0%, #c8c2e8 40%, #8a7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-top: 18px;
  width: 100%;
}

.panel-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.panel-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-card h3 i {
  color: var(--accent-3);
}

.panel-card .card h3 {
  margin-top: 0;
}

.input {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(12, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--txt);
  font: inherit;
  width: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: var(--ring);
}

.kv {
  display: grid;
  gap: 8px;
}

.kv .label,
.field .label {
  font-size: 0.88rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ver-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}

.ver-box .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.ver-box .value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.list .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.msg {
  min-height: 20px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.msg.ok {
  color: var(--accent-2);
}

.msg.err {
  color: #ff8a8a;
}

.badge--wait {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge--expired {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(200, 133, 133, 0.12);
  color: #c88585;
  border: 1px solid rgba(200, 133, 133, 0.28);
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.12);
  color: #d8ccff;
  border: 1px solid rgba(167, 139, 250, 0.28);
  margin-top: 6px;
}

.empty {
  color: var(--muted);
}

.btn--good {
  background: linear-gradient(135deg, var(--accent-2), #78f589);
  color: #07140a;
  border: none;
  box-shadow: 0 12px 24px rgba(85, 230, 94, 0.25);
}

.btn--danger {
  background: rgba(255, 71, 87, 0.12);
  border-color: rgba(255, 71, 87, 0.25);
  color: #ffb3b3;
}

/* License sidebar actions — matches /panel/ portal theme */
.lic-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.btn-lic-dl,
.btn-lic-hwid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-lic-dl {
  border: 1px solid rgba(200, 194, 232, 0.22);
  background: linear-gradient(180deg, rgba(28, 26, 38, 0.96), rgba(14, 13, 20, 0.98));
  color: #eef0f4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-lic-dl:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(200, 194, 232, 0.38);
  background: linear-gradient(180deg, rgba(34, 32, 46, 0.98), rgba(18, 16, 26, 0.99));
}

.btn-lic-hwid {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(200, 194, 232, 0.88);
}

.btn-lic-hwid:hover:not(:disabled) {
  border-color: rgba(200, 194, 232, 0.28);
  background: rgba(200, 194, 232, 0.05);
  color: #eef0f4;
}

.btn-lic-hwid--confirm {
  border-color: rgba(200, 133, 133, 0.42);
  background: linear-gradient(180deg, rgba(200, 133, 133, 0.2), rgba(200, 133, 133, 0.07));
  color: #f5dcdc;
}

.btn-lic-hwid--confirm:hover:not(:disabled) {
  border-color: rgba(200, 133, 133, 0.62);
  background: linear-gradient(180deg, rgba(200, 133, 133, 0.28), rgba(200, 133, 133, 0.1));
}

.btn-lic-dl:disabled,
.btn-lic-hwid:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-lic-dl i,
.btn-lic-hwid i {
  font-size: 0.82rem;
  opacity: 0.9;
}

.panel-modal-overlay .guide-pick-box h3 i {
  color: #c88585;
}

.panel-modal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
}

.panel-modal-check input {
  margin-top: 3px;
  accent-color: #c8c2e8;
  cursor: pointer;
}

.panel-modal-check span {
  font-size: 0.86rem;
  color: rgba(220, 216, 240, 0.82);
  line-height: 1.45;
}

.panel-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.panel-modal-msg {
  min-height: 0;
  margin: 0 0 14px;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
}

.panel-modal-msg.ok {
  color: #7ab696;
}

.panel-modal-msg.err {
  color: #c88585;
}

@media (max-width: 520px) {
  .lic-actions,
  .panel-modal-actions {
    grid-template-columns: 1fr;
  }
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrap {
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  text-decoration: none;
}

.auth-brand .logo.logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  background: none;
}

.auth-brand .brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.auth-brand .brand-text b {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.auth-brand .brand-text .brand-tag {
  font-size: 0.72rem;
  color: rgba(200, 194, 232, 0.72);
  letter-spacing: 0.06em;
}

.panel-main .card > h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-main .card > h3 i {
  color: var(--accent-3);
}

.auth-card {
  padding: 28px;
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card .muted {
  margin: 0 0 22px;
  font-size: 0.92rem;
}

.auth-card .btn {
  width: 100%;
  justify-content: center;
  border: none;
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-foot a {
  color: #c4b8ff;
}

.guide-sidebar {
  margin-top: 8px;
  display: grid;
  gap: 12px;
}

.guide-sidebar-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 194, 232, 0.45);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.guide-sidebar-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-sidebar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200, 194, 232, 0.08);
  border: 1px solid rgba(200, 194, 232, 0.22);
  color: #c8c2e8;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.impersonate-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.22), rgba(85, 230, 94, 0.12));
  border-bottom: 1px solid rgba(200, 194, 232, 0.22);
  backdrop-filter: blur(10px);
}

.impersonate-banner[hidden] {
  display: none !important;
}

.impersonate-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #ebe8f8;
}

.impersonate-banner-inner i {
  color: #c8c2e8;
  margin-right: 6px;
}

.admin-row-actions {
  white-space: nowrap;
}

.guide-sidebar-icon i {
  line-height: 1;
  color: inherit;
}

.guide-sidebar-product {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.guide-sidebar-hint {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--muted);
}

.guide-sidebar-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 232, 248, 0.9);
  font: inherit;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.guide-sidebar-btn:hover {
  background: rgba(200, 194, 232, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.panel-grid--guide {
  min-height: calc(100vh - 220px);
}

.card--guide {
  padding: 0;
  overflow: hidden;
}

.card--guide:not(.guide-view) {
  padding: 18px;
}

.guide-view {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - 220px);
}

.guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-head h3 {
  margin: 0 0 6px;
}

.guide-head-actions {
  align-items: center;
}

.guide-switcher {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(233, 236, 242, 0.82);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.guide-switch-btn.active {
  border-color: rgba(200, 194, 232, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(200, 194, 232, 0.92) 100%);
  color: #0a0a10;
  box-shadow: 0 8px 20px -6px rgba(200, 194, 232, 0.35);
}

.guide-switch-btn.active i {
  color: #0a0a10;
}

.guide-frame-wrap {
  position: relative;
  min-height: 640px;
  height: calc(100vh - 280px);
  background: rgba(8, 8, 12, 0.94);
}

.guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 8, 12, 0.94);
}

.guide-pick-open {
  overflow: hidden;
}

.guide-pick-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guide-pick-overlay[hidden] {
  display: none !important;
}

.guide-pick-box {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.96) 0%, rgba(8, 8, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.guide-pick-box h3 {
  margin: 0 0 10px;
  padding-right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.guide-pick-box h3 i {
  color: #c8c2e8;
  font-size: 0.95rem;
}

.guide-pick-box .muted {
  margin: 0 0 20px;
  color: rgba(220, 216, 240, 0.65);
  font-size: 0.86rem;
  line-height: 1.55;
}

.guide-pick-box h3 span {
  background: linear-gradient(180deg, #ffffff 0%, #c8c2e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.guide-pick-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(200, 194, 232, 0.85);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.guide-pick-close:hover {
  background: rgba(200, 194, 232, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.guide-pick-options {
  display: grid;
  gap: 10px;
}

.guide-pick-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #eef0f4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-pick-option:hover {
  border-color: rgba(200, 194, 232, 0.28);
  background: rgba(200, 194, 232, 0.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.guide-pick-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200, 194, 232, 0.08);
  border: 1px solid rgba(200, 194, 232, 0.22);
  color: #c8c2e8;
  flex-shrink: 0;
}

.guide-pick-option-text {
  display: grid;
  gap: 4px;
}

.guide-pick-option-text b {
  font-size: 0.95rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #ffffff;
}

.guide-pick-option-text small {
  color: rgba(220, 216, 240, 0.58);
  font-size: 0.82rem;
}

@media (max-width: 1024px) {
  .panel-shell {
    padding: 16px 16px 0;
  }

  .panel-app {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .panel-side.left-panel {
    position: relative;
    top: 0;
    min-height: auto;
  }

  .panel-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .panel-nav .tab-btn {
    justify-content: center;
    text-align: center;
    padding: 10px 12px !important;
    font-size: 0.68rem !important;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .guide-frame-wrap {
    min-height: 520px;
    height: 70vh;
  }
}

@media (min-width: 1600px) {
  .panel-shell {
    padding: 24px 40px 0;
  }

  .panel-app {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .panel-nav {
    grid-template-columns: 1fr;
  }
}

/* --- Feature additions (keep site theme) --- */
.panel-main .btn,
.panel-main button.btn,
.btn-lic-dl,
.btn-lic-hwid {
  cursor: pointer;
}

.selected-product {
  display: none;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 10px 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e7e3ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 8px 20px rgba(96, 74, 195, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.selected-product i {
  color: #a78bfa;
  font-size: 0.9rem;
}

.status-undetected {
  margin-top: 4px;
}

.dl-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.dl-item-meta b {
  line-height: 1.2;
}

.active-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #7dff8a;
  background: rgba(85, 230, 94, 0.14);
  border: 1px solid rgba(85, 230, 94, 0.22);
  flex-shrink: 0;
}

.active-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55e65e;
  box-shadow: 0 0 6px rgba(85, 230, 94, 0.65);
  flex-shrink: 0;
}

.action-progress {
  display: none;
  margin-top: 12px;
}

.action-progress.is-on {
  display: block;
}

.action-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.action-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.action-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7c4dff);
  transition: width 0.15s linear;
}

.license-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

#licenseDetailHero {
  display: none;
}

#licenseDetailHero[style*="grid"] {
  display: grid !important;
}

.license-hero-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .license-hero-row { grid-template-columns: 1fr; }
}

.remain-card,
.key-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.remain-kicker,
.key-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.remain-days {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #e7e3ff;
  line-height: 1;
  margin: 4px 0 8px;
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.remain-expires {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.remain-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.remain-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 4px;
}

.remain-box b {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.remain-box span {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.remain-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.remain-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #7c4dff);
  transition: width 0.4s ease;
}

.key-blur-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.22);
  cursor: pointer;
  user-select: none;
}

.key-blur-wrap i.fa-key { color: #a78bfa; }

.key-blur-text {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  color: #e8e0ff;
  filter: blur(5px);
  transition: filter 0.2s ease;
  word-break: break-all;
}

.key-blur-wrap:hover .key-blur-text {
  filter: blur(0);
  user-select: text;
}

.key-card-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.key-version {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.key-version b { color: #e7e3ff; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.status-pill .dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(85, 230, 94, 0.12);
  color: var(--accent-2);
  font-size: 0.68rem;
}

.settings-grid { display: grid; gap: 16px; }
.settings-profile { display: grid; gap: 10px; margin-bottom: 8px; }
.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-row .muted {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.settings-form { display: grid; gap: 10px; margin-top: 8px; }
.settings-form .msg { min-height: 18px; }

/* Reuse guide-pick modal for generic notices */
.hv-modal-overlay { /* alias kept for JS */ }

/* Announcement popup */
.announce-modal-box .announce-message {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 42vh;
  overflow: auto;
  margin-bottom: 16px;
}
.announce-modal-box .panel-modal-check {
  margin-bottom: 16px;
}

/* Brand action icons */
.panel-brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}
.panel-brand-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(210, 206, 230, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.panel-brand-icon:hover {
  color: #fff;
  border-color: rgba(200, 194, 232, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.panel-brand-icon i {
  font-size: 0.92rem;
}
.panel-brand-badge {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff3b3b;
  box-shadow: 0 0 0 2px rgba(10, 10, 14, 0.95);
}
.feed-modal-box {
  width: min(100%, 520px);
}
.feed-list {
  display: grid;
  gap: 12px;
  max-height: 52vh;
  overflow: auto;
  margin-top: 4px;
}
.feed-item {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feed-item-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.feed-item-date {
  font-size: 0.75rem;
  color: rgba(200, 194, 232, 0.55);
  margin-bottom: 8px;
}
.feed-item-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(220, 216, 240, 0.78);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.feed-empty {
  color: rgba(200, 194, 232, 0.55);
  font-size: 0.88rem;
  padding: 8px 0 4px;
}