:root {
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Tektur', 'Chakra Petch', sans-serif;
  --accent-blue: #2081ff;
  --accent-blue-light: #3b82f6;
  --border-blue: rgba(32, 129, 255, 0.55);
  --border-outer-grey: #3f3f46;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --bg-dark: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #000000;
  color: #e4e4e7;
  font-family: var(--font-mono);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* Container thu nhỏ và căn giữa chính giữa màn hình PC y chang Ảnh 1 */
.app-container {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
}

/* Screen Views */
.screen-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Top bar: [vuông xanh biển] ZRXC FFH4X ... BETA */
.top-bar {
  height: 48px;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  z-index: 10;
  flex-shrink: 0;
}

.top-bar .left-group {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar .square {
  width: 7px;
  height: 7px;
  background: var(--accent-blue);
  border-radius: 1px;
}

.top-bar .left {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  color: #8a8a93;
}

.top-bar .right {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  color: var(--accent-blue);
}

/* Main login container */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 38px 20px 24px;
  background: #000000;
  width: 100%;
}

/* Logo banner từ URL Discord */
.logo-wrap {
  margin-top: 8px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-banner {
  width: 100%;
  max-width: 210px;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(32, 129, 255, 0.35));
}

/* Form container: căn lề trái */
.key-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

/* LICENSE KEY: in hoa, căn lề trái thẳng hàng với ô input */
.label-key {
  display: block;
  width: 100%;
  text-align: left !important;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-left: 2px;
}

.input-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}

/* Textbox: chữ căn ở giữa, viền ngoài màu xám, viền trong xanh biển, bo tròn vừa phải (4px) */
.key-input {
  width: 100%;
  height: 54px;
  background: #000000;
  border: 1px solid var(--border-blue);
  box-shadow: 0 0 0 2px #000000, 0 0 0 3.5px var(--border-outer-grey);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-align: left;
  text-transform: uppercase;
  padding: 0 16px;
  outline: none;
  transition: all 0.25s ease;
}

.key-input::placeholder {
  color: #4a455a;
  font-weight: 500;
  letter-spacing: 2.5px;
}

.key-input:focus {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 0 2px #000000, 0 0 0 3.5px #52525b, 0 0 18px rgba(32, 129, 255, 0.35);
}

/* Authenticate Button: bo tròn vừa phải (4px), viền 1px xanh biển */
.btn-auth {
  width: 100%;
  height: 52px;
  background: rgba(32, 129, 255, 0.08);
  border: 1px solid rgba(32, 129, 255, 0.45);
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.btn-auth:hover {
  border-color: var(--accent-blue-light);
  box-shadow: 0 0 18px rgba(32, 129, 255, 0.35);
  background: rgba(32, 129, 255, 0.16);
}

.btn-auth:active {
  transform: scale(0.98);
}

/* Footnote: căn lề trái */
.footer-note {
  display: block;
  width: 100%;
  text-align: left !important;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.3px;
  padding-left: 2px;
}

/* Error banner khi key sai hoặc hết hạn */
.error-banner {
  width: 100%;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.5);
  border-radius: 4px;
  color: #fb7185;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-sizing: border-box;
}

/* ========================================================= */
/* DASHBOARD (GIAO DIỆN BÊN TRONG) STYLES                    */
/* ========================================================= */
.dashboard-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 76px;
  gap: 14px;
  overflow-y: auto;
}

.card-box {
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 16px;
  position: relative;
}

.card-box.glow {
  border-color: rgba(32, 129, 255, 0.4);
  box-shadow: 0 0 20px rgba(32, 129, 255, 0.15);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 1.5px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseAnim 1.6s infinite;
}

