/* Repair status — Apple-inspired, matches /business/register */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body.lux-device-ext.lux-rs-body,
body.lux-rs-body.lux-apple-rs {
  --ap-bg: #000000;
  --ap-elevated: #1d1d1f;
  --ap-card: #161617;
  --ap-line: rgba(255, 255, 255, 0.08);
  --ap-line-strong: rgba(255, 255, 255, 0.14);
  --ap-text: #f5f5f7;
  --ap-secondary: #a1a1a6;
  --ap-tertiary: #6e6e73;
  --ap-blue: #2997ff;
  --ap-blue-hover: #0077ed;
  --ap-green: #30d158;
  --ap-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--ap-font) !important;
  background: var(--ap-bg) !important;
  color: var(--ap-text) !important;
  min-height: 100vh;
  margin: 0;
}

/* Top bar */
body.lux-apple-rs .ldx-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ap-line) !important;
  box-shadow: none !important;
}

body.lux-apple-rs .ldx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ap-text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

body.lux-apple-rs .ldx-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
}

body.lux-apple-rs .ldx-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

body.lux-apple-rs .ldx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 980px;
  border: 1px solid var(--ap-line-strong);
  background: transparent;
  color: var(--ap-text) !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s;
}

body.lux-apple-rs .ldx-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.lux-apple-rs .ldx-btn-primary {
  background: var(--ap-blue) !important;
  border-color: var(--ap-blue) !important;
  color: #fff !important;
}

body.lux-apple-rs .ldx-btn-primary:hover {
  background: var(--ap-blue-hover) !important;
}

/* Main wrap — gap under top bar */
body.lux-apple-rs .ldx-wrap {
  width: min(94%, 440px);
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(5.25rem, 9vh, 6.25rem) clamp(0.85rem, 2.5vw, 1.25rem) 1.35rem !important;
  box-sizing: border-box;
}

