:root {
  --bg: #0a0d14;
  --bg2: #0f1420;
  --card: #121827;
  --muted: #8d97aa;
  --text: #f6f8fb;
  --line: #222c3e;
  --accent: #7c8cff;
  --accent2: #8d67ff;
  --success: #42c98b;
  --warn: #f2b94b;
  --danger: #f36b7a;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left,rgba(124,140,255,.08),transparent 35%),var(--bg);
  color: var(--text);
  font: 15px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,input,select,textarea {
  font: inherit;
}

.container {
  width: min(1180px,calc(100% - 32px));
  margin: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10,13,20,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 19px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9def2;
  background: #111725;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  display: grid;
  place-items: center;
  font-weight: 700;
}

.hero {
  padding: 72px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  color: #aeb7ff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .13em;
}

.hero h1 {
  font-size: clamp(38px,6vw,68px);
  line-height: 1.02;
  margin: 10px 0 16px;
  max-width: 820px;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
}

.hero-panel,.card {
  background: linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.section {
  padding: 44px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

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

.card {
  padding: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-image {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: linear-gradient(135deg,#1a2235,#161c2b);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 19px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #182033;
  border: 1px solid #263149;
  color: #cfd5e5;
  font-size: 12px;
  font-weight: 700;
}

.badge.success {
  color: #9af0c5;
  border-color: rgba(66,201,139,.3);
  background: rgba(66,201,139,.08);
}

.badge.warn {
  color: #ffd781;
  border-color: rgba(242,185,75,.3);
  background: rgba(242,185,75,.08);
}

.badge.danger {
  color: #ffa9b2;
  border-color: rgba(243,107,122,.3);
  background: rgba(243,107,122,.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
}

.btn-ghost {
  color: #dbe0ec;
  background: #121827;
  border: 1px solid var(--line);
}

.btn-danger {
  color: white;
  background: #b84152;
}

.btn-sm {
  padding: 8px 11px;
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.input,.select,.textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #0d1320;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
}

.input:focus,.select:focus,.textarea:focus {
  border-color: #6677ff;
  box-shadow: 0 0 0 3px rgba(124,140,255,.12);
}

.label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.stack {
  display: grid;
  gap: 14px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #0f1420;
}

.table th,.table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #1d2637;
  vertical-align: middle;
}

.table th {
  font-size: 12px;
  color: #9aa5b9;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #111827;
}

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

.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #2c3750;
  border-radius: 14px;
}

.toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 100;
}

.toast {
  min-width: 250px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #151d2c;
  border: 1px solid #2a3650;
  box-shadow: var(--shadow);
}

.toast.success {
  border-color: rgba(66,201,139,.45);
}

.toast.error {
  border-color: rgba(243,107,122,.45);
}

.skeleton {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(90deg,#121827 25%,#182134 37%,#121827 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.login-shell {
  min-height: 72vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(460px,100%);
  padding: 28px;
}

.notice {
  padding: 12px 14px;
  border: 1px solid #2b3650;
  border-radius: 12px;
  background: #101725;
  color: #cdd5e5;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.kpi {
  font-size: 28px;
  font-weight: 850;
  margin-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

@media(max-width:900px) {
  .hero-grid,.grid-4,.grid-3,.split {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media(max-width:640px) {
  .container {
    width: min(100% - 22px,1180px);
  }
  .hero {
    padding-top: 42px;
  }
  .hero-grid,.grid-4,.grid-3,.split,.form-grid {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    height: 62px;
  }
  .balance-pill {
    display: none;
  }
  .hero h1 {
    font-size: 40px;
  }
  .section {
    padding: 32px 0;
  }
}

/* =========================
   HOMEPAGE
========================= */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn-secondary {
  color: #dbe0ec;
  background: #121827;
  border: 1px solid var(--line);
}


/* Hero card */

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.015)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-card-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-card-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hero-card-balance span {
  color: var(--muted);
}

.hero-card-balance strong {
  font-size: 28px;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.hero-card-stats > div {
  padding: 14px;
  background: #0d1320;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-card-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}

.hero-card-stats strong {
  display: block;
}


/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.step-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.015)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  min-height: 170px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #182033;
  border: 1px solid #263149;
  color: #aeb7ff;
  font-size: 12px;
  font-weight: 800;
}

.step-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}


/* Bottom feature cards */

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

.feature-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.03),
    rgba(255,255,255,.015)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}


/* Responsive */

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

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

  .step-card {
    min-height: auto;
  }
}

/* =====================================================
   PRODUCTS PAGE
===================================================== */

.products-page {
  min-height: calc(100vh - 170px);
}


.products-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}


.products-heading h1 {
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.2;
}


.products-count {
  color: var(--muted);
  margin-bottom: 5px;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}


/* PRODUCT CARD */

.market-product-card {
  width: 100%;
  max-width: 410px;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.012)
    );

  border: 1px solid var(--line);
  border-radius: 18px;

  box-shadow:
    0 20px 55px rgba(0,0,0,.22);
}


