/* ==========================================================================
   CALIDAPACK · HESAP MERKEZİ
   Giriş, dashboard, lisanslar, destek talepleri ve yönetim.
   ========================================================================== */

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(49, 111, 171, 0.14), transparent 60%),
    var(--bg);
}

.account-page .btn:disabled {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.account-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.account-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 178, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 78%);
  opacity: 0.42;
}

.account-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
}

.aurora-a {
  top: -20%;
  left: -12%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(52, 129, 204, 0.34), transparent 64%);
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora-b {
  right: -18%;
  bottom: -30%;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(111, 227, 255, 0.13), transparent 64%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}

.account-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(155, 220, 255, 0.018) 3px,
    rgba(155, 220, 255, 0.018) 4px
  );
  opacity: 0.55;
}

/* ------------------------------- topbar ---------------------------------- */

.account-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: 78px;
  border-bottom: 1px solid rgba(126, 178, 255, 0.12);
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(20px);
}

.account-topbar-inner {
  width: min(1180px, calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.account-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.account-brand .brand-mark img {
  width: 38px;
  height: 38px;
}

.account-brand .brand-copy strong {
  font-size: 17px;
}

.account-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}

.account-back .icon {
  font-size: 13px;
  transform: rotate(180deg);
}

.account-back:hover {
  color: var(--ice);
}

/* ------------------------------- layout ---------------------------------- */

.account-main {
  position: relative;
  z-index: 1;
  padding: 118px 0 70px;
}

.account-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.account-loading {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.account-loading .mono {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.account-loading small {
  font-size: 6.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.loader-ring {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(155, 220, 255, 0.16);
  border-radius: 50%;
}

.loader-ring::before,
.loader-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.loader-ring::before {
  inset: 6px;
  border: 1px dotted rgba(155, 220, 255, 0.35);
  animation: spin 8s linear infinite;
}

.loader-ring::after {
  inset: 13px;
  border: 1px solid transparent;
  border-top-color: var(--cyan);
  animation: spin 1.2s linear infinite;
}

.loader-ring i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

/* -------------------------------- login ---------------------------------- */

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 68px;
  min-height: calc(100vh - 250px);
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.19em;
  color: var(--ice);
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.login-copy h1 {
  margin: 22px 0 20px;
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 66px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.login-copy h1 span {
  background: linear-gradient(100deg, #ffffff 0%, #b8f2ff 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-lead {
  max-width: 540px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.login-features {
  display: grid;
  gap: 16px;
  margin: 28px 0 30px;
}

.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.login-feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(155, 220, 255, 0.18);
  background:
    radial-gradient(circle at 40% 30%, rgba(111, 227, 255, 0.14), transparent 70%),
    rgba(7, 16, 29, 0.7);
  color: var(--ice);
}

.login-feature-icon .icon {
  font-size: 17px;
}

.login-features strong {
  display: block;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.login-features span {
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
}

.login-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.login-actions .btn {
  min-width: 230px;
}

.login-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 178, 125, 0.28);
  background: rgba(255, 178, 125, 0.055);
}

.login-notice .icon {
  margin-top: 2px;
  font-size: 14px;
  color: var(--orange);
}

.login-notice p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--orange-soft);
}

.login-note {
  margin-top: 17px;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 268px;
  padding: 24px 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.32);
  background:
    linear-gradient(118deg, rgba(155, 220, 255, 0.11), transparent 35%),
    radial-gradient(120% 100% at 100% 0%, rgba(111, 227, 255, 0.17), transparent 58%),
    linear-gradient(160deg, #0b1e32, #030a13 70%);
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.5),
    inset 0 0 50px rgba(111, 227, 255, 0.045),
    0 0 60px rgba(76, 157, 232, 0.08);
}

.member-card::before {
  content: '';
  position: absolute;
  inset: -50% -20%;
  background: linear-gradient(110deg, transparent 38%, rgba(185, 242, 255, 0.08) 48%, transparent 58%);
  transform: translateX(-55%);
  animation: cardSheen 7s ease-in-out infinite;
  pointer-events: none;
}

.member-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    145deg,
    transparent 0,
    transparent 17px,
    rgba(155, 220, 255, 0.028) 17px,
    rgba(155, 220, 255, 0.028) 18px
  );
  pointer-events: none;
}