body.lux-apple-rs .lux-rs-page {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: luxRsAppleIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes luxRsAppleIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ── Single form card only (left visual removed) ── */
body.lux-apple-rs .lux-rs-shell,
body.lux-apple-rs .lux-login-shell {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  margin: 0 auto !important;
  max-width: 400px !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #1d1d1f !important;
  box-shadow:
    0 18px 48px -20px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.lux-apple-rs .lux-rs-shell::before,
body.lux-apple-rs .lux-login-shell::before {
  display: none !important;
}

/* Left visual / slides — always off */
body.lux-apple-rs .lux-rs-visual,
body.lux-apple-rs .lux-login-visual,
body.lux-apple-rs .lux-visual-glow,
body.lux-apple-rs .lux-visual-glow--accent,
body.lux-apple-rs .lux-visual-glow--cyan,
body.lux-apple-rs .lux-visual-brand,
body.lux-apple-rs .lux-slider-container,
body.lux-apple-rs .lux-visual-footer,
body.lux-apple-rs .lux-login-slide {
  display: none !important;
}

body.lux-apple-rs .lux-visual-brand {
  color: #a1a1a6 !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  letter-spacing: -0.01em;
  padding: 1.25rem 1.4rem 0 !important;
}
body.lux-apple-rs .lux-visual-brand strong {
  color: #f5f5f7 !important;
  font-weight: 600 !important;
}
body.lux-apple-rs .lux-visual-brand__dot {
  background: #f5f5f7 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

/* Slides — strip rainbow accents */
body.lux-apple-rs .lux-slide-badge,
body.lux-apple-rs .lux-slide-badge--indigo,
body.lux-apple-rs .lux-slide-badge--amber,
body.lux-apple-rs .lux-slide-badge--violet {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 600 !important;
}

body.lux-apple-rs .lux-slide-icon,
body.lux-apple-rs .lux-login-slide--pos .lux-slide-icon,
body.lux-apple-rs .lux-login-slide--inventory .lux-slide-icon,
body.lux-apple-rs .lux-login-slide--reports .lux-slide-icon {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}

body.lux-apple-rs .lux-slide-title {
  background: none !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  color: #f5f5f7 !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}

body.lux-apple-rs .lux-slide-desc {
  color: #a1a1a6 !important;
  font-weight: 400 !important;
}

body.lux-apple-rs .lux-slide-stat {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}
body.lux-apple-rs .lux-slide-stat strong {
  color: #f5f5f7 !important;
  font-weight: 600 !important;
}
body.lux-apple-rs .lux-slide-stat span {
  color: #6e6e73 !important;
  font-weight: 500 !important;
}

body.lux-apple-rs .lux-slide-feature {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #d2d2d7 !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
}
body.lux-apple-rs .lux-slide-feature i {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f7 !important;
  border-radius: 8px !important;
}

body.lux-apple-rs .lux-visual-chips span {
  color: #d2d2d7 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  font-weight: 500 !important;
}

body.lux-apple-rs .lux-slider-dot {
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-slider-dot.is-active {
  background: #f5f5f7 !important;
  box-shadow: none !important;
}

/* Form panel — full single Apple sheet */
body.lux-apple-rs .lux-rs-form-panel,
body.lux-apple-rs .lux-login-form-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 1.65rem 1.5rem 1.6rem !important;
  background: #1d1d1f !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.lux-apple-rs .lux-login-form-intro {
  text-align: center;
  margin-bottom: 1.15rem !important;
}

body.lux-apple-rs .lux-login-version {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.lux-apple-rs .lux-login-form-intro h1 {
  margin: 0 0 0.4rem !important;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.18 !important;
  color: #f5f5f7 !important;
  background: none !important;
  -webkit-text-fill-color: #f5f5f7 !important;
}

body.lux-apple-rs .lux-login-form-intro p {
  margin: 0 auto !important;
  max-width: 34ch !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: #a1a1a6 !important;
}

/* Phone: same single card, slightly tighter */
@media (max-width: 900px) {
  body.lux-apple-rs .ldx-wrap {
    width: min(100% - 1.1rem, 26rem) !important;
    max-width: 26rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }
  body.lux-apple-rs .lux-rs-shell,
  body.lux-apple-rs .lux-login-shell {
    max-width: 100% !important;
    border-radius: 18px !important;
  }
  body.lux-apple-rs .lux-rs-form-panel,
  body.lux-apple-rs .lux-login-form-panel {
    padding: 1.35rem 1.15rem 1.3rem !important;
    border-radius: 18px !important;
  }
  body.lux-apple-rs .lux-login-form-intro h1 {
    font-size: 1.35rem !important;
  }
  body.lux-apple-rs .lux-login-form-intro p {
    font-size: 0.86rem !important;
  }
  body.lux-apple-rs .lux-rs-check-hero {
    margin-bottom: 0.9rem !important;
    padding: 0.7rem 0.8rem !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 480px) {
  body.lux-apple-rs .lux-rs-form-panel,
  body.lux-apple-rs .lux-login-form-panel {
    padding: 1.2rem 1rem 1.15rem !important;
  }
  body.lux-apple-rs .lux-field {
    margin-bottom: 0.75rem !important;
  }
  body.lux-apple-rs .lux-submit {
    min-height: 2.65rem !important;
  }
}

/* Fields */
body.lux-apple-rs .lux-field {
  margin-bottom: 1rem;
}

body.lux-apple-rs .lux-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--ap-secondary) !important;
  letter-spacing: -0.01em;
}

body.lux-apple-rs .lux-field-control,
body.lux-apple-rs .lux-field .lux-field-control {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: #2c2c2e !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}
body.lux-apple-rs .lux-field-control:focus-within {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
  background: #2c2c2e !important;
}

body.lux-apple-rs .lux-field-control input,
body.lux-apple-rs .lux-rs-form input[type="text"],
body.lux-apple-rs .lux-rs-form input[type="password"],
body.lux-apple-rs .lux-rs-form input[type="tel"],
body.lux-apple-rs .lux-rs-form input[type="email"],
body.lux-apple-rs input[type="text"],
body.lux-apple-rs input[type="password"],
body.lux-apple-rs input[type="tel"],
body.lux-apple-rs input[type="email"],
body.lux-apple-rs input[type="number"] {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.9rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #2c2c2e !important;
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  caret-color: #f5f5f7 !important;
  font-size: 16px !important; /* avoids iOS zoom + blue tint quirks */
  font-family: inherit !important;
  box-shadow: none !important;
  box-sizing: border-box;
  outline: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.lux-apple-rs .lux-field-control input:hover,
body.lux-apple-rs .lux-rs-form input:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: #2c2c2e !important;
}

body.lux-apple-rs .lux-field-control input:focus,
body.lux-apple-rs .lux-rs-form input:focus,
body.lux-apple-rs input:focus {
  outline: none !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: none !important;
  background: #2c2c2e !important;
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
}

/* Kill blue/yellow autofill on iOS/Android/desktop */
body.lux-apple-rs input:-webkit-autofill,
body.lux-apple-rs input:-webkit-autofill:hover,
body.lux-apple-rs input:-webkit-autofill:focus,
body.lux-apple-rs input:-webkit-autofill:active {
  -webkit-text-fill-color: #f5f5f7 !important;
  caret-color: #f5f5f7 !important;
  box-shadow: 0 0 0 1000px #2c2c2e inset !important;
  -webkit-box-shadow: 0 0 0 1000px #2c2c2e inset !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: background-color 99999s ease-in-out 0s !important;
}

body.lux-apple-rs .lux-field-control input::placeholder,
body.lux-apple-rs .lux-rs-form input::placeholder {
  color: #6e6e73 !important;
  opacity: 1 !important;
}

body.lux-apple-rs .lux-rs-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--ap-tertiary) !important;
  line-height: 1.4;
}

/* Submit pill */
body.lux-apple-rs .lux-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.95rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem !important;
  border: 0 !important;
  border-radius: 980px !important;
  background: var(--ap-blue) !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

body.lux-apple-rs .lux-submit:hover {
  background: var(--ap-blue-hover) !important;
  transform: scale(1.01);
}

body.lux-apple-rs .lux-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.lux-apple-rs .lux-submit svg {
  width: 18px;
  height: 18px;
}

/* Footer links */
body.lux-apple-rs .ldx-foot-links {
  display: none !important;
}

body.lux-apple-rs .ldx-foot-links a {
  color: var(--ap-blue) !important;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none !important;
}

body.lux-apple-rs .ldx-foot-links a:hover {
  text-decoration: underline !important;
}

/* Errors */
body.lux-apple-rs .lux-rs-error {
  margin: 0.65rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.28);
  color: #ff8a80 !important;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* Results panel */
body.lux-apple-rs .lux-rs-results {
  background: var(--ap-elevated) !important;
  border: 1px solid var(--ap-line) !important;
  border-radius: 24px !important;
  padding: clamp(1rem, 2.5vw, 1.5rem) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: var(--ap-text);
}

body.lux-apple-rs .lux-rs-results:empty {
  display: none;
}

/* Soften landing overrides that force light cards */
body.lux-apple-rs.lux-landing,
body.lux-apple-rs.lux-public {
  background: var(--ap-bg) !important;
}

body.lux-apple-rs .lux-login-form,
body.lux-apple-rs .lux-rs-form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Type tabs if present */
body.lux-apple-rs .lux-rs-type-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 0;
  margin-bottom: 0.85rem;
}

body.lux-apple-rs .lux-rs-type-tab {
  flex: 1;
  min-height: 2.5rem;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--ap-secondary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.lux-apple-rs .lux-rs-type-tab.is-active {
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--ap-text) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

@media (max-width: 640px) {
  body.lux-apple-rs .ldx-actions .ldx-btn:not(.ldx-btn-primary) {
    display: none;
  }
}

/* ============================================================
   Apple Pro refinements — depth, frosted glass, micro-motion
   ============================================================ */

/* Ambient background glow (soft, behind everything) */
body.lux-apple-rs::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -4%, rgba(41, 151, 255, 0.13), transparent 62%),
    radial-gradient(46% 40% at 100% 104%, rgba(120, 90, 255, 0.09), transparent 58%),
    radial-gradient(40% 38% at 0% 90%, rgba(48, 209, 88, 0.05), transparent 60%);
}
body.lux-apple-rs .ldx-wrap { position: relative; z-index: 1; }

/* Form panel is half of shell — no nested frosted mega-card */
body.lux-apple-rs .lux-rs-form-panel,
body.lux-apple-rs .lux-login-form-panel {
  position: relative;
  background: #161617 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-rs-form-panel::before,
body.lux-apple-rs .lux-login-form-panel::before {
  display: none !important;
  content: none !important;
}

/* Version badge — neutral */
body.lux-apple-rs .lux-login-version {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #a1a1a6 !important;
}

/* Heading — tighter */
body.lux-apple-rs .lux-login-form-intro h1 {
  letter-spacing: -0.035em !important;
}

/* Inputs — graphite only (override older blue focus) */
body.lux-apple-rs .lux-field-control input,
body.lux-apple-rs .lux-rs-form input[type="text"],
body.lux-apple-rs .lux-rs-form input[type="password"],
body.lux-apple-rs .lux-rs-form input[type="tel"],
body.lux-apple-rs .lux-rs-form input[type="email"] {
  min-height: 2.65rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #2c2c2e !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-field-control input:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: #2c2c2e !important;
}
body.lux-apple-rs .lux-field-control input:focus {
  border-color: rgba(255, 255, 255, 0.32) !important;
  background: #2c2c2e !important;
  box-shadow: none !important;
}

/* Submit — elevated, springy press */
body.lux-apple-rs .lux-submit {
  background: linear-gradient(180deg, #2fa0ff, #2997ff) !important;
  box-shadow: 0 10px 24px -8px rgba(41, 151, 255, 0.6),
              0 2px 6px -2px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease, background 0.2s ease !important;
}
body.lux-apple-rs .lux-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 30px -8px rgba(41, 151, 255, 0.7),
              0 3px 8px -2px rgba(0, 0, 0, 0.45) !important;
}
body.lux-apple-rs .lux-submit:active {
  transform: scale(0.98) !important;
  box-shadow: 0 6px 16px -8px rgba(41, 151, 255, 0.6) !important;
}

/* Field hint & labels — a touch more refined */
body.lux-apple-rs .lux-field label { letter-spacing: -0.006em; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  body.lux-apple-rs .lux-submit,
  body.lux-apple-rs .lux-field-control input { transition: none !important; }
  body.lux-apple-rs .lux-rs-page { animation: none !important; }
}

/* ============================================================
   CUSTOMER PORTAL (logged-in) — dark Apple theme
   ============================================================ */
body.lux-apple-rs .lux-rs-portal {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: var(--ap-text);
}

/* ---- Hero ---- */
body.lux-apple-rs .lux-rs-portal-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: linear-gradient(180deg, rgba(32,32,36,0.72), rgba(21,21,24,0.74)) !important;
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  box-shadow: 0 0.5px 0 rgba(255,255,255,0.08) inset, 0 24px 60px -28px rgba(0,0,0,0.8);
}
body.lux-apple-rs .lux-rs-portal-hero-main {
  display: flex; align-items: center; gap: 1rem; min-width: 0;
}
body.lux-apple-rs .lux-rs-portal-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
body.lux-apple-rs .lux-rs-portal-avatar {
  position: relative; width: 68px; height: 68px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.14); overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #2997ff, #7a5cff); padding: 0; flex-shrink: 0;
  display: grid; place-items: center;
}
body.lux-apple-rs .lux-rs-portal-avatar-img { width: 100%; height: 100%; object-fit: cover; }
body.lux-apple-rs .lux-rs-portal-avatar-letter { font-size: 1.7rem; font-weight: 600; color: #fff; }
body.lux-apple-rs .lux-rs-portal-avatar-edit {
  position: absolute; right: 4px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); display: grid; place-items: center; font-size: 0.7rem; color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
body.lux-apple-rs .lux-rs-portal-avatar-hint { font-size: 0.66rem; color: var(--ap-tertiary); }
body.lux-apple-rs .lux-rs-portal-kicker {
  margin: 0 0 0.15rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ap-blue);
}
body.lux-apple-rs .lux-rs-portal-name {
  margin: 0 0 0.3rem; font-size: clamp(1.35rem, 2.5vw, 1.7rem); font-weight: 600;
  letter-spacing: -0.02em; color: var(--ap-text);
}
body.lux-apple-rs .lux-rs-portal-meta {
  margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.85rem; color: var(--ap-secondary);
}
body.lux-apple-rs .lux-rs-portal-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
body.lux-apple-rs .lux-rs-portal-meta i { color: var(--ap-tertiary); }