.market-product-body {
  padding: 20px;
}


.market-product-title {
  margin: 14px 0 8px;

  font-size: 21px;
  font-weight: 800;
}


.market-product-description {
  margin: 0 0 20px;

  color: var(--muted);

  line-height: 1.65;

  min-height: 52px;
}


/* PROXY VISUAL */

.proxy-product-visual {
  position: relative;

  height: 245px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:

    radial-gradient(
      circle at center,
      rgba(124, 92, 255, .20),
      transparent 48%
    ),

    linear-gradient(
      135deg,
      #12182a,
      #101522
    );

  border-bottom: 1px solid rgba(255,255,255,.04);
}


.proxy-product-visual::after {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  border-radius: 50%;

  background:
    rgba(123, 92, 255, .12);

  filter: blur(45px);
}


.proxy-shield {
  position: relative;

  width: 115px;

  z-index: 2;

  color: #886cff;

  filter:
    drop-shadow(
      0 0 18px
      rgba(124, 92, 255, .32)
    );
}


.proxy-speed-lines {
  position: absolute;

  left: calc(50% - 100px);

  display: grid;
  gap: 12px;

  z-index: 1;
}


.proxy-speed-lines span {
  display: block;

  height: 3px;

  border-radius: 99px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #7c6cff
    );
}


.proxy-speed-lines span:nth-child(1) {
  width: 45px;
}


.proxy-speed-lines span:nth-child(2) {
  width: 62px;
}


.proxy-speed-lines span:nth-child(3) {
  width: 37px;
}


/* PRODUCT INFORMATION */

.product-info-list {
  margin-top: 18px;

  border-top:
    1px solid var(--line);

  border-bottom:
    1px solid var(--line);
}


.product-info-row {
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding: 10px 0;
}


.product-info-row +
.product-info-row {
  border-top:
    1px solid rgba(255,255,255,.045);
}


.product-info-label {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--muted);

  flex-shrink: 0;
}


.product-info-label svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.8;

  stroke-linecap: round;
  stroke-linejoin: round;
}


.product-regions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}


.region-badge {
  padding: 5px 8px;

  border-radius: 8px;

  border:
    1px solid #27324a;

  background: #121a2a;

  color: #dbe1ee;

  font-size: 11px;

  white-space: nowrap;
}


/* PRICE */

.market-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding-top: 18px;
}


.market-product-price {
  display: flex;
  flex-direction: column;
}


.market-product-price strong {
  font-size: 22px;
  line-height: 1.25;
}


.market-product-price span {
  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
}


/* ACTIVE NAV */

.nav-active {
  color: #a99cff;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

  .products-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 640px) {

  .products-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }


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


  .market-product-card {
    max-width: none;
  }


  .proxy-product-visual {
    height: 210px;
  }


  .product-info-row {
    align-items: flex-start;
  }


  .product-regions {
    max-width: 190px;
  }

}

/* =====================================================
   PRODUCT DETAIL
===================================================== */

