/* ============================================
   Bouwsteenwinkel — account.css
   Shell voor login.php / register.php / account-ingang
   Gebruikt design tokens uit base.css (coral + crème).
   Mobile-first, min. 44px input-height voor touch.
   ============================================ */

/* ---------- Page shell ---------- */
.account-page {
  background: var(--bg-tertiary);
  min-height: calc(100vh - var(--header-height));
  padding: 40px 20px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.account-shell {
  width: 100%;
  max-width: 440px;
}

.account-shell-wide {
  max-width: 480px;
}

/* ---------- Switcher tabs (login ↔ register) ---------- */
.account-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px;
}

.account-switch a {
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.account-switch a:hover {
  color: var(--text-primary);
}

.account-switch a.is-active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ---------- Intro boven de card ---------- */
.account-intro {
  text-align: center;
  margin-bottom: 20px;
}

.account-intro h1 {
  font-size: 26px;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}

.account-intro p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Voordelen-lijst (waarom een account?) ---------- */
.account-benefits {
  background: var(--brand-coral-light);
  border: 1px solid rgba(216, 90, 48, 0.14);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.account-benefits-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-coral-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.account-benefits ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-benefits li {
  font-size: 13px;
  color: var(--brand-coral-dark);
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.account-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--brand-coral);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---------- De card zelf ---------- */
.account-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
}

/* ---------- Form fundament ---------- */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-label .optional {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
}

.account-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.account-input::placeholder {
  color: var(--text-tertiary);
}

.account-input:hover {
  border-color: var(--text-tertiary);
}

.account-input:focus {
  outline: none;
  border-color: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.15);
}

/* HTML5-validatie: rood kader pas na aanraken van veld (via :user-invalid, fallback :invalid).
   :user-invalid voorkomt 'rode velden bij het openen' — meeste browsers ondersteunen het. */
.account-input:user-invalid {
  border-color: var(--red-500);
}

.account-input:user-invalid:focus {
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.15);
}

.account-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ---------- Inline fout-boodschap (PHP-side) ---------- */
.account-error {
  background: var(--red-50);
  border: 1px solid var(--red-500);
  color: var(--red-800);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.account-error::before {
  content: "!";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--red-500);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}

/* ---------- Inline row (remember me + vergeten) ---------- */
.account-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.account-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.account-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-coral);
  cursor: pointer;
  margin: 0;
}

.account-check-terms {
  align-items: flex-start;
  line-height: 1.5;
}

.account-check-terms input {
  margin-top: 2px;
}

.account-link {
  font-size: 13px;
  color: var(--brand-coral);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.account-link:hover {
  color: var(--brand-coral-dark);
  text-decoration: underline;
}

/* ---------- Submit-knop ---------- */
.account-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 14px 22px;
  background: var(--brand-coral);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition-fast), transform 0.08s, box-shadow var(--transition-fast);
  box-shadow: 0 6px 16px rgba(216, 90, 48, 0.22);
  border: none;
  cursor: pointer;
}

.account-submit:hover {
  background: var(--brand-coral-dark);
  box-shadow: 0 10px 22px rgba(216, 90, 48, 0.28);
}

.account-submit:active {
  transform: scale(0.99);
}

.account-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Divider tussen form en alternatief ---------- */
.account-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--text-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.account-divider::before,
.account-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Wisselregel (nog geen / al account) ---------- */
.account-alt {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.account-alt a {
  color: var(--brand-coral);
  font-weight: 600;
}

.account-alt a:hover {
  text-decoration: underline;
}

/* ---------- Trust-footer (onder de card) ---------- */
.account-trust {
  margin-top: 22px;
  text-align: center;
}

.account-trust-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--green-50);
  border-radius: 999px;
  font-size: 12px;
  color: var(--green-800);
  font-weight: 500;
}

.account-trust-row::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--green-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v9a2 2 0 002 2h12a2 2 0 002-2v-9a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 8V7a3 3 0 016 0v3H9z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a5 5 0 00-5 5v3H6a2 2 0 00-2 2v9a2 2 0 002 2h12a2 2 0 002-2v-9a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm-3 8V7a3 3 0 016 0v3H9z'/></svg>") center/contain no-repeat;
}

