:root {
  --bg: #0a0a0c;
  --gray-100: #f5f5f7;
  --gray-200: #d6d6db;
  --gray-300: #a8a8b0;
  --gray-400: #7d7d86;
  --gray-500: #4a4a52;
  --gray-600: #2a2a30;
  --gray-700: #1a1a1f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background-color: #fff;
  pointer-events: none;
  z-index: 9999;
  animation: rippleGrow 0.5s ease-out forwards;
}

@keyframes rippleGrow {
  from {
    transform: scale(0);
    opacity: 0.6;
  }
  to {
    transform: scale(5);
    opacity: 0;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-90px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--gray-200);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: clip;
  padding-top: 72px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  background-color: transparent;
  pointer-events: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1270px;
  margin: 0 auto;
  padding: 18px 40px;
  gap: 24px;
  pointer-events: auto;
  border-radius: 0;
  border: 1px solid transparent;
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .navbar-inner {
  max-width: 880px;
  padding: 12px 20px;
  border-radius: 100px;
  margin-top: 10px;
  background-color: rgba(16, 16, 20, 0.88);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  backdrop-filter: blur(28px) saturate(1.4);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.navbar .brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar .brand img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.navbar .brand:hover img {
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01px;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--gray-200);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.current {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
}

.navbar .button {
  padding: 9px 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.navbar .button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media screen and (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .navbar-inner {
    padding: 14px 20px;
  }
}

.bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  max-width: 1800px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  padding: 110px 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  background-image: linear-gradient(270deg, #101012, #26262b),
    linear-gradient(#2f2f36, #55555f);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.label-badge svg {
  width: 18px;
  height: 18px;
}

.label-badge span {
  font-size: 14px;
  font-weight: 500;
  background-image: linear-gradient(#fff, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  margin-top: 34px;
  font-size: 64px;
  line-height: 1.1;
  font-weight: 700;
  max-width: 900px;
  letter-spacing: -1px;
  background-image: linear-gradient(#fff, #ebebef 20%, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 .accent {
  background-image: linear-gradient(#d6d6db, #6f6f78);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin-top: 26px;
  font-size: 20px;
  line-height: 32px;
  color: var(--gray-300);
  max-width: 620px;
}

.hero-button-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.button {
  gap: 8px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  background-color: transparent;
  background-image: radial-gradient(circle at 50% 100%, #6a6a73, #3a3a41 96%),
    linear-gradient(#8a8a94, #d0d0d6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 0 1px #2b2b30;
}

.button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.button:active {
  transform: translateY(0);
  opacity: 1;
}

.button-gradient {
  filter: blur(16px);
  background-color: #ffffff52;
  border-radius: 50%;
  width: 70%;
  height: 120%;
  position: absolute;
  inset: 28px auto auto;
}

.button > div:not(.button-gradient),
.button > span,
.button > svg {
  position: relative;
  z-index: 1;
}

.gui-wrap {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  perspective: 1600px;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.gui-wrap img {
  width: 100%;
  max-width: 1000px;
  border-radius: 16px 16px 0 0;
  transform: rotateX(38deg);
  transform-origin: center bottom;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 40px;
  }
  .container {
    padding-top: 60px;
  }
  .subtitle {
    font-size: 16px;
  }
  .button {
    font-size: 16px;
  }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) perspective(600px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -4deg)); }
  50%       { transform: translateY(-12px) perspective(600px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -4deg)); }
}

.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 108px;
  height: 108px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg,
    #3c3c44 0%,
    #252528 30%,
    #1a1a1e 55%,
    #2e2e34 80%,
    #3a3a42 100%
  );
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 rgba(0,0,0,0.6) inset,
    1px 0 0 rgba(255,255,255,0.06) inset,
    0 20px 50px rgba(0,0,0,0.7),
    0 2px 8px rgba(0,0,0,0.5),
    0 32px 80px rgba(160,160,170,0.15);
  animation: heroFloat var(--dur, 4s) ease-in-out infinite var(--delay, 0s);
}

.float-icon svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  stroke-width: 1.4;
  color: #9090a0;
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,0.35))
    drop-shadow(0 -1px 0 rgba(0,0,0,0.6))
    drop-shadow(0 0 10px rgba(180,180,200,0.4));
}