.product-detail-page {
  min-height: calc(100vh - 69px);

  display: flex;
  align-items: flex-start;

  padding: 60px 0 90px;
}


.product-detail-container {
  width: 100%;

  display: flex;
  justify-content: center;
}


.detail-product-card {
  width: min(100%, 620px);

  padding: 32px;

  border-radius: 18px;

  border: 1px solid var(--line);

  background:
    radial-gradient(
      circle at top,
      rgba(124,140,255,.08),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.03),
      rgba(255,255,255,.015)
    );

  box-shadow:
    0 28px 70px rgba(0,0,0,.28);
}


.detail-product-header {
  text-align: center;
}


.detail-product-header h1 {
  margin: 16px 0 10px;

  font-size: 30px;

  line-height: 1.2;
}


.detail-product-header p {
  max-width: 480px;

  margin: 0 auto;

  color: var(--muted);

  line-height: 1.7;
}


.detail-stock {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 18px;
}


.detail-divider {
  height: 1px;

  background: var(--line);

  margin: 28px 0;
}


.detail-form {
  width: 100%;
}


.detail-total {
  margin-top: 16px;

  padding: 15px 16px;

  border-radius: 12px;

  border: 1px solid var(--line);

  background: #101725;

  color: #dfe4ef;
}


.detail-total strong {
  color: #a99cff;
}


.detail-buy-button {
  width: 100%;

  margin-top: 16px;

  min-height: 48px;
}


.detail-buy-button:disabled {
  opacity: .6;

  cursor: not-allowed;

  transform: none;
}


/* World Lock balance */

.balance-pill-wl {
  color: #ffd979;

  background:
    rgba(242,185,75,.07);

  border-color:
    rgba(242,185,75,.22);
}


.nav-active {
  color: #a99cff;
}


/* Responsive */

@media (max-width: 640px) {

  .product-detail-page {
    padding:
      32px 0 60px;
  }


  .detail-product-card {
    padding: 22px;
  }


  .detail-product-header h1 {
    font-size: 25px;
  }

}
/* =========================================
   Product Detail Form Controls
   ========================================= */

.detail-form input,
.detail-form select {
  width: 100%;
  min-height: 44px;

  padding: 0 12px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #101725;
  color: #f4f6fb;

  outline: none;
}

.detail-form input:focus,
.detail-form select:focus {
  border-color: #7c8cff;
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.12);
}

.detail-form select {
  cursor: pointer;
}

.detail-form option {
  background: #101725;
  color: #f4f6fb;
}

.detail-form label {
  display: block;
  margin-bottom: 8px;
  color: #dfe4ef;
  font-size: 14px;
  font-weight: 600;
}

.detail-form .form-grid {
  gap: 16px;
}

/* =========================================
   NEXORA MODAL FIX
   ========================================= */

.nexora-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 20px !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .2s ease,
    visibility .2s ease;
}

.nexora-modal.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nexora-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;

  background: rgba(3, 6, 12, .78) !important;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nexora-modal-card {
  position: relative !important;
  z-index: 2 !important;

  width: min(100%, 400px) !important;

  padding: 28px !important;

  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 18px !important;

  background:
    radial-gradient(
      circle at top,
      rgba(124,140,255,.14),
      transparent 50%
    ),
    #121824 !important;

  box-shadow:
    0 30px 90px rgba(0,0,0,.55) !important;

  text-align: center !important;

  transform: translateY(12px) scale(.97);

  transition: transform .2s ease;
}

.nexora-modal.show .nexora-modal-card {
  transform: translateY(0) scale(1);
}

.nexora-modal-icon {
  width: 54px !important;
  height: 54px !important;

  margin: 0 auto 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;

  background: rgba(124,140,255,.12) !important;
  border: 1px solid rgba(124,140,255,.3) !important;

  color: #a99cff !important;

  font-size: 24px !important;
  font-weight: 800 !important;
}

.nexora-modal-card h3 {
  margin: 0 0 10px !important;

  color: #f4f6fb !important;

  font-size: 21px !important;
}

