/* ==========================================================================
   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);
}

/* -------------------------- strafe sıralaması ------------------------------ */

.admin-strafe-refresh {
  gap: 6px;
  padding: 6px 10px;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.admin-strafe-table {
  min-width: 880px;
}

.admin-strafe-rank {
  font-size: 9px;
  color: var(--ice);
}

.admin-strafe-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-strafe-avatar {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(111, 227, 255, 0.22);
  background: rgba(9, 20, 34, 0.9);
  font-size: 9px;
  color: var(--ice);
}

.admin-strafe-id {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.admin-strafe-id strong {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.admin-strafe-id .mono,
.admin-strafe-score .mono,
.admin-strafe-perf .mono {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.admin-strafe-score strong,
.admin-strafe-perf strong {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--mint);
}

.admin-strafe-perf strong {
  color: var(--ink-2);
}

.admin-strafe-reason {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--orange);
}

.admin-strafe-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-mini-btn {
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 6.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.admin-mini-btn:hover {
  border-color: rgba(155, 220, 255, 0.4);
  color: var(--ink-2);
}

.admin-mini-btn.is-ok:hover {
  border-color: rgba(111, 227, 196, 0.45);
  background: rgba(111, 227, 196, 0.08);
  color: var(--mint);
}

.admin-mini-btn.is-danger:hover {
  border-color: rgba(255, 140, 140, 0.45);
  background: rgba(255, 120, 120, 0.08);
  color: #ff9a9a;
}

.admin-mini-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ------------------------------ üye yönetimi ------------------------------ */

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 29, 0.6);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-toggle input {
  width: 13px;
  height: 13px;
  accent-color: #6fe3ff;
}

.admin-toggle:has(input:checked) {
  border-color: rgba(155, 220, 255, 0.42);
  color: var(--ice);
}

.admin-member-table {
  min-width: 880px;
}

.admin-member-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-member-ava {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #163450, #071321);
  overflow: hidden;
  font-size: 11px;
  color: var(--ice);
}

.admin-member-ava img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-member-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-member-id strong {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.admin-member-id .mono {
  font-size: 7px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.admin-role-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 200px;
}

.admin-role-chip {
  --role: #6fe3ff;
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(155, 220, 255, 0.16);
  border-left: 2px solid var(--role);
  background: rgba(7, 16, 29, 0.7);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  white-space: nowrap;
}

.admin-member-norole {
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.admin-lic-count {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.admin-lic-count strong {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1;
  color: var(--faint);
}

.admin-lic-count.is-active strong {
  color: var(--mint);
}

.admin-lic-count .mono {
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* --------------------------------- member --------------------------------- */

.member-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, #163450, #071321);
  overflow: hidden;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ice);
}

.member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-head-copy {
  min-width: 0;
}

.member-head-copy h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.member-head-copy p {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.member-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

#memberMsg {
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.member-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 18px;
}

.member-block {
  min-width: 0;
}

.member-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--ice);
}

.member-block h3 em {
  padding: 1px 6px;
  border: 1px solid var(--line);
  background: rgba(111, 227, 255, 0.1);
  font-style: normal;
  font-size: 7.5px;
  color: var(--ink-2);
}

.member-license-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 220, 255, 0.2) transparent;
}

.member-license {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 26, 0.7);
}