.member-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 6.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.member-secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
}

.member-secure i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 2s infinite;
}

.member-chip {
  position: absolute;
  top: 55px;
  right: 30px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 34px;
  height: 26px;
  padding: 5px;
  border: 1px solid rgba(255, 217, 189, 0.4);
  border-radius: 4px;
  background: linear-gradient(135deg, #f4d7a7, #b8874e 60%, #e7c58f);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.member-chip span {
  border: 1px solid rgba(92, 57, 20, 0.36);
  border-radius: 1px;
}

.member-mark {
  position: absolute;
  right: -30px;
  bottom: -38px;
  width: 220px;
  opacity: 0.16;
  filter: blur(0.3px);
  pointer-events: none;
}

.member-mark img {
  width: 100%;
  height: auto;
}

.member-middle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 47px;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  border: 1px solid rgba(155, 220, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(111, 227, 255, 0.2), transparent 65%),
    #071827;
  color: var(--ice);
  box-shadow:
    inset 0 0 24px rgba(111, 227, 255, 0.12),
    0 0 24px rgba(111, 227, 255, 0.08);
}

.member-avatar .icon {
  font-size: 26px;
}

.member-middle > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.member-middle .mono {
  font-size: 6.5px;
  letter-spacing: 0.15em;
  color: var(--faint);
}

.member-middle strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.member-line {
  position: relative;
  z-index: 2;
  height: 1px;
  margin: 22px 0 16px;
  background: linear-gradient(90deg, rgba(155, 220, 255, 0.35), rgba(155, 220, 255, 0.04));
}

.member-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 6px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.member-bars {
  position: absolute;
  right: 26px;
  bottom: 45px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  opacity: 0.55;
}

.member-bars i {
  display: block;
  width: 2px;
  background: rgba(155, 220, 255, 0.5);
}

.member-bars i:nth-child(1) { height: 40%; }
.member-bars i:nth-child(2) { height: 70%; }
.member-bars i:nth-child(3) { height: 52%; }
.member-bars i:nth-child(4) { height: 90%; }
.member-bars i:nth-child(5) { height: 64%; }
.member-bars i:nth-child(6) { height: 48%; }
.member-bars i:nth-child(7) { height: 82%; }
.member-bars i:nth-child(8) { height: 58%; }
.member-bars i:nth-child(9) { height: 96%; }
.member-bars i:nth-child(10) { height: 72%; }
.member-bars i:nth-child(11) { height: 44%; }
.member-bars i:nth-child(12) { height: 60%; }

.login-float {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(155, 220, 255, 0.22);
  background: rgba(5, 13, 24, 0.86);
  backdrop-filter: blur(14px);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.login-float i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.float-a {
  top: 30px;
  right: -18px;
}

.float-b {
  bottom: 48px;
  left: -26px;
}

.login-visual-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.login-visual-note .icon {
  font-size: 12px;
}

/* ------------------------------- dashboard ------------------------------- */

.dash {
  animation: fadeUp 0.55s var(--ease);
}

.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.dash-identity {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.dash-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 30%, rgba(111, 227, 255, 0.2), transparent 65%),
    #071827;
  color: var(--ice);
  box-shadow:
    inset 0 0 28px rgba(111, 227, 255, 0.12),
    0 0 34px rgba(111, 227, 255, 0.08);
}

.dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-avatar .icon {
  font-size: 30px;
}

.dash-copy {
  min-width: 0;
}