.float-icon span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #d0d0dc 0%, #808090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fi-1 { left: 7%;   top: 14%; }
.fi-2 { left: 2%;   top: 44%; }
.fi-3 { left: 9%;   top: 72%; }
.fi-4 { right: 9%;  top: 22%; }
.fi-5 { right: 2%;  top: 52%; }
.fi-6 { right: 7%;  top: 76%; }

@media screen and (max-width: 1100px) {
  .hero-floats { display: none; }
}

.pricing-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 120px 24px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pricing-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  background-image: linear-gradient(270deg, #101012, #26262b),
    linear-gradient(#2f2f36, #55555f);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pricing-label span {
  font-size: 13px;
  font-weight: 500;
  background-image: linear-gradient(#fff, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-title {
  margin-top: 28px;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  background-image: linear-gradient(#fff, #ebebef 20%, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-sub {
  margin-top: 16px;
  font-size: 17px;
  color: var(--gray-400);
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 56px;
  align-items: stretch;
  padding-top: 20px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #131316, #0d0d10),
    linear-gradient(#2a2a30, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-card--featured {
  background-image: linear-gradient(180deg, #161619, #0d0d10),
    linear-gradient(#424248, #1e1e23);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 32px 80px rgba(0, 0, 0, 0.5);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  background-image: linear-gradient(90deg, #3a3a41, #6a6a73);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  background-image: linear-gradient(#fff, #d6d6db);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-period {
  font-size: 14px;
  color: var(--gray-400);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-300);
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.plan-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  justify-content: center;
}

@media screen and (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card--featured {
    transform: none;
  }
}

@media screen and (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-title {
    font-size: 38px;
  }
}

.auth-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.back-home {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-300);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-home svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.back-home:hover {
  color: #fff;
}

.back-home:hover svg {
  transform: translateX(-3px);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: 20px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #131316, #0d0d10),
    linear-gradient(#2a2a30, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card .brand-logo {
  height: 34px;
  width: auto;
  margin-bottom: 26px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  background-image: linear-gradient(#fff, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  margin-top: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gray-400);
  text-align: center;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-300);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #2a2a30;
  background-color: #0c0c0f;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.form-group input::placeholder {
  color: #55555f;
}

.form-group input:focus {
  border-color: #55555f;
  box-shadow: 0 0 0 3px rgba(120, 120, 130, 0.15);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.auth-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  cursor: pointer;
}

.toggle-wrap {
  user-select: none;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 100px;
  background-color: #1a1a1d;
  border: 1px solid #2a2a30;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-input:checked + .toggle {
  background-image: linear-gradient(90deg, #222222, #888888);
  border-color: transparent;
}

.toggle-input:checked + .toggle::after {
  transform: translateX(20px);
}

.auth-row a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-row a:hover {
  color: #fff;
}

.auth-form .button {
  width: 100%;
  margin-top: 6px;
}

.auth-footer {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-400);
  text-align: center;
}

.auth-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

html:has(.dash-body),
body.dash-body {
  height: 100%;
  overflow: hidden;
}

.dash-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 220px;
  flex-shrink: 0;
  background-color: #0c0c0f;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 12px;
  gap: 0;
  z-index: 5;
}

.sidebar-top {
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.sidebar-logo img {
  height: 22px;
  width: auto;
  display: block;
  max-width: 130px;
  object-fit: contain;
  object-position: left;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--gray-400);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
  width: 100%;
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}

.sidebar-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.18s ease;
}

.sidebar-item:hover {
  color: var(--gray-200);
  background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-item:hover svg {
  opacity: 1;
}

.sidebar-item.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
}

.sidebar-item.active svg {
  opacity: 1;
}

.sidebar-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ed4245;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 2px rgba(10, 10, 12, 0.85);
  flex-shrink: 0;
}

.sidebar-badge[hidden] {
  display: none !important;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
}

.sidebar-renew {
  color: var(--gray-300);
}

.sidebar-renew:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-logout {
  color: #e05252;
}

.sidebar-logout svg {
  color: #e05252;
}

.sidebar-logout:hover {
  color: #ff7070;
  background-color: rgba(224, 82, 82, 0.08);
}

.dash-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 48px 48px 80px;
}

.dash-main .bg-glow {
  opacity: 0.4;
}

.dash-tab {
  display: none;
  max-width: 860px;
}

.dash-tab.active {
  display: block;
}

.dash-tab-header {
  margin-bottom: 36px;
}

.dash-tab-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background-image: linear-gradient(#fff, #b9b9c2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.dash-tab-sub {
  font-size: 14px;
  color: var(--gray-400);
}

.dash-tab-sub strong {
  color: var(--gray-200);
  font-weight: 600;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #131316, #0d0d10),
    linear-gradient(#2f2f36, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 8px;
}

.download-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.download-version-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
}

.download-version-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.download-note {
  font-size: 13px;
  color: var(--gray-400);
  max-width: 420px;
  line-height: 1.6;
}

.download-btn {
  padding: 11px 24px;
  font-size: 15px;
  flex-shrink: 0;
  gap: 8px;
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #111114, #0d0d10),
    linear-gradient(#222228, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.instruction-step strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.instruction-step p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  font-size: 11px;
  font-family: inherit;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: var(--gray-200);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.settings-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #131316, #0d0d10),
    linear-gradient(#2a2a30, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 8px;
}

.settings-action-card--danger {
  background-image: linear-gradient(180deg, #160f0f, #0d0d10),
    linear-gradient(#3a2020, #16161a);
}

.settings-action-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.settings-action-desc {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.5;
  max-width: 400px;
}

.settings-btn {
  padding: 10px 22px;
  font-size: 14px;
  flex-shrink: 0;
}

.dash-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 34px 0 16px;
}

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

.info-item {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #121216, #0d0d10),
    linear-gradient(#26262c, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.info-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.info-value {
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  word-break: break-all;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.blur-sensitive {
  filter: blur(6px);
  transition: filter 0.2s ease;
  cursor: pointer;
}

.blur-sensitive:hover {
  filter: blur(0);
}

.sub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #121216, #0d0d10),
    linear-gradient(#2f2f36, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  margin-bottom: 12px;
}

.sub-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.sub-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.sub-meta .info-label {
  margin-bottom: 4px;
}

.sub-meta .info-value {
  font-size: 15px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
}

.badge-status.active {
  color: #d6d6db;
  background-image: linear-gradient(90deg, #222222, #888888);
}

.badge-status.expired {
  color: #a8a8b0;
  background-color: #1a1a1d;
  border: 1px solid #2a2a30;
}

.dash-empty {
  padding: 24px;
  border-radius: 14px;
  border: 1px dashed #2a2a30;
  color: var(--gray-400);
  text-align: center;
}

.dash-tab--chat {
  max-width: none;
  width: 100%;
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.dash-tab--chat.active {
  display: flex;
}

.dash-main:has(#tab-chat.active) {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-tab--chat .dash-tab-header {
  margin-bottom: 14px;
  flex-shrink: 0;
}

.chat-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.95), rgba(10, 10, 13, 0.98));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-user-select: text;
  user-select: text;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.chat-empty {
  margin: auto;
  color: var(--gray-500);
  font-size: 14px;
}

.chat-msg {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray-200);
  word-break: break-word;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.chat-msg:hover {
  background: rgba(255, 255, 255, 0.035);
}

@keyframes rankShine {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

.chat-rank {
  display: inline;
  font-weight: 700;
  letter-spacing: 0.3px;
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rankShine 2.4s linear infinite;
}

.chat-rank--owner {
  background-image: linear-gradient(
    90deg,
    #ff2a2a 0%,
    #ff2a2a 35%,
    #ffffff 50%,
    #ff2a2a 65%,
    #ff2a2a 100%
  );
}

.chat-rank--staff {
  background-image: linear-gradient(
    90deg,
    #ff8a1f 0%,
    #ff8a1f 35%,
    #ffffff 50%,
    #ff8a1f 65%,
    #ff8a1f 100%
  );
}

.chat-rank--reseller {
  background-image: linear-gradient(
    90deg,
    #3b82f6 0%,
    #3b82f6 35%,
    #ffffff 50%,
    #3b82f6 65%,
    #3b82f6 100%
  );
}

.chat-rank--media {
  background-image: linear-gradient(
    90deg,
    #ff4db8 0%,
    #ff4db8 35%,
    #ffffff 50%,
    #ff4db8 65%,
    #ff4db8 100%
  );
}

.chat-rank--user {
  background-image: linear-gradient(
    90deg,
    #5b9dff 0%,
    #5b9dff 35%,
    #ffffff 50%,
    #5b9dff 65%,
    #5b9dff 100%
  );
}

.chat-user {
  color: #c8c8d0;
  font-weight: 600;
}

.chat-text {
  color: #e8e8ee;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.6), rgba(8, 8, 11, 0.9));
  flex-shrink: 0;
}

.chat-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.1));
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.chat-cmd-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111214;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  padding: 8px;
}

.chat-cmd-menu[hidden] {
  display: none !important;
}

.chat-cmd-menu-title {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94959c;
}

.chat-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-cmd-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 10px;
  font-family: inherit;
  transition: background 0.12s ease;
}

.chat-cmd-item:hover,
.chat-cmd-item.is-active {
  background: #5865f2;
}

.chat-cmd-item:hover .chat-cmd-desc,
.chat-cmd-item.is-active .chat-cmd-desc {
  color: rgba(255, 255, 255, 0.78);
}

.chat-cmd-slash {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-top: 1px;
}

.chat-cmd-item:hover .chat-cmd-slash,
.chat-cmd-item.is-active .chat-cmd-slash {
  background: rgba(255, 255, 255, 0.18);
}

.chat-cmd-body {
  min-width: 0;
  flex: 1;
}

.chat-cmd-usage {
  color: #f2f3f5;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.chat-cmd-desc {
  margin-top: 2px;
  color: #b5bac1;
  font-size: 12.5px;
  line-height: 1.35;
}

.chat-input-wrap:focus-within {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(255, 255, 255, 0.04);
}

.chat-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  border-radius: 13px;
  border: none;
  background: #0c0c10;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
}

.chat-input::placeholder {
  color: #5a5a66;
}

.chat-send {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #2c2c34, #17171c);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: background 0.18s ease, transform 0.15s ease, opacity 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.chat-send svg {
  width: 20px;
  height: 20px;
}

.chat-send:hover {
  background: linear-gradient(180deg, #3a3a44, #222228);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.chat-send:active {
  transform: scale(0.96);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media screen and (max-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .dash-welcome {
    font-size: 28px;
  }
}

.faq-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid transparent;
  background-image: linear-gradient(180deg, #131316, #0d0d10),
    linear-gradient(#2a2a30, #16161a);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  background-image: linear-gradient(180deg, #161619, #0d0d10),
    linear-gradient(#38383f, #1e1e23);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-300);
}

.footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 40px 36px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 260px;
}

.footer-logo-img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.45;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--gray-200);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
}

@media screen and (max-width: 700px) {
  .footer {
    padding: 48px 24px 32px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== Tickets ===== */
.dash-tab--tickets {
  max-width: 920px;
}

.dash-tab--tickets:has(#ticket-panel-chat.active) {
  max-width: none;
  width: 100%;
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.dash-tab--tickets:has(#ticket-panel-chat.active).active {
  display: flex;
}

.dash-main:has(#tab-tickets.active #ticket-panel-chat.active) {
  padding: 28px 28px 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-tab--tickets:has(#ticket-panel-chat.active) .dash-tab-header {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.ticket-subnav {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.ticket-subnav-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-300);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ticket-subnav-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.ticket-subnav-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.ticket-panel {
  display: none;
}

.ticket-panel.active {
  display: block;
}

.ticket-panel--chat.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 14px;
}

.ticket-create-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.95), rgba(10, 10, 13, 0.98));
  padding: 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.ticket-create-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.ticket-create-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #2c2c34, #17171c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ticket-create-icon svg {
  width: 22px;
  height: 22px;
}

.ticket-create-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ticket-create-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-400);
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ticket-field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ticket-field input,
.ticket-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c10;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  padding: 14px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ticket-field input:focus,
.ticket-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.ticket-field textarea {
  min-height: 130px;
  line-height: 1.55;
}

.ticket-create-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.ticket-submit-btn {
  min-width: 160px;
}

.ticket-form-error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 80, 80, 0.25);
  background: rgba(255, 60, 60, 0.08);
  color: #ffb4b4;
  font-size: 13.5px;
}

.dev-form-success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(50, 190, 100, 0.25);
  background: rgba(50, 190, 100, 0.1);
  color: #9ee6b0;
  font-size: 13.5px;
}

