/*
 * Cosmetic refresh of the inner pages. Same identity — Fixel / Unbounded, purple #644ded,
 * dark #2f2b43, white cards on a light canvas — with lighter surfaces, crisper controls and
 * calmer tables. Loaded after styles.css / media.css; the dark landing (header--black,
 * table--bright) is left as it is. Remove this file to get the previous look back.
 */

:root {
  --canvas: #f5f5f9;
  --line: #e8e8f0;
  --line-soft: #f0f0f5;
  --text-muted: rgba(47, 43, 67, 0.56);
  --ring: 0 0 0 4px rgba(100, 77, 237, 0.14);
  --card-shadow: 0 1px 2px rgba(47, 43, 67, 0.04), 0 12px 32px -18px rgba(47, 43, 67, 0.14);
  --card-radius: 20px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(100, 77, 237, 0.18);
}

/* canvas: a faint brand glow under the header instead of flat gray */
.content {
  background:
    radial-gradient(1100px 420px at 50% -160px, rgba(100, 77, 237, 0.08), transparent 70%),
    var(--canvas);
}

.content__header {
  border-bottom-color: var(--line);
}

/* header: hairline instead of a drop shadow (no backdrop blur: it picks up the off-canvas menu) */
.header:not(.header--black) {
  box-shadow: 0 1px 0 var(--line);
}

.user-balance__value {
  box-shadow: 0 6px 16px -8px rgba(100, 77, 237, 0.7);
  transition: transform 0.15s, box-shadow 0.2s;
}

.user-balance__value:hover {
  transform: translateY(-1px);
}

/* cards */
.box,
.balance-up,
.balance-withdraw {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.table:not(.table--bright) .table__content {
  border-color: var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

/* fields: hairline border, brand focus ring — no heavy drop shadow */
.input {
  border-color: #e2e2eb;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input:hover {
  border-color: #cfcfdc;
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--ring);
}

.input--gray,
.input[readonly] {
  background-color: #f7f7fa;
}

.input::placeholder {
  color: rgba(47, 43, 67, 0.38);
}

.select__input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select__input:focus {
  border-color: var(--color-primary);
  box-shadow: var(--ring);
  outline: none;
}

.form-field__label {
  font-weight: 500;
}

/* buttons: tactile hover / press, visible keyboard focus */
.btn {
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn--second:hover {
  background-color: #3c3756;
  box-shadow: 0 10px 20px -10px rgba(47, 43, 67, 0.6);
}

.btn--white.btn--shadow {
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(47, 43, 67, 0.06);
}

.btn--white.btn--shadow:hover {
  background-color: #fafafd;
  border-color: #d9d9e6;
}

/* tabs: segmented control */
.tabs-btns {
  background-color: #ececf3;
}

.tabs-btns__btn {
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.tabs-btns__btn:hover {
  color: var(--color-second);
}

.tabs-btns__btn.tabs__btn--active {
  box-shadow: 0 1px 2px rgba(47, 43, 67, 0.08), 0 4px 12px -6px rgba(47, 43, 67, 0.18);
}

/* tables: muted headers, hairlines, row hover */
.table:not(.table--bright) th {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.table:not(.table--bright) td {
  border-color: var(--line-soft);
}

.table:not(.table--bright) tbody tr {
  transition: background-color 0.15s;
}

.table:not(.table--bright) tbody tr:hover {
  background-color: #fafaff;
}

/* status pills */
.status {
  padding: 5px 10px 4px;
  border-radius: 999px;
  line-height: 1.3;
  background-color: rgba(92, 209, 103, 0.14);
  color: #1f7a2a;
}

.status--wait {
  background-color: #fff4d6;
  color: #8a5a00;
}

.status--cancel {
  background-color: #ffe4e6;
  color: #b42318;
}

/* notes: a darker amber than the accent, readable on white */
.note {
  border-radius: 10px;
  line-height: 1.45;
  color: #a8520a;
}

/* progress: slim track, brand gradient */
.progress {
  height: 10px;
  border-radius: 999px;
  background-color: #ececf3;
}

.progress__value {
  border-radius: 999px;
  background: linear-gradient(90deg, #8a4ded 0%, var(--color-primary) 60%, #4f7bff 100%);
}

/* links inside content */
.content a:not(.btn):not(.tabs-btns__btn):not(.logo) {
  text-underline-offset: 2px;
}

/* custom select (the native one is hidden; .select__field is what users see) */
.select__field {
  border-color: #e2e2eb;
  box-shadow: none;
  color: var(--color-second);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select__field:hover {
  border-color: #cfcfdc;
}

.select:focus .select__field,
.select.active .select__field,
.select--active .select__field {
  border-color: var(--color-primary);
  box-shadow: var(--ring);
}

/* create / edit forms: the sidebar is a card too; the page title reads as a title */
.create-form__sidebar {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.create-form__input-name::placeholder {
  color: var(--color-second);
  opacity: 1;
}

.create-form__input-name::-moz-placeholder {
  color: var(--color-second);
  opacity: 1;
}

.select__list {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 32px -12px rgba(47, 43, 67, 0.22);
  /* long lists (the withdrawal coins) scroll inside the 320px */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.select__item--hover {
  background-color: rgba(100, 77, 237, 0.08);
}

/* the "New project / New post" title field reads like the other page titles */
.create-form__input-name {
  font-weight: 700;
  border-bottom-color: var(--line);
}

/* footer continues the canvas instead of a slightly different gray */
.footer:not(.footer--black) {
  background-color: var(--canvas);
}