/* ---- Hero action buttons ---- */
body.lux-apple-rs .lux-rs-portal-hero-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
body.lux-apple-rs .lux-rs-portal-logout,
body.lux-apple-rs .lux-rs-portal-pin-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.3rem;
  padding: 0.45rem 0.95rem; border-radius: 980px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05); color: var(--ap-text) !important; font-size: 0.82rem;
  font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
body.lux-apple-rs .lux-rs-portal-logout:hover,
body.lux-apple-rs .lux-rs-portal-pin-btn:hover { background: rgba(255,255,255,0.10); }
body.lux-apple-rs .lux-rs-portal-logout-form { margin: 0; }
body.lux-apple-rs .lux-rs-portal-logout-form .lux-rs-portal-logout { border-color: rgba(255,69,58,0.35); color: #ff8a80 !important; }
body.lux-apple-rs .lux-rs-portal-logout-form .lux-rs-portal-logout:hover { background: rgba(255,69,58,0.14); }

/* ---- Notification bell + panel ---- */
body.lux-apple-rs .lux-rs-notif-wrap { position: relative; }
body.lux-apple-rs .lux-rs-notif-bell {
  position: relative; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05);
  color: var(--ap-text); cursor: pointer; transition: background 0.15s;
}
body.lux-apple-rs .lux-rs-notif-bell:hover { background: rgba(255,255,255,0.10); }
body.lux-apple-rs .lux-rs-notif-bell.has-unread { border-color: rgba(41,151,255,0.5); }
body.lux-apple-rs .lux-rs-notif-bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: #ff453a; color: #fff; font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #161617;
}
body.lux-apple-rs .lux-rs-notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(360px, 92vw); z-index: 60;
  background: #1c1c1f; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,0.85); overflow: hidden;
}
body.lux-apple-rs .lux-rs-notif-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.lux-apple-rs .lux-rs-notif-panel-title { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
body.lux-apple-rs .lux-rs-notif-panel-sub { font-size: 0.75rem; color: var(--ap-tertiary); }
body.lux-apple-rs .lux-rs-notif-list { max-height: 60vh; overflow-y: auto; }
body.lux-apple-rs .lux-rs-notif-item {
  display: flex; align-items: flex-start; gap: 0.65rem; width: 100%; text-align: start;
  padding: 0.75rem 1rem; border: 0; background: transparent; color: var(--ap-text);
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.12s;
}
body.lux-apple-rs .lux-rs-notif-item:hover { background: rgba(255,255,255,0.05); }
body.lux-apple-rs .lux-rs-notif-item.is-new { background: rgba(41,151,255,0.08); }
body.lux-apple-rs .lux-rs-notif-item-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: var(--ap-secondary); font-size: 0.8rem;
}
body.lux-apple-rs .lux-rs-notif-item-ico.is-status { background: rgba(41,151,255,0.16); color: var(--ap-blue); }
body.lux-apple-rs .lux-rs-notif-item-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
body.lux-apple-rs .lux-rs-notif-item-body strong { font-size: 0.85rem; font-weight: 500; line-height: 1.3; }
body.lux-apple-rs .lux-rs-notif-item-body em { font-size: 0.72rem; color: var(--ap-tertiary); font-style: normal; }
body.lux-apple-rs .lux-rs-notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-blue); margin-top: 6px; flex-shrink: 0; }
body.lux-apple-rs .lux-rs-notif-empty { padding: 1.5rem 1rem; text-align: center; color: var(--ap-tertiary); font-size: 0.85rem; margin: 0; }

