@charset "utf-8";

/* ==========================================================================
   BoostRoyal theme for the webmail app
   --------------------------------------------------------------------------
   Drop-in accent theme. Follows the same mechanism already used in app.css
   for [data-accent="riot"], [data-accent="gold"] and [data-accent="neutral"].

   Loaded after app.css by login.html and inbox.html; active when the brand's
   accent is "boostroyal" (see BRANDS in project/settings.py).

   Everything below is scoped to [data-accent="boostroyal"], so the existing
   neutral / blue / riot / gold deployments are completely unaffected.

   Typography is unchanged (Geist + Geist Mono).
   The only asset is the BoostRoyal crest, inlined as a data URI below, so no
   extra files need to be hosted. Swap it for a URL if you prefer.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] {
  /* Surfaces — zinc-950 base, the BoostRoyal site background */
  --bg: #09090b;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #1f1f23;
  --hover: #1a1a1e;

  /* Hairlines */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);

  /* Type */
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.36);

  /* Brand orange */
  --accent: #ff9155;
  --accent-hover: #ffb585;
  --accent-soft: rgba(255, 145, 85, 0.12);
  --accent-border: rgba(255, 145, 85, 0.32);

  /* Status */
  --success: #34d399;
  --warn: #ffc94a;
  --danger: #f87171;
  --riot: #eb0029;

  /* Shape — BoostRoyal is noticeably rounder than the stock theme */
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 100px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);

  /* Theme-local helpers */
  --br-gradient: linear-gradient(135deg, #ff9155 0%, #ff6b4a 100%);
  --br-panel: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(15, 15, 18, 0.98));
  --br-grid: rgba(255, 255, 255, 0.025);
  --br-pill: 999px;
  --br-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --br-on-accent: #1a0d04; /* label colour on orange — matches the live site */
  --br-btn-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -9px 11px -9px rgba(124, 45, 18, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 5px 12px -6px rgba(0, 0, 0, 0.45),
    0 10px 24px -14px rgba(255, 145, 85, 0.28);
  --br-btn-shadow-hover:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -9px 11px -9px rgba(124, 45, 18, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 8px 18px -8px rgba(0, 0, 0, 0.5),
    0 16px 34px -16px rgba(255, 145, 85, 0.42);
}


/* --------------------------------------------------------------------------
   2. Global chrome
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] ::selection {
  background: rgba(255, 145, 85, 0.24);
  color: #ffd9c2;
}

/* The stock thumb rules ship with empty background-color declarations, so the
   scrollbar renders as the UA default. Restored here in the BoostRoyal style. */
[data-accent="boostroyal"] .scroll {
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

[data-accent="boostroyal"] .scroll::-webkit-scrollbar {
  width: 10px;
}

[data-accent="boostroyal"] .scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
  border: 3px solid transparent;
  border-radius: 100px;
  background-clip: padding-box;
}

[data-accent="boostroyal"] .scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
  background-clip: padding-box;
}


