.admin-page { min-height: 100vh; background: #f5f8fd; }
.admin-header { position: relative; }
.admin-auth-section {
  width: min(1120px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  padding: 70px 0 84px;
  display: grid;
  grid-template-columns: 1.08fr .8fr;
  align-items: center;
  gap: clamp(45px, 8vw, 115px);
}
.admin-auth-intro { max-width: 560px; }
.admin-auth-intro .eyebrow { margin-bottom: 20px; }
.admin-auth-intro h1, .admin-dashboard-heading h1 {
  margin: 0;
  color: #14365f;
  font-family: var(--font-display);
  font-size: clamp(45px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 1.04;
}
.admin-auth-intro h1 span, .admin-dashboard-heading h1 span { color: #1769e0; }
.admin-auth-intro > p:not(.eyebrow) {
  max-width: 410px;
  margin: 19px 0 0;
  color: #687d96;
  font-size: 15px;
  line-height: 1.8;
}
.admin-auth-points { margin-top: 37px; display: grid; gap: 14px; }
.admin-auth-points span { color: #49627e; font-size: 12px; font-weight: 600; }
.admin-auth-points b {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: #1769e0;
  background: #e4efff;
  font-size: 10px;
}
.admin-auth-card, .admin-panel {
  border: 1px solid #e1eaf5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 42px #214a7710;
}
.admin-auth-card { padding: 33px; }
.admin-auth-card > .eyebrow { margin-bottom: 8px; }
.admin-auth-card h2 {
  margin: 0 0 23px;
  color: #14365f;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -1.3px;
}
.admin-auth-tabs { margin-bottom: 22px; border-bottom: 1px solid #e5edf7; display: flex; gap: 18px; }
.admin-registration-notice { margin: -10px 0 16px; color: #78899e; font-size: 10px; line-height: 1.6; }
.admin-registration-notice.is-closed { padding: 10px 12px; border: 1px solid #e0eaf7; border-radius: 7px; color: #5e738c; background: #f5f9ff; }
.admin-auth-tab {
  padding: 0 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8190a3;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.admin-auth-tab.is-active { border-color: #1769e0; color: #174979; }
.admin-field { min-width: 0; margin-bottom: 16px; }
.admin-field label { display: block; color: #536b87; font-size: 11px; font-weight: 700; }
.admin-field input, .admin-field textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  outline: 0;
  color: #203b5a;
  background: #fbfdff;
  font: 400 12px var(--font-body);
}
.admin-field textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
.admin-field input:focus, .admin-field textarea:focus { border-color: #5c9aeb; box-shadow: 0 0 0 3px #1769e018; }
.admin-field input::placeholder, .admin-field textarea::placeholder { color: #9aa8b8; }
.field-help { margin-top: 7px; display: block; color: #8392a5; font-size: 10px; line-height: 1.5; }
.description-preview {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid #dfeaf8;
  border-radius: 8px;
  background: #f5f9ff;
}
.description-preview-label {
  margin-bottom: 10px;
  display: block;
  color: #1769e0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.description-preview-content { color: #60758f; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.description-preview-content p { margin: 0 0 9px; }
.description-preview-content p:last-child { margin-bottom: 0; }
.description-preview-content ul, .description-preview-content ol { margin: 0 0 9px; padding-left: 21px; }
.description-preview-content li { margin: 3px 0; padding-left: 2px; }
.description-preview-content li::marker { color: #1769e0; }
.description-preview-content h1, .description-preview-content h2, .description-preview-content h3 { margin: 16px 0 7px; color: #173d68; line-height: 1.35; }
.description-preview-content h1 { font-size: 16px; }
.description-preview-content h2 { font-size: 14px; }
.description-preview-content h3 { font-size: 12px; }
.description-preview-content table { width: 100%; margin: 10px 0 14px; border-collapse: collapse; font-size: 10px; line-height: 1.55; }
.description-preview-content th, .description-preview-content td { padding: 7px; border: 1px solid #dfe8f3; text-align: left; vertical-align: top; }
.description-preview-content thead th { color: #173d68; background: #eaf2fc; }
.description-preview-content tbody th, .description-preview-content strong { color: #174979; }
.description-preview-content { overflow-x: auto; }
.admin-submit { min-height: 46px; }
.admin-cancel-edit {
  min-height: 40px;
  margin-top: 9px;
  padding: 0 15px;
  border: 1px solid #dce6f2;
  border-radius: 7px;
  color: #536b87;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.admin-cancel-edit:hover { color: #1769e0; background: #f5f9ff; }
.admin-security-note { margin: 12px 0 0; color: #8292a5; font-size: 10px; line-height: 1.7; text-align: center; }
.admin-security-note span { margin-right: 4px; color: #1769e0; }
.admin-auth-card .form-feedback { min-height: 15px; }
.admin-dashboard { width: min(1170px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 92px; }
.admin-dashboard-heading { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.admin-dashboard-heading .eyebrow { margin-bottom: 10px; }
.admin-dashboard-heading h1 { font-size: clamp(34px, 4vw, 49px); letter-spacing: -2.8px; }
.admin-dashboard-heading > div > p:last-child { margin: 11px 0 0; color: #72849a; font-size: 13px; }
.admin-dashboard-badge { padding: 9px 12px; border: 1px solid #dce8f8; border-radius: 30px; color: #315b88; background: #fff; font-size: 9px; font-weight: 700; letter-spacing: .8px; white-space: nowrap; }
.admin-dashboard-badge .live-dot { width: 6px; height: 6px; margin-right: 7px; display: inline-block; vertical-align: 1px; }
.admin-workspace-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: start; gap: 22px; }
.admin-panel { padding: 25px; }
.admin-panel-heading { margin-bottom: 23px; display: flex; align-items: center; gap: 13px; }
.admin-panel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: #1769e0;
  font-size: 21px;
}
.admin-panel-icon-soft { color: #1769e0; background: #e8f1ff; }
.admin-panel-heading .eyebrow { margin: 0 0 4px; font-size: 8px; }
.admin-panel-heading h2 { margin: 0; color: #163d68; font-family: var(--font-display); font-size: 17px; letter-spacing: -.5px; }
.admin-refresh-button { width: 35px; height: 35px; margin-left: auto; border: 1px solid #dce8f6; border-radius: 8px; color: #1769e0; background: #fff; font-size: 19px; }
.admin-refresh-button:hover { background: #f0f6ff; }
.admin-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.admin-fee-note { margin: -4px 0 16px; color: #78899e; font-size: 10px; line-height: 1.6; }
.admin-auction-list { display: grid; gap: 13px; }
.admin-empty-copy { margin: 0; padding: 18px 0; color: #77889e; font-size: 12px; }
.admin-auction-item { padding: 17px; border: 1px solid #e6edf6; border-radius: 10px; background: #fbfdff; }
.admin-auction-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-auction-title { margin: 0; color: #173d68; font-family: var(--font-display); font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.admin-auction-state { padding: 5px 8px; border-radius: 20px; color: #1769e0; background: #e8f1ff; font-size: 8px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.admin-auction-state.is-closed { color: #738196; background: #edf1f6; }
.admin-auction-meta { margin: 6px 0 14px; color: #7a8ba0; font-size: 10px; }
.admin-auction-stats { padding: 12px 0; border-top: 1px solid #e8eef6; border-bottom: 1px solid #e8eef6; display: flex; flex-wrap: wrap; gap: 20px; }
.admin-stat-label { display: block; margin-bottom: 4px; color: #8797aa; font-size: 8px; font-weight: 700; letter-spacing: .65px; text-transform: uppercase; }
.admin-stat-value { color: #175a9f; font-size: 12px; font-weight: 700; }
.admin-auction-actions { margin-top: 12px; display: flex; align-items: center; gap: 15px; }
.admin-text-button { padding: 5px 0; border: 0; color: #1769e0; background: transparent; font-size: 10px; font-weight: 700; }
.admin-text-button:hover { text-decoration: underline; }
.admin-text-button.close-auction { color: #a64e43; }
.admin-text-button:disabled { cursor: wait; opacity: .6; }
.admin-bid-list { margin-top: 11px; padding: 10px 12px; border-radius: 7px; background: #f0f6ff; }
.admin-bid-row { padding: 8px 0; border-bottom: 1px solid #dfeaf8; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; }
.admin-bid-row:last-child { border-bottom: 0; }
.admin-bid-name { color: #536b87; overflow-wrap: anywhere; }
.admin-bid-amount { color: #175a9f; font-weight: 700; white-space: nowrap; }
.admin-footer { min-height: 78px; padding: 16px clamp(22px, 6vw, 94px); border-top: 1px solid #e5edf7; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; }
.admin-footer p { margin: 0; color: #71839a; font-size: 11px; }
.admin-footer p a { color: #1769e0; font-weight: 600; }
.admin-footer p a:hover { text-decoration: underline; }

@media (max-width: 850px) {
  .admin-auth-section { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-top: 55px; }
  .admin-auth-intro { max-width: 650px; }
  .admin-auth-intro h1 { font-size: 53px; }
  .admin-auth-card { width: min(100%, 520px); }
  .admin-workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-header { padding: 0 16px; }
  .admin-header .nav-link { display: inline; margin-right: 0; font-size: 10px; }
  .admin-auth-section, .admin-dashboard { width: calc(100% - 34px); }
  .admin-auth-section { padding-top: 39px; padding-bottom: 50px; }
  .admin-auth-intro h1 { font-size: 43px; letter-spacing: -2.8px; }
  .admin-auth-intro > p:not(.eyebrow) { font-size: 13px; }
  .admin-auth-points { margin-top: 22px; gap: 10px; }
  .admin-auth-card { padding: 23px 19px; }
  .admin-auth-card h2 { font-size: 25px; }
  .admin-auth-tab { font-size: 10px; }
  .admin-dashboard { padding-top: 44px; padding-bottom: 58px; }
  .admin-dashboard-heading { align-items: flex-start; flex-direction: column; }
  .admin-dashboard-heading h1 { font-size: 37px; }
  .admin-panel { padding: 19px 16px; }
  .admin-form-row { grid-template-columns: 1fr; gap: 0; }
  .admin-footer { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .admin-footer p { width: 100%; }
}