/* ---- Stat tiles ---- */
body.lux-apple-rs .lux-rs-portal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem;
}
body.lux-apple-rs .lux-rs-portal-stat {
  padding: 1rem 1.15rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(30,30,34,0.7), rgba(20,20,23,0.7));
  border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 0.15rem;
}
body.lux-apple-rs .lux-rs-portal-stat strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ap-text); line-height: 1; }
body.lux-apple-rs .lux-rs-portal-stat span { font-size: 0.8rem; color: var(--ap-secondary); }

/* ---- Sections ---- */
body.lux-apple-rs .lux-rs-portal-section {
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  background: linear-gradient(180deg, rgba(28,28,31,0.6), rgba(18,18,21,0.6));
  border: 1px solid rgba(255,255,255,0.07); border-radius: 22px;
}
body.lux-apple-rs .lux-rs-portal-section h3 {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem;
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ap-text);
}
body.lux-apple-rs .lux-rs-h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-blue); box-shadow: 0 0 10px rgba(41,151,255,0.7); }
body.lux-apple-rs .lux-rs-section-count {
  margin-inline-start: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px;
  background: rgba(255,255,255,0.08); color: var(--ap-secondary); font-size: 0.78rem; font-weight: 600;
  display: grid; place-items: center;
}
body.lux-apple-rs .lux-rs-empty-note { text-align: center; color: var(--ap-tertiary); font-size: 0.9rem; padding: 1.25rem 0; margin: 0; }