.nexora-modal-card p {
  margin: 0 !important;

  color: #929cb0 !important;

  line-height: 1.6 !important;
}

.nexora-modal-button {
  width: 100% !important;
  min-height: 44px !important;

  margin-top: 22px !important;
}



/* =========================================================
   NEXORA DASHBOARD UI CLEANUP
   ========================================================= */

.dashboard-shell,
.dashboard-layout {
  min-height: 100vh;
  background: #0d111a;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
  border-right: 1px solid rgba(255, 255, 255, .07);
  background:
    linear-gradient(
      180deg,
      rgba(20, 26, 38, .98),
      rgba(14, 19, 29, .98)
    );
}

.sidebar .brand {
  padding-top: 4px;
}

.side-nav {
  gap: 4px;
}

.side-nav a {
  min-height: 42px;

  display: flex;
  align-items: center;

  padding: 0 12px;

  border-radius: 10px;

  color: #9ca7bc;

  font-size: 14px;

  transition:
    background .16s ease,
    color .16s ease,
    transform .16s ease;
}

.side-nav a:hover {
  color: #f4f6fb;

  background:
    rgba(255, 255, 255, .045);
}

.side-nav a.active {
  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      rgba(124, 140, 255, .14),
      rgba(124, 140, 255, .07)
    );

  border: 1px solid
    rgba(124, 140, 255, .08);
}


/* =========================================================
   DASHBOARD TOPBAR
   ========================================================= */

.dashboard-topbar {
  min-height: 68px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 22px;

  border-bottom: 1px solid
    rgba(255, 255, 255, .07);

  background:
    rgba(13, 17, 26, .86);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-topbar .muted {
  font-size: 14px;
}


/* =========================================================
   DASHBOARD CONTENT
   ========================================================= */

.dashboard-content {
  padding: 28px 22px 50px;
}

.dashboard-content h1 {
  margin: 0;

  font-size: 28px;
  line-height: 1.2;

  letter-spacing: -.02em;
}

.dashboard-content > .muted,
.dashboard-content h1 + .muted {
  margin-top: 10px;
}


/* =========================================================
   FILTER CARD
   ========================================================= */

.dashboard-content .card {
  border: 1px solid
    rgba(255, 255, 255, .075);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .025),
      rgba(255, 255, 255, .012)
    );

  box-shadow:
    0 16px 45px rgba(0, 0, 0, .14);
}

.dashboard-content .card select,
.dashboard-content .card input {
  min-height: 42px;

  border-radius: 10px;

  background: #101725;

  border: 1px solid
    rgba(255, 255, 255, .09);

  color: #f4f6fb;
}

.dashboard-content .card select:focus,
.dashboard-content .card input:focus {
  border-color:
    rgba(124, 140, 255, .65);

  box-shadow:
    0 0 0 3px
    rgba(124, 140, 255, .10);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.dashboard-content .btn-primary {
  min-height: 42px;

  border-radius: 10px;

  font-weight: 700;

  box-shadow:
    0 8px 24px
    rgba(124, 92, 255, .16);
}

.dashboard-content .btn-ghost {
  border-color:
    rgba(255, 255, 255, .09);

  background:
    rgba(255, 255, 255, .025);
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
  margin-top: 14px;

  border: 1px solid
    rgba(255, 255, 255, .075);

  border-radius: 14px;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;

  background:
    rgba(15, 20, 32, .78);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, .12);
}

.table {
  width: 100%;

  min-width: 760px;

  border-collapse: collapse;

  background: transparent;
}

.table th {
  padding: 13px 14px;

  color: #8fa0bd;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: .07em;
  text-transform: uppercase;

  border-bottom: 1px solid
    rgba(255, 255, 255, .07);

  background:
    rgba(124, 140, 255, .025);
}

.table td {
  padding: 15px 14px;

  color: #e9edf5;

  font-size: 14px;

  border-bottom: 1px solid
    rgba(255, 255, 255, .06);
}

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

.table tbody tr {
  transition:
    background .15s ease;
}

