:root {
  --twx-bg: #060b14;
  --twx-bg-2: #0a1222;
  --twx-surface: #0f1a2e;
  --twx-surface-2: #13233d;
  --twx-border: #22395f;
  --twx-text: #e8f1ff;
  --twx-text-soft: #9cb3d9;
  --twx-primary: #3fa9ff;
  --twx-primary-2: #1f7fff;
  --twx-accent: #3bf0bf;
  --twx-danger: #ff6a7a;
  --twx-shadow: 0 20px 42px rgba(2, 8, 22, 0.5);
}

html,
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
  color: var(--twx-text);
  background:
    radial-gradient(1300px 500px at -5% -15%, rgba(41, 109, 255, 0.23), transparent 50%),
    radial-gradient(900px 420px at 105% 0%, rgba(38, 207, 255, 0.16), transparent 48%),
    linear-gradient(180deg, var(--twx-bg) 0%, var(--twx-bg-2) 100%);
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6,
.card-title,
.hh-title,
.hl-title .text {
  font-family: "Fraunces", serif !important;
  letter-spacing: 0.01em;
  color: #f4f8ff;
}

a {
  color: var(--twx-primary);
  text-decoration: none;
}

a:hover {
  color: #8dccff;
}

.dashboard-root {
  background: transparent;
}