/* --------------------------------------------------------------------------
   3. Brand — crest + wordmark
   --------------------------------------------------------------------------
   The brand's inline <svg> partial is hidden and the BoostRoyal crest is
   painted as a background image. The wordmark text is collapsed with font-size:0 and
   replaced through ::after, which also covers the nested .light span.
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .logomark {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg%20width%3D%2239%22%20height%3D%2239%22%20viewBox%3D%220%200%2039%2039%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%20%3Ccircle%20cx%3D%2219.7967%22%20cy%3D%2219.0201%22%20r%3D%2213.5858%22%20fill%3D%22%230B0B0E%22%2F%3E%20%3Cpath%20d%3D%22M19.4083%200C15.5697%200%2011.8173%201.13828%208.62563%203.27089C5.43395%205.40349%202.94634%208.43465%201.47738%2011.9811C0.00840928%2015.5275%20-0.375939%2019.4298%200.372933%2023.1946C1.12181%2026.9595%202.97027%2030.4177%205.68456%2033.132C8.39886%2035.8463%2011.8571%2037.6948%2015.6219%2038.4436C19.3868%2039.1925%2023.2891%2038.8082%2026.8355%2037.3392C30.3819%2035.8702%2033.4131%2033.3826%2035.5457%2030.1909C37.6783%2026.9993%2038.8166%2023.2469%2038.8166%2019.4083C38.8166%2014.2609%2036.7718%209.32431%2033.132%205.68455C29.4923%202.0448%2024.5557%200%2019.4083%200V0ZM8.75702%2026.6515L8.30675%2014.8357L13.974%2019.7266L21.9391%2026.6515H8.75702ZM24.2837%2026.6515L14.7503%2018.3835L19.4083%2010.6746L29.0814%2026.6515H24.2837ZM30.1294%2025.4248L25.8441%2018.2981L30.5021%2014.8357L30.1294%2025.4248Z%22%20fill%3D%22url(%23brg)%22%2F%3E%20%3Cdefs%3E%20%3ClinearGradient%20id%3D%22brg%22%20x1%3D%220%22%20y1%3D%2219.4083%22%20x2%3D%2238.8166%22%20y2%3D%2219.4083%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%20%3Cstop%20stop-color%3D%22%23FF7E45%22%2F%3E%20%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23FF6550%22%2F%3E%20%3C%2FlinearGradient%3E%20%3C%2Fdefs%3E%20%3C%2Fsvg%3E") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(255, 145, 85, 0.35));
}

[data-accent="boostroyal"] .logomark svg {
  display: none;
}

[data-accent="boostroyal"] .wordmark {
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
}

[data-accent="boostroyal"] .wordmark::after {
  content: "BoostRoyal";
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

[data-accent="boostroyal"] .login-brandline,
[data-accent="boostroyal"] .topbar-left {
  gap: 11px;
}


/* --------------------------------------------------------------------------
   4. Login — 01 Login
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .login-shell {
  background:
    radial-gradient(ellipse 60% 45% at 15% 12%, rgba(255, 145, 85, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 20%, rgba(255, 107, 74, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 145, 85, 0.09) 0%, transparent 70%),
    var(--bg);
}

[data-accent="boostroyal"] .login-art-grid {
  background-size: 68px 68px;
  opacity: 0.55;
}

[data-accent="boostroyal"] .login-art-glow {
  width: 560px;
  height: 560px;
  left: -160px;
  background: radial-gradient(circle, rgba(255, 145, 85, 0.22), transparent 70%);
  filter: blur(30px);
}

[data-accent="boostroyal"] .login-tagline h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

[data-accent="boostroyal"] .login-tagline .eyebrow {
  color: var(--accent);
}

/* The stock 420px measure orphans the last word of each sentence. */
[data-accent="boostroyal"] .login-tagline p {
  max-width: 460px;
  text-wrap: pretty;
}

[data-accent="boostroyal"] .login-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}


/* --------------------------------------------------------------------------
   5. Form controls
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .field label {
  font-weight: 600;
  color: var(--text-muted);
}

[data-accent="boostroyal"] .field input,
[data-accent="boostroyal"] .list-search input {
  border-radius: 14px;
  background: rgba(24, 24, 27, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-accent="boostroyal"] .field input {
  padding: 13px 16px;
}

[data-accent="boostroyal"] .field input:hover,
[data-accent="boostroyal"] .list-search input:hover {
  background: rgba(24, 24, 27, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-accent="boostroyal"] .field input:focus,
[data-accent="boostroyal"] .list-search input:focus {
  background: rgba(24, 24, 27, 0.9);
  border-color: rgba(255, 145, 85, 0.5);
  box-shadow: 0 0 20px -5px rgba(255, 145, 85, 0.35);
}

[data-accent="boostroyal"] .login-error {
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.07);
  border-color: rgba(248, 113, 113, 0.26);
}

[data-accent="boostroyal"] .login-help {
  border-radius: 16px;
  background: var(--br-panel);
}

[data-accent="boostroyal"] .login-help .badge {
  border-radius: var(--br-pill);
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid var(--accent-border);
}


/* --------------------------------------------------------------------------
   6. Buttons — BoostRoyal 3D primary
   -------------------------------------------------------------------------- */

/* app.css declares `.reader-body-inner a { color: var(--accent) }`, which is
   more specific than its own `.reader-cta` rule — so an <a class="reader-cta">
   inside a message body renders its label in the accent colour on an accent
   background, i.e. invisible. The link rule in section 11 excludes .reader-cta
   to undo that. */
[data-accent="boostroyal"] .btn-primary,
[data-accent="boostroyal"] .reader-cta {
  border-radius: var(--br-pill);
  background: var(--accent);
  color: var(--br-on-accent);
  font-weight: 700;
  box-shadow: var(--br-btn-shadow);
  transition:
    transform 0.22s var(--br-ease),
    box-shadow 0.22s var(--br-ease),
    background-color 0.3s ease;
}