.dev-form-success[hidden],
.ticket-form-error[hidden] {
  display: none !important;
}

/* ===== Announcements ===== */
.ann-compose {
  margin-bottom: 22px;
}

.ann-compose-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.95), rgba(10, 10, 13, 0.98));
  padding: 22px 24px;
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ann-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.92), rgba(11, 11, 14, 0.96));
  padding: 18px 20px;
}

.ann-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ann-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ann-author {
  font-weight: 700;
  color: #e8e8ee;
  font-size: 14px;
}

.ann-time {
  font-size: 12px;
  color: var(--gray-500);
}

.ann-card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-200);
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-user-select: text;
  user-select: text;
}

.ann-delete {
  appearance: none;
  border: 1px solid rgba(255, 80, 80, 0.22);
  background: rgba(255, 60, 60, 0.08);
  color: #ffb4b4;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.ann-delete:hover {
  background: rgba(255, 60, 60, 0.16);
}

.download-update-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 170, 40, 0.22);
  background: linear-gradient(180deg, rgba(40, 28, 10, 0.95), rgba(16, 12, 8, 0.98));
  margin-bottom: 18px;
}

.download-update-banner[hidden] {
  display: none !important;
}

.download-update-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd28a;
  background: rgba(255, 170, 40, 0.12);
  border: 1px solid rgba(255, 170, 40, 0.2);
  flex-shrink: 0;
}