.dash-copy h1 {
  margin: 9px 0 7px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dash-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.dash-guild {
  color: var(--ice);
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  opacity: 0.6;
}

.demo-badge {
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 178, 125, 0.35);
  background: rgba(255, 178, 125, 0.08);
  font-size: 6px;
  font-weight: 500;
  color: var(--orange);
  vertical-align: middle;
}

.dash-head-actions {
  display: flex;
  gap: 10px;
  flex: none;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.dash-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 18px 19px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(111, 227, 255, 0.08), transparent 62%),
    linear-gradient(158deg, rgba(15, 29, 47, 0.7), rgba(5, 11, 21, 0.9));
}

.dash-stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: auto;
  border: 1px solid rgba(155, 220, 255, 0.18);
  background: rgba(111, 227, 255, 0.05);
  color: var(--ice);
}

.dash-stat-icon .icon {
  font-size: 14px;
}

.dash-stat-kicker {
  margin-top: 14px;
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.dash-stat strong {
  margin-top: 1px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dash-stat-label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.dash-stat-line {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 220, 255, 0.3), transparent);
}

.dash-stat-line::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 14px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* --------------------------------- tabs ---------------------------------- */

.dash-tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  background: rgba(5, 12, 22, 0.62);
  scrollbar-width: none;
}

.dash-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 20px;
  flex: none;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition:
    color 0.2s,
    background 0.2s;
}

.dash-tab .icon {
  font-size: 13px;
}

.dash-tab em {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 6.5px;
  font-style: normal;
  color: var(--muted);
}

.dash-tab:hover {
  color: var(--ink-2);
  background: rgba(111, 227, 255, 0.04);
}

.dash-tab.is-active {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(111, 227, 255, 0.09), transparent);
}

.dash-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(111, 227, 255, 0.4);
}

.dash-tab.is-active em {
  border-color: rgba(111, 227, 255, 0.35);
  color: var(--ice);
}

.tab-panel {
  padding-top: 28px;
  animation: fadeUp 0.35s var(--ease);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.panel-head h2 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.panel-head p {
  margin-top: 7px;
  max-width: 620px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

.panel-head > .btn,
.panel-head > .admin-badge {
  flex: none;
}

/* -------------------------------- overview -------------------------------- */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: start;
}

.overview-main,
.overview-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.panel-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(111, 227, 255, 0.055), transparent 64%),
    linear-gradient(158deg, rgba(15, 29, 47, 0.62), rgba(4, 10, 19, 0.88));
}

.panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(155, 220, 255, 0.28), transparent);
  pointer-events: none;
}

.panel-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-card-head h2,
.panel-card h2 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: var(--ice);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.panel-link:hover {
  opacity: 1;
}

.panel-link .icon {
  font-size: 11px;
}

.overview-license {
  --acc: var(--cyan);
  min-height: 238px;
  padding: 27px 28px;
  border-color: rgba(155, 220, 255, 0.22);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(111, 227, 255, 0.1), transparent 64%),
    linear-gradient(125deg, rgba(20, 43, 69, 0.72), rgba(4, 10, 19, 0.94));
}

.overview-license-empty {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.panel-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(155, 220, 255, 0.22);
  background: rgba(111, 227, 255, 0.06);
  color: var(--ice);
}

.panel-card-icon .icon {
  font-size: 21px;
}

.overview-license-empty h2 {
  margin: 9px 0 7px;
  font-size: 24px;
}

.overview-license-empty p {
  max-width: 430px;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--faint);
}

.ov-license-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ov-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent);
  background: color-mix(in srgb, var(--acc) 7%, transparent);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--acc);
}

.ov-plan .icon {
  font-size: 11px;
}

.ov-license-title {
  margin: 16px 0 5px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--acc) 85%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ov-license-key {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.ov-license-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ov-license-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ov-license-meta span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.ov-license-meta strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.ov-license-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.ov-license-foot .mono {
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.ov-license-bar {
  height: 3px;
  margin-top: 14px;
  background: rgba(155, 220, 255, 0.08);
  overflow: hidden;
}

.ov-license-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--acc));
  box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 45%, transparent);
}

