/* =========================
   GLOBAL
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

img {
  max-width: 100%;
}

/* =========================
   LOGIN PAGE
========================= */
.login-page {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(180, 20, 20, 0.16), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.04), transparent 20%),
    radial-gradient(circle at bottom right, rgba(120, 0, 0, 0.16), transparent 26%),
    linear-gradient(135deg, #050505 0%, #0a0a0a 45%, #111111 100%);
  color: #ffffff;
}

.login-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 320px;
  height: 320px;
  left: -120px;
  top: 80px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.22), transparent 68%);
}

.orb-2 {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.16), transparent 70%);
}

.login-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
}

.login-left {
  padding: 48px 56px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo-shell,
.login-card-logo-shell,
.top-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.brand-logo-shell {
  width: 108px;
  height: 108px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.34);
}

.login-card-logo-shell {
  width: 94px;
  height: 94px;
  padding: 12px;
  margin: 0 auto 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.top-logo-shell {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 18px;
}

.login-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}

.login-brand-text h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 1px;
  font-weight: 800;
}

.login-brand-text p {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.login-copy {
  max-width: 650px;
  margin-top: 30px;
}

.login-badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.login-copy h2 {
  margin: 22px 0 16px;
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: 0.5px;
  max-width: 700px;
}

.login-copy p {
  margin: 0;
  color: #c4c9d4;
  font-size: 16px;
  line-height: 1.9;
  max-width: 620px;
}

.login-feature-list {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.login-feature-item {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.login-feature-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fecaca;
  border: 1px solid rgba(239,68,68,0.22);
  background: rgba(239,68,68,0.10);
}

.login-feature-content strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.login-feature-content span {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
}

.login-left-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.login-mini-stat {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.login-mini-stat span {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.login-mini-stat strong {
  font-size: 18px;
  color: #ffffff;
}

.login-right {
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 470px;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.97) 0%, rgba(8,8,8,0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 26px 70px rgba(0,0,0,0.40);
  overflow: hidden;
}

.login-card-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.22), transparent 70%);
  pointer-events: none;
}

.login-card-top {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
  z-index: 1;
}

.login-card-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}

.login-card-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #fca5a5;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
}

.login-card-top h3 {
  margin: 0;
  font-size: 31px;
}

.login-card-top p {
  margin: 10px 0 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.7;
}

.login-form .form-group,
.modal-form .form-group {
  margin-bottom: 18px;
}

.login-form label,
.modal-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="number"],
.modal-form input[type="text"],
.modal-form input[type="password"],
.modal-form input[type="email"],
.modal-form input[type="number"] {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d0d0d;
  color: #ffffff;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: 0.2s ease;
}

.login-form input::placeholder,
.modal-form input::placeholder {
  color: #6b7280;
}

.login-form input:focus,
.modal-form input:focus {
  border-color: rgba(239, 68, 68, 0.40);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.show-password-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.show-password-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}

.show-password-row label {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
}

.login-submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #7f1010 0%, #b91c1c 50%, #7f1010 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.25s ease;
  box-shadow: 0 12px 28px rgba(127, 16, 16, 0.25);
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-error-text {
  min-height: 22px;
  margin-top: 12px;
  color: #f87171;
  font-size: 14px;
}

.login-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
  margin: 20px 0 16px;
}

