:root {
  --bg: #0b1220;
  --panel: #111c2d;
  --block: #0f1a2a;
  --block-head: #0d1726;
  --row: #101b2b;
  --line: rgba(148, 163, 184, .24);
  --text: #f8fafc;
  --muted: #aab7c7;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-soft: rgba(14, 165, 233, .16);
  --success: #22c55e;
  --warn: #f59e0b;
  --input: #0b1727;
  --shadow: 0 18px 46px rgba(0, 0, 0, .32);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  padding: clamp(14px, 3vw, 28px);
  overflow-x: hidden;
}

.app {
  width: min(100%, 1180px);
  margin: 0 auto;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 14px;
}

.brand {
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  line-height: 1;
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 70px;
  height: 70px;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}

/* Language */
.lang-switcher {
  position: relative;
  z-index: 50;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-btn #langLabel,
.lang-btn .lang-arrow {
  display: none;
}

.flag-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: middle;
}

.lang-btn .flag-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 3px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #071225;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.lang-menu.open {
  display: grid;
  gap: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  cursor: pointer;
}

.lang-option .flag-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

.lang-option.active {
  color: #fff;
  background: var(--accent);
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section {
  padding: 22px;
}

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

h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.input-block {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--block);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--block-head);
}

.block-title strong {
  font-size: 16px;
  line-height: 1.2;
}

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

.team-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--block-head);
}

.team-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #e5edf7;
  font-size: 14px;
  font-weight: 900;
}

.team-card-head span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(14, 165, 233, .28);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, .14);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

/* Tables and inputs */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

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