.sidebar {
  background: linear-gradient(180deg, #0c1730 0%, #0a1429 100%) !important;
  border-right: 1px solid rgba(140, 181, 235, 0.18);
  backdrop-filter: blur(10px);
}

.sidebar-logo,
.sidebar-balance {
  background: linear-gradient(170deg, rgba(20, 37, 63, 0.9), rgba(16, 28, 46, 0.95));
  border: 1px solid rgba(132, 171, 227, 0.22);
  border-radius: 16px;
}

.sidebar-player {
  display: none !important;
}

.sidebar-menu .s-menu-link {
  border-radius: 12px;
  color: var(--twx-text-soft) !important;
  transition: all 0.2s ease;
}

.sidebar-menu .s-menu-link:hover,
.sidebar-menu .s-menu-item.active .s-menu-link {
  background: linear-gradient(90deg, rgba(63, 169, 255, 0.2), rgba(59, 240, 191, 0.18));
  color: var(--twx-text) !important;
  transform: translateX(2px);
}

.sidebar-menu .s-menu-link .icon {
  filter: saturate(1.1);
}

.top-navbar,
.card,
.component_card .card,
.new_order-block .card,
.ticket-card,
.massorder-form,
.dashboard-head {
  background: linear-gradient(180deg, rgba(17, 30, 52, 0.94), rgba(15, 24, 42, 0.96)) !important;
  border: 1px solid rgba(124, 165, 223, 0.22) !important;
  border-radius: 16px !important;
  box-shadow: var(--twx-shadow) !important;
}

.card:hover,
.component_card .card:hover {
  border-color: rgba(154, 196, 248, 0.36) !important;
}

.btn,
button,
.btn.btn-primary,
.btn-primary {
  border-radius: 12px !important;
  font-weight: 700 !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease;
}

.btn-primary,
button[type="submit"],
.btn-success {
  background: linear-gradient(120deg, var(--twx-primary) 0%, var(--twx-primary-2) 55%, #2de6bf 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(43, 136, 255, 0.3);
}

.btn-primary:hover,
button[type="submit"]:hover,
.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(43, 136, 255, 0.38);
}

.btn-light,
.btn-outline-primary {
  background: rgba(19, 35, 61, 0.8) !important;
  color: #cbe1ff !important;
  border: 1px solid rgba(130, 170, 227, 0.26) !important;
}

input,
select,
textarea,
.form-control,
.form-select {
  background: rgba(10, 19, 35, 0.88) !important;
  border: 1px solid rgba(112, 152, 212, 0.28) !important;
  border-radius: 12px !important;
  color: var(--twx-text) !important;
}

input::placeholder,
textarea::placeholder {
  color: #7e97bf !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(103, 182, 255, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(80, 168, 255, 0.2) !important;
}

.table {
  color: #dce9ff;
}

.table thead th {
  border-bottom: 1px solid rgba(121, 165, 231, 0.25) !important;
  color: #94b4e2 !important;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.table tbody tr {
  background: rgba(14, 27, 49, 0.92);
}

.table tbody td {
  border-top: 1px solid rgba(114, 158, 222, 0.15) !important;
}

.pagination .page-link {
  background: rgba(14, 26, 47, 0.85);
  color: #bdd8ff !important;
  border: 1px solid rgba(113, 155, 215, 0.28) !important;
  border-radius: 10px !important;
}

.pagination .active .page-link {
  background: linear-gradient(120deg, #2e8fff, #29dcb4) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.badge,
.status-badge {
  border-radius: 999px !important;
  font-weight: 700 !important;
}

.alert-success {
  background: rgba(44, 217, 176, 0.12) !important;
  border: 1px solid rgba(64, 224, 188, 0.38) !important;
  color: #b7ffe9 !important;
}

.alert-danger,
.alert-error {
  background: rgba(255, 106, 122, 0.12) !important;
  border: 1px solid rgba(255, 124, 137, 0.35) !important;
  color: #ffd8dd !important;
}

.mobile-navbar {
  background: rgba(10, 19, 36, 0.95) !important;
  border-top: 1px solid rgba(115, 158, 221, 0.25);
  backdrop-filter: blur(10px);
}

.mobile-navbar .mnc-item {
  color: #a8c3ea !important;
}

.mobile-navbar .mnc-item.active,
.mobile-navbar .mnc-item:hover {
  color: #76c8ff !important;
}

.home-platforms,
.home-diff-sec,
.home-rise-section,
.home-section,
.home-last,
.social-icons,
.integration-fixed {
  display: none !important;
}

.home-head {
  padding-top: 24px;
  padding-bottom: 6px;
}

.home-head .hh-bg,
.home-head .hh-img-cover {
  display: none !important;
}

.home-head .hh-text {
  max-width: 640px;
  color: #c4d9fb !important;
}

.home-head .hh-box-title {
  display: inline-flex;
  border: 1px solid rgba(110, 157, 225, 0.35);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 43, 73, 0.6);
}

.home-head .hh-box-title .icon {
  display: none !important;
}

.home-login {
  padding-top: 6px;
  padding-bottom: 34px;
}

.home-login .hl-title .icon {
  display: none !important;
}

.home-login .card {
  border-radius: 18px !important;
}

.home-login .home-input .icon {
  color: #87b8f7 !important;
}

.home-login .hl-btn,
.home-login .lg-btn {
  height: 48px;
}

.footer {
  border-top: 1px solid rgba(102, 148, 211, 0.25);
  background: rgba(10, 19, 36, 0.75);
}

.footer .menu-link,
.footer .footer-cp-text,
.footer .footer-alert,
.footer .footer-l-alert {
  color: #a9c2e8 !important;
}

@media (max-width: 991px) {
  .top-navbar,
  .card,
  .component_card .card {
    border-radius: 14px !important;
  }

  .home-head {
    padding-top: 10px;
  }
}

.twx-auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.twx-auth-logo img {
  max-height: 42px;
  width: auto;
}

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

.twx-auth-links a {
  color: #9bb8e1;
  font-weight: 600;
}

.twx-auth-links a:hover {
  color: #d7e8ff;
}

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

.twx-auth-wrap {
  padding: 36px 0 44px;
}

.twx-auth-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
}

.twx-auth-hero,
.twx-auth-card {
  background: linear-gradient(180deg, rgba(17, 30, 52, 0.94), rgba(15, 24, 42, 0.96));
  border: 1px solid rgba(124, 165, 223, 0.22);
  border-radius: 18px;
  box-shadow: var(--twx-shadow);
  padding: 28px;
}

.twx-auth-hero h1 {
  margin: 10px 0 12px;
  font-size: 42px;
  line-height: 1.1;
}

.twx-auth-hero p {
  color: #bed2f2;
  max-width: 560px;
}

.twx-eyebrow {
  display: inline-block;
  border: 1px solid rgba(110, 157, 225, 0.35);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #cde1ff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.twx-hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.twx-auth-card h2 {
  margin: 0;
}

.twx-auth-card .twx-sub {
  color: #a9c3e8;
  margin: 6px 0 16px;
}

.twx-auth-card .form-group {
  margin-bottom: 12px;
}

.twx-auth-card label {
  color: #bed4f5;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.twx-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 14px;
}

.twx-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5cbea;
  margin: 0;
}

.twx-auth-footer {
  margin-top: 24px;
  padding: 14px 0 22px;
}

.twx-auth-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8fa9cf;
  font-size: 13px;
}

@media (max-width: 991px) {
  .twx-auth-links {
    display: none;
  }

  .twx-auth-grid {
    grid-template-columns: 1fr;
  }

  .twx-auth-hero h1 {
    font-size: 32px;
  }

  .twx-auth-footer-row {
    flex-direction: column;
  }
}
