.auth-header{ padding: 150px 0 30px; text-align: center; }
.auth-header h1{ font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 16px; }
.auth-header p{ color: var(--ink-dim); margin: 14px auto 0; max-width: 460px; }

.auth-section{ padding-top: 20px; }

.auth-card{
  max-width: 460px;
  margin: 0 auto;
  background: rgba(10,16,36,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  padding: 34px;
}

.auth-tabs{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.auth-tab{
  background: none;
  border: 0;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab.active{ background: var(--blue); color: var(--white); font-weight: 600; }
.auth-tab:not(.active):hover{ color: var(--white); }

.auth-form{ display: none; }
.auth-form.active{ display: block; }

.field-row{ margin-bottom: 18px; }
.field-row label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.field-row input{
  width: 100%;
  background: var(--void);
  border: 1px solid var(--line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-row input:focus{
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.field-hint{ font-size: 0.76rem; color: var(--ink-dim); margin-top: 6px; }

.captcha-box{ min-height: 70px; margin: 6px 0 20px; display: flex; justify-content: center; }

.auth-submit{ width: 100%; justify-content: center; }
.auth-submit[disabled]{ opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-msg{
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  font-size: 0.86rem;
  border: 1px solid var(--line);
}
.auth-msg.show{ display: block; }
.auth-msg.error{ border-color: rgba(255,93,108,0.5); background: rgba(255,93,108,0.08); color: #ffb3bb; }
.auth-msg.ok{ border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.08); color: #a7f3c4; }

.auth-foot{
  text-align: center;
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}
.auth-foot a{ color: var(--blue-bright); }

.acct-header{ padding: 150px 0 30px; }
.acct-header h1{ font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 16px; }
.acct-header p{ color: var(--ink-dim); margin-top: 12px; }

.acct-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.acct-meta{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-dim); }
.acct-meta b{ color: var(--white); font-weight: 600; }

.acct-notice{
  display: none;
  margin-bottom: 26px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
}
.acct-notice.show{ display: block; }
.acct-notice.ok{ border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.07); color: #a7f3c4; }
.acct-notice.error{ border-color: rgba(255,93,108,0.5); background: rgba(255,93,108,0.08); color: #ffb3bb; }
.acct-notice.info{ border-color: var(--line); background: var(--panel); color: var(--ink); }

.acct-block{ margin-bottom: 64px; }
.acct-block > h2{ font-size: 1.5rem; margin: 12px 0 24px; }

.prod-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card{
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.prod-card:hover{ border-color: var(--blue-dim); transform: translateY(-3px); }
.prod-img{ width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line-soft); background: var(--void); }
.prod-cat{ font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-bright); }
.prod-name{ font-family: var(--font-display); font-size: 1.15rem; color: var(--white); font-weight: 700; }
.prod-desc{ font-size: 0.86rem; color: var(--ink-dim); flex: 1; white-space: pre-line; }
.prod-price{ font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; }
.prod-price s{ font-size: 0.9rem; color: var(--ink-dim); font-weight: 500; margin-left: 8px; }
.prod-select{
  width: 100%;
  background: var(--void);
  color: var(--white);
  border: 1px solid var(--line);
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.prod-buy{ justify-content: center; padding: 12px 18px; }
.prod-buy[disabled]{ opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.badge-owned{
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border: 1px solid rgba(74,222,128,0.4);
  color: #a7f3c4;
}

.orders{ width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line-soft); }
.orders th, .orders td{ text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; }
.orders th{ font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); font-weight: 500; }
.orders td{ color: var(--ink); }
.pill{ font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 9px; border: 1px solid var(--line); }
.pill.paid{ color: #a7f3c4; border-color: rgba(74,222,128,0.4); }
.pill.active{ color: #fde68a; border-color: rgba(250,204,21,0.4); }
.pill.reversed, .pill.expired, .pill.cancelled{ color: #ffb3bb; border-color: rgba(255,93,108,0.4); }
.empty-note{ color: var(--ink-dim); font-size: 0.9rem; padding: 28px; border: 1px dashed var(--line); text-align: center; }
.table-wrap{ overflow-x: auto; }

@media (max-width: 960px){ .prod-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){
  .prod-grid{ grid-template-columns: 1fr; }
  .auth-card{ padding: 24px 20px; }
}

.auth-banner{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.auth-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.55;
}

.auth-banner-fade{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,6,17,0.55) 0%, rgba(4,6,17,0.35) 35%, rgba(4,6,17,0.85) 75%, var(--void) 100%);
}

.acct-bar,
.prod-card,
.orders{
  background: rgba(10,16,36,0.88);
}