/* ------------------------------ recent tickets ---------------------------- */

.recent-tickets {
  display: grid;
  gap: 7px;
}

.recent-ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid transparent;
  background: rgba(6, 14, 25, 0.5);
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.recent-ticket:hover {
  border-color: var(--line);
  background: rgba(11, 24, 41, 0.7);
}

.recent-ticket-status {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(111, 227, 196, 0.6);
}

.recent-ticket.is-answered .recent-ticket-status {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(111, 227, 255, 0.6);
}

.recent-ticket.is-closed .recent-ticket-status {
  background: var(--faint);
  box-shadow: none;
}

.recent-ticket-copy {
  min-width: 0;
}

.recent-ticket-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-ticket-copy span {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.recent-ticket > .icon {
  font-size: 12px;
  color: var(--faint);
}

.recent-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed var(--line);
  background: rgba(6, 14, 25, 0.3);
}

.recent-empty .icon {
  font-size: 21px;
  color: var(--faint);
}

.recent-empty p {
  font-size: 11px;
  color: var(--faint);
}

/* ------------------------------ quick actions ----------------------------- */

.quick-actions {
  display: grid;
  gap: 6px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px;
  border: 1px solid transparent;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.quick-action:hover {
  border-color: var(--line);
  background: rgba(111, 227, 255, 0.04);
}

.quick-action > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(155, 220, 255, 0.17);
  background: rgba(111, 227, 255, 0.05);
  color: var(--ice);
}

.quick-action > span .icon {
  font-size: 15px;
}

.quick-action > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.quick-action strong {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.quick-action small {
  font-size: 9.5px;
  color: var(--faint);
}

.quick-arrow {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  transition: transform 0.2s;
}

.quick-action:hover .quick-arrow {
  transform: translateX(3px);
  color: var(--ice);
}

/* ------------------------------- community -------------------------------- */

.community-card {
  --acc: var(--mint);
}

.community-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.community-mini div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 14px;
  background: rgba(5, 12, 22, 0.9);
}

.community-mini strong {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.community-mini span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.community-channels {
  display: grid;
  gap: 2px;
}

.community-channel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.community-channel span {
  color: var(--faint);
}

.community-channel em {
  margin-left: auto;
  padding: 2px 5px;
  border: 1px solid rgba(111, 227, 196, 0.24);
  font-style: normal;
  font-size: 5.5px;
  letter-spacing: 0.1em;
  color: var(--mint);
}

.community-channel.is-ticket {
  background: rgba(111, 227, 196, 0.04);
}

.security-note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 19px;
  border: 1px solid rgba(155, 220, 255, 0.1);
  background: rgba(6, 14, 25, 0.4);
}

.security-note > .icon {
  margin-top: 2px;
  font-size: 16px;
  color: var(--ice);
}

.security-note strong {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.security-note p {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--faint);
}

/* -------------------------------- licenses -------------------------------- */

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

.license-grid > .empty-state {
  grid-column: 1 / -1;
}

.license-card {
  --acc: var(--ice);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 9%, transparent), transparent 64%),
    linear-gradient(158deg, rgba(16, 31, 51, 0.66), rgba(4, 10, 19, 0.9));
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.license-card:hover {
  border-color: color-mix(in srgb, var(--acc) 35%, transparent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.license-card.is-inactive {
  opacity: 0.62;
}

.license-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.license-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
  background: color-mix(in srgb, var(--acc) 7%, transparent);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.13em;
  color: var(--acc);
}

.license-plan .icon {
  font-size: 10px;
}

.license-card h3 {
  margin: 17px 0 7px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--acc) 80%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.license-key {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 19, 0.65);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.license-key .icon {
  font-size: 12px;
  color: var(--faint);
}

.license-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.license-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.license-meta span {
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.09em;
  color: var(--faint);
}

.license-meta strong {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-2);
}