/* ---- Tile grids ---- */
body.lux-apple-rs .lux-rs-tile-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem;
}
body.lux-apple-rs .lux-rs-tile {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; text-align: start;
  padding: 1.1rem; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, rgba(38,38,42,0.75), rgba(24,24,27,0.8));
  border: 1px solid rgba(255,255,255,0.10); color: var(--ap-text);
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.18s, box-shadow 0.18s;
}
body.lux-apple-rs .lux-rs-tile:hover {
  transform: translateY(-2px); border-color: rgba(255,255,255,0.20);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
}
body.lux-apple-rs .lux-rs-tile-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(41,151,255,0.14); color: var(--ap-blue); font-size: 1rem;
}
body.lux-apple-rs .lux-rs-tile-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
body.lux-apple-rs .lux-rs-tile-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ap-secondary); }
body.lux-apple-rs .lux-rs-tile-line em { font-style: normal; }
body.lux-apple-rs .lux-rs-tile-tag {
  padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(41,151,255,0.16);
  color: var(--ap-blue); font-size: 0.68rem; font-weight: 600;
}
body.lux-apple-rs .lux-rs-tile-amount { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ap-text); }
body.lux-apple-rs .lux-rs-tile-ref { font-size: 0.75rem; color: var(--ap-tertiary); }
body.lux-apple-rs .lux-rs-tile-notif {
  position: absolute; top: 0.7rem; inset-inline-end: 0.7rem; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #ff453a; color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
}
/* device tile accent */
body.lux-apple-rs .lux-rs-tile--device { border-inline-start: 3px solid var(--tile-accent, var(--ap-blue)); }
body.lux-apple-rs .lux-rs-device-kicker { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--ap-tertiary); }
body.lux-apple-rs .lux-rs-device-foot { margin-top: 0.35rem; }

