* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, "Malgun Gothic", sans-serif;
  background: #14161c;
  color: #e8e8ec;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
h2, h3 { letter-spacing: -0.02em; }
a { color: #7db4ff; text-decoration: none; }
a:hover { color: #9cc4ff; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #1c1f28;
  border-bottom: 1px solid #2a2e3a;
}
.topbar .logo { display: flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.site-logo-mark { width: 24px; height: 24px; flex-shrink: 0; }
.alpha-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #e8c14c;
  margin-left: 3px;
  vertical-align: super;
}
.topbar nav a { margin-left: 18px; font-size: 14px; font-weight: 600; color: #b8bcc9; }
.topbar nav a:hover { color: #fff; }

.announcements { padding: 12px 20px 0; }
.announcement {
  background: #23283a;
  border: 1px solid #3a4160;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.announcement .badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: #4a63ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  margin-right: 6px;
  line-height: 1;
}
.announcement strong { vertical-align: middle; font-size: 14px; }
.announcement p { margin: 6px 0 4px; white-space: pre-wrap; }
.announcement time { font-size: 12px; color: #8a8fa3; }

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.seg { display: flex; height: 44px; border: 1px solid #3a3f52; border-radius: 6px; overflow: hidden; }
.seg button {
  display: flex;
  align-items: center;
  background: #1c1f28;
  color: #ccc;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover:not(.active) { background: #262b38; color: #fff; }
.seg button.active { background: #7c3aed; color: #fff; }
.seg button[data-val="sell"].active { background: #4a63ff; }
.seg button[data-val="buy"].active { background: #c0392b; }
select, input[type="text"], input[type="url"], input[type="password"] {
  height: 44px;
  padding: 0 12px;
}
select, input[type="text"], input[type="url"], input[type="password"], textarea {
  background: #1c1f28;
  border: 1px solid #3a3f52;
  color: #e8e8ec;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { padding: 10px 12px; }
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: #4a63ff;
}
#searchInput { flex: 1; min-width: 160px; }

.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 0 20px 30px;
}
.card {
  display: flex;
  gap: 12px;
  background: #1c1f28;
  border: 1px solid #2a2e3a;
  border-radius: 10px;
  padding: 14px;
}
.card-icon-large {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: pixelated;
  background: #14161c;
  border: 1px solid #2a2e3a;
  border-radius: 8px;
  padding: 6px;
}
.card-body { flex: 1; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; color: #fff; }
.tag.sell { background: #4a63ff; }
.tag.buy { background: #c0392b; }
.category { font-size: 12px; font-weight: 600; color: #8a8fa3; }
.ago { margin-left: auto; font-size: 12px; color: #8a8fa3; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.socket-rune-note { margin: -5px 0 8px; font-size: 12px; color: #8a8fa3; }
.card .thumb { width: 100%; border-radius: 6px; margin-bottom: 8px; max-height: 180px; object-fit: cover; }
.base-req-line { margin: 0 0 3px; font-size: 12px; color: #8a8fa3; }
.base-stat-line { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #cfd3dc; }
.stat-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #14161c;
  border-radius: 6px;
  border: 1px solid #262b38;
}
.unique-skill-line {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #241a2e;
  border: 1px solid #3d2a4d;
  border-radius: 6px;
  font-size: 13px;
  font-style: italic;
  color: #c9a06a;
  line-height: 1.5;
}
.stat-list li {
  font-size: 13px;
  font-weight: 600;
  color: #e0b23c;
  line-height: 1.6;
  white-space: pre-wrap;
}
.card .price { font-weight: 600; margin: 0 0 4px; }
.card .contact { font-size: 13px; color: #8a8fa3; margin: 0; }
.empty { padding: 40px; text-align: center; color: #8a8fa3; }

.form-page { max-width: 640px; margin: 0 auto; padding: 28px 20px; }
.form-page h2 { margin-top: 0; font-size: 22px; font-weight: 800; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 13px; font-weight: 600; color: #b8bcc9; }
.form-row select, .form-row input, .form-row textarea { width: 100%; }
.icon-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
}
.icon-results:not(:empty) {
  border: 1px solid #3a3f52;
  border-radius: 6px;
  padding: 4px;
  margin-top: 4px;
}
.icon-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.icon-result-row:hover { background: #262b38; }
/* 방향키로 훑을 때 하이라이트 - 마우스 hover랑 겹쳐도 상관없게 하나로 통일 */
.icon-result-row.result-active,
.option-type-result-row.result-active { background: #2a3350; outline: 1px solid #4a63ff; outline-offset: -1px; }
.icon-result-row img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
/* 부위가 많은 룬워드(예: 거의 모든 무기류에 붙는 종류, 14개까지도 있음)는 이 텍스트가
   길어져서 줄바꿈되면 세로로 쌓인 것처럼 보임 - 한 줄로 고정하고 넘치면 말줄임표 */
.icon-result-row span:first-child { flex-shrink: 0; white-space: nowrap; }
.icon-result-category {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #8a8fa3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-result-confirmed { margin-left: auto; font-size: 12px; color: #4ade80; font-weight: 700; }
.icon-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px;
  background: #1c1f28;
  border: 1px solid #3a3f52;
  border-radius: 6px;
}
.icon-selected img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.icon-selected span { flex: 1; font-size: 14px; }
.icon-selected button {
  background: none;
  border: none;
  color: #8a8fa3;
  font-size: 13px;
  cursor: pointer;
}
.icon-selected button:hover { color: #fff; }

.preview-card {
  background: linear-gradient(180deg, #23283a 0%, #1c1f28 100%);
  border: 1px solid #3a4160;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
}
.preview-card .toggle-group { margin-bottom: 14px; }
.buy-unsupported-note {
  margin: -8px 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  text-align: center;
}

/* 제목바: 전체 폭, 중앙 정렬 (참고이미지 초록영역) */
.preview-title-bar {
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #3a4160;
}
.title-bar-row { display: flex; align-items: flex-start; gap: 16px; }
.title-slots { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; }
/* 등급+홈: 칩 형태로 묶어서 아이템명 줄과 시각적으로 분리 */
.title-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #1c1f28;
  border: 1px solid #3a4160;
  border-radius: 8px;
  padding: 6px 12px;
}
#socketRuneNoteInput {
  flex: 1 1 140px;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  background: #14161c;
  border: 1px solid #3a4160;
  border-radius: 6px;
  /* 인게임 룬 텍스트 색(977374~fefcfb 사이, fefcfb에 가깝게) */
  color: #efe7e7;
}
/* opacity로 죽이면 위 룬색이 어두운 배경과 섞여 회색으로 죽어버려서, 잠금 표시는
   커서 모양만으로(색은 그대로 유지) */
#socketRuneNoteInput:read-only { cursor: not-allowed; }
.title-name-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; }
/* 등급 선택: 네이티브 select는 (a) 열린 목록의 옵션별 색상이 OS/브라우저마다 씹히고
   (b) 화살표가 select의 color를 따라가서 등급색으로 물듦 - 다른 검색창들과 같은
   패턴(커스텀 트리거+드롭다운)으로 교체. 실제 select#gradeSelect는 값 저장용으로 숨겨두고
   이 버튼이 보이는 트리거 역할. */
.grade-select-wrap { position: relative; }
.title-grade-select {
  height: 30px;
  min-width: 84px;
  padding: 0 22px 0 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  background: #14161c;
  border: 1px solid #3a4160;
  border-radius: 6px;
  color: #cfd3dc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%238a8fa3' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 10px 10px;
}
#gradeSelectResults { min-width: 100%; }
.grade-select-results .option-type-result-row { font-weight: 700; }
/* 이름줄 칸(접두사/접미사/룬워드명/베이스아이템검색) 공통 박스 스타일 - 실제 높이/패딩은
   전역 input[type="text"]{height:44px;padding:0 12px} 규칙이 이김(specificity: 속성선택자가
   클래스선택자보다 셈) - 여기서 다시 선언해봐야 안 먹으니 지정 안 함, width만 관리 */
.title-slot-input {
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  background: #14161c;
  border: 1px solid #3a4160;
  border-radius: 6px;
  color: #e8e8ec;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 이름줄 칸들을 위 등급/홈 행과 폭이 같아지도록 균등폭(flex:1)으로 배열.
   input을 직접 flex:1 시키면 span 형제칸보다 더 넓게 먹는 브라우저 버릇이 있어서
   (flex-basis:0/min-width:0 다 같아도) 전부 .name-cell span으로 균일하게 감싸고
   이 span에만 flex를 줌 - input은 그 안에서 width:100%로 채우기만 함.
   실측: 가장 긴 룬워드명/아이템명도 2칸 구조(품질류+베이스명)에서는 넉넉히 들어가고,
   3칸 구조(접두사+접미사+베이스명)에서 극단적으로 긴 이름만 말줄임표로 처리됨. */
.title-name-row .name-cell { flex: 1 1 0; min-width: 0; position: relative; }
/* 매직/레어(접두사+접미사+베이스아이템 3칸)에서 베이스아이템칸에 더 비중 - 접두사/접미사는
   짧은 단어라 1/3씩 먹을 필요가 없어서 상대적으로 좁아 보이던 것 보정 */
.title-name-row .name-cell.name-cell-wide { flex: 2 1 0; }
.socket-stepper-wrap { display: flex; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid #3a4160; }
.socket-label { font-size: 12px; font-weight: 700; color: #8a8fa3; }
.clear-base-btn {
  background: none;
  border: none;
  color: #8a8fa3;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.clear-base-btn:hover { color: #c0392b; }

/* 룬워드명 검색칸 / 베이스아이템 검색칸(모든 등급 공통) - 박스 자체가 검색+확정표시 겸용 */
#runewordResults,
#baseSearchResults,
#barterSearchResults { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 240px; max-width: 320px; }
#runewordResults:not(:empty),
#baseSearchResults:not(:empty),
#barterSearchResults:not(:empty) { margin-top: 0; }
.title-manual-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 700;
  background: #14161c;
  border: 1px solid #3a4160;
  border-radius: 6px;
  color: #e8e8ec;
  text-align: center;
}

/* 본문: 아이콘(노랑) | 기본정보(빨강) | 추가옵션(파랑) 3단 (참고이미지 그대로) */
.preview-body { display: flex; gap: 16px; align-items: flex-start; }
.preview-icon-box,
.preview-icon-placeholder {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14161c;
  border: 1px solid #3a4160;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}
.preview-icon-placeholder { cursor: pointer; transition: border-color 0.15s; }
.preview-icon-placeholder:hover { border-color: #4a63ff; }
/* 살짝 안쪽으로 오프셋된 이중테두리 - 아이콘 박스 장식 프레임 */
.preview-icon-box::after,
.preview-icon-placeholder::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #2a2e3a;
  border-radius: 5px;
  pointer-events: none;
}
.preview-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.preview-icon-silhouette {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: brightness(0) invert(1);
  opacity: 0.32;
}
.preview-icon-question {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  font-weight: 800;
  color: #e8e8ec;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.65);
}
.preview-stats-block {
  flex: 0 0 180px;
  min-width: 0;
}
.preview-req { font-size: 12px; color: #b8bcc9; margin-bottom: 8px; line-height: 1.6; }
.preview-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
.preview-stepper-row span { font-size: 13px; font-weight: 600; color: #e0b23c; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #3a4160;
  background: #14161c;
  color: #e8e8ec;
  font-size: 16px;
  cursor: pointer;
}
.stepper-btn:hover { border-color: #4a63ff; color: #fff; }
.stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper-btn:disabled:hover { border-color: #3a4160; color: #e8e8ec; }
.stepper-value { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.preview-options-block {
  flex: 1 1 160px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid #2f3550;
}
.preview-options-label { font-size: 12px; font-weight: 700; color: #8a8fa3; margin-bottom: 8px; }
.preview-options-block .option-row { margin-bottom: 6px; min-width: 0; }
.preview-options-block .option-value { min-width: 0; flex: 0 0 100px; }
.preview-options-block .option-type,
.preview-options-block .option-value { height: 36px; font-size: 12px; padding: 0 6px; }
.preview-options-block .remove-option-btn { height: 36px; width: 30px; flex-shrink: 0; }
.preview-options-block .secondary-btn { height: 36px; margin-top: 4px; }

/* 룬워드옵션: 전체폭, 옵션 개수가 4~7개까지 다양해서 좁은 컬럼 대신 아래에 별도 배치 */
.preview-runeword-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2f3550;
}
.preview-runeword-block .option-row { align-items: center; justify-content: space-between; margin-bottom: 6px; }
.preview-runeword-block .bonus-stat-label { flex: 1; }
.preview-runeword-block .option-value { flex: 0 0 160px; height: 36px; font-size: 12px; }

/* 유니크+무기: 스킬효과 한 줄 (항상 정확히 1개씩 붙음, 실측 확인) */
.preview-unique-skill-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #2f3550;
}
.unique-skill-wrap { position: relative; display: block; }
.preview-unique-skill-block input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  background: #1c1f28;
  border: 1px solid #3a3f52;
  border-radius: 6px;
  color: #e8e8ec;
}
.preview-unique-skill-block input:focus { outline: none; border-color: #4a63ff; }
.unique-skill-wrap .option-type-results { min-width: 100%; }
.unique-skill-wrap .option-type-result-row { white-space: normal; line-height: 1.4; }

/* 좁은 화면: 아이콘은 제목 위로, 표시옵/엔타리아옵션은 세로 스택 */
@media (max-width: 660px) {
  .title-bar-row { flex-direction: column; align-items: center; }
  .preview-body { flex-direction: column; }
  .preview-stats-block,
  .preview-options-block {
    flex: 1 1 auto;
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #2f3550;
    padding-top: 12px;
  }
}
.preview-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #2f3550;
}
.preview-price-label { font-size: 13px; font-weight: 700; color: #8a8fa3; flex-shrink: 0; }
.preview-price-row select,
.preview-price-row input[type="text"] { height: 36px; font-size: 13px; }
#currency_type { font-weight: 700; min-width: 100px; }
#currency_other { width: 140px; }
.barter-search-wrap { position: relative; }
#barterSearchInput { width: 160px; }
.barter-picked { display: flex; align-items: center; gap: 6px; }
.barter-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.barter-name { font-size: 13px; font-weight: 700; color: #e8e8ec; }
.barter-qty-x { font-size: 12px; color: #8a8fa3; }
#price_note { flex: 1 1 160px; min-width: 0; }

.form-section-label { margin: 24px 0 0; font-size: 14px; font-weight: 800; color: #e8e8ec; }

.price-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: -5px;
  margin-right: 3px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.option-type-wrap { position: relative; }
.option-type-wrap .option-type { width: 100%; }
.option-row .option-type-wrap { flex: 0 0 150px; }
.option-row .option-value { flex: 1; }
.preview-options-block .option-type-wrap { flex: 0 0 190px; min-width: 0; }
.option-type-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 170px;
  max-height: 220px;
  overflow-y: auto;
  background: #1c1f28;
  border: 1px solid #3a3f52;
  border-radius: 6px;
  z-index: 20;
}
.option-type-results:empty { display: none; border: none; }
.option-type-result-row {
  padding: 7px 10px;
  font-size: 13px;
  color: #e8e8ec;
  cursor: pointer;
  white-space: nowrap;
}
.option-type-result-row:hover { background: #262b38; }
.range-toggle-btn,
.option-range { flex: 1 0 100%; }
.range-toggle-btn {
  background: none;
  border: none;
  color: #7db4ff;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.range-toggle-btn:hover { color: #9cc4ff; }
.preview-options-block .option-range { height: 32px; font-size: 12px; padding: 0 8px; }
.bonus-option-row { align-items: center; justify-content: space-between; min-width: 0; }
.bonus-option-row .bonus-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #e0b23c;
  white-space: nowrap;
}
.bonus-stat-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bonus-stat-controls .remove-option-btn { height: 28px; width: 28px; }
.remove-option-btn {
  width: 36px;
  height: 44px;
  background: #1c1f28;
  border: 1px solid #3a3f52;
  border-radius: 6px;
  color: #8a8fa3;
  font-size: 16px;
  cursor: pointer;
}
.remove-option-btn:hover { color: #c0392b; border-color: #c0392b; }
.secondary-btn {
  background: none;
  border: 1px dashed #3a3f52;
  border-radius: 6px;
  color: #b8bcc9;
  height: 40px;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.secondary-btn:hover { border-color: #4a63ff; color: #fff; }

.toggle-group { display: flex; gap: 8px; }
.toggle-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid #3a3f52;
  border-radius: 6px;
  background: #1c1f28;
  color: #8a8fa3;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.toggle-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-btn:has(input:focus-visible) { outline: 2px solid #7d97ff; outline-offset: 2px; }
.toggle-btn:hover:not(:has(input:checked)) { border-color: #565d78; color: #e8e8ec; }
.toggle-sell:has(input:checked) { background: #4a63ff; border-color: #4a63ff; color: #fff; }
.toggle-buy:has(input:checked) { background: #c0392b; border-color: #c0392b; color: #fff; }
button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: #4a63ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
button.primary:hover { background: #5b72ff; }
button.primary:disabled { background: #3a3f52; color: #8a8fa3; cursor: not-allowed; }
button.primary:focus-visible { outline: 2px solid #7d97ff; outline-offset: 2px; }

.stats-page { max-width: 640px; margin: 0 auto; padding: 28px 20px; }
.stats-page h2 { font-size: 22px; font-weight: 800; }
.stats-page h3 { font-size: 16px; font-weight: 700; margin-top: 28px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { width: 90px; font-size: 13px; }
.bar-track { flex: 1; background: #1c1f28; border-radius: 4px; height: 16px; overflow: hidden; }
.bar-fill { background: #4a63ff; height: 100%; }
.bar-count { width: 60px; text-align: right; font-size: 13px; color: #8a8fa3; }
.other-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #2a2e3a; font-size: 13px; }

.admin-page { max-width: 520px; margin: 0 auto; padding: 28px 20px; }
.admin-page h2 { font-size: 22px; font-weight: 800; }
.admin-page h3 { font-size: 16px; font-weight: 700; }