[data-accent="boostroyal"] .btn-primary {
  padding: 15px 18px;
}

[data-accent="boostroyal"] .btn-primary:hover:not(:disabled),
[data-accent="boostroyal"] .reader-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--br-btn-shadow-hover);
}

[data-accent="boostroyal"] .btn-primary:active:not(:disabled),
[data-accent="boostroyal"] .reader-cta:active {
  transform: translateY(0);
  box-shadow: var(--br-btn-shadow);
}

[data-accent="boostroyal"] .btn-primary .spinner {
  border-color: var(--br-on-accent) rgba(26, 13, 4, 0.25) rgba(26, 13, 4, 0.25);
}

[data-accent="boostroyal"] .reader-cta.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

[data-accent="boostroyal"] .reader-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}


/* --------------------------------------------------------------------------
   7. App shell — 02 Inbox
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .app {
  background:
    radial-gradient(ellipse 50% 40% at 78% -5%, rgba(255, 145, 85, 0.1), transparent 60%),
    radial-gradient(ellipse 45% 40% at 8% 105%, rgba(255, 107, 74, 0.07), transparent 60%),
    var(--bg);
}

[data-accent="boostroyal"] .topbar {
  background: var(--br-panel);
}

[data-accent="boostroyal"] .topbar-signout,
[data-accent="boostroyal"] .reader-action,
[data-accent="boostroyal"] .code-card .copy-btn {
  border-radius: var(--br-pill);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-accent="boostroyal"] .topbar-signout:hover,
[data-accent="boostroyal"] .reader-action:hover,
[data-accent="boostroyal"] .code-card .copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}


/* --------------------------------------------------------------------------
   8. Navigation rail
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .rail,
[data-accent="boostroyal"] .list-pane {
  background: var(--br-panel);
}

[data-accent="boostroyal"] .rail-item,
[data-accent="boostroyal"] .alias-row {
  border-radius: 12px;
}

[data-accent="boostroyal"] .rail-item.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

[data-accent="boostroyal"] .rail-item .count,
[data-accent="boostroyal"] .alias-row .count {
  background: rgba(255, 255, 255, 0.06);
}

[data-accent="boostroyal"] .rail-item.active .count {
  background: rgba(255, 145, 85, 0.2);
  color: var(--accent-hover);
}

[data-accent="boostroyal"] .alias-tag {
  border-radius: var(--br-pill);
  padding: 2px 7px;
}

[data-accent="boostroyal"] .rail-foot .avatar {
  background: var(--br-gradient);
  box-shadow: 0 2px 10px rgba(255, 145, 85, 0.3);
}

[data-accent="boostroyal"] .rail-foot button {
  border-radius: var(--br-pill);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}


/* --------------------------------------------------------------------------
   9. Message list
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .list-head h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

[data-accent="boostroyal"] .refresh-pill {
  border-radius: var(--br-pill);
  font-weight: 600;
  box-shadow: 0 0 14px -4px rgba(255, 145, 85, 0.4);
}

[data-accent="boostroyal"] .refresh-pill:hover {
  background: rgba(255, 145, 85, 0.2);
}

[data-accent="boostroyal"] .refresh-pill-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

[data-accent="boostroyal"] .list-search kbd {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.07);
}

[data-accent="boostroyal"] .msg-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-accent="boostroyal"] .msg-row.selected {
  background: linear-gradient(
    90deg,
    rgba(255, 145, 85, 0.13) 0%,
    rgba(255, 145, 85, 0.05) 100%
  );
}

[data-accent="boostroyal"] .msg-row.selected::before {
  width: 3px;
  background: var(--br-gradient);
}

[data-accent="boostroyal"] .msg-from {
  font-weight: 700;
}

[data-accent="boostroyal"] .msg-alias-chip,
[data-accent="boostroyal"] .msg-tag {
  border-radius: var(--br-pill);
  padding: 3px 8px;
  font-weight: 600;
}

[data-accent="boostroyal"] .msg-alias-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.07);
}

[data-accent="boostroyal"] .msg-tag.verification {
  background: rgba(255, 145, 85, 0.14);
  color: #ffb585;
}

[data-accent="boostroyal"] .msg-tag.security {
  background: rgba(248, 113, 113, 0.14);
  color: #fda4a4;
}

[data-accent="boostroyal"] .msg-tag.reset {
  background: rgba(255, 201, 74, 0.14);
  color: #ffd98a;
}

[data-accent="boostroyal"] .msg-tag.newsletter {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

[data-accent="boostroyal"] .msg-tag.support {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}


/* --------------------------------------------------------------------------
   10. Reader shell
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .reader,
[data-accent="boostroyal"] .reader-pane {
  background: transparent;
}

[data-accent="boostroyal"] .reader-subject {
  font-weight: 700;
  letter-spacing: -0.025em;
}

[data-accent="boostroyal"] .reader-meta .avatar {
  background: linear-gradient(135deg, rgba(255, 145, 85, 0.2), rgba(255, 107, 74, 0.08));
  border: 1px solid rgba(255, 145, 85, 0.25);
  color: #ffb585;
  font-weight: 700;
}

[data-accent="boostroyal"] .reader-from .name {
  font-weight: 700;
}

[data-accent="boostroyal"] .reader-from .name .verified {
  color: var(--accent);
}

[data-accent="boostroyal"] .reader-action.starred {
  color: var(--warn);
  border-color: rgba(255, 201, 74, 0.32);
  background: rgba(255, 201, 74, 0.08);
}

[data-accent="boostroyal"] .reader-empty .glyph {
  border-radius: 18px;
  border-style: dashed;
  border-color: rgba(255, 145, 85, 0.25);
  color: rgba(255, 145, 85, 0.5);
  background: rgba(255, 145, 85, 0.04);
}


/* --------------------------------------------------------------------------
   11. Message body
   --------------------------------------------------------------------------
   Sender HTML renders inside a sandboxed iframe, so its internals are out of
   reach. The frame is instead presented as a light "paper" card sitting on the
   dark surface, which is what keeps the reader looking intentional.
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .reader-html-frame {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

/* Sender HTML is usually laid out for 600–700px; give the frame more room than
   the 640px reading measure used for plain-text mail. */