/* ---- Pay badges ---- */
body.lux-apple-rs .lux-rs-portal-pay {
  align-self: flex-start; padding: 0.22rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  background: rgba(255,255,255,0.08); color: var(--ap-secondary);
}
body.lux-apple-rs .lux-rs-portal-pay--paid { background: rgba(48,209,88,0.16); color: #30d158; }
body.lux-apple-rs .lux-rs-portal-pay--due { background: rgba(255,69,58,0.16); color: #ff8a80; }
body.lux-apple-rs .lux-rs-portal-pay--partial { background: rgba(255,159,10,0.16); color: #ff9f0a; }

/* ---- Modals ---- */
body.lux-apple-rs .lux-rs-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
body.lux-apple-rs .lux-rs-modal[hidden] { display: none; }
body.lux-apple-rs .lux-rs-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
body.lux-apple-rs .lux-rs-modal-panel {
  position: relative; z-index: 1; width: min(760px, 96vw); max-height: 90vh; display: flex; flex-direction: column;
  background: #1c1c1f; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.9);
}
body.lux-apple-rs .lux-rs-modal-panel--sm { width: min(420px, 96vw); }
body.lux-apple-rs .lux-rs-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.lux-apple-rs .lux-rs-modal-head h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
body.lux-apple-rs .lux-rs-modal-head-actions { display: flex; align-items: center; gap: 0.5rem; }
body.lux-apple-rs .lux-rs-modal-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; border-radius: 980px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: var(--ap-text); font-size: 0.8rem; cursor: pointer;
}
body.lux-apple-rs .lux-rs-modal-close {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); color: var(--ap-text); cursor: pointer;
}
body.lux-apple-rs .lux-rs-modal-close:hover { background: rgba(255,255,255,0.10); }
body.lux-apple-rs .lux-rs-modal-body { padding: 1.25rem; overflow-y: auto; }
body.lux-apple-rs .lux-rs-modal-loading { text-align: center; color: var(--ap-tertiary); padding: 2rem 0; font-size: 1.4rem; }

/* ---- PIN form ---- */
body.lux-apple-rs .lux-rs-pin-field { margin-bottom: 0.9rem; }
body.lux-apple-rs .lux-rs-pin-field label { display: block; margin-bottom: 0.4rem; font-size: 0.8rem; color: var(--ap-secondary); }
body.lux-apple-rs .lux-rs-pin-field input {
  width: 100%; min-height: 2.85rem; padding: 0.65rem 0.95rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); color: var(--ap-text);
  font-size: 0.95rem; box-sizing: border-box;
}
body.lux-apple-rs .lux-rs-pin-field input:focus { outline: none; border-color: var(--ap-blue); box-shadow: 0 0 0 4px rgba(41,151,255,0.22); }
body.lux-apple-rs .lux-rs-pin-msg { font-size: 0.82rem; margin: 0.25rem 0 0.75rem; color: #ff8a80; }
body.lux-apple-rs .lux-rs-pin-msg.is-ok { color: #30d158; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  body.lux-apple-rs .lux-rs-portal-hero { flex-direction: column; align-items: stretch; }
  body.lux-apple-rs .lux-rs-portal-hero-actions { justify-content: flex-start; }
  body.lux-apple-rs .lux-rs-portal-stats { grid-template-columns: 1fr; }
}

/* ---- Portal fixes: override legacy light rules ---- */
body.lux-apple-rs .lux-rs-portal-pin-btn {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: var(--ap-text) !important;
}
body.lux-apple-rs .lux-rs-portal-pin-btn:hover { background: rgba(255,255,255,0.10) !important; }
/* Respect the hidden attribute on the bell count (0 unread must not show) */
body.lux-apple-rs .lux-rs-notif-bell-count[hidden] { display: none !important; }

/* ============================================================
   INVOICES — Apple Card / Wallet-style transaction rows
   ============================================================ */
/* Roomier section */
body.lux-apple-rs .lux-rs-portal-section:last-of-type { padding-bottom: clamp(1rem, 2vw, 1.35rem); }

/* Invoice grid → clean list of wide rows (1–2 cols) */
body.lux-apple-rs .lux-rs-portal-section .lux-rs-tile-grid:not(.lux-rs-tile-grid--devices) {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0.7rem;
}

/* Invoice card as a horizontal transaction row */
body.lux-apple-rs .lux-rs-tile--invoice {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "ico main amount chev";
  align-items: center;
  column-gap: 0.95rem;
  row-gap: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(40,40,45,0.7), rgba(24,24,27,0.78));
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, box-shadow 0.2s;
}
body.lux-apple-rs .lux-rs-tile--invoice:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 16px 38px -18px rgba(0,0,0,0.85);
}

/* Icon — rounded app-tile look */
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-ico {
  grid-area: ico;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(41,151,255,0.22), rgba(41,151,255,0.10));
  border: 1px solid rgba(41,151,255,0.28);
  color: #5bb0ff; font-size: 1.15rem;
}

/* Title + date stacked in the middle */
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-title {
  grid-area: main; align-self: end;
  font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
}
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-line {
  grid-area: main; align-self: start;
  margin-top: 0.15rem; font-size: 0.78rem; color: var(--ap-tertiary);
}
/* Amount — prominent, tabular */
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-amount {
  grid-area: amount; justify-self: end; align-self: center;
  font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  color: var(--ap-text); line-height: 1;
}
/* Status badge — moves under the amount, right aligned */
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-portal-pay {
  grid-area: amount; justify-self: end; align-self: center;
  margin-top: 3.1rem; /* sits just below the amount */
}
/* Chevron affordance */
body.lux-apple-rs .lux-rs-tile--invoice::after {
  content: "\203A"; grid-area: chev; align-self: center;
  font-size: 1.5rem; line-height: 1; color: var(--ap-tertiary);
  transition: transform 0.2s ease, color 0.2s ease; transform: translateX(0);
}
body.lux-apple-rs .lux-rs-tile--invoice:hover::after { color: var(--ap-secondary); transform: translateX(3px); }
[dir="rtl"] body.lux-apple-rs .lux-rs-tile--invoice::after { content: "\2039"; }
[dir="rtl"] body.lux-apple-rs .lux-rs-tile--invoice:hover::after { transform: translateX(-3px); }

/* Give the amount column room so badge under it aligns tidily */
body.lux-apple-rs .lux-rs-tile--invoice { min-height: 4.6rem; }

@media (max-width: 460px) {
  body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-amount { font-size: 1.25rem; }
}

/* Invoice row — corrected 2-row grid (title/date stacked, amount/badge stacked) */
body.lux-apple-rs .lux-rs-tile--invoice {
  grid-template-columns: auto 1fr auto auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "ico title amount chev"
    "ico date  badge  chev";
  column-gap: 0.95rem;
  row-gap: 0.15rem;
  min-height: 0;
}
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-ico { grid-area: ico; align-self: center; }
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-title { grid-area: title; align-self: end; }
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-line { grid-area: date; align-self: start; margin-top: 0; }
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-amount { grid-area: amount; justify-self: end; align-self: end; }
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-portal-pay { grid-area: badge; justify-self: end; align-self: start; margin-top: 0.15rem; }
body.lux-apple-rs .lux-rs-tile--invoice::after { grid-area: chev; }