.member-license-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-license-head strong {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.member-license-meta {
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.member-license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.member-empty {
  padding: 18px 12px;
  border: 1px dashed var(--line);
  text-align: center;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.member-grant {
  display: grid;
  gap: 10px;
}

.member-field {
  display: grid;
  gap: 5px;
}

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

.member-field input,
.member-field select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 19, 0.8);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12px;
}

.member-field input:focus,
.member-field select:focus {
  outline: 0;
  border-color: rgba(155, 220, 255, 0.45);
}

.member-hint {
  font-size: 7px;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.member-grant .btn {
  width: 100%;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .member-head {
    align-items: flex-start;
  }

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

/* --------------------------------- 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;
  }
}

/* V6 · köşeli yüzeyler */
.panel-card,
.dash-stat,
.quick-action,
.member-card,
.security-note,
.login-notice,
.community-card,
.modal-panel,
.ticket-row {
  border-radius: 16px;
}

.dash-tab {
  border-radius: 10px;
}

/* --------------------------- lisans düzenleme ----------------------------- */

.admin-license-table {
  min-width: 940px;
}

.admin-license-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-license-sub {
  display: block;
  margin-top: 3px;
  font-size: 6px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.license-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 14px;
}

.license-lock {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.license-hwid {
  margin-bottom: 14px;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.license-result {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(111, 227, 196, 0.34);
  background: rgba(111, 227, 196, 0.06);
}

.license-result > span {
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.license-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.license-result-row code {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(3, 8, 15, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.license-result p {
  margin-top: 8px;
  font-size: 7px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.license-form .modal-actions #licenseResetHwid {
  margin-right: auto;
}

@media (max-width: 640px) {
  .license-quick .admin-mini-btn {
    flex: 1 1 auto;
  }
}

/* ==========================================================================
   LİSANS SAHİBİ + CANLI DESTEK (site yönetim paneli)
   ========================================================================== */

.admin-license-table {
  min-width: 1080px;
}

.admin-license-table th:nth-child(1) {
  width: 27%;
}

.admin-license-table th:nth-child(2) {
  width: 21%;
}

.admin-license-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.admin-license-ava {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.28);
  border-radius: 9px;
  background: linear-gradient(160deg, rgba(22, 49, 78, 0.95), rgba(6, 15, 27, 0.98));
  font-size: 11px;
  font-weight: 700;
  color: var(--ice);
}

.admin-license-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-license-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-license-id strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-license-handle {
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.admin-license-idline {
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.admin-license-owner.is-empty .admin-license-ava {
  border-style: dashed;
  color: var(--faint);
}

.admin-license-owner.is-empty strong {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-license-owner.is-empty .mono {
  max-width: 190px;
  font-size: 7.5px;
  line-height: 1.5;
  color: var(--faint);
}

.admin-support {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 14px;
}

.admin-support-list-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 480px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(11, 25, 43, 0.7), rgba(4, 10, 19, 0.8));
}

.admin-support-list-wrap .admin-table-tools {
  margin-bottom: 8px;
  padding: 0 2px;
}

.admin-support-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 227, 255, 0.28) transparent;
}

.admin-support-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition:
    background 0.2s,
    border-color 0.2s;
}

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

.admin-support-row.is-active {
  border-color: rgba(111, 227, 255, 0.3);
  background: linear-gradient(160deg, rgba(21, 49, 77, 0.7), rgba(8, 20, 35, 0.72));
}

.admin-support-ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.26);
  border-radius: 9px;
  background: rgba(8, 22, 39, 0.92);
  font-size: 11px;
  color: var(--ice);
}

.admin-support-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-support-row-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-support-row-copy strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-row-copy span {
  overflow: hidden;
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-row-copy small {
  overflow: hidden;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}

.admin-support-row-side time {
  font-size: 7px;
  color: var(--faint);
  white-space: nowrap;
}

.admin-support-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 480px;
  max-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(168deg, rgba(9, 21, 37, 0.78), rgba(3, 9, 17, 0.86));
}

.admin-support-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(90% 140% at 8% 0%, rgba(76, 157, 232, 0.12), transparent 70%);
}

.admin-support-chat-head h3 {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.admin-support-chat-head p {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--faint);
  overflow-wrap: anywhere;
}

.admin-support-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(111, 227, 255, 0.28) transparent;
}

.admin-support-msg {
  align-self: flex-start;
  width: fit-content;
  max-width: 84%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px 11px 11px 4px;
  background: rgba(8, 20, 35, 0.9);
}

.admin-support-msg.is-admin {
  align-self: flex-end;
  border-color: rgba(111, 227, 255, 0.3);
  border-radius: 11px 11px 4px 11px;
  background: linear-gradient(160deg, rgba(21, 55, 89, 0.9), rgba(9, 26, 45, 0.9));
}

.admin-support-msg.is-assistant {
  border-color: rgba(111, 227, 196, 0.22);
  background: rgba(7, 29, 29, 0.6);
}

.admin-support-msg header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}

