:root {
  --bg: #080808;
  --panel: #171717;
  --panel-soft: #202020;
  --paper: #f7f1e5;
  --ink: #f9f4ea;
  --muted: rgba(249, 244, 234, 0.66);
  --line: rgba(249, 244, 234, 0.14);
  --yellow: #f4c84a;
  --green: #8fe6a8;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 200, 74, 0.18), transparent 34%),
    linear-gradient(180deg, #111 0%, #050505 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.account-actions,
.button-row,
.summary-grid,
.admin-list {
  display: flex;
}

.brand {
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 950;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111;
  border: 2px solid #111;
  border-radius: 10px;
  background: var(--yellow);
}

.site-nav {
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  color: rgba(249, 244, 234, 0.82);
  font-size: 14px;
  font-weight: 900;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.nav-cta,
.primary-button {
  color: #111;
  background: var(--yellow);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 42px auto 72px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-card,
.panel,
.form-card,
.account-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.hero-card {
  min-height: 280px;
  padding: clamp(26px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.panel {
  padding: 24px;
}

.balance-number {
  display: block;
  margin: 18px 0 8px;
  color: var(--yellow);
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 950;
}

.button-row,
.account-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-card,
.account-card,
.admin-card {
  padding: 26px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(249, 244, 234, 0.8);
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

input:focus,
select:focus {
  border-color: rgba(244, 200, 74, 0.7);
}

.message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 900;
}

.message.is-error {
  color: #ff8a7a;
}

.account-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.account-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: rgba(249, 244, 234, 0.52);
  font-size: 13px;
  font-weight: 900;
}

dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item,
.admin-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.history-item strong,
.admin-row strong {
  color: var(--yellow);
}

.hint {
  padding: 14px 16px;
  border: 1px solid rgba(244, 200, 74, 0.24);
  border-radius: 18px;
  color: rgba(249, 244, 234, 0.72);
  background: rgba(244, 200, 74, 0.08);
  line-height: 1.7;
}

.summary-grid {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.summary-grid article {
  flex: 1 1 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.summary-grid span {
  display: block;
  color: rgba(249, 244, 234, 0.55);
  font-size: 13px;
  font-weight: 900;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 28px;
}

.admin-list {
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto 36px;
  color: rgba(249, 244, 234, 0.5);
  font-weight: 800;
}

.owner-console-body {
  color: #191714;
  background:
    radial-gradient(circle at 16% 0%, rgba(244, 200, 74, 0.22), transparent 32%),
    linear-gradient(180deg, #f6efe2 0%, #ece2d2 100%);
}

.owner-console-body main {
  width: auto;
  margin: 0;
}

.owner-console-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
}

.owner-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 24px;
  color: #f7f1e5;
  background: #11100f;
}

.owner-brand,
.owner-sidebar-foot {
  display: flex;
}

.owner-brand {
  gap: 12px;
  align-items: center;
  font-size: 18px;
  font-weight: 950;
}

.owner-id-card {
  padding: 18px;
  border: 1px solid rgba(247, 241, 229, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.owner-id-card span,
.owner-panel-head span,
.owner-panel > span {
  color: #2f6df6;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.owner-id-card strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

.owner-id-card p {
  margin: 0;
  color: rgba(247, 241, 229, 0.68);
}

.owner-nav {
  display: grid;
  gap: 10px;
}

.owner-nav button,
.owner-sidebar-foot button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: rgba(247, 241, 229, 0.78);
  border: 1px solid rgba(247, 241, 229, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  text-align: left;
}

.owner-nav button:hover,
.owner-nav button.is-active {
  color: #11100f;
  border-color: #f4c84a;
  background: #f4c84a;
}

.owner-sidebar-foot {
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  color: rgba(247, 241, 229, 0.7);
  font-weight: 900;
}

.owner-sidebar-foot a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.owner-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px clamp(18px, 4vw, 48px) 56px;
}

.owner-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 22px 70px rgba(37, 26, 12, 0.1);
}

.owner-header h1 {
  margin-bottom: 12px;
  color: #12100e;
  font-size: clamp(42px, 6vw, 76px);
}

.owner-header p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(25, 23, 20, 0.62);
}

.owner-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.owner-alert {
  padding: 14px 18px;
  color: #17431f;
  border: 1px solid rgba(28, 120, 49, 0.18);
  border-radius: 18px;
  background: rgba(143, 230, 168, 0.2);
  font-weight: 900;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.owner-stats article,
.owner-panel {
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 52px rgba(37, 26, 12, 0.08);
}

.owner-stats article {
  padding: 18px;
}

.owner-stats span {
  display: block;
  color: rgba(25, 23, 20, 0.52);
  font-size: 13px;
  font-weight: 950;
}

.owner-stats strong {
  display: block;
  margin-top: 8px;
  color: #12100e;
  font-size: 30px;
}

.owner-content {
  display: grid;
  gap: 18px;
}

.owner-grid {
  display: grid;
  gap: 18px;
}

.owner-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.owner-panel {
  padding: 22px;
}

.owner-panel h3 {
  margin: 10px 0;
  color: #12100e;
  font-size: 32px;
}

.owner-panel p,
.owner-panel small,
.owner-row span {
  color: rgba(25, 23, 20, 0.58);
}

.owner-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.owner-panel-head strong {
  color: #12100e;
  font-size: 20px;
}

.owner-list,
.owner-table {
  display: grid;
  gap: 12px;
}

.owner-row {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(25, 23, 20, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.owner-row strong {
  color: #12100e;
}

.owner-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-row-actions a,
.owner-row-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: #12100e;
  border: 1px solid rgba(25, 23, 20, 0.12);
  border-radius: 999px;
  background: #fffaf0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
}

.owner-row-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .page-hero,
  .form-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .owner-console-shell,
  .owner-grid.two,
  .owner-grid.three,
  .owner-stats {
    grid-template-columns: 1fr;
  }

  .owner-sidebar {
    position: relative;
    height: auto;
  }

  .owner-header {
    display: grid;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  h1 {
    font-size: 46px;
  }
}
