.dashboard {
  max-width: 1040px;
  padding-block: clamp(34px, 6vw, 72px);
}

.dashboard h1 {
  margin-bottom: 28px;
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.06em;
  overflow-wrap: anywhere;
}

.dashboard h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.dashboard-header .button { min-height: 42px; padding-inline: 14px; }
.dashboard-header a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.extra-actions summary { width: fit-content; cursor: pointer; color: var(--muted); padding-block: 8px; font-size: .9375rem; }
.extra-actions summary:hover { color: var(--text); }
.extra-actions:not([open]) > div { display: none; }
.dashboard-header .extra-actions { position: relative; }
.dashboard-header .extra-actions > div { position: absolute; z-index: 1; top: 100%; right: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
.dashboard-header .extra-actions[open] > div { display: grid; gap: 6px; }
.dashboard-panel .extra-actions .fields { margin-top: 6px; }
.dashboard-panel { padding-block: clamp(18px, 3.8vw, 34px); margin-block: 16px; border-top: 1px solid var(--line); }
.dashboard-panel > p + p { margin-top: 10px; }
.dashboard-panel > a:last-child { margin-top: 14px; }
.dashboard-panel .muted { color: var(--muted); }
.dashboard-panel details { margin-top: 16px; }
.dashboard-panel summary { cursor: pointer; }
.notice { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #777; border-radius: 5px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 14px; margin-top: 20px; }
.dashboard-stats > div { padding: 13px 8px 13px 0; border-block: 1px solid var(--line); }
.dashboard-stats dt { color: var(--muted); font-size: .9rem; }
.dashboard-stats dd { margin-top: 4px; font-weight: 650; }
.dashboard .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 15px; }
.dashboard .actions:last-child { margin-bottom: 0; }
.dashboard label { display: grid; gap: 6px; font-weight: 600; }
.dashboard label.checkbox { display: flex; align-items: center; font-weight: inherit; }
.dashboard input:not([type="checkbox"]):not([type="radio"]), .dashboard textarea, .dashboard select {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--background);
  border: 1px solid #666;
  border-radius: 5px;
  font: inherit;
}
.dashboard input[type="checkbox"] { width: 18px; height: 18px; margin-right: 5px; accent-color: #fff; flex-shrink: 0; }
.dashboard textarea { resize: vertical; }
.dashboard button { font-family: inherit; font-size: inherit; cursor: pointer; }
.dashboard button.button--outline, .dashboard-header button.button--outline { color: var(--text); background: transparent; }
.dashboard .fields { display: grid; gap: 14px; width: min(100%, 540px); margin-top: 16px; }
.dashboard .fields .button { justify-self: start; }
.dashboard .payment-methods { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dashboard .payment-methods legend { margin-bottom: 8px; font-weight: 600; }
.dashboard label.payment-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.dashboard .payment-option:has(:checked) { border-color: var(--text); }
.dashboard .payment-option input { width: 16px; height: 16px; margin: 0; flex: 0 0 16px; accent-color: #fff; }
.dashboard .payment-option img { width: 30px; height: 30px; padding: 2px; border-radius: 6px; background: #fff; object-fit: contain; }
.dashboard .payment-option .stars-icon { width: 26px; height: 26px; }
.dashboard .terms-text { color: var(--muted); white-space: pre-line; }
.table-scroll { overflow-x: auto; }
.dashboard table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.dashboard th, .dashboard td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dashboard th:first-child, .dashboard td:first-child { padding-left: 0; }
.dashboard th { color: var(--muted); font-weight: 600; }
.dashboard code { overflow-wrap: anywhere; }
.subscription-qr { margin-top: 12px; height: auto; border-radius: 6px; }
.ticket-messages { margin: 0; padding: 0; list-style: none; }
.ticket-messages li { padding-block: 12px; border-bottom: 1px solid var(--line); }
.ticket-messages p { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  .dashboard .actions > .button { width: 100%; }
  .site-header .logout .button { padding-inline: 10px; }
}
.dashboard-panel{padding:24px;border:1px solid #ffffff30;border-radius:28px;background:linear-gradient(130deg,#ffffff16,#ffffff05);box-shadow:inset 0 1px 0 #ffffff30;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.dashboard-header{margin-top:12px;padding:12px 20px}.dashboard input:not([type="checkbox"]):not([type="radio"]),.dashboard textarea,.dashboard select,.notice{border-radius:16px}.dashboard-header .extra-actions>div{border-radius:18px;background:#292929}
@media(max-width:480px){.dashboard-panel{padding:18px}}
.select-field { display: grid; gap: 6px; font-weight: 600; }
.glass-select { position: relative; }
.glass-select select[hidden] { display: none; }
.ui-icon { width: 20px; height: 20px; flex: none; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; color: #fff; font: inherit; text-align: left; border: 1px solid #ffffff55; border-radius: 18px; background: linear-gradient(135deg,#ffffff20,#ffffff08); box-shadow: inset 0 1px 0 #ffffff40; cursor: pointer; }
.select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.select-options { position: absolute; inset: calc(100% + 8px) 0 auto; z-index: 20; padding: 6px; max-height: 260px; overflow: auto; border: 1px solid #ffffff55; border-radius: 20px; background: #292929f5; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 #ffffff30,0 18px 40px #0008; }
.select-options[hidden] { display: none; }
.select-options button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 13px; color: #eee; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.select-options button span { flex: 1; }
.select-options button > svg:last-child { opacity: 0; }
.select-options button[aria-selected="true"] { background: #ffffff16; }
.select-options button[aria-selected="true"] > svg:last-child { opacity: 1; }
.select-options button:hover,.select-options button:focus-visible { background: #ffffff28; outline-offset: -2px; }
.select-options button:disabled { opacity: .4; cursor: default; }
.custom-summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.custom-summary::-webkit-details-marker { display: none; }
.custom-summary::marker { content: ''; }
.custom-summary > svg { width: 16px; height: 16px; margin-left: auto; }
 details[open] > .custom-summary > svg { transform: rotate(180deg); }
.dashboard input[type="checkbox"] { appearance: none; position: relative; border: 1px solid #ffffff70; border-radius: 5px; background: #ffffff10; cursor: pointer; }
.dashboard input[type="checkbox"]:checked { background: #fff; }
.dashboard input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #111; border-width: 0 2px 2px 0; transform: rotate(45deg); }