@keyframes pulseAnim {

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

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.countdown-box {
  text-align: center;
  padding: 12px 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-title {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.countdown-time {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 0 16px rgba(32, 129, 255, 0.5);
}

.key-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border: 1px solid rgba(32, 129, 255, 0.35);
  border-radius: 7px;
  padding: 10px 14px;
  margin-top: 14px;
}

.key-code-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

.btn-chip {
  background: rgba(32, 129, 255, 0.15);
  border: 1px solid rgba(32, 129, 255, 0.45);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.btn-chip:hover {
  background: rgba(32, 129, 255, 0.3);
  border-color: var(--accent-blue-light);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.meta-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.meta-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.meta-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

/* Spec List Style (Ảnh 2) */
.spec-list-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding: 0 4px;
}

.spec-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 1.5px;
}

.spec-line-label {
  color: #e4e4e7;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  padding-right: 18px;
}

.spec-line-leader {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin-right: 18px;
}

.spec-line-val {
  color: #ffffff;
  white-space: nowrap;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-line-val .square-blue {
  width: 7.5px;
  height: 7.5px;
  background: var(--accent-blue);
  border-radius: 1px;
  display: inline-block;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
  margin-bottom: 8px;
}

.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-card.active {
  border-color: var(--accent-blue);
  background: rgba(32, 129, 255, 0.1);
  box-shadow: 0 0 12px rgba(32, 129, 255, 0.2);
}

.server-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-flag {
  font-size: 18px;
}

.server-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.server-ping {
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 1px;
}

/* Features Sub-Category Bar (Image 2 style) */
.features-subtabs-wrap {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.features-subtabs-wrap::-webkit-scrollbar {
  display: none;
}

.features-subtabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 4px;
  min-width: max-content;
}

.feat-subtab-btn {
  background: none;
  border: none;
  padding: 6px 2px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  outline: none;
}

.feat-subtab-btn span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #71717a;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.feat-subtab-btn:hover span {
  color: #d4d4d8;
}

.feat-subtab-btn.active span {
  color: #ffffff;
}

.feat-subtab-btn .subtab-indicator {
  width: 0%;
  height: 2.5px;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(32, 129, 255, 0.6);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.2s ease;
  border-radius: 1px;
}

.feat-subtab-btn.active .subtab-indicator {
  width: 100%;
}

/* Slider & Sub-Controls in Combat Cards */
.feature-row-complex {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-row-slider {
  padding: 13px 0 4px;
}

.sub-ctrl-wrap {
  margin-top: 10px;
}

.sub-ctrl-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #71717a;
  text-transform: uppercase;
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 6px;
}

.bone-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bone-pill,
.opt-pill {
  background: #08080b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #8e8e96;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 7px 10px;
  text-align: center;
  cursor: pointer;
  outline: none;
  box-shadow: none !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.bone-pill:hover,
.opt-pill:hover {
  background: #111116;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.bone-pill.active,
.opt-pill.active {
  background: #2081ff;
  border: 1px solid #2081ff;
  color: #ffffff;
  box-shadow: none !important;
}

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

.opt-wrap-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-wrap-flex .opt-pill {
  flex: 1 1 calc(25% - 8px);
  min-width: 78px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding-top: 6px;
}

.slider-ctrl-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.slider-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #71717a;
  text-transform: uppercase;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

/* Range Slider Styling (Image 2 style) */
.zrxc-range-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: #0a1c38;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 6px 0 2px;
}

.zrxc-range-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  background: #0a1c38;
  border-radius: 3px;
}

.zrxc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #061226;
  border: 2px solid #2081ff;
  cursor: pointer;
  margin-top: -5.5px;
  box-shadow: none !important;
  transition: transform 0.15s;
}

.zrxc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: none !important;
}

.zrxc-range-slider::-moz-range-track {
  width: 100%;
  height: 5px;
  background: #0a1c38;
  border-radius: 3px;
  border: none;
}

.zrxc-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #061226;
  border: 2px solid #2081ff;
  cursor: pointer;
  box-shadow: none !important;
}

/* Feature Switch Row */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
  letter-spacing: 1px;
}

.feature-desc {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #27272a;
  transition: .25s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(32, 129, 255, 0.5);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Danger / Action Buttons in Settings */
.btn-action-full {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-action-full:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

/* Pairing Form & Separator in Settings: Đồng bộ hoàn toàn Textbox và Button như bên Login */
.pairing-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.key-input.is-invalid,
.pairing-code-input.is-invalid {
  border-color: rgba(244, 63, 94, 0.75) !important;
  box-shadow: 0 0 0 2px #000000, 0 0 0 3.5px rgba(244, 63, 94, 0.5), 0 0 16px rgba(244, 63, 94, 0.35) !important;
}

.pairing-submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

/* Horizontal Separator */
.separator-line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 18px 0;
  border: none;
}

.pairing-control {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.btn-action-danger {
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
  background: rgba(244, 63, 94, 0.08);
}

.btn-action-danger:hover {
  border-color: #fb7185;
  background: rgba(244, 63, 94, 0.16);
}

/* Bottom Navigation Dock */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: 60px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  padding: 6px 16px;
  border-radius: 6px;
}

.nav-tab-btn.active {
  color: #ffffff;
}

.nav-tab-btn.active svg {
  stroke: var(--accent-blue);
  filter: drop-shadow(0 0 6px var(--accent-blue));
}

.tab-indicator {
  width: 0px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-tab-btn.active .tab-indicator {
  width: 18px;
}

/* Toast notification */
.toast-msg {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #18181b;
  border: 1px solid var(--accent-blue);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(32, 129, 255, 0.35);
  z-index: 2000;
  display: none;
}


/* Fallback for the original logo that is absent from client.zip. */
.logo-fallback { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:170px; max-height:none; font-family:var(--font-display); font-size:34px; line-height:1.1; letter-spacing:2px; font-weight:900; color:#84baff; text-align:center; text-shadow:0 0 25px #2081ff70; }


/* INTEX names: collapsible sections use the original Sophia/ZRXC rows and switches. */
.intex-expander { margin-top: 12px; }
.intex-expander summary { cursor: pointer; list-style: none; user-select: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.intex-expander summary::-webkit-details-marker { display: none; }
.intex-expander summary::before { content: "›"; font-size: 21px; color: var(--accent-blue); transition: transform .15s ease; }
.intex-expander[open] summary::before { transform: rotate(90deg); }
.intex-expander .intex-count { margin-left: auto; font-size: 9px; letter-spacing: 1px; font-weight: 600; white-space: nowrap; color: #85b9ff; }
.intex-expander .card-box { margin-top: 12px; }
.intex-expander .feature-row:last-child { border-bottom: none; }

/* Six original-style feature tabs, swipeable on narrow displays. */
.features-subtabs { gap: 17px; }
.feat-subtab-btn span { font-size: 12px; letter-spacing: 1.2px; }
.features-subtabs-wrap { -webkit-overflow-scrolling: touch; }

/* Small groups are visible immediately; only large groups collapse. */
.intex-expanded { margin-top: 16px; }
.intex-expanded > .section-title { margin-bottom: 12px; }
.intex-expanded > .card-box { margin-bottom: 6px; }
