:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --gold: #c9a227;
  --gold-bright: #d4af37;
  --gold-dim: #8a7020;
  --text: #ffffff;
  --muted: #9a9a9a;
  --border: #2a2a2a;
  --danger: #e74c3c;
  --success: #2ecc71;
  --phone-max: 430px;
  --nav-h: 64px;
  --header-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #050505;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-bright);
}

/* Desktop phone frame */
.app-shell {
  min-height: 100%;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(ellipse at top, #1a1608 0%, transparent 55%),
    #050505;
}

.phone {
  width: 100%;
  max-width: var(--phone-max);
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #222, 0 20px 60px rgba(0, 0, 0, 0.6);
}

.phone-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.phone-header .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.phone-header .brand img,
.phone-header .brand .brand-icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
  display: block;
}

.phone-header .header-link {
  font-size: 0.8rem;
  color: var(--gold);
  white-space: nowrap;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.header-wallet {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--gold);
  cursor: pointer;
}

.user-menu-btn:hover,
.user-menu-btn:focus,
.user-menu-btn.show {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
}

.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--gold);
}

.notification-bell:hover,
.notification-bell:focus {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
}

.notification-bell svg {
  width: 18px;
  height: 18px;
  display: block;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.notification-card.notification-unread {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: inset 3px 0 0 var(--gold);
}

.notification-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.user-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.user-menu-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.user-menu-dropdown {
  min-width: 11rem;
  margin-top: 0.45rem !important;
  padding: 0.35rem 0;
  border: 1px solid var(--border);
  background: var(--bg-elevated) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.user-menu-dropdown .dropdown-header {
  color: var(--gold);
  font-size: 0.8rem;
  padding-bottom: 0.35rem;
}

.user-menu-dropdown .dropdown-item {
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

.user-menu-dropdown .dropdown-item:hover,
.user-menu-dropdown .dropdown-item:focus {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
}

.user-menu-logout {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
}

.user-menu-logout:hover,
.user-menu-logout:focus {
  color: #ff8a7a !important;
}

.phone-body {
  flex: 1;
  padding: 1rem 1rem calc(var(--nav-h) + 1.25rem);
  overflow-x: hidden;
}

.phone-body.no-bottom-nav {
  padding-bottom: 1.5rem;
}

/* Bottom nav (player) */
.bottom-nav {
  position: sticky;
  bottom: 0;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.98);
  margin-top: auto;
  z-index: 20;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--gold);
}

.bottom-nav .nav-ico {
  font-size: 1.1rem;
  line-height: 1;
}

.bottom-nav .nav-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bottom-nav .nav-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.bottom-nav--4 {
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav--5 {
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav--stacked {
  height: auto;
  min-height: var(--nav-h);
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0 0.4rem;
}

.bottom-nav--stacked .bottom-nav-row {
  display: grid;
  width: 100%;
}

.bottom-nav--stacked .bottom-nav-row:first-child {
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 0.4rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.bottom-nav--stacked .bottom-nav-row:last-child {
  grid-template-columns: repeat(4, 1fr);
}

.bottom-nav--admin {
  grid-template-columns: repeat(5, 1fr);
}

.admin-nav-shell {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
}

.admin-nav-shell .bottom-nav {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.bottom-nav--admin .admin-more-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
}

.bottom-nav--admin .admin-more-trigger.active,
.bottom-nav--admin .admin-more-trigger:hover {
  color: var(--gold);
}

.admin-more-backdrop {
  position: fixed;
  top: 0;
  bottom: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--phone-max));
  z-index: 25;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.admin-more-backdrop[hidden] {
  display: none !important;
}

.admin-more-backdrop.is-open {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.admin-more-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 26;
  background: #101010;
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 1rem 1rem 0 0;
  padding: 0.65rem 0.75rem 0.85rem;
  transform: translateY(0.75rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
}

.admin-more-panel[hidden] {
  display: none !important;
}

.admin-more-panel.is-open {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-more-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}

.admin-more-panel-head span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.admin-more-close {
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.admin-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.admin-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.1rem;
  padding: 0.55rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.admin-more-item:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.06);
  color: var(--text);
}

.admin-more-item.active {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-bright);
}

.admin-more-ico {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright);
  font-size: 0.85rem;
  line-height: 1;
}

.admin-more-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.admin-more-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.phone-body.admin-shell {
  padding-bottom: calc(var(--nav-h) + 1.25rem);
}

.phone-body.agent-shell {
  padding-bottom: calc(var(--nav-h) + 1.25rem);
}

.support-chat-root {
  position: fixed;
  bottom: calc(var(--nav-h) + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, var(--phone-max));
  height: 0;
  z-index: 24;
  pointer-events: none;
}

.support-chat-bubble,
.support-chat-panel {
  pointer-events: auto;
}

.support-chat-bubble {
  position: absolute;
  right: 0.85rem;
  bottom: 0;
  width: 3.1rem;
  height: 3.1rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #d4af37, #9a7518);
  color: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-chat-bubble svg {
  width: 1.45rem;
  height: 1.45rem;
}

.support-chat-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #ff6b5a;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(3.1rem + 0.65rem);
  width: min(18.5rem, calc(100vw - 2rem));
  max-height: min(24rem, 52vh);
  background: #101010;
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-chat-panel[hidden] {
  display: none !important;
}

.support-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 0.55rem;
  border-bottom: 1px solid var(--border);
}

.support-chat-head strong {
  display: block;
  font-size: 0.86rem;
}

.support-chat-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.support-chat-close {
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  line-height: 1;
  padding: 0;
}

.support-chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 10rem;
  max-height: 14rem;
}

