:root { color-scheme: dark; }
.account-container { width: min(440px, calc(100% - 24px)); margin: 26px auto 40px; padding: 28px; background: #16181f; border: 1px solid #2a2e38; border-radius: 12px; box-shadow: 0 12px 35px #0003; }
.account-container:has(#dashboard:not([hidden])) { width: min(600px, calc(100% - 24px)); }
.account-container h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #30343f; margin-bottom: 24px; }
.account-tabs button { min-height: 45px; border: 0; border-bottom: 2px solid transparent; color: #929baa; background: transparent; cursor: pointer; font: 600 13px Inter, sans-serif; }
.account-tabs button[aria-selected="true"] { border-bottom-color: #66b5ff; color: #eaf3ff; }
.discord-button { display: flex; align-items: center; justify-content: center; gap: 10px; background: #5865f2; color: white; border-color: #6873f4; }
.discord-button:hover:not(:disabled) { background: #6c77f5; }
.provider-note { text-align: center; }
.account-divider { display: flex; align-items: center; gap: 14px; color: #818a99; font-size: 11px; margin: 22px 0; }
.account-divider::before, .account-divider::after { content: ''; height: 1px; background: #2a2e38; flex: 1; }
.account-form { display: flex; flex-direction: column; }
.account-form label { margin: 18px 0 8px; color: #c7cfdb; font-size: 13px; font-weight: 600; }
.account-form label:first-child { margin-top: 0; }
.account-form label span { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: #8e98a8; }
.account-form input { display: block; width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #363e4d; border-radius: 6px; color: #eef2f8; background: #10131a; font: 16px/1.4 Inter, sans-serif; }
.account-form input:focus-visible { outline: 2px solid #66b5ff; outline-offset: 2px; }
.account-form .button { margin-top: 24px; }
.account-form .field-hint { margin-top: 7px; font-size: 11px; }
.form-intro { margin: 0 0 20px; }
.form-button { margin-top: 22px; }
.text-action { border: 0; background: none; color: #9bcaff; font: 600 12px/1.5 Inter, sans-serif; min-height: 44px; padding: 10px 0; cursor: pointer; text-align: left; }
.text-action:hover:not(:disabled) { color: #d7eaff; }
.text-action:disabled { opacity: .5; cursor: not-allowed; }
.text-action:focus-visible, .account-tabs button:focus-visible { outline: 2px solid #8cc6ff; outline-offset: 3px; }
#forgot-panel > .muted { margin-bottom: 20px; }
.account-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid #2c303a; }
.account-profile .profile-identity { min-width: 100px; flex: 1; }
.account-profile h2 { font-size: 16px; margin: 0 0 4px; overflow-wrap: anywhere; }
.account-profile p { margin: 0; color: #9da8b8; font-size: 12px; overflow-wrap: anywhere; }
.account-avatar { width: 56px; height: 56px; display: grid; place-items: center; overflow: hidden; border: 1px solid #3399ff50; border-radius: 50%; background: #3399ff14; color: #8cc6ff; font-size: 21px; font-weight: 700; flex: none; }
.discord-avatar { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-profile .status-chip { display: inline-flex; align-items: center; gap: 5px; color: #a9dcb7; background: #7dcd9410; border: 1px solid #7dcd9430; border-radius: 6px; padding: 6px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.account-profile .status-chip[data-verified="false"] { color: #edc687; border-color: #edc68740; background: #edc6870c; }
.account-profile .status-chip[data-verified="false"] .verified-icon { display: none; }
.verification-notice { margin-top: 18px; padding: 13px; border: 1px solid #ad865345; border-radius: 6px; background: #f5bc7807; }
.verification-notice p { color: #d7bc96; font-size: 12px; line-height: 1.6; margin: 0; }
.verification-notice .text-action { padding-bottom: 0; min-height: 34px; }
.account-continue { display: block; margin: 20px 0; text-align: center; text-decoration: none; }
.connection-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin: 22px 0; border: 1px solid #303542; border-radius: 9px; background: #12151d; }
.connection-identity { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 150px; }
.connection-identity > div { min-width: 0; }
.discord-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 10px; background: #5865f21c; color: #9ba4ff; }
.connection-row strong { font-size: 13px; }
.connection-row p { margin: 5px 0 0; color: #929baa; font-size: 12px; line-height: 1.5; }
.connection-row .button { width: auto; min-width: 108px; padding: 9px 12px; font-size: 12px; }
.connection-state { display: inline-flex; align-items: center; gap: 5px; color: #b3bbff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.orders-label { margin-top: 12px; margin-bottom: 10px; }
.orders-label h2 { margin: 0; }
.orders-empty { padding: 25px 18px; text-align: center; border: 1px dashed #303642; border-radius: 8px; }
.orders-empty strong { display: block; margin-bottom: 8px; font-size: 14px; color: #d2dae5; }
.orders-empty .muted { max-width: 280px; margin: auto; font-size: 13px; }
.account-order { display: block; text-decoration: none; border: 1px solid #303642; border-radius: 7px; padding: 14px; margin-top: 10px; background: #11141b; }
.account-order:hover { border-color: #6589b1; }
.account-order:focus-visible { outline: 2px solid #8cc6ff; outline-offset: 3px; }
.account-order-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: #dee6f1; }
.account-order-top strong:first-child { overflow-wrap: anywhere; }
.account-order-top strong:last-child { flex: none; color: #8cc6ff; }
.account-order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 10px; color: #929baa; font-size: 11px; }
.order-status-chip { padding: 4px 7px; border: 1px solid #ad865335; border-radius: 5px; color: #d7bc96; background: #ad865309; }
.order-status-chip[data-status="paid"], .order-status-chip[data-status="completed"] { color: #a9dcb7; border-color: #7dcd9430; background: #7dcd9409; }
.order-status-chip[data-status="processing"] { color: #a9ccf1; border-color: #8cc6ff35; background: #8cc6ff09; }
.account-order-delivery { margin: 9px 0 0; color: #929baa; font-size: 12px; overflow-wrap: anywhere; }
.account-session-actions { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid #2c303a; }
.logout-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 15px; color: #bcc6d4; background: #ffffff03; border: 1px solid #3a4250; border-radius: 7px; cursor: pointer; font: 600 13px/1.5 Inter, sans-serif; }
.logout-action:hover:not(:disabled) { color: #f0c3c3; border-color: #a66e6e; background: #b66b6b0a; }
.logout-action:focus-visible { outline: 2px solid #8cc6ff; outline-offset: 3px; }
.logout-action:disabled { opacity: .5; cursor: not-allowed; }
.account-container > .back-link { display: block; width: fit-content; margin-top: 14px; }
.rewards-section { padding: 18px; margin: 22px 0; border: 1px solid #374658; border-radius: 9px; background: #111722; }
.rewards-heading-row { margin: 0 0 12px; align-items: center; }
.rewards-heading-row h2 { margin: 0; font-size: 16px; }
.rewards-heading-row .text-action { padding: 5px 0; }
.rewards-section > .muted { margin: 0; font-size: 13px; line-height: 1.6; }
.rewards-balance-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rewards-eyebrow { display: block; color: #a1afc0; font-size: 11px; }
#rewards-balance { display: block; margin-top: 4px; color: #c7e5ff; font-size: clamp(28px, 6vw, 36px); line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rewards-totals { display: flex; gap: 20px; margin: 0; flex: none; font-variant-numeric: tabular-nums; }
.rewards-totals dt { font-size: 11px; color: #9ca8ba; }
.rewards-totals dd { margin: 5px 0 0; color: #d4deeb; font-size: 16px; font-weight: 600; }
.rewards-section .small-note { font-size: 12px; line-height: 1.65; }
#rewards-rule { margin: 14px 0; }
#rewards-test { color: #e3bf83; }
.rewards-disclosure { margin-top: 12px; border-top: 1px solid #2b3747; }
.rewards-disclosure summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; color: #dbe7f6; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.rewards-disclosure summary::-webkit-details-marker { display: none; }
.rewards-disclosure summary::after { content: '+'; color: #9ab6d8; }
.rewards-disclosure[open] summary::after { content: '−'; }
.rewards-disclosure summary:focus-visible, .reward-claim-actions a:focus-visible { outline: 2px solid #8cc6ff; outline-offset: 3px; }
.account-form select { display: block; width: 100%; min-height: 46px; padding: 10px; border: 1px solid #363e4d; border-radius: 6px; color: #eef2f8; background: #10131a; font: 14px/1.4 Inter, sans-serif; }
.account-form select:focus-visible { outline: 2px solid #66b5ff; outline-offset: 2px; }
.reward-claim-form select { min-width: 0; max-width: 100%; font-size: 16px; }
.reward-claim-form select:disabled { opacity: .55; }
.reward-selection { margin-top: 10px; padding: 12px; border: 1px solid #365372; border-radius: 6px; background: #172334; overflow-wrap: anywhere; }
.reward-selection > strong { display: block; color: #d5e8fc; font-size: 13px; line-height: 1.6; }
.reward-selection-cost { margin: 5px 0 0; color: #b8d9f5; font-size: 12px; line-height: 1.6; }
.reward-selection .small-note { margin: 6px 0 0; }
.reward-delivery-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.reward-delivery-fields > div { min-width: 0; }
.reward-delivery-fields label { display: block; }
.reward-claim-form .button { margin: 18px 0 4px; }
.reward-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; border-top: 1px solid #263142; padding: 12px 0; }
.reward-history-row:first-child { border-top: 0; }
.reward-history-row strong, .reward-history-row span { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.reward-history-row time { grid-column: 1; color: #929fb2; font-size: 11px; }
.reward-history-row .points-change { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #9fcaf0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reward-claim-card { border-top: 1px solid #2b3747; margin-top: 18px; padding-top: 16px; }
.reward-claims-heading { margin: 20px 0 0; font-size: 14px; color: #dbe7f6; }
.reward-claim-card h3 { font-size: 13px; line-height: 1.6; margin: 0 0 8px; }
.reward-claim-reference { margin: 10px 0 0; color: #a8ceef; font: 600 12px/1.5 Inter, sans-serif; overflow-wrap: anywhere; }
.reward-claim-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.reward-claim-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #9bcaff; font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
#rewards-message { color: #c7def7; overflow-wrap: anywhere; }
@media(max-width: 480px) {
  .account-container { padding: 22px 18px; margin-top: 20px; }
  .account-profile { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 7px 12px; }
  .account-avatar { grid-row: 1 / 3; }
  .account-profile .profile-identity { min-width: 0; }
  .account-profile .status-chip { grid-column: 2; justify-self: start; }
  .connection-row { padding: 14px; }
  .connection-state { margin-left: auto; }
  .rewards-section { padding: 14px; }
  .rewards-totals { gap: 14px; }
  .reward-delivery-fields { grid-template-columns: 1fr; }
}