.admin-support-msg header strong {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.admin-support-msg header span {
  font-size: 7px;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.admin-support-msg p {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin-support-attachment {
  display: grid;
  place-items: center;
  width: 74px;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 11, 21, 0.75);
  font-size: 7px;
  color: var(--faint);
}

.admin-support-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-support-pending {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.admin-support-pending span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  animation: adminSupportTyping 1.2s ease-in-out infinite;
}

.admin-support-pending span:nth-child(2) {
  animation-delay: 0.15s;
}

.admin-support-pending span:nth-child(3) {
  animation-delay: 0.3s;
}

.admin-support-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 19, 0.8);
}

.admin-support-form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 16, 29, 0.82);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  resize: vertical;
}

.admin-support-form textarea::placeholder {
  color: var(--faint);
}

.admin-support-form textarea:focus {
  border-color: rgba(111, 227, 255, 0.42);
  outline: none;
}

@keyframes adminSupportTyping {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .admin-support {
    grid-template-columns: 1fr;
  }

  .admin-support-list-wrap {
    min-height: 0;
  }

  .admin-support-list {
    max-height: 220px;
  }

  .admin-support-chat {
    min-height: 420px;
  }
}

/* ==========================================================================
   YÖNETİM PANELİ · UYGULAMA TEMASI
   Renkler masaüstü uygulamasının src/styles/themes.css kartelasından alınmıştır.
   Hesap sayfasındaki tema seçici --am-* değişkenlerini yazar; paneldeki her
   yüzey (sekmeler, kutular, başlıklar, düğmeler) o renklerle birlikte akar.
   ========================================================================== */

