:root {
  --ruto-red: #f04438;
  --ruto-red-bright: #ff5a4f;
  --ruto-red-deep: #b92d27;
  --ruto-bg: #101116;
  --ruto-panel: #17181d;
  --ruto-panel-soft: #14151a;
  --ruto-field: #0d0e12;
  --ruto-line: rgba(255, 255, 255, 0.105);
  --ruto-line-strong: rgba(255, 255, 255, 0.16);
  --ruto-text: #f5f5f7;
  --ruto-muted: #a5a6ae;
  --ruto-muted-soft: #747680;
  --ruto-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  --ruto-red-shadow: 0 12px 34px rgba(185, 45, 39, 0.2);
}

html {
  color-scheme: dark;
  background: var(--ruto-bg);
}

body {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(112deg, transparent 42%, rgba(255, 45, 66, 0.025) 68%, rgba(132, 0, 23, 0.1) 100%),
    linear-gradient(145deg, #101116 0%, #0d0e12 58%, #150f13 100%) !important;
  color: var(--ruto-text);
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30%);
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* Paint the motif on the actual app shell so its legacy background cannot hide it. */
#root > div:first-child {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(112deg, transparent 42%, rgba(255, 45, 66, 0.025) 68%, rgba(132, 0, 23, 0.1) 100%),
    linear-gradient(145deg, #101116 0%, #0d0e12 58%, #150f13 100%) !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
[class*="text-xl"],
[class*="text-2xl"] {
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--ruto-red);
  color: #fff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 68, 56, 0.68) rgba(255, 255, 255, 0.025);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: rgba(240, 68, 56, 0.68);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #f04438;
  background-clip: padding-box;
}

/* Replace the legacy orange utilities throughout the built app. */
[class~="text-[#cc5500]"],
[class*="text-[#e45e00]"],
[class*="text-[#70b7ff]"] {
  color: var(--ruto-red-bright) !important;
}

[class~="bg-[#cc5500]"] {
  background-color: var(--ruto-red) !important;
}

button[class~="bg-[#cc5500]"],
a[class~="bg-[#cc5500]"] {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(135deg, #f34c40, var(--ruto-red-deep)) !important;
  border-radius: 10px !important;
  box-shadow: var(--ruto-red-shadow), inset 0 1px rgba(255, 255, 255, 0.24) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

button[class~="bg-[#cc5500]"]:hover,
a[class~="bg-[#cc5500]"]:hover,
[class*="hover:bg-[#e45e00]"]:hover {
  background: linear-gradient(135deg, #ff5a4f, #c9362e) !important;
  box-shadow: 0 17px 42px rgba(185, 45, 39, 0.28), inset 0 1px rgba(255, 255, 255, 0.26) !important;
  filter: saturate(1.04);
  transform: translateY(-1px);
}

button[class~="bg-[#cc5500]"]:active,
a[class~="bg-[#cc5500]"]:active {
  transform: translateY(0) scale(0.99);
}

[class*="border-[#cc5500]"],
[class*="focus:border-[#cc5500]"]:focus {
  border-color: rgba(255, 45, 66, 0.72) !important;
}

[class*="accent-[#cc5500]"] {
  accent-color: var(--ruto-red) !important;
}

[class*="shadow-[0_0_0_1px_rgba(204,85,0"],
[class*="shadow-[0_0_32px_rgba(204,85,0"],
[class*="shadow-[0_10px_35px_rgba(204,85,0"] {
  box-shadow: 0 0 0 1px rgba(255, 45, 66, 0.18) !important;
}

/* Graphite surfaces from the marketing site. */
[class*="min-h-screen"][class*="bg-[#121212]"] {
  background: transparent !important;
}

[class~="bg-[#121212]"] {
  background-color: var(--ruto-field) !important;
}

[class~="bg-[#151515]"] {
  background-color: #0f1014 !important;
}

[class~="bg-[#171717]"] {
  background-color: rgba(17, 18, 22, 0.94) !important;
}

[class~="bg-[#1c1c1c]"] {
  background-color: var(--ruto-panel) !important;
}

[class~="bg-[#242424]"],
[class~="bg-[#292929]"],
[class~="bg-[#2a2a2a]"] {
  background-color: #1a1b20 !important;
}

[class*="border-[rgb(63,63,63)]"] {
  border-color: var(--ruto-line) !important;
}

[class~="text-gray-200"],
[class~="text-gray-100"] {
  color: var(--ruto-text) !important;
}

[class~="text-gray-300"] {
  color: #d1d2d7 !important;
}

[class~="text-gray-400"] {
  color: var(--ruto-muted) !important;
}

[class~="text-gray-500"],
[class~="text-gray-600"] {
  color: var(--ruto-muted-soft) !important;
}

/* Cards, panels and the login shell. */
section[class*="border"][class*="rounded-xl"],
[class~="bg-[#1c1c1c]"][class*="border"],
[class~="bg-[#171717]"][class*="border"] {
  border-color: var(--ruto-line) !important;
  background: #14151a !important;
  box-shadow: none !important;
}

section[class*="max-w-md"] {
  border-radius: 13px !important;
  box-shadow: var(--ruto-shadow) !important;
}

section[class*="max-w-md"] img,
header img {
  border-radius: 50% !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none;
}

section[class*="max-w-md"] [class~="text-[#cc5500]"],
header [class~="text-[#cc5500]"] {
  display: inline-flex;
  align-items: baseline;
  color: transparent !important;
  background: none !important;
  font-size: 0 !important;
  line-height: 1;
}

section[class*="max-w-md"] [class~="text-[#cc5500]"]::before,
header [class~="text-[#cc5500]"]::before {
  content: "Ruto";
  color: #f8f8fa;
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

section[class*="max-w-md"] [class~="text-[#cc5500]"]::after,
header [class~="text-[#cc5500]"]::after {
  content: "VPN";
  color: var(--ruto-red);
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

[class*="rounded-xl"][class*="border"],
[class*="rounded-lg"][class*="border"] {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Inputs and selectable controls. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  border-color: var(--ruto-line) !important;
  border-radius: 10px !important;
  background: var(--ruto-field) !important;
  color: var(--ruto-text) !important;
  caret-color: var(--ruto-red);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

input::placeholder,
textarea::placeholder {
  color: #686a74 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 45, 66, 0.7) !important;
  background: #101116 !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 66, 0.1) !important;
  outline: none !important;
}

/* Segmented controls and secondary buttons. */
[class*="grid-cols-2"][class~="bg-[#151515]"] {
  border-color: var(--ruto-line) !important;
  border-radius: 12px !important;
  background: rgba(10, 11, 14, 0.76) !important;
  padding: 4px !important;
}

button[class*="border-[rgb(63,63,63)]"],
a[class*="border-[rgb(63,63,63)]"] {
  border-color: var(--ruto-line) !important;
  background-color: rgba(255, 255, 255, 0.018);
}

button[class*="border-[rgb(63,63,63)]"]:hover,
a[class*="border-[rgb(63,63,63)]"]:hover {
  border-color: rgba(255, 45, 66, 0.34) !important;
  background-color: rgba(255, 45, 66, 0.045) !important;
  color: #fff !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ruto-red-bright) !important;
  outline-offset: 3px;
}

/* Dialogs, menus and support surfaces. */
[class*="fixed"][class*="inset-0"][class*="bg-black"] {
  background-color: rgba(4, 5, 7, 0.78) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[class*="absolute"][class*="z-"][class*="border"][class*="bg-[#1c1c1c]"],
[class*="fixed"][class*="z-"] [class*="bg-[#1c1c1c]"] {
  border-color: var(--ruto-line-strong) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52) !important;
}

/* Subscription states mirror the restrained service badges on the main site. */
[class*="rounded-full"][class*="shadow-lg"][class*="inline-flex"] {
  min-height: 28px;
  padding: 0 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: none !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em;
  color: #d1d2d7 !important;
}

[class*="bg-emerald-950/70"],
[class*="bg-green-900/20"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: #d1d2d7 !important;
}

[class*="bg-amber-950/70"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: #d1d2d7 !important;
}

[class*="bg-red-950/70"],
[class*="bg-red-900/20"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: #d1d2d7 !important;
}

[class*="bg-emerald-400"][class*="shadow"],
[class*="bg-emerald-400"][class*="rounded-full"] {
  width: 5px !important;
  height: 5px !important;
  background: #55c99d !important;
  box-shadow: none !important;
  transform: none;
}

[class*="bg-amber-400"][class*="shadow"],
[class*="bg-amber-400"][class*="rounded-full"] {
  width: 5px !important;
  height: 5px !important;
  background: #d8a43f !important;
  box-shadow: none !important;
  transform: none;
}

[class*="bg-red-400"][class*="shadow"],
[class*="bg-red-400"][class*="rounded-full"] {
  width: 5px !important;
  height: 5px !important;
  background: #c9666e !important;
  box-shadow: none !important;
  transform: none;
}

/* Selected subscription: one precise brand edge instead of a red glow. */
[class*="border-[#cc5500]"] {
  border-color: rgba(255, 45, 66, 0.38) !important;
  background: #17171c !important;
  box-shadow: none !important;
}

/* The subscription detail is one surface; inner metrics use spacing and dividers. */
section:has(svg circle) div[class~="bg-[#121212]"][class*="border"][class*="rounded-lg"] {
  border-color: rgba(255, 255, 255, 0.065) !important;
  background: rgba(255, 255, 255, 0.012) !important;
  box-shadow: none !important;
}

section:has(svg circle) div[class*="rounded-lg"][class*="border"]:has(svg circle) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

section:has(svg circle) div[class*="rounded-lg"]:has(svg circle) + div[class*="rounded-lg"]:has(svg circle) {
  border-left: 1px solid rgba(255, 255, 255, 0.085) !important;
}

/* Key and renewal are prominent secondary actions; purchase stays primary. */
section:has(svg circle) button[class~="bg-[#cc5500]"],
section:has(svg circle) a[class~="bg-[#cc5500]"] {
  border: 1px solid rgba(255, 90, 79, 0.68) !important;
  background: linear-gradient(180deg, rgba(240, 68, 56, 0.18), rgba(185, 45, 39, 0.09)) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  font-weight: 700 !important;
}

section:has(svg circle) button[class~="bg-[#cc5500]"]:hover,
section:has(svg circle) a[class~="bg-[#cc5500]"]:hover {
  border-color: rgba(255, 103, 93, 0.88) !important;
  background: linear-gradient(180deg, rgba(240, 68, 56, 0.27), rgba(185, 45, 39, 0.14)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
}

section:has(svg circle) button[class~="bg-[#cc5500]"]:active,
section:has(svg circle) a[class~="bg-[#cc5500]"]:active {
  transform: translateY(0);
  background: rgba(240, 68, 56, 0.2) !important;
}

section:has(svg circle) svg [stroke="#cc5500"],
section:has(svg circle) svg circle[stroke="#cc5500"] {
  stroke: #c65c54 !important;
  opacity: 0.82;
}

/* The dashboard header follows the site's 72px, line-based header rhythm. */
header {
  position: relative;
  z-index: 50;
  overflow: visible !important;
}

header [class~="relative"][class*="sm:w-auto"] {
  z-index: 60;
}

header [class~="absolute"][class~="z-20"] {
  z-index: 70 !important;
}

[class~="bg-[#171717]"][class*="rounded-xl"][class*="px-4"][class*="py-3"] {
  padding: 10px 16px !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, rgba(13, 14, 17, 0.88), rgba(8, 9, 11, 0.68)) !important;
}

button[class~="bg-[#cc5500]"][class*="px-6"][class*="py-4"],
a[class~="bg-[#cc5500]"][class*="px-6"][class*="py-4"] {
  min-height: 52px;
  padding: 0 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Brand progress indicators and inline icons. */
svg [stroke="#cc5500"],
svg circle[stroke="#cc5500"] {
  stroke: var(--ruto-red) !important;
}

svg [fill="#cc5500"] {
  fill: var(--ruto-red) !important;
}

/* Support remains visible without becoming the strongest element on screen. */
[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"] {
  border: 1px solid rgba(255, 45, 66, 0.5) !important;
  background: #14151a !important;
  color: var(--ruto-red-bright) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3) !important;
}

[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"]:hover {
  background: rgba(255, 45, 66, 0.1) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34) !important;
}

.instruction-html {
  color: var(--ruto-muted);
}

.instruction-html h1,
.instruction-html h2,
.instruction-html h3,
.instruction-html h4 {
  color: var(--ruto-text);
  font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: -0.025em;
}

.instruction-html a {
  color: var(--ruto-red-bright) !important;
}

.instruction-html code {
  border: 1px solid var(--ruto-line);
  border-radius: 7px;
  background: var(--ruto-field) !important;
  color: #f2f2f4;
}

/* Compact branded mobile navigation. */
.mobile-bottom-nav {
  border-top: 1px solid var(--ruto-line) !important;
  background: rgba(12, 13, 16, 0.92) !important;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.28) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.mobile-bottom-nav button {
  color: #8f919a;
}

.mobile-bottom-nav button[class~="bg-[#cc5500]"] {
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(255, 18, 45, 0.24) !important;
}

@keyframes ruto-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  #root > [class*="min-h-screen"] > section,
  #root > [class*="min-h-screen"] > div > section {
    animation: ruto-panel-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (max-width: 639px) {
  body {
    background:
      linear-gradient(145deg, transparent 34%, rgba(255, 45, 66, 0.022) 66%, rgba(135, 0, 23, 0.09) 100%),
      linear-gradient(160deg, #111217 0%, #0e0f13 62%, #150f13 100%) !important;
  }

  body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 24%);
  }

  #root > div:first-child {
    background:
      linear-gradient(145deg, transparent 34%, rgba(255, 45, 66, 0.022) 66%, rgba(135, 0, 23, 0.09) 100%),
      linear-gradient(160deg, #111217 0%, #0e0f13 62%, #150f13 100%) !important;
  }

  section[class*="max-w-md"] {
    border-radius: 13px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
  }
}

/* Premium visual refinement — presentation only, no layout or behavior changes */
:root {
  --ruto-canvas: #0b0d11;
  --ruto-surface: #15171c;
  --ruto-surface-raised: #181b21;
  --ruto-surface-inset: #101217;
  --ruto-silver-line: rgba(207, 211, 219, 0.14);
  --ruto-silver-line-hover: rgba(225, 228, 234, 0.27);
}

body,
#root > div:first-child {
  background:
    linear-gradient(108deg, transparent 48%, rgba(240, 68, 56, 0.018) 78%, rgba(185, 45, 39, 0.045) 100%),
    radial-gradient(ellipse 52% 24% at 18% 0%, rgba(207, 211, 219, 0.038), transparent 72%),
    linear-gradient(155deg, #0b0d11 0%, #101217 52%, #0d0f13 100%) !important;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 28%);
}

/* Three clearly readable surface levels. */
section[class*="border"][class*="rounded-xl"],
[class~="bg-[#1c1c1c]"][class*="border"],
[class~="bg-[#171717]"][class*="border"] {
  border-color: var(--ruto-silver-line) !important;
  border-radius: 14px !important;
  background: var(--ruto-surface) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16) !important;
}

[class~="bg-[#121212]"] { background-color: var(--ruto-surface-inset) !important; }
[class~="bg-[#151515]"] { background-color: #121419 !important; }
[class~="bg-[#171717]"] { background-color: #14161b !important; }
[class~="bg-[#1c1c1c]"] { background-color: var(--ruto-surface) !important; }
[class~="bg-[#242424]"],
[class~="bg-[#292929]"],
[class~="bg-[#2a2a2a]"] { background-color: var(--ruto-surface-raised) !important; }

[class*="rounded-lg"][class*="border"] { border-radius: 10px !important; }
[class*="rounded-md"][class*="border"] { border-radius: 8px !important; }

/* Calm type hierarchy: headings lead, helper copy recedes. */
h1, h2, h3, h4, h5, h6 {
  color: #f4f5f7;
  font-weight: 700 !important;
  letter-spacing: -0.035em;
}

[class~="font-bold"]:not(button):not(a) { font-weight: 650 !important; }
[class~="text-gray-300"] { color: #d5d7dc !important; }
[class~="text-gray-400"] { color: #9fa2ab !important; }
[class~="text-gray-500"],
[class~="text-gray-600"] { color: #747882 !important; }

/* Glassy but restrained top bar. */
[class~="bg-[#171717]"][class*="rounded-xl"][class*="px-4"][class*="py-3"] {
  border-color: rgba(207, 211, 219, 0.15) !important;
  background: rgba(15, 17, 21, 0.78) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.17) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* Neutral secondary controls; red is kept for primary conversion actions. */
button[class*="border-[rgb(63,63,63)]"],
a[class*="border-[rgb(63,63,63)]"] {
  border-color: rgba(207, 211, 219, 0.16) !important;
  background: rgba(207, 211, 219, 0.018) !important;
  color: #d9dce2 !important;
  box-shadow: none !important;
}

button[class*="border-[rgb(63,63,63)]"]:hover,
a[class*="border-[rgb(63,63,63)]"]:hover {
  border-color: var(--ruto-silver-line-hover) !important;
  background: rgba(207, 211, 219, 0.055) !important;
  transform: translateY(-1px);
}

/* Compact status labels: neutral frame, semantic dot only. */
[class*="rounded-full"][class*="shadow-lg"][class*="inline-flex"] {
  min-height: 27px;
  padding: 0 9px !important;
  border-color: rgba(207, 211, 219, 0.16) !important;
  border-radius: 7px !important;
  background: rgba(207, 211, 219, 0.025) !important;
  color: #d3d6dc !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

[class*="bg-emerald-400"][class*="rounded-full"] { background: #55b990 !important; }
[class*="bg-amber-400"][class*="rounded-full"] { background: #c99a42 !important; }
[class*="bg-red-400"][class*="rounded-full"] { background: #b85d55 !important; }

/* Selected subscription receives one brand edge, not a tinted card. */
[class*="border-[#cc5500]"] {
  border-color: rgba(240, 68, 56, 0.52) !important;
  background: var(--ruto-surface-raised) !important;
  box-shadow: inset 2px 0 0 rgba(240, 68, 56, 0.82) !important;
}

/* Lighter progress rings aligned with the rest of the interface. */
section:has(svg circle) svg circle {
  stroke-width: 7px !important;
}

section:has(svg circle) svg circle[stroke="#cc5500"],
section:has(svg circle) svg [stroke="#cc5500"] {
  stroke: #c9ccd3 !important;
  filter: none !important;
  opacity: 0.78;
}

section:has(svg circle) div[class*="rounded-lg"]:has(svg circle):first-of-type svg circle[stroke="#cc5500"] {
  stroke: #d75a50 !important;
  opacity: 0.86;
}

/* Subtle motion, never a glowing floating-card effect. */
[class*="rounded-xl"][class*="border"],
[class*="rounded-lg"][class*="border"] {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease !important;
}

[class*="rounded-lg"][class*="border"]:hover {
  border-color: rgba(207, 211, 219, 0.22) !important;
}

/* Scrollbars stay out of the composition until the user interacts. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 211, 219, 0.16) transparent;
}

*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 99px;
  background: rgba(207, 211, 219, 0.15);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(240, 68, 56, 0.55); }

/* Support is neutral at rest and branded only on interaction. */
[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"] {
  border-color: rgba(207, 211, 219, 0.24) !important;
  background: rgba(21, 23, 28, 0.92) !important;
  color: #dfe1e6 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"]:hover {
  border-color: rgba(240, 68, 56, 0.58) !important;
  background: rgba(240, 68, 56, 0.08) !important;
  color: var(--ruto-red-bright) !important;
  transform: translateY(-1px);
}

@media (max-width: 639px) {
  body,
  #root > div:first-child {
    background:
      linear-gradient(145deg, transparent 45%, rgba(240, 68, 56, 0.025) 100%),
      linear-gradient(160deg, #0c0e12 0%, #111318 60%, #0d0f13 100%) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Graphite + silver + red — aligned with the marketing site */
:root {
  --ruto-bg: #0c0d10;
  --ruto-panel: #15171c;
  --ruto-panel-soft: #13151a;
  --ruto-field: #0f1115;
  --ruto-line: rgba(200, 203, 210, 0.15);
  --ruto-line-strong: rgba(200, 203, 210, 0.24);
  --ruto-text: #f5f5f7;
  --ruto-muted: #a5a8b1;
  --ruto-muted-soft: #777b86;
  --ruto-silver: #c8cbd2;
  --ruto-silver-bright: #eef0f4;
}

body,
#root > div:first-child {
  background:
    radial-gradient(ellipse 44% 18% at 88% 8%, rgba(200, 203, 210, 0.05), transparent 72%),
    radial-gradient(ellipse 38% 16% at 8% 68%, rgba(122, 128, 142, 0.04), transparent 72%),
    linear-gradient(145deg, #0c0d10 0%, #111318 48%, #0d0f13 100%) !important;
}

body::before { background: linear-gradient(180deg, rgba(238, 240, 244, 0.016), transparent 30%); }

[class~="bg-[#171717]"][class*="rounded-xl"][class*="px-4"][class*="py-3"] {
  border-color: rgba(200, 203, 210, 0.15) !important;
  background: linear-gradient(180deg, rgba(20, 22, 27, 0.92), rgba(12, 14, 18, 0.78)) !important;
}

section[class*="border"][class*="rounded-xl"],
[class~="bg-[#1c1c1c]"][class*="border"],
[class~="bg-[#171717]"][class*="border"] {
  border-color: rgba(200, 203, 210, 0.15) !important;
  background: #15171c !important;
}

[class~="bg-[#121212]"] { background-color: #0f1115 !important; }
[class~="bg-[#151515]"] { background-color: #111318 !important; }
[class~="bg-[#171717]"] { background-color: #13151a !important; }
[class~="bg-[#1c1c1c]"] { background-color: #15171c !important; }
[class~="bg-[#242424]"],
[class~="bg-[#292929]"],
[class~="bg-[#2a2a2a]"] { background-color: #1a1d23 !important; }

button[class*="border-[rgb(63,63,63)]"],
a[class*="border-[rgb(63,63,63)]"] {
  border-color: rgba(200, 203, 210, 0.17) !important;
  background-color: rgba(200, 203, 210, 0.025) !important;
  color: #d9dce2 !important;
}

button[class*="border-[rgb(63,63,63)]"]:hover,
a[class*="border-[rgb(63,63,63)]"]:hover {
  border-color: rgba(238, 240, 244, 0.38) !important;
  background-color: rgba(200, 203, 210, 0.075) !important;
}

/* Quiet service states: semantic dot + neutral silver frame. */
[class*="rounded-full"][class*="shadow-lg"][class*="inline-flex"],
[class*="bg-emerald-950/70"],
[class*="bg-green-900/20"],
[class*="bg-amber-950/70"],
[class*="bg-red-950/70"],
[class*="bg-red-900/20"] {
  border-color: rgba(200, 203, 210, 0.18) !important;
  background: rgba(200, 203, 210, 0.035) !important;
  color: #d9dce2 !important;
}

/* Selected subscription keeps one precise brand-red edge. */
[class*="border-[#cc5500]"] {
  border-color: rgba(240, 68, 56, 0.48) !important;
  background: linear-gradient(110deg, rgba(240, 68, 56, 0.035), #15171c 42%) !important;
}

section:has(svg circle) div[class~="bg-[#121212]"][class*="border"][class*="rounded-lg"] {
  border-color: rgba(200, 203, 210, 0.1) !important;
  background: rgba(200, 203, 210, 0.018) !important;
}

section:has(svg circle) div[class*="rounded-lg"]:has(svg circle) + div[class*="rounded-lg"]:has(svg circle) {
  border-left-color: rgba(200, 203, 210, 0.12) !important;
}

section:has(svg circle) svg [stroke="#cc5500"],
section:has(svg circle) svg circle[stroke="#cc5500"] {
  stroke: #c8cbd2 !important;
  opacity: 0.9;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select {
  border-color: rgba(200, 203, 210, 0.15) !important;
  background: #0f1115 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(200, 203, 210, 0.46) !important;
  background: #111318 !important;
  box-shadow: 0 0 0 3px rgba(200, 203, 210, 0.07) !important;
}

[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"] {
  border-color: rgba(200, 203, 210, 0.25) !important;
  background: #15171c !important;
  color: #eef0f4 !important;
}

[class*="fixed"][class*="bottom-6"][class*="right-6"][class~="bg-[#cc5500]"]:hover {
  border-color: rgba(255, 45, 66, 0.58) !important;
  background: rgba(255, 45, 66, 0.09) !important;
  color: var(--ruto-red-bright) !important;
}

.mobile-bottom-nav {
  border-color: rgba(200, 203, 210, 0.14) !important;
  background: rgba(12, 13, 16, 0.94) !important;
}

@media (max-width: 639px) {
  body,
  #root > div:first-child {
    background:
      radial-gradient(ellipse 70% 20% at 90% 8%, rgba(200, 203, 210, 0.04), transparent 72%),
      linear-gradient(160deg, #0d0f13 0%, #121419 58%, #0c0e12 100%) !important;
  }
}