.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.module-chip {
  padding: 3px 7px;
  border: 1px solid rgba(155, 220, 255, 0.14);
  background: rgba(155, 220, 255, 0.035);
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.module-chip.is-hit {
  border-color: rgba(255, 178, 125, 0.25);
  background: rgba(255, 178, 125, 0.055);
  color: var(--orange);
}

.license-progress {
  height: 2px;
  margin-top: 18px;
  background: rgba(155, 220, 255, 0.08);
  overflow: hidden;
}

.license-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--acc));
}

.license-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.license-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--ice);
  opacity: 0.7;
}

.license-help:hover {
  opacity: 1;
}

.license-help .icon {
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(111, 227, 196, 0.28);
  background: rgba(111, 227, 196, 0.055);
  font-family: var(--mono);
  font-size: 5.8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mint);
  white-space: nowrap;
}

.status-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.status-pill.is-open {
  border-color: rgba(111, 227, 196, 0.28);
  color: var(--mint);
}

.status-pill.is-answered {
  border-color: rgba(111, 227, 255, 0.3);
  color: var(--cyan);
}

.status-pill.is-closed {
  border-color: var(--line);
  background: rgba(155, 220, 255, 0.03);
  color: var(--faint);
  opacity: 0.8;
}

.status-pill.is-revoked,
.status-pill.is-expired {
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 120, 120, 0.05);
  color: #ff9f9f;
}

.status-pill.is-active {
  border-color: rgba(111, 227, 196, 0.3);
  color: var(--mint);
}

/* --------------------------------- claim ---------------------------------- */

.claim-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 36px;
  margin-top: 18px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.2);
  background:
    linear-gradient(110deg, rgba(24, 56, 92, 0.5), transparent 52%),
    radial-gradient(420px circle at var(--mx) var(--my), rgba(111, 227, 255, 0.09), transparent 64%),
    linear-gradient(158deg, rgba(12, 26, 44, 0.72), rgba(4, 10, 19, 0.9));
}

.claim-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.claim-copy h3 {
  margin: 8px 0 8px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.claim-copy p {
  max-width: 460px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--faint);
}

.claim-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 6px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.claim-hint .icon {
  font-size: 11px;
}

.claim-form {
  min-width: 0;
}

