:root {
  --navy: #0b1f3a;
  --navy-2: #12345b;
  --blue: #1d5fbf;
  --blue-hover: #174f9f;
  --text: #172033;
  --muted: #687387;
  --line: #dfe3e8;
  --line-dark: #cbd2da;
  --header: #f2f4f7;
  --page: #f5f6f8;
  --white: #fff;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.topbar {
  height: 68px;
  background: var(--navy);
  border-bottom: 4px solid var(--blue);
}

.topbar-inner,
.page-shell {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .01em;
}

.department {
  color: #b9c7d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switcher {
  position: absolute;
  top: 14px;
  right: 16px;
}

.language-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.language-button:hover,
.language-button[aria-expanded="true"] { background: rgba(255,255,255,.13); }

.globe-icon {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.chevron-icon {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.language-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 132px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11,31,58,.18);
}

.language-menu button {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 2px;
  padding: 0 11px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  color: var(--blue);
  background: #eef4fc;
  font-weight: 600;
}

.page-shell { padding: 38px 0 64px; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

h1, h2 { margin: 0; }

h1 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
}

#current-time {
  color: var(--muted);
  font-size: 13px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 104px;
  height: 40px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

.primary-button:hover { background: var(--blue-hover); }

.primary-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button.spin svg { animation: spin .4s linear; }

@keyframes spin { to { transform: rotate(360deg); } }

.data-panel {
  border: 1px solid var(--line-dark);
  background: var(--white);
}

.panel-toolbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-dark);
}

.panel-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

h2 {
  font-size: 17px;
  font-weight: 600;
}

.record-count {
  color: var(--muted);
  font-size: 12px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
}

.search svg {
  position: absolute;
  left: 12px;
  width: 17px;
  fill: none;
  stroke: #6b7688;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search input {
  width: 250px;
  height: 38px;
  border: 1px solid var(--line-dark);
  border-radius: 2px;
  outline: none;
  padding: 0 12px 0 38px;
  color: var(--text);
  background: #fff;
}

.search input::placeholder { color: #8a94a3; }

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(29,95,191,.12);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th {
  height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
  color: #445066;
  background: var(--header);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .055em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #374255;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fafc; }
td:first-child { color: var(--blue); font-size: 12px; font-weight: 600; }
td strong { color: var(--text); font-weight: 600; }
.rate { color: #116a45; font-weight: 700; }

td[data-editable] {
  cursor: cell;
  transition: background-color .12s, box-shadow .12s;
}

td[data-editable]:hover {
  background: #f1f6fd;
  box-shadow: inset 0 0 0 1px #aac4e8;
}

.cell-editor {
  width: 100%;
  min-width: 82px;
  height: 34px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  outline: none;
  padding: 0 8px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(29,95,191,.13);
  font-variant-numeric: tabular-nums;
}

.status {
  display: inline-block;
  border: 1px solid #aeb8c5;
  border-radius: 2px;
  padding: 4px 9px;
  color: #445066;
  background: #f8f9fa;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.task-code {
  color: #616d80;
  font-size: 15px;
  letter-spacing: .12em;
}

.empty-state {
  height: 100px;
  color: var(--muted) !important;
  text-align: center;
}

.order-notice {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  color: #4e5a6d;
  background: #eef3f9;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.brand-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 28px 42px;
  max-width: 980px;
  margin: 30px auto 0;
}

.brand-logo {
  display: block;
  max-width: 145px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-logo-durex { width: 126px; }
.brand-logo-trojan { width: 55px; filter: brightness(0); }
.brand-logo-skyn { width: 126px; }
.brand-logo-lifestyles { width: 130px; }
.brand-logo-one { width: 94px; }
.brand-logo-lelo { width: 126px; filter: brightness(0); opacity: .9; }
.brand-logo-ky { width: 82px; }
.brand-logo-okamoto { width: 132px; }
.brand-logo-tenga { width: 130px; }
.brand-logo-womanizer { width: 145px; }

.wallet-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  justify-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.wallet-logo {
  display: block;
  max-width: 125px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.wallet-logo-cashapp { width: 120px; }
.wallet-logo-paypal { width: 110px; }
.wallet-logo-coinbase,
.wallet-logo-binance,
.wallet-logo-metamask,
.wallet-logo-trust { width: 46px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #6f7a8c;
  font-size: 12px;
}

.site-footer strong {
  color: #566277;
  font-size: 10px;
  letter-spacing: .12em;
}

@media (max-width: 900px) {
  .brand-logos { grid-template-columns: repeat(3, 1fr); }
  .wallet-logos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .topbar-inner, .page-shell { width: calc(100% - 32px); }
  .department { display: none; }
  .page-shell { padding-top: 28px; }
  .page-header { align-items: flex-start; }
  h1 { font-size: 26px; }
  .primary-button { min-width: 44px; padding: 0 12px; font-size: 0; }
  .primary-button svg { width: 18px; }
  .panel-toolbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .search, .search input { width: 100%; }
  table, tbody { display: block; }
  thead { display: none; }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  tbody tr:last-child { border-bottom: 0; }
  td {
    display: block;
    height: auto;
    border: 0;
    padding: 0;
    white-space: normal;
  }
  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: #7b8595;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  td:nth-child(2) { grid-column: 1 / -1; }
  .empty-state { padding: 28px 0; }
  .empty-state::before { display: none; }
  .brand-logos { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .brand-logo { max-width: 92px; height: 38px; }
  .brand-logo-trojan { width: 42px; }
  .wallet-logos { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .wallet-logo { max-width: 105px; height: 38px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