.login-footer-note {
  color: #6b7280;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

/* =========================
   DASHBOARD
========================= */
.dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(152, 10, 10, 0.10), transparent 20%),
    linear-gradient(180deg, #040404 0%, #060606 100%);
  min-height: 100vh;
  color: #ffffff;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 26px;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.top-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.topbar-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar-brand-text strong {
  font-size: 18px;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.topbar-brand-text span {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-nav a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  white-space: nowrap;
}

.topbar-nav a:hover {
  color: #ef4444;
}

.dashboard-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.lang-btn {
  min-width: 58px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(22,22,22,0.96), rgba(10,10,10,0.96));
  color: #ffffff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.lang-btn:hover {
  border-color: rgba(239,68,68,0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.lang-btn.active {
  background: linear-gradient(90deg, #7f1010 0%, #b91c1c 50%, #7f1010 100%);
  border-color: rgba(239,68,68,0.45);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(127, 16, 16, 0.28);
}

.dashboard-container {
  width: 1320px;
  max-width: calc(100% - 40px);
  margin: 34px auto 60px;
}

.hero-overview {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.hero-copy,
.market-box {
  background: linear-gradient(180deg, rgba(15,15,15,0.96) 0%, rgba(8,8,8,0.98) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
}

.welcome-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.24);
  background: rgba(239,68,68,0.08);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.client-name-highlight {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: capitalize;
  text-shadow: 0 0 24px rgba(255,255,255,0.06);
}

.hero-copy h1 {
  font-size: 24px;
  margin: 0 0 12px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.4px;
}

.hero-copy p {
  color: #9ca3af;
  font-size: 15px;
  margin: 0;
  line-height: 1.7;
}

.hero-mini-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.hero-mini-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-mini-label {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.hero-mini-card strong {
  font-size: 20px;
  color: #ffffff;
}

.market-box-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.market-box h2 {
  margin: 0;
  font-size: 22px;
}

.market-box p {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.market-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px rgba(16,185,129,0.8);
}

.ticker-strip {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-strip span {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #d1d5db;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.ticker-strip strong {
  color: #ffffff;
  margin-left: 6px;
}

.market-canvas-wrap {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
    #090909;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px;
}

#marketChart {
  width: 100%;
  height: 240px;
  display: block;
  border-radius: 10px;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 190px);
  gap: 16px;
  justify-content: end;
  margin: 22px 0 28px;
}

.action-btn {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  color: white;
  transition: 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  filter: none;
}

.buy-btn {
  background: linear-gradient(180deg, #1c2a2a 0%, #152020 100%);
  border-left: 4px solid #10b981;
  color: #d1fae5;
}

.sell-btn {
  background: linear-gradient(180deg, #2b1b1f 0%, #211316 100%);
  border-left: 4px solid #ef4444;
  color: #fecaca;
}

.withdraw-btn {
  background: linear-gradient(180deg, #272112 0%, #1b160c 100%);
  border-left: 4px solid #f59e0b;
  color: #fde68a;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 22px 22px;
  border-radius: 16px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  min-height: 130px;
}

.stat-card h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
}

.stat-card small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.stat-blue {
  border-left: 4px solid #3b82f6;
}

.stat-red {
  border-left: 4px solid #ef4444;
}

.stat-green {
  border-left: 4px solid #10b981;
}

.stat-darkred {
  border-left: 4px solid #b91c1c;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.investment-box {
  background: linear-gradient(180deg, #101010 0%, #090909 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px;
  min-height: 220px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.box-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.box-head h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 18px;
  color: #ffffff;
}

.box-head-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.24);
  background: rgba(239,68,68,0.08);
  border-radius: 999px;
  padding: 8px 12px;
}

.investment-subtext {
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
}

.investment-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.investment-table {
  width: 100%;
  border-collapse: collapse;
}

.investment-table thead th {
  text-align: left;
  padding: 14px 12px;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.investment-table tbody td {
  padding: 16px 12px;
  font-size: 14px;
  color: #f3f4f6;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.24);
}

.status-inactive {
  background: rgba(156, 163, 175, 0.12);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.24);
}

.status-banned {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.24);
}

.summary-box {
  background: linear-gradient(180deg, #101010 0%, #090909 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.summary-box h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: #9ca3af;
  font-size: 14px;
}

.summary-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* =========================
   MODALS
========================= */
.welcome-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.welcome-modal.show {
  display: flex;
}

.welcome-modal-card {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #111111 0%, #080808 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 4px solid #b91c1c;
  border-radius: 22px;
  padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  text-align: center;
}

.form-modal-card {
  max-width: 620px;
  text-align: left;
}

.welcome-modal-logo-wrap {
  margin-bottom: 14px;
  text-align: center;
}

.welcome-modal-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.welcome-modal-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
}

.welcome-modal-card p {
  margin: 0;
  color: #c4c9d4;
  font-size: 15px;
  line-height: 1.8;
}

.modal-form {
  margin-top: 22px;
}

.modal-error-text {
  min-height: 18px;
}

.modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.modal-secondary-btn,
.welcome-modal-btn {
  min-width: 160px;
  height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.modal-secondary-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: #161616;
  color: #ffffff;
}

.welcome-modal-btn {
  border: none;
  background: linear-gradient(90deg, #7f1010 0%, #b91c1c 50%, #7f1010 100%);
  color: #fff;
}

.modal-show-password-row {
  margin-bottom: 14px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .hero-overview {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 1080px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .dashboard-lang {
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .topbar {
    gap: 16px;
    padding: 20px;
  }

  .topbar-right {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .topbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .dashboard-lang {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .client-name-highlight {
    font-size: 38px;
  }

  .hero-copy h1 {
    font-size: 20px;
  }

  .login-copy h2 {
    font-size: 36px;
  }

  .login-left,
  .login-right {
    padding: 28px 20px;
  }

  .hero-mini-meta {
    grid-template-columns: 1fr;
  }

  .modal-btn-row {
    flex-direction: column;
  }

  .modal-secondary-btn,
  .welcome-modal-btn {
    width: 100%;
  }

  .login-left-footer {
    grid-template-columns: 1fr;
  }

  .login-feature-item {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .login-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo-shell {
    width: 92px;
    height: 92px;
  }

  .login-logo {
    width: 76px;
    height: 76px;
  }

  .login-copy h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .login-brand-text h1 {
    font-size: 24px;
  }

  .login-card {
    padding: 28px 20px;
  }

  .topbar-brand-text strong {
    font-size: 16px;
  }

  .topbar-brand-text span {
    font-size: 11px;
  }

  .lang-btn {
    min-width: 54px;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }
}