th {
  color: #cbd5e1;
  background: var(--row);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.input-block th:first-child,
.input-block td:first-child {
  width: 30px;
}

.row-label {
  width: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.team-card table th,
.team-card table td {
  padding: 8px 5px;
}

input[type="number"],
input[type="text"] {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  color: var(--text);
  background: var(--input);
  font-weight: 900;
  outline: none;
  transition: .16s ease;
}

input[type="number"] {
  width: 56px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

input[type="text"] {
  width: 100%;
  padding: 0 14px;
  font-size: 14px;
  text-align: left;
}

input[type="number"]:focus,
input[type="text"]:focus {
  border-color: rgba(14, 165, 233, .72);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 12px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(14, 165, 233, .24);
  font-weight: 900;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background .16s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active {
  transform: translateY(0);
}

button.secondary {
  color: #cbd5e1;
  background: #252542;
  border: 1px solid rgba(167, 139, 250, .22);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  button:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 12px 28px rgba(14, 165, 233, .28);
  }

  button.secondary:hover {
    background: #2d2b4d;
    box-shadow: none;
  }

  .lang-option:hover {
    background: rgba(14, 165, 233, .18);
    box-shadow: none;
    transform: none;
  }
}

/* Result */
.result-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.result-table {
  table-layout: fixed;
}

.result-table tbody tr {
  background: var(--block);
}

.result-table th,
.result-table td {
  vertical-align: middle;
  text-align: center;
}

.result-table th:nth-child(1),
.result-table td:nth-child(1) {
  width: 26%;
  padding-left: 14px;
  padding-right: 14px;
}

.result-table th:nth-child(2),
.result-table td:nth-child(2) {
  width: 44%;
}

.result-table th:nth-child(3),
.result-table td:nth-child(3) {
  width: 30%;
}

.market,
.percent,
.status {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.market {
  text-align: center;
  letter-spacing: -.01em;
}

.progress-wrap {
  width: min(190px, 100%);
  min-width: 120px;
  margin: 0 auto;
}

.progress {
  width: 100%;
  height: 9px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: none;
  transition: width .28s ease;
}

.status {
  display: inline-flex;
  justify-content: center;
  min-width: 104px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.status.bet {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .14);
}

.status.special {
  color: #fde68a;
  border-color: rgba(245, 158, 11, .28);
  background: rgba(245, 158, 11, .14);
}

.xg-box {
  display: none;
}

/* Footer */
.footer-note {
  margin-top: 22px;
  padding: 16px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.footer-note strong {
  color: var(--text);
}

/* Tablet */
@media (max-width: 1120px) {
  body {
    padding: 18px;
  }

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

  .result-card {
    position: static;
  }
}

/* Mobile */
@media (max-width: 760px) {
  body {
    padding: 8px;
  }

  .app {
    width: 100%;
  }

  .topbar {
    min-height: 52px;
    margin-bottom: 8px;
  }

  .brand-logo img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    max-height: 50px;
  }

  .lang-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }

  .lang-btn .flag-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
    border-radius: 2px;
  }

  .lang-menu {
    width: 210px;
  }

  .lang-option .flag-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
  }

  .layout {
    gap: 10px;
  }

  .panel {
    border-radius: 14px;
  }

  .section {
    padding: 10px;
  }

  .section-head {
    margin-bottom: 10px;
  }

  h2 {
    font-size: 17px;
  }

  .blocks {
    gap: 12px;
  }

  .input-block {
    border-radius: 14px;
    box-shadow: none;
  }

  .block-title {
    padding: 11px 12px;
  }

  .block-title strong {
    font-size: 14px;
  }

  .team-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .team-card {
    border-radius: 12px;
  }

  .team-card-head {
    padding: 8px;
    gap: 6px;
    font-size: 12px;
  }

  .badge {
    padding: 4px 6px;
    font-size: 10px;
  }

  th,
  td {
    padding: 6px 2px;
  }

  th {
    font-size: 10px;
  }

  .team-card table th,
  .team-card table td {
    padding: 5px 2px;
  }

  .input-block th:first-child,
  .input-block td:first-child {
    width: 20px;
  }

  .row-label {
    width: 20px;
    font-size: 9px;
  }

  input[type="number"] {
    width: 32px;
    height: 30px;
    border-radius: 8px;
    font-size: 11px;
  }

  .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
  }

  .actions button {
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.1;
  }

  #calculateBtn {
    order: 1;
  }

  #clearBtn {
    order: 2;
  }

  .result-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 10px;
    border-radius: 14px;
  }

  .result-table {
    width: 100%;
    table-layout: fixed;
  }

  .result-table th,
  .result-table td {
    padding: 8px 3px;
  }

  .result-table th:nth-child(1),
  .result-table td:nth-child(1) {
    width: 24%;
    padding-left: 4px;
    padding-right: 4px;
  }

  .result-table th:nth-child(2),
  .result-table td:nth-child(2) {
    width: 44%;
  }

  .result-table th:nth-child(3),
  .result-table td:nth-child(3) {
    width: 32%;
  }

  .market,
  .percent,
  .status {
    font-size: 11px;
  }

  .progress-wrap {
    width: 100%;
    min-width: 0;
    padding: 0 4px;
  }

  .progress {
    height: 7px;
    margin-top: 4px;
  }

  .status {
    min-width: 76px;
    padding: 5px 6px;
  }

  .footer-note {
    margin-top: 14px;
    padding: 12px 8px;
    font-size: 11px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  body {
    padding: 6px;
  }

  .team-input-grid {
    gap: 6px;
    padding: 6px;
  }

  .team-card-head {
    padding: 7px;
    font-size: 11px;
  }

  .badge {
    padding: 4px 5px;
    font-size: 9px;
  }

  input[type="number"] {
    width: 30px;
    height: 28px;
    font-size: 10px;
  }

  .result-table th {
    font-size: 9px;
  }

  .market,
  .percent,
  .status {
    font-size: 10px;
  }

  .status {
    min-width: 70px;
    padding: 5px;
  }
}

/* Header logo + auth/login */
.topbar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
}

.brand-logo {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  gap: 5px;
  width: auto;
  height: 74px;
  overflow: visible;
  line-height: 1;
  text-decoration: none;
}

.brand-logo .logo-ball {
  display: block;
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
}

.brand-logo .logo-wordmark {
  display: block;
  width: 200px;
  max-width: 200px;
  max-height: 52px;
  object-fit: contain;
  margin-bottom: 2px;
}

.lang-switcher {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  z-index: 999;
}

.auth-header {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  align-self: center;
  min-width: 0;
}

.auth-header[hidden],
.auth-login-screen[hidden] {
  display: none !important;
}

.auth-logout,
.auth-btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.auth-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text, #fff);
  background: rgba(148, 163, 184, .16);
  box-shadow: inset 0 0 0 1px var(--line, rgba(255, 255, 255, .14));
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: min(42vw, 340px);
  color: var(--text, #fff);
}

.auth-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}

.auth-user-name {
  display: block;
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  color: var(--text, #fff);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.auth-required .app {
  min-height: calc(100vh - 56px);
}

body.auth-required .layout,
body.auth-required .footer-note {
  display: none !important;
}

.auth-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 190px);
  padding: 0;
}