.account-trust-note {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.55;
  margin-top: 10px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.account-trust-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-trust-note a:hover {
  color: var(--brand-coral);
}

/* ============================================
   ACCOUNT DASHBOARD (pas nadat user is ingelogd)
   ============================================ */

/* Profiel-grid: 1 of 2 kolommen (links klantprofiel, rechts bg-gekoppeld) */
.account-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.account-linked-profile {
  background: var(--amber-50);
  border-color: var(--amber-100);
}

.account-linked-profile .ui-card-title,
.account-linked-profile .ui-dl dd {
  color: var(--amber-900);
}

.account-linked-profile .ui-dl dt {
  color: var(--amber-800);
}

/* Orders-lijst */
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.08s, box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.account-order-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.account-order-id {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.account-order-main {
  min-width: 0;
}

.account-order-summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.account-order-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Order-detail */
.account-order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.account-order-detail-id {
  font-size: 22px;
  margin: 2px 0 4px;
  letter-spacing: -0.3px;
}

.account-order-detail-total {
  text-align: right;
}

.account-order-addr {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* Timeline */
.account-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 22px 0 14px;
  padding: 0;
  list-style: none;
  position: relative;
}

.account-timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.account-timeline-step::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.account-timeline-step:last-child::after {
  display: none;
}

.account-timeline-step.is-done::after {
  background: var(--green-500);
}

.account-timeline-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
}

.account-timeline-step.is-done .account-timeline-dot {
  background: var(--green-500);
  color: #fff;
}

.account-timeline-step.is-current .account-timeline-dot {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(239, 159, 39, 0.2);
}

.account-timeline-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.account-timeline-step.is-done .account-timeline-label,
.account-timeline-step.is-current .account-timeline-label {
  color: var(--text-primary);
}

/* Order-items in detail-view */
.account-order-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.account-order-item:first-of-type {
  border-top: none;
}

.account-order-item-main {
  min-width: 0;
}

.account-order-item-title {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
}

.account-order-item-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.account-order-item-ext {
  font-size: 11px;
  color: var(--amber-800);
  margin-top: 4px;
}

.account-order-item-extend {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.account-order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 16px;
}

/* Mobile */
@media (max-width: 620px) {
  .account-order-row {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 14px 16px;
  }
  .account-order-row .ui-price {
    grid-column: 1 / -1;
    text-align: right;
  }
  .account-order-item {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .account-order-item-extend {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .account-timeline-label {
    font-size: 10px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .account-page {
    padding: 24px 16px 48px;
  }

  .account-card {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }

  .account-intro h1 {
    font-size: 22px;
  }

  .account-field-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .account-benefits {
    padding: 14px 16px;
  }
}

/* ============================================
   REWARDS: punten + taken + codes
   ============================================ */

/* Hero-blok met saldo */
.rwd-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  background: linear-gradient(135deg, #FFF3EE 0%, #FFF9E0 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.rwd-hero-balance { }
.rwd-hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7A5A00;
  margin-bottom: 6px;
}
.rwd-hero-value {
  font-size: 48px;
  font-weight: 800;
  color: #1F1F1D;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rwd-hero-value span {
  font-size: 18px;
  font-weight: 600;
  margin-left: 6px;
  color: #7A5A00;
}
.rwd-hero-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #7A5A00;
}
.rwd-hero-explain h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7A5A00;
  margin: 0 0 8px;
}
.rwd-hero-explain ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #3A3A38;
  line-height: 1.7;
}
.rwd-hero-explain ul li::before { content: "✓ "; color: #7A5A00; font-weight: 700; }

/* Verjaardag-prompt */
.rwd-birthday-prompt {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #FFF9E0;
  border: 1px solid #F4E4A6;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rwd-birthday-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.rwd-birthday-form input[type=date] {
  max-width: 160px;
}

/* Inwissel-trappen */
.rwd-h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}
.rwd-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.rwd-tier {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rwd-tier.is-available {
  border-color: var(--brand-coral);
  box-shadow: 0 4px 14px rgba(216, 90, 48, 0.1);
}
.rwd-tier.is-locked { opacity: 0.6; }
.rwd-tier-points {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.rwd-tier.is-available .rwd-tier-points { color: var(--brand-coral); }
.rwd-tier-euro {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.rwd-tier-bonus {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-50);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

/* Transactie-historie */
.rwd-tx-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rwd-tx-tbl td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.rwd-tx-tbl tr:last-child td { border-bottom: none; }
.rwd-tx-delta {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.rwd-tx-delta.earn  { color: var(--green-800); }
.rwd-tx-delta.spend { color: var(--brand-coral); }

/* Taken-lijst */
.rwd-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.rwd-task {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.rwd-task.rwd-task-awarded {
  background: var(--green-50);
  border-color: var(--green-100);
}
.rwd-task.rwd-task-claimed {
  background: #FFF9E0;
  border-color: #F4E4A6;
}
.rwd-task.rwd-task-rejected {
  background: var(--red-50);
  border-color: var(--red-100);
}
.rwd-task-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  font-size: 22px;
}
.rwd-task-body { flex: 1 1 auto; min-width: 0; }
.rwd-task-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  align-items: start;
}
.rwd-task-head b { font-size: 14px; }
.rwd-task-points {
  flex-shrink: 0;
  background: var(--brand-coral);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.rwd-task-status {
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}
.rwd-task-awarded .rwd-task-status { color: var(--green-800); }
.rwd-task-claimed .rwd-task-status { color: #7A5A00; }
.rwd-task-rejected .rwd-task-status { color: var(--red-800); }
.rwd-task-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rwd-task-form input[type=text] { flex: 1 1 180px; font-size: 13px; }

/* Mijn codes */
.rwd-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.rwd-code {
  background: #FFD500;
  color: #1F1F1D;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.rwd-code.is-inactive {
  background: #E0DED4;
  color: #555;
}
.rwd-code-head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.rwd-code-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.rwd-code-value .rwd-code-of {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 6px;
  letter-spacing: 0;
}
.rwd-code-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  word-break: break-all;
}
.rwd-code-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
}
.rwd-code-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
}
.rwd-code-pill-ok      { background: rgba(0,0,0,0.85); color: #fff; }
.rwd-code-pill-used    { background: rgba(0,0,0,0.15); color: #555; }
.rwd-code-pill-expired { background: rgba(139,0,0,0.2); color: #801010; }

@media (max-width: 640px) {
  .rwd-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
  }
  .rwd-hero-value { font-size: 40px; }
  .rwd-birthday-prompt {
    flex-direction: column;
    align-items: stretch;
  }
  .rwd-birthday-form {
    flex-direction: column;
  }
  .rwd-birthday-form input[type=date] { max-width: none; }
}

/* Rewards-banner bovenaan profiel-tab */
.account-rewards-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #FFD500 0%, #F5B400 100%);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 20px;
  color: #1F1F1D;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(245, 180, 0, 0.25);
}
.account-rewards-banner-main {
  display: flex;
  gap: 18px;
  align-items: center;
}
.account-rewards-banner-num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.account-rewards-banner-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
}
.account-rewards-banner-sub {
  font-size: 14px;
  font-weight: 500;
  margin-top: 2px;
  max-width: 420px;
}
.account-rewards-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.account-rewards-banner-actions .btn-primary {
  background: #1F1F1D;
  color: #FFD500;
  border: none;
}
.account-rewards-banner-actions .btn-primary:hover {
  background: #000;
}
.account-rewards-banner-actions .btn-ghost {
  background: rgba(255,255,255,0.35);
  color: #1F1F1D;
  border: 1px solid rgba(0,0,0,0.12);
}

@media (max-width: 560px) {
  .account-rewards-banner {
    padding: 16px 18px;
  }
  .account-rewards-banner-num {
    font-size: 36px;
  }
}

/* ======================================
   Referral-card op account-dashboard
   ====================================== */
.account-ref-card {
  background: linear-gradient(135deg, #FFF3EE 0%, #FFF9E0 100%);
  border: 1px solid #F4E4A6;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 20px 0 26px;
}
.account-ref-head { margin-bottom: 14px; }
.account-ref-title {
  font-size: 17px;
  font-weight: 700;
  color: #5C4A0F;
  margin-bottom: 4px;
}
.account-ref-sub {
  font-size: 13px;
  color: #6B5A30;
  line-height: 1.5;
}
.account-ref-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.account-ref-link {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid #E8D89B;
  border-radius: 8px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff;
  color: #1F1F1D;
}
.account-ref-link:focus {
  outline: none;
  border-color: #D85A30;
}
.account-ref-stats {
  font-size: 12px;
  color: #6B5A30;
}
.account-ref-stats span {
  display: inline-block;
  margin: 0 2px;
}
@media (max-width: 520px) {
  .account-ref-card { padding: 18px; }
  .account-ref-title { font-size: 15px; }
}

/* ======================================
   Store-credit banner op account-dashboard
   ====================================== */
.account-credit-banner {
  background: linear-gradient(135deg, #D7F5D3 0%, #F0F9EF 100%);
  border: 1px solid #AED9A8;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.account-credit-banner-main {
  display: flex;
  gap: 16px;
  align-items: center;
}
.account-credit-banner-amount {
  font-size: 28px;
  font-weight: 800;
  color: #1B5E20;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.account-credit-banner-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1B5E20;
  font-weight: 700;
  margin-bottom: 2px;
}
.account-credit-banner-sub {
  font-size: 13px;
  color: #1B5E20;
}
@media (max-width: 520px) {
  .account-credit-banner { padding: 14px 16px; }
  .account-credit-banner-amount { font-size: 24px; }
}

/* ======================================
   Tier-card op account-dashboard
   ====================================== */
.account-tier-card {
  background: #fff;
  border: 2px solid var(--tier-color, #B87333);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
  position: relative;
}
.account-tier-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.account-tier-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
}
.account-tier-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--tier-color, #B87333);
  letter-spacing: -0.01em;
  line-height: 1;
}
.account-tier-spent {
  font-size: 12px;
  color: #888;
  margin-left: auto;
}
.account-tier-progress {
  height: 8px;
  background: #F0EFEA;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.account-tier-progress-bar {
  height: 100%;
  background: var(--tier-color, #B87333);
  transition: width 0.6s ease;
}
.account-tier-progress-label {
  font-size: 12px;
  color: #555;
  margin-bottom: 12px;
}
.account-tier-perks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #F0EFEA;
}
.account-tier-perk {
  font-size: 12px;
  color: #333;
  background: #FAF9F4;
  padding: 4px 10px;
  border-radius: 999px;
}
@media (max-width: 520px) {
  .account-tier-card { padding: 16px 18px; }
  .account-tier-spent { margin-left: 0; flex-basis: 100%; }
  .account-tier-name { font-size: 20px; }
}