.table tbody tr:hover {
  background:
    rgba(255, 255, 255, .018);
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.badge-success,
.status-success {
  display: inline-flex;
  align-items: center;

  min-height: 26px;

  padding: 0 9px;

  border-radius: 999px;

  border: 1px solid
    rgba(70, 211, 157, .25);

  background:
    rgba(70, 211, 157, .09);

  color: #64e4b3;

  font-size: 12px;
  font-weight: 700;
}


/* =========================================================
   ORDER PAGE
   ========================================================= */

.orders-page-header {
  margin-bottom: 18px;
}

.order-filter-card {
  margin-bottom: 16px;
}

.order-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;
}

.order-filter-row select {
  min-width: 190px;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.sidebar .btn-danger,
.sidebar .logout-btn {
  border-color:
    rgba(255, 255, 255, .08);

  background:
    rgba(255, 255, 255, .025);

  color: #f3f5f9;
}

.sidebar .btn-danger:hover,
.sidebar .logout-btn:hover {
  background:
    rgba(255, 255, 255, .05);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

  .dashboard-content {
    padding:
      22px 16px 40px;
  }

  .dashboard-content h1 {
    font-size: 24px;
  }

  .table-wrap {
    width: 100%;
  }

  .table {
    min-width: 720px;
  }

}


@media (max-width: 640px) {

  .dashboard-topbar {
    padding:
      0 14px;
  }

  .dashboard-content {
    padding:
      18px 14px 36px;
  }

  .order-filter-row {
    align-items: stretch;
  }

  .order-filter-row select,
  .order-filter-row .btn {
    width: 100%;
  }

}

/* =========================================================
   PROXY MANAGER FINAL
   ========================================================= */

.proxy-manager-page {
  max-width: 1500px;
}

.proxy-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.proxy-page-heading h1 {
  margin: 6px 0 8px;
}

.proxy-manager-card {
  padding: 18px;
}

.proxy-toolbar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
}

.proxy-toolbar .input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: #101725;
}

.proxy-actionbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.proxy-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.proxy-select-all input,
.proxy-check input {
  width: 17px;
  height: 17px;
  accent-color: #7c6cff;
  cursor: pointer;
}

.proxy-action-buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.proxy-check-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-top: 14px;
  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: rgba(255,255,255,.018);

  font-size: 13px;
}

.proxy-summary-good {
  color: #61e5ae;
}

.proxy-summary-bad {
  color: #ff7d87;
}

.proxy-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.proxy-item {
  padding: 18px;

  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,.012)
    );

  transition:
    border-color .16s ease,
    transform .16s ease;
}

.proxy-item:hover {
  border-color: rgba(124,140,255,.20);
}

.proxy-item-top {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: flex-start;
  gap: 14px;
}

.proxy-check {
  padding-top: 6px;
}

.proxy-main {
  min-width: 0;
}

.proxy-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.proxy-item-label {
  margin-bottom: 7px;

  color: #8f9bb1;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: .08em;
  text-transform: uppercase;
}

.proxy-credential {
  max-width: 100%;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #f2f5fb;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 14px;
  font-weight: 600;
}

.proxy-state {
  display: inline-flex;
  align-items: center;

  min-height: 25px;

  padding: 0 9px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  flex-shrink: 0;
}

.proxy-state.active {
  color: #61e5ae;

  border: 1px solid rgba(70,211,157,.25);
  background: rgba(70,211,157,.08);
}

.proxy-state.expired {
  color: #ff8b94;

  border: 1px solid rgba(255,100,110,.22);
  background: rgba(255,100,110,.07);
}

.proxy-health-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;

  margin-top: 13px;
}

.proxy-health {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 27px;

  padding: 0 9px;

  border-radius: 8px;

  border: 1px solid var(--line);

  background: #101725;

  font-size: 11px;
  font-weight: 700;
}

.proxy-health-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #697386;
}

.proxy-health.online {
  color: #71e8b9;

  border-color: rgba(70,211,157,.19);
  background: rgba(70,211,157,.055);
}