.auth-login-panel {
  width: min(35vw, 520px);
  min-width: 380px;
  max-width: calc(100vw - 48px);
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, .14));
  border-radius: 26px;
  background: var(--panel, #111827);
  box-shadow: var(--shadow, 0 20px 70px rgba(0, 0, 0, .28));
  transform: translateY(-24px);
}
.auth-login-panel__inner {
  padding: 24px 24px 26px;
  text-align: center;
}

.auth-title {
  margin: 0 0 16px;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.auth-subtitle {
  display: none;
}

.auth-error,
.auth-warning {
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .38);
  border-radius: 14px;
  color: #fde68a;
  background: rgba(245, 158, 11, .12);
  font-size: 13px;
  line-height: 1.45;
}

.auth-warning {
  margin-bottom: 0;
  text-align: left;
}

.auth-warning code {
  color: #e0f2fe;
  font-size: 12px;
}

.auth-providers {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 238px;
  max-width: 238px;
  height: 42px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--accent, #0ea5e9);
  box-shadow: 0 12px 28px rgba(14, 165, 233, .22);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.auth-btn-google {
  border: 2px solid rgba(255, 255, 255, .95);
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 12px 28px rgba(0, 0, 0, .20);
}

.auth-provider-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 238px;
  max-width: 238px;
  overflow: hidden;
  border-radius: 18px;
}

.auth-provider-telegram iframe,
.auth-provider-telegram > span {
  display: block;
  width: 238px;
  min-width: 238px;
  max-width: 238px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}

@media (max-width: 991.98px) {
  .auth-login-panel {
    width: min(46vw, 420px);
    min-width: 340px;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 60px;
  }

  .brand-logo {
    grid-column: 1;
    gap: 3px;
    height: 54px;
  }

  .brand-logo .logo-ball {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }

  .brand-logo .logo-wordmark {
    width: 138px;
    max-width: 138px;
    max-height: 36px;
    margin-bottom: 1px;
  }

  .lang-switcher {
    grid-column: 2;
  }

  .auth-header {
    grid-column: 3;
  }

  .auth-user-name {
    display: none;
  }

  .auth-logout {
    min-height: 30px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 12px;
  }

  .auth-login-screen {
    width: 100vw;
    min-height: calc(100dvh - 72px);
    margin: 0 calc(50% - 50vw);
    padding: 0;
    align-items: stretch;
  }

  .auth-login-panel {
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: calc(100dvh - 72px);
    border-radius: 0;
    box-shadow: none;
  }

  .auth-login-panel__inner {
    min-height: calc(100dvh - 72px);
    padding: 24px 18px;
  }

  .auth-btn,
  .auth-provider-telegram,
  .auth-provider-telegram iframe,
  .auth-provider-telegram > span {
    width: 238px;
    min-width: 238px;
    max-width: min(238px, calc(100vw - 78px));
  }
}

@media (max-width: 380px) {
  .brand-logo .logo-wordmark {
    width: 118px;
    max-width: 118px;
  }
}

/* === ORACLE LOGIN PAGE REDIRECT START === */

/* Гість бачить головну сторінку */
body.auth-required .layout,
body.guest-preview .layout,
body.guest-preview.auth-required .layout {
  display: grid !important;
}

body.auth-required .footer-note,
body.guest-preview .footer-note,
body.guest-preview.auth-required .footer-note {
  display: block !important;
}

/* На головній не показуємо великий login-блок */
body:not(.auth-page) #authPanel,
body:not(.auth-page) .auth-login-screen {
  display: none !important;
}

/* Login page */
body.auth-page .auth-login-screen {
  display: flex !important;
}

body.auth-page .auth-page-login {
  min-height: calc(100vh - 190px) !important;
}

body.auth-page .auth-login-panel {
  transform: translateY(-24px);
}