.tab-panel[data-panel="admin"] {
  --am-ice: #9bdcff;
  --am-accent: #8fd8ff;
  --am-blue: #4c9de8;
  --am-brand: 126, 178, 255;
  --am-soft: 155, 220, 255;
  --am-deep: 30, 80, 150;
  --am-surface: 4, 10, 19;
  --am-hi: 10, 20, 36;
  --am-up: 20, 36, 60;
  --am-ink: #04121f;

  /* Panel içi yüzeyler bu tokenları gördüğü için tema tek yerden değişir. */
  --ice: var(--am-ice);
  --cyan: var(--am-accent);
  --blue: var(--am-blue);
  --mint: color-mix(in srgb, var(--am-ice) 62%, #6fe3c4);
}

.tab-panel[data-panel="admin"] .panel-head h2 {
  color: color-mix(in srgb, var(--am-soft) 88%, #fff);
}

.tab-panel[data-panel="admin"] .panel-head .eyebrow i {
  background: linear-gradient(90deg, var(--am-accent), var(--am-blue));
  box-shadow: 0 0 12px rgba(var(--am-brand), 0.55);
}

/* Uygulamadaki .panel kartı: 16 px köşe, tema yüzeyi, iç parlama. */
.tab-panel[data-panel="admin"] .admin-panel,
.tab-panel[data-panel="admin"] .admin-table-wrap,
.tab-panel[data-panel="admin"] .admin-search,
.tab-panel[data-panel="admin"] .admin-support-list-wrap {
  border: 1px solid rgba(var(--am-brand), 0.16);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(var(--am-up), 0.58), rgba(var(--am-hi), 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 24px 50px -46px #000;
}

.tab-panel[data-panel="admin"] .admin-table-wrap {
  overflow: hidden;
}

/* Uygulamadaki .adm-view-tab: küçük kutu sekme + tema parıltısı. */
.admin-switch {
  gap: 6px;
  border-bottom: 0;
}

.admin-switch-btn {
  padding: 9px 13px;
  border: 1px solid rgba(var(--am-brand), 0.14);
  border-radius: 10px;
  margin-bottom: 0;
  background: rgba(var(--am-surface), 0.55);
  color: color-mix(in srgb, var(--am-accent) 52%, #8095ad);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.admin-switch-btn:hover {
  border-color: rgba(var(--am-brand), 0.34);
  color: var(--am-ice);
}

.admin-switch-btn.is-active {
  border-color: rgba(var(--am-brand), 0.5);
  background: linear-gradient(180deg, rgba(var(--am-brand), 0.2), rgba(var(--am-deep), 0.32));
  color: var(--am-ice);
  box-shadow: 0 0 18px -6px rgba(var(--am-brand), 0.4);
}

.admin-switch-btn.is-active em {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(var(--am-soft), 0.16);
  color: var(--am-ice);
}

.tab-panel[data-panel="admin"] .admin-table th {
  background: rgba(var(--am-deep), 0.3);
  color: var(--am-accent);
}

.tab-panel[data-panel="admin"] .admin-table tr:hover td {
  background: rgba(var(--am-brand), 0.07);
}

.tab-panel[data-panel="admin"] .admin-search:focus-within {
  border-color: rgba(var(--am-brand), 0.42);
  box-shadow: 0 0 0 3px rgba(var(--am-brand), 0.09);
}

.tab-panel[data-panel="admin"] .admin-mini-btn:hover {
  border-color: rgba(var(--am-brand), 0.46);
  color: var(--am-ice);
}

.tab-panel[data-panel="admin"] .btn-primary {
  color: var(--am-ink);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--am-ice) 38%, #fff),
    var(--am-ice) 46%,
    color-mix(in srgb, var(--am-blue) 84%, #000)
  );
  box-shadow:
    0 6px 22px -8px rgba(var(--am-soft), 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* --------------------------- tema seçici şeridi ---------------------------- */

.admin-theme {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 4px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(var(--am-brand), 0.16);
  border-radius: 14px;
  background: rgba(var(--am-surface), 0.62);
}

.admin-theme-label {
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--am-accent) 60%, #7f95ae);
}

.admin-theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgb(var(--t-up, 20, 36, 60));
  color: color-mix(in srgb, var(--t-ice, #9bdcff) 72%, #9fb2c6);
  font-size: 6px;
  letter-spacing: 0.1em;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.admin-theme-btn:hover {
  border-color: color-mix(in srgb, var(--t-ice, #9bdcff) 45%, transparent);
  color: var(--t-ice, #9bdcff);
}

.admin-theme-btn.is-active {
  border-color: color-mix(in srgb, var(--t-ice, #9bdcff) 70%, transparent);
  color: var(--t-ice, #9bdcff);
  box-shadow: 0 0 16px -4px color-mix(in srgb, var(--t-ice, #9bdcff) 60%, transparent);
}

.admin-theme-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--t-ice, #9bdcff), var(--t-blue, #4c9de8));
  box-shadow: 0 0 9px color-mix(in srgb, var(--t-ice, #9bdcff) 65%, transparent);
}

.admin-theme-name {
  white-space: nowrap;
}

.admin-theme-note {
  margin-left: auto;
  font-size: 6px;
  letter-spacing: 0.16em;
  color: var(--am-accent);
}

/* --------------------------- yorum duvarı kartları ------------------------- */

.admin-feedback-note {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-left: 2px solid rgba(var(--am-brand), 0.5);
  border-radius: 0 12px 12px 0;
  background: rgba(var(--am-surface), 0.5);
  font-size: 7px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--am-ice) 58%, #93a6bb);
}

.admin-feedback-list {
  display: grid;
  gap: 10px;
}

.adm-feed-card {
  padding: 13px 15px 11px;
  border: 1px solid rgba(var(--am-brand), 0.16);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(var(--am-up), 0.5), rgba(var(--am-hi), 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 44px -40px #000;
}

.adm-feed-card.is-hidden {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(var(--am-surface), 0.45);
  opacity: 0.72;
}

.adm-feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-feed-ava {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--c, #9bdcff) 40%, transparent);
  border-radius: 50%;
  background: rgba(var(--am-surface), 0.7);
  overflow: hidden;
}

.adm-feed-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adm-feed-who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.adm-feed-who strong {
  font-size: 11px;
  color: color-mix(in srgb, var(--am-soft) 84%, #fff);
}

.adm-feed-who .mono {
  font-size: 6px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.adm-feed-state {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(var(--am-brand), 0.3);
  border-radius: 999px;
  font-size: 5.5px;
  letter-spacing: 0.16em;
  color: var(--am-accent);
  white-space: nowrap;
}

.adm-feed-card.is-hidden .adm-feed-state {
  border-color: rgba(240, 198, 116, 0.34);
  color: #f0c674;
}

.adm-feed-text {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.75;
  color: color-mix(in srgb, var(--am-ice) 40%, var(--ink, #dbe7f5));
}

.adm-feed-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--am-brand), 0.12);
}

.adm-feed-plans {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.adm-feed-plan {
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--c, #9bdcff) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c, #9bdcff) 14%, transparent);
  font-size: 5.5px;
  letter-spacing: 0.14em;
  color: var(--c, #9bdcff);
}

.adm-feed-none {
  font-size: 5.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.adm-feed-react,
.adm-feed-link {
  font-size: 5.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-decoration: none;
}

.adm-feed-link {
  border-bottom: 1px dashed rgba(var(--am-brand), 0.3);
  color: var(--am-accent);
}

.adm-feed-foot .admin-mini-btn {
  margin-left: auto;
}

/* ==========================================================================
   UYGULAMA PANELİ · SİTE KÖPRÜSÜ
   account-admin.css masaüstü uygulamasının src/styles/{index,themes}.css
   dosyalarından mekanik olarak kesildi (C:\Temp\calida-panel-css-port.cjs);
   burada yalnızca site DOM'unu o kurallara oturtan yapıştırma katmanı durur.
   Yeni renk uydurulmadı — sadece boyut, boşluk ve sitenin kendi sınıf adları.
   ========================================================================== */

/* İkonlar: sitede svg.icon boyunu font-size'tan alır (styles.css), uygulamada
   px ile verilir. Her bağlam uygulamanın kendi boyuna sabitlenir. */
.calida-adm svg.icon {
  flex: none;
}

.calida-adm .admin-stats svg.icon {
  font-size: 13px;
}

.calida-adm .adm-view-tab svg.icon {
  font-size: 13px;
}

.calida-adm .aov-tile svg.icon {
  font-size: 14px;
}

.calida-adm .aov-empty svg.icon,
.calida-adm .table-empty svg.icon {
  font-size: 12px;
}

.calida-adm .settings-head .dim-icon {
  font-size: 16px;
}

.calida-adm .btn svg.icon {
  font-size: 14px;
}

.calida-adm .btn-sm svg.icon {
  font-size: 12px;
}

.calida-adm .ms-icon svg.icon {
  font-size: 14px;
}

.calida-adm .po-top svg.icon {
  font-size: 11px;
}

.calida-adm .cell-discord svg.icon {
  font-size: 9px;
}

.calida-adm .cell-tools svg.icon {
  font-size: 13px;
}

.calida-adm .ck-warn svg.icon {
  font-size: 12px;
}

.calida-adm .adm-bulk-count svg.icon {
  font-size: 13px;
}

.calida-adm .adm-bulk-btn svg.icon {
  font-size: 12px;
}

.calida-adm .adm-holder-avatar svg.icon {
  font-size: 15px;
}

.calida-adm .adm-holder-actions svg.icon {
  font-size: 14px;
}

.calida-adm .searchbox svg.icon {
  font-size: 13px;
}

.calida-adm .adm-sync svg.icon {
  font-size: 11px;
}

.calida-adm .modal-note svg.icon {
  font-size: 12px;
}

/* Filigran: uygulama <Logo bare size={n}/> ile boyut veriyor; sitede görseli
   JS basıyor, ölçüyü buradan alıyor. Boş kutu asla yer tutmasın. */
.calida-adm .panel-wm:empty {
  display: none;
}

.calida-adm .panel-wm img {
  display: block;
  height: 150px;
  width: auto;
}

.calida-adm .panel-wm--sm img {
  height: 96px;
}

.calida-adm .panel-wm--lg img {
  height: 190px;
}

/* Eski site görünümleri (üyeler / yorumlar / strafe / talepler / canlı destek)
   uygulama kartının içine kaydırıldı: kenar boşluğu uygulamanınki kadar. */
.calida-adm .admin-view-pad {
  padding: 16px 18px 18px;
}

.calida-adm .adm-keys {
  padding-bottom: 8px;
}

.calida-adm .adm-holders {
  padding-bottom: 18px;
}

.calida-adm .adm-filter em {
  font-style: normal;
  margin-left: 3px;
  opacity: 0.72;
}

.calida-adm .aov-attn-row strong,
.calida-adm .aov-line-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Lisans modalı: uygulamanın 470 px düzen kutusu. */
#licenseModal .modal-panel {
  width: min(470px, 100%);
  padding: 22px 24px 24px;
}

#licenseModal .modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 26px;
}

#licenseModal .modal-head h3 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

#licenseModal .license-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

#licenseModal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

#licenseModal .license-quick {
  display: flex;
  gap: 6px;
  margin: 4px 0 2px;
}

#licenseModal .license-result {
  margin-top: 10px;
}

#licenseModal .license-reset {
  align-self: flex-start;
  margin-top: 4px;
}

#licenseModal .form-msg:not(:empty) {
  margin-top: 6px;
}

@media (max-width: 900px) {
  .calida-adm .admin-stats {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .calida-adm .admin-stats > div {
    flex: 0 0 auto;
  }

  .calida-adm .keys-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .calida-adm .keys-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .calida-adm .panel-wm img {
    height: 112px;
  }
}

/* ======================== YÖNETİM PROFİL KARTI ============================ */

.admin-profile-modal {
  z-index: 1200;
}

.admin-profile-sheet {
  width: min(780px, 100%);
  max-height: min(92vh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(155, 220, 255, 0.18);
}

.admin-profile-sheet .profile-banner {
  height: 150px;
}

.admin-profile-sheet .profile-body {
  align-items: stretch;
  padding: 0 28px 28px;
  text-align: left;
}

.admin-profile-sheet .profile-ava {
  width: 108px;
  height: 108px;
  margin-top: -54px;
  margin-left: 2px;
}

.admin-profile-sheet .profile-tag-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.admin-profile-sheet .profile-tag {
  margin-top: 0;
}

.admin-profile-sheet .profile-name-line {
  justify-content: flex-start;
  margin-top: 4px;
}

.admin-profile-sheet .profile-name-line h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.admin-profile-sheet .profile-handle {
  text-align: left;
}

.admin-profile-sheet .profile-listening {
  max-width: 100%;
}

.admin-profile-sheet .profile-roles {
  justify-content: flex-start;
}

.admin-profile-sheet .profile-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-profile-sheet .profile-meta > div:nth-child(3) {
  grid-column: auto;
}

.admin-profile-sheet .profile-open {
  align-self: flex-start;
  width: auto;
  min-width: 220px;
}

.profile-refresh {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.profile-refresh[hidden] {
  display: none;
}

.profile-refresh::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.profile-refresh.is-loading {
  color: var(--ice);
}

.profile-refresh.is-loading::before {
  background: var(--cyan);
  animation: adminProfilePulse 1s ease-in-out infinite;
}

.profile-refresh.is-error {
  color: #ff9a9a;
}

@keyframes adminProfilePulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.admin-profile-body {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(155, 220, 255, 0.1);
}

.admin-profile-body[hidden] {
  display: none;
}

.admin-profile-sheet .member-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.admin-profile-sheet .member-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(155, 220, 255, 0.12);
  border-radius: 13px;
  background: rgba(5, 13, 24, 0.52);
}

.admin-profile-sheet .member-license-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 3px;
}

.admin-profile-sheet .member-actions {
  margin-top: 14px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.profile-stat {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(155, 220, 255, 0.11);
  border-radius: 11px;
  background: rgba(5, 13, 24, 0.56);
}

.profile-stat .mono {
  display: block;
  font-size: 6.5px;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.profile-stat strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-profile-sheet .member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-profile-sheet .form-msg:not(:empty) {
  margin: 12px 0 0;
}

/* ---------------------- tıklanabilir yönetim satırları -------------------- */

.admin-table tbody tr.is-clickable {
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.admin-table tbody tr.is-clickable:hover td,
.admin-table tbody tr.is-clickable:focus-visible td {
  background: rgba(111, 227, 255, 0.045);
}

.admin-table tbody tr.is-clickable:focus-visible {
  outline: 1px solid rgba(111, 227, 255, 0.4);
  outline-offset: -1px;
}

.admin-loading-cell {
  padding: 32px 14px !important;
  text-align: center;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.admin-strafe-avatar.has-image {
  overflow: hidden;
  padding: 0;
}

.admin-strafe-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-left: 4px;
  padding: 2px 5px;
  border: 1px solid rgba(111, 227, 255, 0.22);
  border-radius: 999px;
  font-size: 6.5px;
  font-style: normal;
  color: var(--ice);
}

/* ---------------------- yönetim canlı destek başlığı --------------------- */

.admin-support-chat-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-support-chat-ava {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(155, 220, 255, 0.24);
  border-radius: 11px;
  background: rgba(7, 18, 32, 0.9);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ice);
}

.admin-support-chat-ava.has-image {
  padding: 0;
}

.admin-support-chat-ava img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-support-chat-ava .icon {
  font-size: 17px;
}

.admin-support-chat-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.admin-support-chat-actions .admin-mini-btn {
  padding: 6px 9px;
}

.admin-support-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 178, 125, 0.16);
  background: rgba(255, 178, 125, 0.05);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: #ffca9d;
}

.admin-support-notice[hidden] {
  display: none;
}

.admin-support-notice::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #ffb27d;
}

.admin-support-loading {
  padding: 22px 10px;
  text-align: center;
  font-size: 7.5px;
  letter-spacing: 0.11em;
  color: var(--faint);
}

.admin-support-chat-head h3 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-chat-id > div {
  min-width: 0;
}

@media (max-width: 760px) {
  .admin-profile-sheet .profile-meta {
    grid-template-columns: 1fr 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-profile-sheet .member-grid {
    grid-template-columns: 1fr;
  }

  .admin-profile-sheet .profile-body {
    padding: 0 18px 22px;
  }

  .admin-profile-sheet .profile-open {
    width: 100%;
    min-width: 0;
  }

  .admin-support-chat-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-support-chat-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-profile-sheet .profile-meta {
    grid-template-columns: 1fr;
  }

  .admin-profile-sheet .profile-name-line h2 {
    font-size: 23px;
  }
}

/* Genel bakış satır düğmeleri ve lisans tablosu hücreleri */
.calida-adm .aov-line-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 5px 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.calida-adm .aov-line-btn:hover .aov-line-name {
  color: #e4f2ff;
}
.calida-adm .adm-holder {
  cursor: pointer;
}
.calida-adm .adm-holder:focus-visible {
  outline: 1px solid rgba(111, 227, 255, 0.45);
  outline-offset: 2px;
}
.calida-adm .key-row .cell-key .adm-check {
  margin-top: 2px;
}
.calida-adm .key-row .cell-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.calida-adm .key-row .cell-tools {
  align-items: center;
}
.calida-adm .key-row .cell-tools svg {
  width: 12px;
  height: 12px;
}
.calida-adm .key-row .status-pill {
  align-self: flex-start;
}

/* ==========================================================================
   Shopier siparişleri: sahip panelindeki SİPARİŞLER sekmesi + alıcının
   sipariş bağlama bloğu. Renkler uydurulmadı: hesap-admin.css'teki --am-*
   tema değişkenlerinin panel dışı karşılıkları (--cyan/--faint/--line) ve
   .calida-adm kapsamındaki rgba(--brand-rgb) tonları kullanıldı.
   ========================================================================== */

/* ---------------------------- sahip: sipariş listesi ---------------------- */

.calida-adm .admin-order-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 18px 8px;
}
.calida-adm .adm-order-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.35);
  transition: border-color 0.2s, background 0.2s;
}
.calida-adm .adm-order-card:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  background: rgba(var(--surface-hi-rgb), 0.5);
}
.calida-adm .adm-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.calida-adm .adm-order-id {
  font-size: 11px;
  color: #dff1ff;
  letter-spacing: 0.04em;
}
.calida-adm .adm-order-date,
.calida-adm .adm-order-price {
  font-size: 9px;
  color: #7f9bbd;
}
.calida-adm .adm-order-price {
  margin-left: auto;
  color: #cfe6ff;
}
.calida-adm .adm-order-test {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(var(--brand-rgb), 0.3);
  color: #9dc6ee;
}
.calida-adm .adm-order-renew {
  font-size: 8px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(86, 214, 168, 0.45);
  color: #8ff0c8;
}
.calida-adm .adm-order-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.calida-adm .adm-order-lines span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font-size: 9.5px;
}
.calida-adm .adm-order-lines i {
  font-style: normal;
  color: #62809f;
  letter-spacing: 0.1em;
}
.calida-adm .adm-order-lines em {
  font-style: normal;
  color: #c3d9f2;
  overflow-wrap: anywhere;
}
.calida-adm .adm-order-dm {
  font-size: 8.5px;
  color: #8fe0c0;
}
.calida-adm .adm-order-note {
  margin: 0;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px dashed rgba(var(--brand-rgb), 0.22);
  background: rgba(var(--brand-deep-rgb), 0.12);
  font-size: 10px;
  line-height: 1.5;
  color: #a8c4e2;
  overflow-wrap: anywhere;
}
.calida-adm .adm-order-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.calida-adm .adm-order-key {
  font-size: 9px;
  color: #9dc6ee;
}
.calida-adm .adm-order-assign {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.calida-adm .adm-order-assign-input {
  width: 210px;
  max-width: 52vw;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.55);
  color: #dff1ff;
  font-family: var(--mono);
  font-size: 9px;
}
.calida-adm .adm-order-assign-input:focus-visible {
  outline: none;
  border-color: rgba(var(--brand-rgb), 0.5);
  box-shadow: 0 0 14px -6px rgba(var(--brand-rgb), 0.5);
}

/* --------------------------- sahip: ürün eşlemesi ------------------------- */

.calida-adm .admin-shopier-map {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 18px 0;
}
.calida-adm .adm-map-row {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) 128px 64px minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.28);
}
.calida-adm .adm-map-product {
  font-size: 9px;
  color: #9dc6ee;
  overflow-wrap: anywhere;
}
.calida-adm .adm-map-label,
.calida-adm .adm-map-days {
  height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(var(--surface-rgb), 0.5);
  color: #dff1ff;
  font-family: var(--mono);
  font-size: 9px;
}
.calida-adm .adm-map-label:focus-visible,
.calida-adm .adm-map-days:focus-visible,
.calida-adm .adm-map-plan:focus-visible {
  outline: none;
  border-color: rgba(var(--brand-rgb), 0.5);
}
.calida-adm .adm-map-days {
  width: 64px;
}
.calida-adm .adm-map-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.calida-adm .adm-map-module {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #93b0d0;
  cursor: pointer;
}
.calida-adm .adm-map-module input {
  width: 12px;
  height: 12px;
  accent-color: rgb(var(--brand-rgb));
}
.calida-adm .admin-shopier-hint {
  padding: 8px 18px 16px;
  font-size: 9px;
  line-height: 1.6;
  color: #62809f;
}
@media (max-width: 900px) {
  .calida-adm .adm-map-row {
    grid-template-columns: 1fr 1fr;
  }
  .calida-adm .adm-order-assign {
    margin-left: 0;
    width: 100%;
  }
  .calida-adm .adm-order-assign-input {
    flex: 1;
    max-width: none;
  }
}

/* ----------------------------- alıcı: sipariş bağlama --------------------- */

.order-claim {
  margin-top: 14px;
  gap: 24px;
  padding: 24px 26px;
}
.order-claim .claim-form {
  gap: 10px;
}
.my-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.my-order-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(155, 220, 255, 0.14);
  background: linear-gradient(120deg, rgba(12, 26, 44, 0.6), rgba(4, 10, 19, 0.78));
  font-size: 10.5px;
  color: var(--faint, #91a9c4);
}
.my-order-row span:first-child {
  color: #cfe6ff;
}
.my-order-row.is-done {
  border-color: rgba(143, 224, 192, 0.28);
}
.my-order-row.is-done span:nth-child(2) {
  color: #8fe0c0;
}
.my-order-row.is-wait {
  border-color: rgba(255, 178, 125, 0.24);
}
.my-order-row.is-wait span:nth-child(2) {
  color: #ffb27d;
}
.my-order-row .mono:last-child {
  color: #cfe6ff;
}
@media (max-width: 640px) {
  .my-order-row {
    grid-template-columns: 1fr auto;
  }
  .my-order-row span:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }
}