.proxy-health.online .proxy-health-dot {
  background: #4bd59f;
  box-shadow: 0 0 8px rgba(75,213,159,.35);
}

.proxy-health.offline {
  color: #ff8992;

  border-color: rgba(255,100,110,.19);
  background: rgba(255,100,110,.055);
}

.proxy-health.offline .proxy-health-dot {
  background: #ff6973;
  box-shadow: 0 0 8px rgba(255,105,115,.28);
}

.proxy-health.unknown {
  color: #8f9aad;
}

.proxy-info-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap: 10px;

  margin-top: 16px;
  margin-left: 31px;
}

.proxy-info-box {
  padding: 11px 12px;

  border: 1px solid rgba(255,255,255,.055);
  border-radius: 10px;

  background: rgba(10,15,25,.38);
}

.proxy-info-box span {
  display: block;

  margin-bottom: 5px;

  color: #7f8ba0;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .06em;
  text-transform: uppercase;
}

.proxy-info-box strong {
  display: block;

  color: #e9edf6;

  font-size: 12px;
  font-weight: 600;
}


/* Confirm Change IP */

.proxy-confirm-modal {
  position: fixed;
  inset: 0;

  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.proxy-confirm-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.proxy-confirm-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(3,6,12,.78);

  backdrop-filter: blur(8px);
}

.proxy-confirm-card {
  position: relative;
  z-index: 1;

  width: min(100%, 400px);

  padding: 26px;

  text-align: center;

  border: 1px solid var(--line);
  border-radius: 18px;

  background:
    radial-gradient(
      circle at top,
      rgba(124,140,255,.12),
      transparent 48%
    ),
    #121824;

  box-shadow:
    0 30px 90px rgba(0,0,0,.55);
}

.proxy-confirm-icon {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 16px;

  border-radius: 50%;

  color: #a99cff;

  border: 1px solid rgba(124,140,255,.3);
  background: rgba(124,140,255,.1);

  font-size: 22px;
  font-weight: 800;
}

.proxy-confirm-card h3 {
  margin: 0 0 9px;
}

.proxy-confirm-card p {
  margin: 0;

  color: var(--muted);

  line-height: 1.6;
}

.proxy-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  margin-top: 22px;
}


/* Mobile */

@media (max-width: 760px) {

  .proxy-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .proxy-toolbar {
    grid-template-columns: 1fr;
  }

  .proxy-actionbar {
    align-items: stretch;
  }

  .proxy-action-buttons {
    width: 100%;
    margin-left: 0;
  }

  .proxy-action-buttons .btn {
    flex: 1;
  }

  .proxy-item-top {
    grid-template-columns:
      auto minmax(0,1fr);
  }

  .proxy-copy-one {
    grid-column: 2;
    justify-self: flex-start;
  }

  .proxy-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .proxy-credential {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .proxy-info-grid {
    grid-template-columns: 1fr;
    margin-left: 31px;
  }

}

@media (max-width: 480px) {

  .proxy-action-buttons {
    flex-direction: column;
  }

  .proxy-confirm-actions {
    grid-template-columns: 1fr;
  }

}

/* =========================================
   Deposit World Information
   ========================================= */

.deposit-world-info {
  margin-top: 18px;

  border: 1px solid var(--line);
  border-radius: 12px;

  overflow: hidden;

  background:
    rgba(10, 15, 25, .32);
}

.deposit-world-row {
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 12px 14px;
}

.deposit-world-row +
.deposit-world-row {
  border-top:
    1px solid rgba(255,255,255,.055);
}

.deposit-world-row span {
  color: var(--muted);

  font-size: 13px;
}

.deposit-world-row strong {
  color: #f3f5fa;

  text-align: right;

  font-size: 14px;
}

@media (max-width: 520px) {
  .deposit-world-row {
    align-items: flex-start;
    flex-direction: column;

    gap: 5px;
  }

  .deposit-world-row strong {
    text-align: left;
  }
}