/* Кнопка Увійти */
.auth-login-link,
.mobile-menu-login-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  color: var(--text, #fff) !important;
  background: rgba(148, 163, 184, .16) !important;
  box-shadow: inset 0 0 0 1px var(--line, rgba(255, 255, 255, .14)) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.mobile-menu-login-link {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 14px !important;
}

/* Toast */
.auth-required-toast {
  position: fixed !important;
  left: 50% !important;
  bottom: 28px !important;
  z-index: 9000 !important;
  max-width: min(520px, calc(100vw - 28px)) !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(245, 158, 11, .38) !important;
  border-radius: 16px !important;
  color: #fff7ed !important;
  background: rgba(15, 23, 42, .96) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 18px) !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

.auth-required-toast.show {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
}

/* Mobile menu */
.mobile-menu-btn,
.mobile-menu-backdrop,
.mobile-menu-drawer {
  display: none;
}

.brand-logo {
  cursor: default !important;
}

.auth-avatar,
.auth-user img,
.auth-header img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

@media (max-width: 760px) {
  body.mobile-menu-open {
    overflow: hidden !important;
  }

  .topbar {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 60px !important;
    margin-bottom: 8px !important;
  }

  .topbar > .brand-logo {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  .topbar > .lang-switcher,
  .topbar > #authHeader,
  .topbar > .auth-header {
    display: none !important;
  }

  .mobile-menu-btn {
    grid-column: 3 !important;
    justify-self: end !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .26) !important;
    border-radius: 13px !important;
    background: rgba(15, 26, 42, .78) !important;
    box-shadow: none !important;
  }

  .mobile-menu-btn span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--text, #fff) !important;
  }

  .mobile-menu-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 5000 !important;
    display: block !important;
    background: rgba(3, 7, 18, .62) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .18s ease !important;
  }

  .mobile-menu-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .mobile-menu-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 5010 !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(330px, calc(100vw - 42px)) !important;
    height: 100dvh !important;
    padding: 18px !important;
    border-left: 1px solid var(--line, rgba(148, 163, 184, .24)) !important;
    background: #0d1726 !important;
    box-shadow: -18px 0 44px rgba(0, 0, 0, .34) !important;
    transform: translateX(105%) !important;
    transition: transform .22s ease !important;
    overflow-y: auto !important;
  }

  .mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
  }

  .mobile-menu-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
  }

  .mobile-menu-head strong {
    color: var(--text, #fff) !important;
    font-size: 20px !important;
    font-weight: 950 !important;
  }

  .mobile-menu-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .26) !important;
    border-radius: 12px !important;
    color: var(--text, #fff) !important;
    background: rgba(148, 163, 184, .12) !important;
    box-shadow: none !important;
    font-size: 26px !important;
    line-height: 1 !important;
  }

  .mobile-menu-section {
    display: grid !important;
    gap: 10px !important;
    padding: 14px 0 !important;
    border-top: 1px solid rgba(148, 163, 184, .18) !important;
  }

  .mobile-menu-title {
    color: var(--muted, #aab7c7) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
  }

  .mobile-menu-auth {
    display: grid !important;
    gap: 8px !important;
  }

  .mobile-menu-auth .auth-user {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .mobile-menu-auth .auth-user-name {
    display: block !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-menu-auth .auth-avatar,
  .mobile-menu-auth img {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .mobile-menu-auth .auth-logout {
    display: inline-flex !important;
    min-height: 34px !important;
    padding: 8px 11px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .mobile-menu-lang,
  .mobile-lang-dropdown {
    position: relative !important;
    width: 100% !important;
  }

  .mobile-lang-current {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid rgba(14, 165, 233, .42) !important;
    border-radius: 13px !important;
    color: var(--text, #fff) !important;
    background: rgba(14, 165, 233, .18) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 900 !important;
  }

  .mobile-lang-current-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .mobile-lang-current .flag-icon,
  .mobile-lang-option .flag-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border-radius: 4px !important;
  }

  .mobile-lang-list {
    display: none !important;
    margin-top: 8px !important;
    padding: 6px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;
    background: rgba(15, 26, 42, .88) !important;
  }

  .mobile-lang-list.open {
    display: grid !important;
    gap: 5px !important;
  }

  .mobile-lang-option {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 8px 9px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: var(--text, #fff) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-align: left !important;
  }

  .mobile-lang-option.active {
    background: rgba(14, 165, 233, .20) !important;
  }

  .auth-required-toast {
    bottom: 18px !important;
    font-size: 13px !important;
  }

  body.auth-page .auth-login-screen {
    width: 100vw !important;
    min-height: calc(100dvh - 120px) !important;
    margin: 14px calc(50% - 50vw) 0 !important;
    padding: 0 12px 24px !important;
    align-items: flex-start !important;
  }

  body.auth-page .auth-login-panel {
    width: 100% !important;
    max-width: 420px !important;
    min-width: 0 !important;
    min-height: auto !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow, 0 20px 70px rgba(0, 0, 0, .28)) !important;
    transform: none !important;
  }

  body.auth-page .auth-login-panel__inner {
    min-height: auto !important;
    padding: 22px 18px 24px !important;
  }
}

/* === ORACLE LOGIN PAGE REDIRECT END === */