.claim-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  border: 1px solid rgba(155, 220, 255, 0.24);
  background: rgba(3, 8, 15, 0.72);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.claim-input:focus-within {
  border-color: rgba(155, 220, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(111, 227, 255, 0.06);
}

.claim-input > .icon {
  font-size: 16px;
  color: var(--faint);
}

.claim-input input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.claim-input input::placeholder {
  color: var(--faint);
  opacity: 0.7;
}

.claim-input input:focus {
  outline: 0;
}

.claim-form .form-msg {
  min-height: 18px;
  margin-top: 9px;
}

.form-msg {
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.form-msg.is-error {
  color: #ff9f9f;
}

.form-msg.is-ok {
  color: var(--mint);
}

/* -------------------------------- tickets --------------------------------- */

.ticket-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ticket-filter {
  padding: 7px 11px;
  border: 1px solid transparent;
  font-size: 6.5px;
  letter-spacing: 0.09em;
  color: var(--faint);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.ticket-filter:hover {
  color: var(--ink-2);
}

.ticket-filter.is-active {
  border-color: rgba(155, 220, 255, 0.24);
  background: rgba(111, 227, 255, 0.05);
  color: var(--ice);
}

.ticket-list {
  display: grid;
  gap: 7px;
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(111, 227, 255, 0.025), transparent 40%),
    rgba(5, 13, 24, 0.62);
  text-align: left;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.ticket-row:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(100deg, rgba(111, 227, 255, 0.055), transparent 40%),
    rgba(8, 18, 32, 0.78);
}

.ticket-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ticket-row-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ticket-row-mark .icon {
  font-size: 15px;
}

.ticket-row.is-open .ticket-row-mark {
  border-color: rgba(111, 227, 196, 0.22);
  background: rgba(111, 227, 196, 0.04);
  color: var(--mint);
}

.ticket-row.is-answered .ticket-row-mark {
  border-color: rgba(111, 227, 255, 0.24);
  background: rgba(111, 227, 255, 0.05);
  color: var(--cyan);
}

.ticket-row-copy {
  min-width: 0;
}

.ticket-row-copy strong {
  display: block;
  overflow: hidden;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-row-copy p {
  overflow: hidden;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-row-copy span {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.ticket-row-side {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticket-row-side time {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  white-space: nowrap;
}

.ticket-row-side .icon {
  font-size: 13px;
  color: var(--faint);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 32px;
  border: 1px dashed var(--line);
  background: rgba(5, 13, 24, 0.36);
  text-align: center;
}

.empty-state > .icon {
  font-size: 30px;
  color: var(--faint);
  opacity: 0.7;
}

.empty-state h3 {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.empty-state p {
  max-width: 420px;
  margin-bottom: 18px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* --------------------------------- admin ---------------------------------- */

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(240, 198, 116, 0.3);
  background: rgba(240, 198, 116, 0.055);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: #f0c674;
}

.admin-badge .icon {
  font-size: 12px;
}

.admin-switch {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.admin-switch-btn .icon {
  font-size: 12px;
}

.admin-switch-btn em {
  font-style: normal;
  color: var(--faint);
}

.admin-switch-btn.is-active {
  border-bottom-color: var(--cyan);
  color: var(--ink);
}

.admin-switch-btn.is-active em {
  color: var(--ice);
}

.admin-ticket-list .ticket-row-copy span {
  letter-spacing: 0.04em;
}

.admin-table-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(430px, 100%);
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.6);
}

.admin-search .icon {
  font-size: 14px;
  color: var(--faint);
}

.admin-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.admin-search input::placeholder {
  color: var(--faint);
}

.admin-search input:focus {
  outline: 0;
}

.admin-table-tools > .mono {
  font-size: 6.5px;
  letter-spacing: 0.09em;
  color: var(--faint);
  white-space: nowrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.42);
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 20, 34, 0.72);
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.11em;
  color: var(--faint);
  text-align: left;
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(126, 178, 255, 0.07);
  font-size: 10.5px;
  color: var(--muted);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr:hover td {
  background: rgba(111, 227, 255, 0.025);
}

.admin-table .admin-key {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}

.admin-table .admin-discord {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.admin-table .admin-discord.is-linked {
  color: var(--ice);
}

.admin-plan {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 5.8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-plan.is-betterhit {
  border-color: rgba(255, 178, 125, 0.24);
  color: var(--orange);
}

/* --------------------------------- modals --------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.78);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  border: 1px solid rgba(155, 220, 255, 0.25);
  background:
    radial-gradient(500px circle at 20% 0%, rgba(111, 227, 255, 0.08), transparent 60%),
    linear-gradient(158deg, #0a1a2d, #040a13 70%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(111, 227, 255, 0.035);
  animation: modalIn 0.28s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 220, 255, 0.2) transparent;
}

.modal-panel-wide {
  width: min(760px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition:
    color 0.2s,
    border-color 0.2s;
}

.modal-close:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.modal-close .icon {
  font-size: 14px;
}

.modal-head {
  padding-right: 28px;
}

.modal-head h2 {
  margin: 9px 0 8px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.modal-head p {
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--faint);
}

.ticket-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span {
  font-size: 6.5px;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(3, 8, 15, 0.7);
  padding: 11px 12px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field select {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
  opacity: 0.72;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: rgba(155, 220, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(111, 227, 255, 0.055);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

/* --------------------------------- thread --------------------------------- */

.thread-head {
  padding-right: 28px;
}

.thread-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.thread-title-row h2 {
  margin: 7px 0 0;
}

.thread-head > p {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.thread-messages {
  display: grid;
  gap: 14px;
  max-height: 38vh;
  overflow-y: auto;
  margin: 22px 0;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 220, 255, 0.18) transparent;
}

.thread-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.thread-msg-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 16, 29, 0.8);
  font-family: var(--display);
  font-size: 11px;
  color: var(--ice);
}

.thread-msg.is-staff .thread-msg-avatar {
  border-color: rgba(255, 178, 125, 0.3);
  background: rgba(255, 178, 125, 0.07);
  color: var(--orange);
}

.thread-msg-body {
  min-width: 0;
  max-width: 86%;
}

.thread-msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.thread-msg-meta strong {
  font-weight: 500;
  color: var(--ink-2);
}

.thread-msg-meta em {
  padding: 2px 5px;
  border: 1px solid rgba(111, 227, 255, 0.16);
  font-style: normal;
  font-size: 5.5px;
  color: var(--ice);
}

.thread-msg.is-staff .thread-msg-meta em {
  border-color: rgba(255, 178, 125, 0.22);
  color: var(--orange);
}

.thread-msg-bubble {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 13, 24, 0.62);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.thread-msg.is-staff .thread-msg-bubble {
  border-color: rgba(255, 178, 125, 0.18);
  background: rgba(255, 178, 125, 0.035);
}

.thread-msg.is-own .thread-msg-avatar {
  border-color: rgba(155, 220, 255, 0.35);
}

.thread-closed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(155, 220, 255, 0.025);
  font-size: 11px;
  color: var(--faint);
}

.thread-closed .icon {
  font-size: 14px;
}

.thread-reply {
  display: grid;
  gap: 10px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.thread-reply-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.thread-reply-foot .form-msg {
  min-height: 0;
}

.thread-admin-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* --------------------------------- fatal ---------------------------------- */

.fatal-view {
  display: grid;
  place-items: center;
  min-height: 58vh;
}

.fatal-card {
  position: relative;
  width: min(560px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 178, 125, 0.24);
  background:
    radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 178, 125, 0.08), transparent 62%),
    linear-gradient(158deg, rgba(34, 24, 20, 0.62), rgba(4, 10, 19, 0.92));
  text-align: center;
}

.fatal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 17px;
  border: 1px solid rgba(255, 178, 125, 0.3);
  background: rgba(255, 178, 125, 0.06);
  color: var(--orange);
}

.fatal-icon .icon {
  font-size: 23px;
}

.fatal-card h1 {
  margin: 10px 0 10px;
  font-family: var(--display);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.fatal-card > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

.fatal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fatal-hint {
  display: block;
  margin-top: 18px;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* --------------------------------- footer --------------------------------- */

.account-footer {
  position: relative;
  z-index: 1;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 13, 0.55);
}

.account-footer-inner {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.account-footer-inner > .mono {
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.account-footer p {
  max-width: 560px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--faint);
  opacity: 0.76;
}

.account-footer-links {
  display: flex;
  gap: 16px;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.account-footer-links a:hover {
  color: var(--ice);
}

/* --------------------------------- toast ---------------------------------- */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  max-width: min(390px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid rgba(111, 227, 196, 0.3);
  background: rgba(5, 16, 23, 0.95);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--mint);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: rgba(255, 120, 120, 0.34);
  color: #ffb1b1;
}

/* ------------------------------- animations ------------------------------- */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardSheen {
  0%,
  62% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1100px) {
  .login-view {
    gap: 42px;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .security-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 54px;
    min-height: 0;
  }

  .login-copy h1 {
    font-size: clamp(38px, 8vw, 58px);
  }

  .login-visual {
    width: min(480px, 100%);
    margin-inline: auto;
  }

  .float-a {
    right: -8px;
  }

  .float-b {
    left: -8px;
  }

  .dash-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .dash-head-actions {
    width: 100%;
  }

  .license-grid {
    grid-template-columns: 1fr;
  }

  .claim-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .account-topbar {
    height: 68px;
  }

  .account-topbar-inner,
  .account-shell,
  .account-footer-inner {
    width: calc(100% - 36px);
  }

  .account-topbar-right .btn {
    display: none;
  }

  .account-back {
    padding-right: 0;
  }

  .account-main {
    padding-top: 100px;
  }

  .dash-avatar {
    width: 58px;
    height: 58px;
  }

  .dash-copy h1 {
    font-size: 28px;
  }

  .dash-stats {
    gap: 8px;
  }

  .dash-stat {
    min-height: 130px;
    padding: 15px;
  }

  .dash-stat strong {
    font-size: 28px;
  }

  .dash-tabs {
    border-bottom-color: var(--line);
  }

  .dash-tab {
    height: 48px;
    padding: 0 14px;
    font-size: 6.5px;
  }

  .dash-tab .icon {
    font-size: 12px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .panel-head > .btn {
    width: 100%;
  }

  .overview-side {
    grid-template-columns: 1fr;
  }

  .panel-card {
    padding: 19px;
  }

  .overview-license {
    padding: 21px;
  }

  .overview-license-empty {
    flex-direction: column;
  }

  .ov-license-meta {
    gap: 8px;
  }

  .ov-license-meta strong {
    font-size: 15px;
  }

  .license-meta strong {
    font-size: 12px;
  }

  .claim-panel {
    padding: 21px;
  }

  .claim-input {
    flex-wrap: wrap;
    padding: 10px;
  }

  .claim-input input {
    width: calc(100% - 30px);
    flex: 1 1 calc(100% - 30px);
  }

  .claim-input .btn {
    width: 100%;
  }

  .ticket-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .ticket-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .ticket-row-side {
    justify-content: space-between;
    padding-left: 50px;
  }

  .ticket-row-copy p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .admin-table-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .admin-search {
    width: 100%;
  }

  .account-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-footer p {
    max-width: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    padding: 23px 19px;
    max-height: 92vh;
  }

  .modal-head h2 {
    font-size: 23px;
  }

  .thread-msg-body {
    max-width: 100%;
  }

  .thread-reply-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .thread-reply-foot .btn {
    width: 100%;
  }

  .login-float {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-actions {
    display: grid;
    width: 100%;
  }

  .login-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .login-copy h1 {
    font-size: 37px;
  }

  .login-features {
    gap: 13px;
  }

  .member-card {
    min-height: 235px;
    padding: 20px;
  }

  .member-middle {
    margin-top: 38px;
  }

  .member-avatar {
    width: 52px;
    height: 52px;
  }

  .member-middle strong {
    font-size: 19px;
  }

  .member-bars {
    display: none;
  }

  .dash-identity {
    align-items: flex-start;
    gap: 13px;
  }

  .dash-avatar {
    width: 50px;
    height: 50px;
  }

  .dash-copy h1 {
    font-size: 23px;
  }

  .dash-head-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dash-head-actions .btn {
    min-width: 0;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
  }

  .dash-stat {
    min-height: 120px;
  }

  .ov-license-meta {
    grid-template-columns: 1fr 1fr;
  }

  .ov-license-meta div:last-child {
    grid-column: 1 / -1;
  }

  .ov-license-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .license-meta {
    grid-template-columns: 1fr 1fr;
  }

  .license-meta div:last-child {
    grid-column: 1 / -1;
  }

  .recent-ticket {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .recent-ticket > .status-pill {
    display: none;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .thread-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-aurora,
  .member-card::before {
    animation: none;
  }

  .dash,
  .tab-panel,
  .modal-panel {
    animation: none;
  }
}