.download-update-icon svg {
  width: 22px;
  height: 22px;
}

.download-update-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffd28a;
  margin-bottom: 4px;
}

.download-update-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--gray-300);
}

.chat-lock-banner {
  flex-shrink: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffd28a;
  background: rgba(255, 170, 40, 0.1);
  border-bottom: 1px solid rgba(255, 170, 40, 0.15);
}

.chat-lock-banner[hidden] {
  display: none !important;
}

.dev-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -webkit-user-select: none;
  user-select: none;
}

.dev-toggle:last-of-type {
  margin-bottom: 8px;
}

.dev-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dev-toggle-ui {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.dev-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8c8d0;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dev-toggle input:checked + .dev-toggle-ui {
  background: rgba(237, 66, 69, 0.35);
  border-color: rgba(237, 66, 69, 0.45);
}

.dev-toggle input:checked + .dev-toggle-ui::after {
  transform: translateX(18px);
  background: #ed4245;
}

.dev-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dev-toggle-text strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.dev-toggle-text small {
  color: var(--gray-400);
  font-size: 12.5px;
  line-height: 1.4;
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 18, 22, 0.92), rgba(11, 11, 14, 0.96));
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.ticket-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.95), rgba(13, 13, 16, 0.98));
  transform: translateY(-1px);
}