[data-accent="boostroyal"] .reader-body-inner:has(> .reader-html-frame) {
  max-width: 820px;
}

[data-accent="boostroyal"] .reader-body-text {
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--br-panel);
  border: 1px solid var(--border);
}

[data-accent="boostroyal"] .reader-body-inner a:not(.reader-cta) {
  color: var(--accent);
}

[data-accent="boostroyal"] .reader-body-inner a:not(.reader-cta):hover {
  color: var(--accent-hover);
}

[data-accent="boostroyal"] .reader-signature {
  border-top-color: var(--border);
}


/* --------------------------------------------------------------------------
   12. Rendered mail components
   -------------------------------------------------------------------------- */

[data-accent="boostroyal"] .code-card {
  border-radius: 20px;
  padding: 26px 24px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 145, 85, 0.12), transparent 70%),
    var(--br-panel);
  border-color: rgba(255, 145, 85, 0.18);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

[data-accent="boostroyal"] .code-card .code-label {
  color: var(--accent);
}

[data-accent="boostroyal"] .code-card .code {
  font-weight: 600;
}

[data-accent="boostroyal"] .code-card .code span {
  background: rgba(255, 145, 85, 0.08);
  border: 1px solid rgba(255, 145, 85, 0.26);
  border-radius: 10px;
  color: #ffffff;
}

[data-accent="boostroyal"] .code-card .copy-btn.copied {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

[data-accent="boostroyal"] .alert-card {
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.22);
}

[data-accent="boostroyal"] .details-grid {
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--br-panel);
}

[data-accent="boostroyal"] .details-grid dt {
  color: var(--accent);
  opacity: 0.75;
}

[data-accent="boostroyal"] .news-hero {
  border-radius: 20px;
  border-color: rgba(255, 145, 85, 0.18);
  background:
    radial-gradient(600px 200px at 40% 50%, rgba(255, 145, 85, 0.3), transparent 60%),
    linear-gradient(135deg, #1b0e07, #170a12);
}


/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  [data-accent="boostroyal"] .login-card h2 {
    font-size: 24px;
  }

  [data-accent="boostroyal"] .btn-primary {
    padding: 14px 16px;
  }

  [data-accent="boostroyal"] .reader-body-inner:has(> .reader-html-frame) {
    max-width: none;
  }
}

@media (max-width: 420px) {
  [data-accent="boostroyal"] .wordmark {
    display: none;
  }
}
