.account-fullscreen .sidebar, .account-fullscreen .topbar { display: none; }
.account-fullscreen .shell { display: block; }
.account-fullscreen #main { padding: 0; }
.account-fullscreen .notice { bottom: max(16px, env(safe-area-inset-bottom)); }
.passenger-tools { min-height: 100dvh; background: #f5f8fe; }
.tools-wrap { width: min(100%, 850px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.tools-hero {
  color: #fff; padding: max(17px, env(safe-area-inset-top)) 0 clamp(20px, 4vw, 32px);
  background: radial-gradient(ellipse at 95% 10%, #008cf2, transparent 72%), #082959;
}
.tools-hero h1 { color: #fff; margin: 17px 0 7px; font-size: clamp(2.1rem, 6vw, 3.4rem); }
.tools-hero p { color: #e3eeff; }
.tools-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; color: #fff; background: #ffffff14; border: 1px solid #ffffff58; font-size: .85rem; font-weight: 700;
}
.tools-back:hover { background: #ffffff2b; }
.tools-body { display: grid; gap: 16px; padding-block: 19px max(24px, env(safe-area-inset-bottom)); }
.tools-help { padding: clamp(14px, 3vw, 24px); }
.tools-help .account-help { margin: 0; }
.tools-help .account-help details { padding: 15px; }
.tools-help .account-help button { justify-self: start; }
.referral-code-card {
  display: grid; gap: 8px; margin-top: 17px; padding: clamp(13px, 3vw, 19px);
  width: min(100%, 500px); border-radius: 20px; color: #173052; background: #fff;
}
.referral-code-card label { font-size: .8rem; font-weight: 750; }
.referral-code-card #referral-code {
  width: 100%; height: 60px; padding: 4px 12px; border: 1px dashed #8db7ef; border-radius: 12px;
  text-align: center; font-size: clamp(1.5rem, 6vw, 2.15rem); font-weight: 850; letter-spacing: .2em;
  color: #0c4fb2; background: #edf5ff; caret-color: transparent;
}
.referral-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.referral-actions .secondary-button { min-height: 44px; text-align: center; padding-inline: 5px; }
.referral-code-card #referral-link:not(.sr-only) { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.tools-hero .referral-feedback { color: var(--accent-dark); font-size: .8rem; }
.referral-section h2 { margin-bottom: 12px; }
.referral-empty, .referral-benefit, .referral-activity { padding: clamp(14px, 3vw, 22px); }
.referral-empty p, .referral-benefit p { color: var(--muted); margin-top: 5px; }
.referral-benefit { display: flex; align-items: flex-start; gap: 12px; overflow-wrap: anywhere; }
.referral-benefit h3 { font-size: 1.12rem; margin-top: 4px; }
.referral-benefit small { color: var(--accent-dark); font-weight: 750; }
.referral-symbol {
  flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  background: var(--accent-light); color: var(--accent-dark);
}
.referral-activity h2 span { font-size: .82rem; color: var(--muted); }
.referral-activity ul { margin: 9px 0 0; padding: 0; list-style: none; }
.referral-activity li { display: flex; justify-content: space-between; gap: 8px; padding-block: 10px; border-top: 1px solid var(--line); }
.referral-activity li span { color: var(--accent-dark); text-align: right; font-size: .82rem; }
.referral-activity li small { color: var(--muted); margin-top: 4px; }
#referral-promotion-form textarea { font: inherit; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.admin-referral-prizes { margin-top: 20px; }
.admin-referral-prizes h2 { margin: 0 0 8px; }
.ride-discount { margin-top: 5px; color: #186346; font-size: .85rem; font-weight: 700; }