.ticket-card-main {
  min-width: 0;
  flex: 1;
}

.ticket-card-subject {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  word-break: break-word;
}

.ticket-card-reason {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-400);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-width: 140px;
}

.ticket-card-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.ticket-card-user-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.ticket-card-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #e8e8ee;
}

.ticket-card-time {
  font-size: 12px;
  color: var(--gray-500);
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ticket-status--open {
  color: #ffd28a;
  background: rgba(255, 170, 40, 0.12);
  border: 1px solid rgba(255, 170, 40, 0.22);
}

.ticket-status--claimed {
  color: #9ee6b0;
  background: rgba(50, 190, 100, 0.12);
  border: 1px solid rgba(50, 190, 100, 0.22);
}

.ticket-status--closed {
  color: #b0b0b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-chat-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ticket-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray-200);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ticket-back-btn svg {
  width: 16px;
  height: 16px;
}

.ticket-back-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.ticket-chat-meta {
  min-width: 0;
  flex: 1;
}

.ticket-chat-subject {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-chat-subline {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.ticket-claim-btn {
  min-width: 140px;
}

.ticket-close-btn {
  border: 1px solid rgba(255, 80, 80, 0.25);
  background: rgba(255, 60, 60, 0.08);
  color: #ffb4b4;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ticket-close-btn:hover {
  background: rgba(255, 60, 60, 0.14);
}

.ticket-chat-panel {
  flex: 1;
  min-height: 420px;
}

.dash-tab--tickets:has(#ticket-panel-chat.active) .ticket-chat-panel {
  min-height: 0;
}

@media screen and (max-width: 720px) {
  .ticket-card {
    flex-direction: column;
    gap: 14px;
  }

  .ticket-card-side {
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ticket-card-user {
    align-items: flex-start;
    margin-right: auto;
  }

  .ticket-chat-top {
    flex-wrap: wrap;
  }

  .ticket-chat-actions {
    width: 100%;
  }

  .ticket-claim-btn {
    flex: 1;
  }
}