.support-admin-thread .support-chat-messages {
  min-height: 14rem;
  max-height: 22rem;
}

.support-chat-empty {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.support-msg {
  max-width: 88%;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.support-msg--mine {
  align-self: flex-end;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.support-msg--theirs {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.support-msg-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.62rem;
  color: var(--muted);
}

.support-chat-form {
  display: flex;
  gap: 0.45rem;
  align-items: flex-end;
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
}

.support-chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 2.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.55rem 0.65rem;
}

.support-chat-form textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.45);
}

.support-ticket-unread {
  border-color: rgba(201, 162, 39, 0.35);
}

.activity-cat--support { color: #8fd4ff; border-color: rgba(143, 212, 255, 0.35); }

.cash-proof-wrap .section-label {
  margin-bottom: 0.35rem;
}

.cash-proof-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.cash-proof-thumb {
  display: block;
  width: 100%;
  max-height: 12rem;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.cash-proof-link span {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--gold);
}

/* Legacy role tabs - kept for auth/sitemap if needed */
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 0 0.25rem;
  margin-bottom: 0.75rem;
}

.role-tabs a {
  flex: 0 0 auto;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.role-tabs a.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

/* Typography */
.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
}

.page-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.25rem 0 0.6rem;
}

/* Cards */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.card-dark.pressable {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.history-card-link {
  color: inherit;
  text-decoration: none;
}

.history-card-link:hover,
.history-card-link:focus {
  color: inherit;
}

.card-dark.pressable.history-card-link:hover,
.card-dark.pressable.history-card-link:focus {
  border-color: rgba(201, 162, 39, 0.45);
}

.card-dark.pressable:active {
  transform: scale(0.99);
}

.card-dark a.stretched {
  color: inherit;
  display: block;
}

.card-dark .text-muted {
  color: var(--muted) !important;
}

.banner-placeholder {
  height: 120px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.35), transparent 50%),
    linear-gradient(225deg, #2a2210, #111);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Badges */
.badge-gold {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.badge-live {
  background: rgba(231, 76, 60, 0.15);
  color: #ff6b5e;
  border-color: rgba(231, 76, 60, 0.35);
}

.badge-muted {
  background: rgba(154, 154, 154, 0.12);
  color: var(--muted);
  border-color: var(--border);
}

.badge-ok {
  background: rgba(46, 204, 113, 0.12);
  color: var(--success);
  border-color: rgba(46, 204, 113, 0.3);
}

/* Forms */
.form-label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select,
textarea.form-control {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 10px !important;
  padding: 0.7rem 0.85rem !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2) !important;
}

.form-control::placeholder {
  color: #666 !important;
}

.form-text {
  color: var(--muted) !important;
}

.field-suffix-wrap {
  position: relative;
}

.field-suffix-input {
  padding-right: 2.35rem !important;
}

.field-suffix-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.field-suffix-input[type="number"]::-webkit-outer-spin-button,
.field-suffix-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-suffix {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
  line-height: 1;
}

.input-group .form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group .input-group-text {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-left: none !important;
  color: var(--gold) !important;
  font-weight: 700;
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
  border-color: var(--gold) !important;
}

.input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
  border-radius: 10px;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #111 !important;
  border: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.btn-gold:hover,
.btn-gold:focus {
  background: linear-gradient(180deg, #e0c04a, var(--gold-bright));
  color: #000 !important;
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold) !important;
  border: 1px solid var(--gold);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-bright) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.btn-danger-soft {
  background: rgba(231, 76, 60, 0.15);
  color: #ff8a7a !important;
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}

.btn-danger-soft:hover,
.btn-danger-soft:focus {
  background: rgba(231, 76, 60, 0.25);
  color: #ffb3a8 !important;
}

.action-btn-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.action-btn-row form {
  flex: 1;
  display: flex;
  min-width: 0;
}

.action-btn-row .btn {
  flex: 1;
  width: 100%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cash-handle-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cash-handle-actions--standalone {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cash-handle-actions--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cash-handle-actions.mt-3 {
  margin-top: 1rem;
}

.cash-handle-actions__primary,
.cash-handle-actions__reject,
.cash-handle-actions__details {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.55rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.cash-handle-actions__primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #111 !important;
  border: 1px solid rgba(201, 162, 39, 0.65);
}

.cash-handle-actions__primary:hover,
.cash-handle-actions__primary:focus {
  background: linear-gradient(180deg, #e0c04a, var(--gold-bright));
  color: #000 !important;
}

.cash-handle-actions__reject {
  background: transparent;
  color: #f08080 !important;
  border: 1px solid rgba(231, 76, 60, 0.45);
}

.cash-handle-actions__reject:hover,
.cash-handle-actions__reject:focus {
  background: rgba(231, 76, 60, 0.12);
  color: #ffb0a8 !important;
  border-color: rgba(231, 76, 60, 0.6);
}

.cash-handle-actions__details {
  background: transparent;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  text-decoration: none;
}

.cash-handle-actions__details:hover,
.cash-handle-actions__details:focus {
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--gold) !important;
  background: rgba(201, 162, 39, 0.08);
}

.cash-detail-back {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted) !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.cash-detail-back:hover,
.cash-detail-back:focus {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--gold) !important;
  background: rgba(201, 162, 39, 0.06);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-sm-pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

/* Odds / teams */
.pot-summary {
  text-align: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.08);
}

.pot-summary .pot-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.pot-summary .pot-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.15rem;
}

/* Player game screen (sabong-style) */
.game-screen {
  padding-bottom: 0.5rem;
}

.game-video-wrap {
  margin: -0.25rem -0.15rem 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.game-video {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.game-fight-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.game-fight-number {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.game-fight-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.game-bet-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.game-bet-trend {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.game-trend-chart-wrap {
  position: relative;
  height: 200px;
  padding: 0.5rem 0.25rem 0;
}

.game-trend-empty {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.host-bettor-row {
  padding: 0.65rem 0.75rem;
}

.host-bettor-order {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  margin-right: 0.35rem;
}

.host-bettor-side {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.host-bettor-side-a {
  color: #e74c3c;
}

.host-bettor-side-b {
  color: #3498db;
}

.host-bettor-side-d {
  color: #2ecc71;
}

.display-bets-panel {
  padding: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.display-bets-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 0;
}

.display-bets-toggle input {
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

.display-bets-fields {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.display-bets-side-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.display-bets-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.display-bets-inputs label .k {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.display-bets-inputs .form-control {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
}

.host-bettor-row-display {
  opacity: 0.85;
  border-left: 3px solid rgba(212, 175, 55, 0.45);
}

.host-bettor-row-demo {
  border-left: 3px solid rgba(46, 204, 113, 0.55);
}

.header-wallet-demo {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.balance-hero-demo .amount span {
  font-size: 1rem;
  margin-right: 0.25rem;
}

.host-display-badge {
  font-size: 0.62rem;
  padding: 0.15rem 0.4rem;
  margin-left: auto;
}

.host-player-view-row {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.host-bettor-filter {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.host-bettor-filter-btn {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.host-bettor-filter-btn.is-active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

.points-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.85rem;
  color: var(--muted);
}

.points-bar strong {
  color: var(--gold);
  font-size: 1rem;
}

.quick-bet-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.quick-bet-btn {
  border: 1px solid rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold);
  border-radius: 8px;
  padding: 0.45rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.quick-bet-btn:active {
  background: rgba(201, 162, 39, 0.2);
}

.pot-breakdown {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  font-size: 0.8rem;
}

.pot-breakdown .meta-row {
  color: var(--muted);
}

.bet-quote {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.bet-quote strong {
  color: var(--text);
}

.side-pick-hint {
  color: var(--muted);
  font-weight: 400;
}

#place-bet-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.team-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.team-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  min-height: 100%;
  color: #fff;
}

.team-row.team-side-a {
  background: linear-gradient(180deg, #c0392b, #922b21);
}

.team-row.team-side-b {
  background: linear-gradient(180deg, #2471a3, #1a5276);
}

.team-row.team-side-draw {
  background: linear-gradient(180deg, #1e8449, #145a32);
}

.draw-picker {
  margin-top: 0.5rem;
}

.team-row-draw {
  display: flex;
  flex-direction: column;
  min-height: auto;
  width: 100%;
}

.team-row-draw .team-head {
  padding: 0.45rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.7rem;
  text-align: center;
}

.team-row-draw .team-body {
  padding: 0.65rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-row-draw .team-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.team-row-draw .pot-amount {
  font-size: 1rem;
  font-weight: 700;
}

.team-row-draw .odds-pct,
.team-row-draw .odds-mult {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.2rem;
  opacity: 0.92;
}

.team-row-draw .team-meta {
  display: block;
  font-size: 0.6rem;
  opacity: 0.75;
  margin-top: 0.4rem;
}

.team-row-draw .choose-btn {
  margin-top: 0;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.team-row.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.45);
}

.team-row .team-head {
  padding: 0.45rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.2);
}

.team-row .team-body {
  padding: 0.65rem 0.5rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-row .team-name {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.team-row .pot-amount {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.team-row .odds-pct,
.team-row .odds-mult {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 0.25rem;
}

.team-row .team-meta {
  font-size: 0.6rem;
  opacity: 0.75;
  margin-top: 0.45rem;
}

.team-row .choose-btn {
  margin-top: auto;
  padding: 0.45rem 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.team-row.selected .choose-btn {
  background: rgba(201, 162, 39, 0.35);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
}

.stat-box .n {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-box .l {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.report-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.report-stat-label {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.report-stat-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.report-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.report-mini-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}

.report-mini-stat span {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-mini-stat strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
}

.report-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.report-tab {
  display: block;
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.report-tab.active,
.report-tab:hover {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
}

.hermes-pagination {
  margin-top: 0.75rem;
}

.hermes-pagination .pagination {
  gap: 0.25rem;
}

.hermes-pagination .page-link {
  min-width: 2rem;
  text-align: center;
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  line-height: 1.2;
}

.hermes-pagination .page-link:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--gold-bright);
}

.hermes-pagination .page-item.active .page-link {
  background: rgba(201, 162, 39, 0.18);
  border-color: rgba(201, 162, 39, 0.55);
  color: var(--gold-bright);
}

.hermes-pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--muted);
}

.hermes-pagination-meta {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.activity-card {
  border-left: 3px solid var(--border);
}

.activity-cat--wallet { color: #7ec8ff; border-color: rgba(126, 200, 255, 0.35); }
.activity-cat--betting { color: var(--gold-bright); }
.activity-cat--game { color: #ffb347; }
.activity-cat--user { color: #b19cff; }
.activity-cat--settings { color: #86efac; }
.activity-cat--commission { color: #fbbf24; }
.activity-cat--auth { color: var(--muted); }

.activity-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

.balance-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.2), transparent 60%),
    var(--bg-card);
  margin-bottom: 1rem;
}

.balance-hero .label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-hero .amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
}

.balance-hero .amount span {
  color: var(--gold);
  font-size: 1rem;
}

.invite-box {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--gold-dim);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.list-item--stacked {
  align-items: flex-start;
}

.list-item:last-child {
  border-bottom: none;
}

.empty-state {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  margin: 0;
}

.activity-pending {
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.landing-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.18), transparent 55%),
    var(--bg);
}

.landing-hero img {
  width: min(78%, 280px);
  height: auto;
  margin-bottom: 1.5rem;
}

.landing-actions {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-winners {
  width: 100%;
  max-width: 320px;
  margin-top: 2.25rem;
  min-height: 3.25rem;
}

.landing-winners-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.landing-winner-flash {
  font-size: 0.98rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-height: 1.5rem;
}

.landing-winner-flash.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-winner-flash.is-changing {
  opacity: 0;
  transform: translateY(-6px);
}

.landing-winner-flash strong {
  color: var(--gold);
  font-weight: 700;
}

.toast-mock {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 1rem);
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  z-index: 100;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: calc(var(--phone-max) - 2rem);
  width: max-content;
}

.toast-mock.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1rem 0;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.demo-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-user-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.demo-user-btn:hover,
.demo-user-btn:focus {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.demo-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}

.demo-user-meta {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.otp-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.otp-inputs input {
  width: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.host-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Confirm modal */
body.modal-open .bottom-nav {
  visibility: hidden;
}

.modal-hermes .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}

.modal-hermes .modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.15rem 0.85rem;
}

.modal-hermes .modal-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.modal-hermes .modal-body {
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-hermes .modal-body strong {
  color: var(--text);
}

.modal-hermes .modal-footer {
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.15rem 1rem;
  gap: 0.5rem;
}

.modal-hermes .btn-close {
  filter: invert(1);
  opacity: 0.6;
}

.modal-hermes .confirm-result-label {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.modal-hermes .confirm-result-label.is-danger {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.35);
  color: #ff8a7a;
}

.confirm-code-block {
  text-align: center;
}

.confirm-code-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.confirm-code-display {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--gold);
  padding: 0.65rem 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
}

.confirm-code-input {
  text-align: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.confirm-code-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ff8a7a;
}

.host-declared {
  opacity: 0.55;
  pointer-events: none;
}

.host-declared-banner {
  text-align: center;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.1);
  color: var(--success);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.host-actions .btn.is-current {
  opacity: 1;
  cursor: default;
}

.redeclare-deltas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.redeclare-delta {
  text-align: center;
  padding: 0.5rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.redeclare-delta .l {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.redeclare-delta .n {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.redeclare-delta .delta {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.redeclare-delta .delta-up {
  color: var(--success);
}

.redeclare-delta .delta-down {
  color: #ff8a7a;
}

.redeclare-preview {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.redeclare-preview-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.redeclare-preview-side .k {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.redeclare-preview-side .v {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.redeclare-preview-side.is-target .v {
  color: var(--gold);
}

.redeclare-preview-arrow {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

.redeclare-preview-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.redeclare-preview-outcome {
  text-align: center;
  padding: 0.45rem 0.3rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.redeclare-preview-outcome .l {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.redeclare-preview-outcome .n {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
}

.confirm-password-block .form-control {
  margin-top: 0.35rem;
}

.sitemap-group {
  margin-bottom: 1.5rem;
}

.sitemap-group h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.sitemap-group a {
  display: block;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.45rem;
  color: var(--text);
  background: var(--bg-card);
}

.sitemap-group a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sitemap-group a span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Profile edit */
.profile-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.profile-header-row .page-title {
  margin-bottom: 0;
}

.profile-view .field-row,
.card-dark .field-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.profile-view .field-row:last-child,
.card-dark .field-row:last-child {
  border-bottom: none;
}

.profile-view .field-row .label,
.card-dark .field-row .label {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-view .field-row .value,
.card-dark .field-row .value {
  text-align: right;
  font-size: 0.9rem;
}

.profile-edit {
  display: none;
}

.profile-edit.is-active {
  display: block;
}

.profile-view.is-hidden {
  display: none;
}