/* Invoice number must stay bright & prominent */
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-title {
  color: var(--ap-text) !important;
  opacity: 1 !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  -webkit-text-fill-color: var(--ap-text) !important;
}

/* ============================================================
   FLAT & ELEGANT pass — monochrome Apple surfaces
   ============================================================ */
body.lux-apple-rs {
  --surf-1: #161617;
  --surf-2: #1d1d1f;
  --surf-3: #2c2c2e;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-strong: rgba(255, 255, 255, 0.14);
}

/* No purple/blue ambient wash */
body.lux-apple-rs::before {
  background: none !important;
  display: none !important;
}

/* Form sits inside dual shell — no second floating card chrome */
body.lux-apple-rs .lux-rs-form-panel,
body.lux-apple-rs .lux-login-form-panel {
  background: #161617 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-rs-form-panel::before,
body.lux-apple-rs .lux-login-form-panel::before { display: none !important; }

/* Badge — neutral glass */
body.lux-apple-rs .lux-login-version {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #a1a1a6 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Inputs — flat graphite (final pass, no blue) */
body.lux-apple-rs .lux-field-control,
body.lux-apple-rs .lux-field .lux-field-control {
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-field-control:focus-within {
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06) !important;
  background: #2c2c2e !important;
}
body.lux-apple-rs .lux-field-control input,
body.lux-apple-rs .lux-rs-pin-field input,
body.lux-apple-rs .lux-rs-form input,
body.lux-apple-rs input {
  background: #2c2c2e !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
  caret-color: #f5f5f7 !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-field-control input:focus,
body.lux-apple-rs .lux-rs-pin-field input:focus,
body.lux-apple-rs .lux-rs-form input:focus,
body.lux-apple-rs input:focus {
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: none !important;
  outline: none !important;
  color: #f5f5f7 !important;
  -webkit-text-fill-color: #f5f5f7 !important;
}
body.lux-apple-rs input:-webkit-autofill,
body.lux-apple-rs input:-webkit-autofill:hover,
body.lux-apple-rs input:-webkit-autofill:focus,
body.lux-apple-rs input:-webkit-autofill:active {
  -webkit-text-fill-color: #f5f5f7 !important;
  box-shadow: 0 0 0 1000px #2c2c2e inset !important;
  -webkit-box-shadow: 0 0 0 1000px #2c2c2e inset !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: background-color 99999s ease-in-out 0s !important;
}

/* Keep submit as single system blue (Apple CTA), nothing else blue */
body.lux-apple-rs .lux-submit {
  background: #2997ff !important;
  box-shadow: none !important;
}

/* Submit — single Apple system blue, no glow */
body.lux-apple-rs .lux-submit {
  background: #2997ff !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
body.lux-apple-rs .lux-submit:hover {
  background: #0077ed !important;
  transform: none !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-submit:active {
  transform: scale(0.99) !important;
  box-shadow: none !important;
}

/* Portal surfaces — flat */
body.lux-apple-rs .lux-rs-portal-hero,
body.lux-apple-rs .lux-rs-portal-section {
  background: var(--surf-1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--hair) !important;
  box-shadow: none !important;
}
body.lux-apple-rs .lux-rs-portal-stat {
  background: var(--surf-2) !important;
  border: 1px solid var(--hair) !important;
}
body.lux-apple-rs .lux-rs-tile,
body.lux-apple-rs .lux-rs-tile--invoice {
  background: var(--surf-2) !important;
  border: 1px solid var(--hair) !important;
  box-shadow: none !important;
}

/* Calmer hovers — border only, minimal lift */
body.lux-apple-rs .lux-rs-tile:hover,
body.lux-apple-rs .lux-rs-tile--invoice:hover {
  transform: none !important;
  border-color: var(--hair-strong) !important;
  background: var(--surf-3) !important;
  box-shadow: none !important;
}

/* Icons/dots — remove glows */
body.lux-apple-rs .lux-rs-h-dot { box-shadow: none !important; }
body.lux-apple-rs .lux-rs-tile--invoice .lux-rs-tile-ico {
  background: rgba(41,151,255,0.14) !important;
  border: 1px solid rgba(41,151,255,0.22) !important;
}

/* Modals — flatter */
body.lux-apple-rs .lux-rs-modal-panel {
  border: 1px solid var(--hair-strong) !important;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.7) !important;
}

/* Remove the redundant outer wrapper box in portal mode — sections float on the page */
body.lux-apple-rs.lux-rs-portal-mode .lux-rs-results,
body.lux-apple-rs .lux-rs-results--portal {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* ── Final size lock: single Apple form card ── */
@media (min-width: 901px) {
  body.lux-apple-rs .ldx-wrap {
    width: min(94%, 440px) !important;
    max-width: 440px !important;
  }
  body.lux-apple-rs .lux-rs-shell,
  body.lux-apple-rs .lux-login-shell {
    max-width: 400px !important;
    min-height: 0 !important;
    border-radius: 20px !important;
    display: block !important;
  }
  body.lux-apple-rs .lux-rs-visual,
  body.lux-apple-rs .lux-login-visual {
    display: none !important;
  }
  body.lux-apple-rs .lux-rs-form-panel,
  body.lux-apple-rs .lux-login-form-panel {
    padding: 1.75rem 1.55rem 1.65rem !important;
    background: #1d1d1f !important;
  }
  body.lux-apple-rs .lux-rs-check-hero {
    margin-bottom: 0.9rem !important;
    padding: 0.75rem 0.9rem !important;
  }
  body.lux-apple-rs .lux-submit {
    min-height: 2.65rem !important;
  }
}

/* Final mobile input neutrality (Safari blue wash) */
@media (max-width: 900px) {
  body.lux-apple-rs .lux-field-control,
  body.lux-apple-rs .lux-field-control:focus-within,
  body.lux-apple-rs input,
  body.lux-apple-rs input:focus,
  body.lux-apple-rs input:hover {
    background-color: #2c2c2e !important;
    background-image: none !important;
    color: #f5f5f7 !important;
    -webkit-text-fill-color: #f5f5f7 !important;
    accent-color: #f5f5f7;
  }
  body.lux-apple-rs input:focus {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
    outline: none !important;
  }
}

body.lux-apple-rs.lux-device-ext .lux-login-shell,
body.lux-apple-rs.lux-device-match .lux-login-shell,
body.lux-apple-rs .lux-rs-shell {
  min-height: 0 !important;
  height: auto !important;
}

/* ── Desktop: single centered form card ── */
@media (min-width: 901px) {
  body.lux-apple-rs .ldx-wrap {
    width: min(94%, 440px) !important;
    max-width: 440px !important;
    padding-top: calc(env(safe-area-inset-top, 0px) + 5.75rem) !important;
    padding-bottom: 1.25rem !important;
  }
  body.lux-apple-rs .lux-rs-shell,
  body.lux-apple-rs .lux-login-shell {
    max-width: 400px !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 20px !important;
  }
  body.lux-apple-rs .lux-rs-visual,
  body.lux-apple-rs .lux-login-visual,
  body.lux-apple-rs .lux-slider-container,
  body.lux-apple-rs .lux-login-slide,
  body.lux-apple-rs .lux-visual-brand,
  body.lux-apple-rs .lux-visual-footer {
    display: none !important;
  }
  body.lux-apple-rs .lux-rs-form-panel,
  body.lux-apple-rs .lux-login-form-panel {
    padding: 1.75rem 1.55rem 1.65rem !important;
    justify-content: flex-start !important;
  }
  body.lux-apple-rs .lux-login-form-intro {
    margin-bottom: 1rem !important;
  }
  body.lux-apple-rs .lux-login-form-intro h1 {
    font-size: 1.45rem !important;
  }
  body.lux-apple-rs .lux-login-form-intro p {
    font-size: 0.88rem !important;
  }
  body.lux-apple-rs .lux-rs-check-hero {
    margin-bottom: 0.85rem !important;
    padding: 0.7rem 0.8rem !important;
  }
  body.lux-apple-rs .lux-field {
    margin-bottom: 0.8rem !important;
  }
  body.lux-apple-rs .lux-field-control input,
  body.lux-apple-rs .lux-rs-form input {
    min-height: 2.55rem !important;
  }
  body.lux-apple-rs .lux-submit {
    min-height: 2.6rem !important;
    margin-top: 0.25rem !important;
  }
  body.lux-apple-rs .lux-rs-field-hint {
    font-size: 0.7rem !important;
  }
}

/* device-external height killers */
body.lux-apple-rs.lux-device-ext .lux-login-shell,
body.lux-apple-rs.lux-device-match .lux-login-shell,
body.lux-apple-rs .lux-rs-shell {
  min-height: 0 !important;
  height: auto !important;
}
body.lux-apple-rs.lux-device-ext .lux-login-visual.lux-rs-visual,
body.lux-apple-rs.lux-device-match .lux-login-visual.lux-rs-visual {
  min-height: 0 !important;
}
body.lux-apple-rs.lux-device-ext .lux-slider-container,
body.lux-apple-rs .lux-slider-container {
  min-height: 0 !important;
}

/* force single column always */
body.lux-apple-rs .lux-rs-shell,
body.lux-apple-rs .lux-login-shell,
body.lux-apple-rs.lux-device-ext .lux-login-shell,
body.lux-apple-rs.lux-device-match .lux-login-shell {
  display: block !important;
  max-width: 400px !important;
  width: 100% !important;
  min-height: 0 !important;
}
body.lux-apple-rs .lux-rs-visual,
body.lux-apple-rs .lux-login-visual,
body.lux-apple-rs.lux-device-ext .lux-login-visual.lux-rs-visual,
body.lux-apple-rs.lux-device-match .lux-login-visual.lux-rs-visual {
  display: none !important;
}
body.lux-apple-rs .ldx-wrap {
  width: min(94%, 440px) !important;
  max-width: 440px !important;
}
