/* ==========================================================================
   The Right Choice CRM — Unified Design System
   File:    rc-design-system.css
   Owner:   Elad Daniel (The Right Choice HVAC & Plumbing)
   Brand:   Orange #fb8e28 + Teal #00364a (flat — no gradients)
   Scope:   Master tokens, reset, components, HVAC compositions, layout, utilities
   Themes:  Dark default + html.theme-light
   Prefix:  --rc-* (canonical) with backward-compat --gt-*/--tr-*/--trc-*/--pq-* aliases
   ==========================================================================
   LAYER MAP
     1.  Tokens — colors, typography, spacing, radii, shadows, motion, z-index
     2.  Reset + base typography + focus + scrollbar
     3.  Components (.rc-btn, .rc-card, .rc-badge, etc.)
     4.  HVAC compositions (.rc-trust-strip, .rc-emergency-banner, etc.)
     5.  Page layout primitives (.rc-page, .rc-hero, .rc-section, .rc-grid-*)
     6.  Utilities (atomic helpers + print)
   ========================================================================== */


/* ==========================================================================
   LAYER 1 · TOKENS
   ========================================================================== */
:root,
html:not(.theme-light) {
    /* ------------ Brand color scales (brand orange #fb8e28) ------------ */
    --rc-orange-50:  #fff4e6;
    --rc-orange-100: #ffe4c2;
    --rc-orange-200: #ffd093;
    --rc-orange-300: #fdb866;
    --rc-orange-400: #fca148;
    --rc-orange-500: #fb8e28;   /* primary brand orange */
    --rc-orange-600: #e07a14;
    --rc-orange-700: #b8620e;
    --rc-orange-800: #8a4a0a;
    --rc-orange-900: #5a3007;

    --rc-teal-50:  #e6f1f4;
    --rc-teal-100: #c2dde3;
    --rc-teal-200: #95c1cc;
    --rc-teal-300: #5fa1b1;
    --rc-teal-400: #2f7d92;
    --rc-teal-500: #0d5a72;
    --rc-teal-600: #034a60;
    --rc-teal-700: #003e54;
    --rc-teal-800: #00364a;     /* signature deep teal */
    --rc-teal-900: #00253a;

    /* ------------ Neutral scale (dark-first) ------------ */
    --rc-neutral-0:   #ffffff;
    --rc-neutral-50:  #f7f8fa;
    --rc-neutral-100: #ecedf2;
    --rc-neutral-200: #d6d9e2;
    --rc-neutral-300: #a8adbd;
    --rc-neutral-400: #7d8395;
    --rc-neutral-500: #5b6175;
    --rc-neutral-600: #404659;
    --rc-neutral-700: #2a2f40;
    --rc-neutral-800: #1c2032;
    --rc-neutral-850: #161927;
    --rc-neutral-900: #11131e;
    --rc-neutral-950: #0a0c14;

    /* ------------ Semantic colors ------------ */
    --rc-success-500: #1ec27a;
    --rc-success-600: #169d62;
    --rc-success-bg:  rgba(30, 194, 122, 0.12);
    --rc-warning-500: #f5a524;
    --rc-warning-600: #d68b13;
    --rc-warning-bg:  rgba(245, 165, 36, 0.14);
    --rc-danger-500:  #ef4444;
    --rc-danger-600:  #d62b2b;
    --rc-danger-bg:   rgba(239, 68, 68, 0.13);
    --rc-info-500:    #38bdf8;
    --rc-info-600:    #0ea5e9;
    --rc-info-bg:     rgba(56, 189, 248, 0.13);

    /* ------------ Surfaces (dark default) ------------ */
    --rc-bg-body:        var(--rc-neutral-950);
    --rc-bg-surface:     var(--rc-neutral-900);
    --rc-bg-card:        var(--rc-neutral-850);
    --rc-bg-card-hover:  var(--rc-neutral-800);
    --rc-bg-elevated:    var(--rc-neutral-800);
    --rc-bg-input:       var(--rc-neutral-900);
    --rc-bg-overlay:     rgba(10, 12, 20, 0.72);
    --rc-bg-glass:       rgba(28, 32, 50, 0.55);

    /* ------------ Text ------------ */
    --rc-text:           #f1f3f8;
    --rc-text-secondary: #c8ccdb;
    --rc-text-muted:     #8a90a3;
    --rc-text-disabled:  #5b6175;
    --rc-text-inverse:   #11131e;
    --rc-text-on-brand:  #ffffff;

    /* ------------ Borders ------------ */
    --rc-border:           #2a2f40;
    --rc-border-strong:    #404659;
    --rc-border-subtle:    rgba(255, 255, 255, 0.06);
    --rc-border-focus:     var(--rc-orange-500);

    /* ------------ Brand semantic ------------ */
    --rc-primary:        var(--rc-orange-500);
    --rc-primary-hover:  var(--rc-orange-600);
    --rc-primary-active: var(--rc-orange-700);
    --rc-secondary:      var(--rc-teal-800);
    --rc-secondary-hover:var(--rc-teal-700);
    --rc-accent:         var(--rc-orange-400);

    /* Brand "gradients" — kept as variable names for back-compat but
       deliberately flat per brand rule: no gradients on production UI. */
    --rc-grad-orange: var(--rc-orange-500);
    --rc-grad-teal:   var(--rc-teal-800);
    --rc-grad-hero:   var(--rc-teal-800);
    --rc-grad-fire:   var(--rc-orange-500);
    --rc-grad-cool:   var(--rc-info-500);

    /* ------------ Typography ------------ */
    --rc-font-sans:    "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
    --rc-font-display: "Inter Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
    --rc-font-mono:    "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

    --rc-fs-11: 11px;
    --rc-fs-12: 12px;
    --rc-fs-14: 14px;
    --rc-fs-15: 15px;
    --rc-fs-16: 16px;
    --rc-fs-18: 18px;
    --rc-fs-20: 20px;
    --rc-fs-24: 24px;
    --rc-fs-30: 30px;
    --rc-fs-36: 36px;
    --rc-fs-48: 48px;
    --rc-fs-60: 60px;
    --rc-fs-72: 72px;

    --rc-lh-tight:   1.15;
    --rc-lh-snug:    1.3;
    --rc-lh-normal:  1.5;
    --rc-lh-relaxed: 1.7;

    --rc-ls-tight:   -0.02em;
    --rc-ls-normal:  0;
    --rc-ls-wide:    0.04em;
    --rc-ls-wider:   0.08em;

    --rc-fw-regular:  400;
    --rc-fw-medium:   500;
    --rc-fw-semibold: 600;
    --rc-fw-bold:     700;
    --rc-fw-black:    800;

    /* ------------ Spacing scale (px-anchored, predictable) ------------ */
    --rc-s-0:  0px;
    --rc-s-1:  2px;
    --rc-s-2:  4px;
    --rc-s-3:  6px;
    --rc-s-4:  8px;
    --rc-s-5:  12px;
    --rc-s-6:  16px;
    --rc-s-7:  20px;
    --rc-s-8:  24px;
    --rc-s-9:  32px;
    --rc-s-10: 40px;
    --rc-s-11: 48px;
    --rc-s-12: 64px;
    --rc-s-13: 80px;
    --rc-s-14: 96px;

    /* ------------ Border radius ------------ */
    --rc-r-none: 0px;
    --rc-r-sm:   4px;
    --rc-r-md:   8px;
    --rc-r-lg:   12px;
    --rc-r-xl:   16px;
    --rc-r-2xl:  24px;
    --rc-r-3xl:  32px;
    --rc-r-full: 9999px;

    /* ------------ Shadows ------------ */
    --rc-shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.18);
    --rc-shadow-md:  0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.22);
    --rc-shadow-lg:  0 10px 24px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.25);
    --rc-shadow-xl:  0 20px 40px rgba(0, 0, 0, 0.5), 0 8px 12px rgba(0, 0, 0, 0.3);
    --rc-shadow-2xl: 0 32px 64px rgba(0, 0, 0, 0.55);
    --rc-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.04);

    --rc-glow-orange: 0 0 0 4px rgba(251, 142, 40, 0.25), 0 8px 24px rgba(251, 142, 40, 0.35);
    --rc-glow-teal:   0 0 0 4px rgba(0, 54, 74, 0.35), 0 8px 24px rgba(0, 54, 74, 0.45);
    --rc-glow-danger: 0 0 0 4px rgba(239, 68, 68, 0.25), 0 8px 24px rgba(239, 68, 68, 0.35);
    --rc-glow-success:0 0 0 4px rgba(30, 194, 122, 0.22);

    /* Focus ring (matches WCAG focus-visible expectations) */
    --rc-ring:        0 0 0 3px rgba(251, 142, 40, 0.45);
    --rc-ring-danger: 0 0 0 3px rgba(239, 68, 68, 0.45);

    /* ------------ Motion ------------ */
    --rc-tx-fast:   120ms;
    --rc-tx-normal: 220ms;
    --rc-tx-slow:   400ms;
    --rc-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
    --rc-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --rc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --rc-ease-quint:  cubic-bezier(0.83, 0, 0.17, 1);

    /* ------------ Z-index scale ------------ */
    --rc-z-base:     1;
    --rc-z-dropdown: 1000;
    --rc-z-sticky:   1100;
    --rc-z-fixed:    1200;
    --rc-z-modal:    1300;
    --rc-z-popover:  1400;
    --rc-z-toast:    1500;
    --rc-z-tooltip:  1600;
    --rc-z-max:      9999;

    /* ------------ Layout ------------ */
    --rc-container-sm: 640px;
    --rc-container-md: 768px;
    --rc-container-lg: 1024px;
    --rc-container-xl: 1280px;
    --rc-container-2xl: 1536px;
    --rc-sidebar-w:   240px;
    --rc-sidebar-w-collapsed: 64px;
    --rc-rail-w:      220px;
    --rc-header-h:    64px;
    --rc-bottom-nav-h:60px;

    color-scheme: dark;
}


/* Light theme overrides */
html.theme-light {
    --rc-bg-body:        #f5f6fb;
    --rc-bg-surface:     #ffffff;
    --rc-bg-card:        #ffffff;
    --rc-bg-card-hover:  #f7f8fc;
    --rc-bg-elevated:    #ffffff;
    --rc-bg-input:       #ffffff;
    --rc-bg-overlay:     rgba(20, 22, 40, 0.45);
    --rc-bg-glass:       rgba(255, 255, 255, 0.7);

    --rc-text:           #1c2032;
    --rc-text-secondary: #404659;
    --rc-text-muted:     #6a7080;
    --rc-text-disabled:  #a8adbd;
    --rc-text-inverse:   #ffffff;
    --rc-text-on-brand:  #ffffff;

    --rc-border:           #e3e6ee;
    --rc-border-strong:    #c8ccdb;
    --rc-border-subtle:    rgba(0, 0, 0, 0.04);

    --rc-shadow-sm:  0 1px 2px rgba(15, 21, 40, 0.08);
    --rc-shadow-md:  0 4px 12px rgba(15, 21, 40, 0.08), 0 2px 4px rgba(15, 21, 40, 0.04);
    --rc-shadow-lg:  0 12px 32px rgba(15, 21, 40, 0.10), 0 4px 8px rgba(15, 21, 40, 0.05);
    --rc-shadow-xl:  0 20px 48px rgba(15, 21, 40, 0.13);
    --rc-shadow-2xl: 0 32px 80px rgba(15, 21, 40, 0.18);
    --rc-shadow-inset: inset 0 1px 0 rgba(0, 0, 0, 0.02);

    color-scheme: light;
}


/* ==========================================================================
   Backward-compat aliases (legacy prefixes → canonical --rc-*)
   Twenty+ aliases so existing pages keep working while migrating.
   ========================================================================== */
:root,
html:not(.theme-light),
html.theme-light {
    /* Garage Tec legacy --gt-* */
    --gt-primary:       var(--rc-orange-500);
    --gt-primary-hover: var(--rc-orange-600);
    --gt-bg-body:       var(--rc-bg-body);
    --gt-bg-card:       var(--rc-bg-card);
    --gt-bg-card-hover: var(--rc-bg-card-hover);
    --gt-text:          var(--rc-text);
    --gt-text-muted:    var(--rc-text-muted);
    --gt-border:        var(--rc-border);
    --gt-success:       var(--rc-success-500);
    --gt-warning:       var(--rc-warning-500);
    --gt-danger:        var(--rc-danger-500);
    --gt-info:          var(--rc-info-500);

    /* Tech Right --tr-* */
    --tr-primary:    var(--rc-orange-500);
    --tr-secondary:  var(--rc-teal-800);
    --tr-bg:         var(--rc-bg-body);
    --tr-card:       var(--rc-bg-card);
    --tr-text:       var(--rc-text);
    --tr-muted:      var(--rc-text-muted);
    --tr-border:     var(--rc-border);

    /* The Right Choice early --trc-* */
    --trc-orange:    var(--rc-orange-500);
    --trc-teal:      var(--rc-teal-800);
    --trc-bg:        var(--rc-bg-body);
    --trc-card:      var(--rc-bg-card);
    --trc-text:      var(--rc-text);
    --trc-border:    var(--rc-border);

    /* Pricing Quote --pq-* */
    --pq-accent:     var(--rc-orange-500);
    --pq-bg:         var(--rc-bg-card);
    --pq-text:       var(--rc-text);
    --pq-border:     var(--rc-border);
}


/* ==========================================================================
   LAYER 2 · RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    tab-size: 4;
}

body {
    margin: 0;
    background: var(--rc-bg-body);
    color: var(--rc-text);
    font-family: var(--rc-font-sans);
    font-size: var(--rc-fs-15);
    line-height: var(--rc-lh-normal);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rc-font-display);
    font-weight: var(--rc-fw-bold);
    line-height: var(--rc-lh-tight);
    letter-spacing: var(--rc-ls-tight);
    color: var(--rc-text);
    margin: 0 0 var(--rc-s-5) 0;
}
h1 { font-size: var(--rc-fs-36); }
h2 { font-size: var(--rc-fs-30); }
h3 { font-size: var(--rc-fs-24); }
h4 { font-size: var(--rc-fs-20); }
h5 { font-size: var(--rc-fs-18); }
h6 { font-size: var(--rc-fs-16); letter-spacing: var(--rc-ls-wide); text-transform: uppercase; }

p { margin: 0 0 var(--rc-s-5) 0; }
small { font-size: var(--rc-fs-12); color: var(--rc-text-muted); }
strong, b { font-weight: var(--rc-fw-semibold); }

a {
    color: var(--rc-orange-500);
    text-decoration: none;
    transition: color var(--rc-tx-fast) var(--rc-ease-out);
}
a:hover { color: var(--rc-orange-400); }

code, pre, kbd, samp { font-family: var(--rc-font-mono); font-size: 0.92em; }
code {
    background: var(--rc-bg-elevated);
    padding: 2px 6px;
    border-radius: var(--rc-r-sm);
    border: 1px solid var(--rc-border-subtle);
}
pre {
    background: var(--rc-bg-elevated);
    padding: var(--rc-s-6);
    border-radius: var(--rc-r-md);
    overflow-x: auto;
    border: 1px solid var(--rc-border-subtle);
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

button { font: inherit; cursor: pointer; }
input, select, textarea, button { font: inherit; color: inherit; }

hr {
    border: 0;
    border-top: 1px solid var(--rc-border);
    margin: var(--rc-s-7) 0;
}

/* Focus-visible orange ring */
:focus { outline: none; }
:focus-visible {
    outline: none;
    box-shadow: var(--rc-ring);
    border-radius: var(--rc-r-sm);
    transition: box-shadow var(--rc-tx-fast) var(--rc-ease-out);
}

/* iOS auto-zoom prevention */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Custom scrollbar — thin, brand accent */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--rc-border-strong) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--rc-border-strong);
    border-radius: var(--rc-r-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--rc-orange-500); background-clip: padding-box; }

::selection {
    background: rgba(251, 142, 40, 0.35);
    color: var(--rc-text);
}

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


/* ==========================================================================
   LAYER 3 · COMPONENTS
   ========================================================================== */

/* ----- Buttons ---------------------------------------------------------- */
.rc-btn {
    --_btn-bg:         var(--rc-bg-card);
    --_btn-fg:         var(--rc-text);
    --_btn-bd:         var(--rc-border);
    --_btn-bg-hover:   var(--rc-bg-card-hover);
    --_btn-shadow:     var(--rc-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--rc-s-4);
    padding: 10px 18px;
    min-height: 40px;
    font-family: inherit;
    font-size: var(--rc-fs-14);
    font-weight: var(--rc-fw-semibold);
    line-height: 1;
    color: var(--_btn-fg);
    background: var(--_btn-bg);
    border: 1px solid var(--_btn-bd);
    border-radius: var(--rc-r-md);
    box-shadow: var(--_btn-shadow);
    cursor: pointer;
    text-decoration: none;
    transition:
        transform var(--rc-tx-fast) var(--rc-ease-out),
        background-color var(--rc-tx-fast) var(--rc-ease-out),
        border-color var(--rc-tx-fast) var(--rc-ease-out),
        box-shadow var(--rc-tx-fast) var(--rc-ease-out),
        opacity var(--rc-tx-fast) var(--rc-ease-out);
    user-select: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.rc-btn:hover { background: var(--_btn-bg-hover); }
.rc-btn:active { transform: translateY(1px); }
.rc-btn:disabled,
.rc-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.rc-btn .fas { font-size: 0.95em; }

/* Variants */
.rc-btn-primary {
    --_btn-bg:       var(--rc-orange-500);
    --_btn-fg:       #ffffff;
    --_btn-bd:       transparent;
    --_btn-bg-hover: var(--rc-orange-600);
    --_btn-shadow:   var(--rc-shadow-md);
    background-image: var(--rc-grad-orange);
}
.rc-btn-primary:hover { box-shadow: var(--rc-glow-orange); }

.rc-btn-secondary {
    --_btn-bg:       var(--rc-teal-800);
    --_btn-fg:       #ffffff;
    --_btn-bd:       transparent;
    --_btn-bg-hover: var(--rc-teal-700);
    --_btn-shadow:   var(--rc-shadow-md);
    background-image: var(--rc-grad-teal);
}
.rc-btn-secondary:hover { box-shadow: var(--rc-glow-teal); }

.rc-btn-ghost {
    --_btn-bg:       transparent;
    --_btn-fg:       var(--rc-text);
    --_btn-bd:       transparent;
    --_btn-bg-hover: var(--rc-bg-card-hover);
    --_btn-shadow:   none;
}

.rc-btn-danger {
    --_btn-bg:       var(--rc-danger-500);
    --_btn-fg:       #ffffff;
    --_btn-bd:       transparent;
    --_btn-bg-hover: var(--rc-danger-600);
    --_btn-shadow:   var(--rc-shadow-md);
}
.rc-btn-danger:hover { box-shadow: var(--rc-glow-danger); }

.rc-btn-outline-orange {
    --_btn-bg:       transparent;
    --_btn-fg:       var(--rc-orange-500);
    --_btn-bd:       var(--rc-orange-500);
    --_btn-bg-hover: rgba(251, 142, 40, 0.1);
    --_btn-shadow:   none;
}
.rc-btn-outline-teal {
    --_btn-bg:       transparent;
    --_btn-fg:       var(--rc-teal-300);
    --_btn-bd:       var(--rc-teal-700);
    --_btn-bg-hover: rgba(0, 54, 74, 0.18);
    --_btn-shadow:   none;
}
html.theme-light .rc-btn-outline-teal {
    --_btn-fg: var(--rc-teal-800);
    --_btn-bd: var(--rc-teal-800);
}

/* Sizes */
.rc-btn-sm  { padding: 6px 12px;  min-height: 32px; font-size: var(--rc-fs-12); }
.rc-btn-md  { padding: 10px 18px; min-height: 40px; font-size: var(--rc-fs-14); }
.rc-btn-lg  { padding: 14px 24px; min-height: 48px; font-size: var(--rc-fs-16); }
.rc-btn-xl  { padding: 18px 30px; min-height: 56px; font-size: var(--rc-fs-18); }
.rc-btn-block { display: flex; width: 100%; }

/* Icon-only */
.rc-btn-icon { padding: 0; width: 40px; min-width: 40px; }
.rc-btn-icon.rc-btn-sm { width: 32px; min-width: 32px; }
.rc-btn-icon.rc-btn-lg { width: 48px; min-width: 48px; }

/* Loading */
.rc-btn[data-loading="true"] {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}
.rc-btn[data-loading="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    color: var(--_btn-fg);
    animation: rc-spin 0.7s linear infinite;
}
@keyframes rc-spin { to { transform: rotate(360deg); } }


/* ----- Cards ----------------------------------------------------------- */
.rc-card {
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-lg);
    box-shadow: var(--rc-shadow-sm), var(--rc-shadow-inset);
    padding: var(--rc-s-7);
    transition:
        transform var(--rc-tx-normal) var(--rc-ease-out),
        box-shadow var(--rc-tx-normal) var(--rc-ease-out),
        border-color var(--rc-tx-normal) var(--rc-ease-out);
}
.rc-card-raised  { box-shadow: var(--rc-shadow-md), var(--rc-shadow-inset); }
.rc-card-glass {
    background: var(--rc-bg-glass);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--rc-border-subtle);
}
.rc-card-outline {
    background: transparent;
    box-shadow: none;
    border: 1px dashed var(--rc-border-strong);
}
.rc-card.is-interactive { cursor: pointer; }
.rc-card.is-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--rc-shadow-lg);
    border-color: var(--rc-orange-500);
}
.rc-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--rc-s-5);
    margin: calc(-1 * var(--rc-s-7)) calc(-1 * var(--rc-s-7)) var(--rc-s-6);
    padding: var(--rc-s-6) var(--rc-s-7);
    border-bottom: 1px solid var(--rc-border);
}
.rc-card-title {
    font-size: var(--rc-fs-18);
    font-weight: var(--rc-fw-semibold);
    color: var(--rc-text);
    margin: 0;
}
.rc-card-subtitle {
    font-size: var(--rc-fs-14);
    color: var(--rc-text-muted);
    margin: 2px 0 0;
}
.rc-card-body { color: var(--rc-text-secondary); }
.rc-card-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: var(--rc-s-4);
    margin: var(--rc-s-6) calc(-1 * var(--rc-s-7)) calc(-1 * var(--rc-s-7));
    padding: var(--rc-s-6) var(--rc-s-7);
    border-top: 1px solid var(--rc-border);
}


/* ----- Badges & pills -------------------------------------------------- */
.rc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: var(--rc-fs-12);
    font-weight: var(--rc-fw-semibold);
    line-height: 1.4;
    letter-spacing: var(--rc-ls-wide);
    border-radius: var(--rc-r-sm);
    background: var(--rc-bg-elevated);
    color: var(--rc-text);
    border: 1px solid var(--rc-border-subtle);
    text-transform: uppercase;
    white-space: nowrap;
}
.rc-badge-orange  { background: var(--rc-orange-500);  color: #fff; border-color: transparent; }
.rc-badge-teal    { background: var(--rc-teal-800);    color: #fff; border-color: transparent; }
.rc-badge-success { background: var(--rc-success-500); color: #fff; border-color: transparent; }
.rc-badge-warning { background: var(--rc-warning-500); color: #1c2032; border-color: transparent; }
.rc-badge-danger  { background: var(--rc-danger-500);  color: #fff; border-color: transparent; }
.rc-badge-info    { background: var(--rc-info-500);    color: #fff; border-color: transparent; }
.rc-badge-neutral { background: var(--rc-neutral-600); color: #fff; border-color: transparent; }

/* Soft variants */
.rc-badge-soft-orange  { background: rgba(251, 142, 40, 0.15); color: var(--rc-orange-400);  border-color: rgba(251, 142, 40, 0.35); }
.rc-badge-soft-teal    { background: rgba(0, 54, 74, 0.30);     color: var(--rc-teal-300);    border-color: rgba(13, 90, 114, 0.45); }
.rc-badge-soft-success { background: var(--rc-success-bg);      color: var(--rc-success-500); border-color: rgba(30, 194, 122, 0.35); }
.rc-badge-soft-warning { background: var(--rc-warning-bg);      color: var(--rc-warning-500); border-color: rgba(245, 165, 36, 0.35); }
.rc-badge-soft-danger  { background: var(--rc-danger-bg);       color: var(--rc-danger-500);  border-color: rgba(239, 68, 68, 0.35); }
.rc-badge-soft-info    { background: var(--rc-info-bg);         color: var(--rc-info-500);    border-color: rgba(56, 189, 248, 0.35); }

.rc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: var(--rc-fs-12);
    font-weight: var(--rc-fw-semibold);
    line-height: 1.4;
    border-radius: var(--rc-r-full);
    background: var(--rc-bg-elevated);
    color: var(--rc-text);
    border: 1px solid var(--rc-border);
}
.rc-pill-status { padding-left: 10px; }
.rc-pill-status::before {
    content: "";
    width: 8px; height: 8px;
    background: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
    animation: rc-pulse 2s var(--rc-ease-in-out) infinite;
}
@keyframes rc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}
.rc-pill-online   { color: var(--rc-success-500); }
.rc-pill-busy     { color: var(--rc-warning-500); }
.rc-pill-offline  { color: var(--rc-text-muted); }
.rc-pill-emergency{ color: var(--rc-danger-500); }


/* ----- Chips ---------------------------------------------------------- */
.rc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    font-size: var(--rc-fs-12);
    font-weight: var(--rc-fw-medium);
    line-height: 1.4;
    border-radius: var(--rc-r-full);
    background: transparent;
    color: var(--rc-text-secondary);
    border: 1px solid var(--rc-border);
    transition: all var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-chip:hover { border-color: var(--rc-orange-500); color: var(--rc-text); }
.rc-chip-filled {
    background: var(--rc-bg-elevated);
    border-color: var(--rc-border-subtle);
}
.rc-chip-active {
    background: var(--rc-orange-500);
    color: #fff;
    border-color: transparent;
}
.rc-chip-x {
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; padding: 0; margin-left: 2px; margin-right: -4px;
    background: transparent;
    color: inherit;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--rc-tx-fast) var(--rc-ease-out);
    font-size: 12px; line-height: 1;
}
.rc-chip-x:hover { background: rgba(255, 255, 255, 0.15); }


/* ----- Forms -------------------------------------------------------- */
.rc-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--rc-s-3);
    margin-bottom: var(--rc-s-6);
}
.rc-label {
    font-size: var(--rc-fs-14);
    font-weight: var(--rc-fw-semibold);
    color: var(--rc-text);
    line-height: var(--rc-lh-snug);
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.rc-label-required::after {
    content: "*";
    color: var(--rc-danger-500);
    font-size: 1.1em;
}
.rc-helper { font-size: var(--rc-fs-12); color: var(--rc-text-muted); line-height: 1.5; }
.rc-error  { font-size: var(--rc-fs-12); color: var(--rc-danger-500); display: flex; align-items: center; gap: 6px; }
.rc-error::before { content: "\f071"; font-family: "Font Awesome 6 Free"; font-weight: 900; }

.rc-input,
.rc-select,
.rc-textarea {
    width: 100%;
    padding: 10px 14px;
    min-height: 42px;
    font-family: inherit;
    font-size: var(--rc-fs-15);
    color: var(--rc-text);
    background: var(--rc-bg-input);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    transition:
        border-color var(--rc-tx-fast) var(--rc-ease-out),
        box-shadow var(--rc-tx-fast) var(--rc-ease-out),
        background-color var(--rc-tx-fast) var(--rc-ease-out);
    -webkit-appearance: none;
    appearance: none;
}
.rc-input::placeholder,
.rc-textarea::placeholder { color: var(--rc-text-muted); }

.rc-input:hover,
.rc-select:hover,
.rc-textarea:hover { border-color: var(--rc-border-strong); }

.rc-input:focus,
.rc-select:focus,
.rc-textarea:focus {
    outline: none;
    border-color: var(--rc-orange-500);
    box-shadow: var(--rc-ring);
}

.rc-input[disabled],
.rc-select[disabled],
.rc-textarea[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--rc-bg-card);
}

.rc-textarea { min-height: 100px; resize: vertical; line-height: var(--rc-lh-normal); }

/* select arrow */
.rc-select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--rc-text-muted) 50%),
        linear-gradient(135deg, var(--rc-text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

/* error state */
.rc-form-group.is-invalid .rc-input,
.rc-form-group.is-invalid .rc-select,
.rc-form-group.is-invalid .rc-textarea,
.rc-input.is-invalid {
    border-color: var(--rc-danger-500);
    box-shadow: var(--rc-ring-danger);
}

/* Switch */
.rc-switch {
    --_sw-h: 22px;
    --_sw-w: 40px;
    position: relative;
    display: inline-block;
    width: var(--_sw-w);
    height: var(--_sw-h);
    flex-shrink: 0;
}
.rc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.rc-switch-slider {
    position: absolute;
    inset: 0;
    background: var(--rc-neutral-600);
    border-radius: var(--rc-r-full);
    transition: background-color var(--rc-tx-normal) var(--rc-ease-out);
    cursor: pointer;
}
.rc-switch-slider::before {
    content: "";
    position: absolute;
    width: calc(var(--_sw-h) - 4px);
    height: calc(var(--_sw-h) - 4px);
    left: 2px; bottom: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform var(--rc-tx-normal) var(--rc-ease-spring);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.rc-switch input:checked + .rc-switch-slider { background: var(--rc-orange-500); }
.rc-switch input:checked + .rc-switch-slider::before {
    transform: translateX(calc(var(--_sw-w) - var(--_sw-h)));
}
.rc-switch input:focus-visible + .rc-switch-slider { box-shadow: var(--rc-ring); }
.rc-switch-lg { --_sw-h: 28px; --_sw-w: 52px; }

/* Radio + checkbox groups */
.rc-radio-group, .rc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--rc-s-3);
}
.rc-radio-group.is-horizontal,
.rc-checkbox-group.is-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}
.rc-radio,
.rc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--rc-s-4);
    padding: 12px 14px;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    background: var(--rc-bg-input);
    cursor: pointer;
    min-height: 44px;
    transition: border-color var(--rc-tx-fast) var(--rc-ease-out), background var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-radio:hover,
.rc-checkbox:hover { border-color: var(--rc-orange-500); }
.rc-radio input,
.rc-checkbox input {
    width: 18px; height: 18px;
    accent-color: var(--rc-orange-500);
    cursor: pointer;
}
.rc-radio:has(input:checked),
.rc-checkbox:has(input:checked) {
    border-color: var(--rc-orange-500);
    background: rgba(251, 142, 40, 0.08);
}


/* ----- Alerts ---------------------------------------------------------- */
.rc-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--rc-s-5);
    padding: var(--rc-s-6);
    border-radius: var(--rc-r-md);
    background: var(--rc-bg-elevated);
    border: 1px solid var(--rc-border);
    border-left: 4px solid var(--rc-info-500);
    color: var(--rc-text);
    position: relative;
}
.rc-alert-icon {
    flex-shrink: 0;
    font-size: var(--rc-fs-20);
    line-height: 1;
    color: var(--rc-info-500);
    margin-top: 2px;
}
.rc-alert-body { flex: 1; min-width: 0; }
.rc-alert-title {
    font-weight: var(--rc-fw-semibold);
    font-size: var(--rc-fs-15);
    margin: 0 0 4px;
}
.rc-alert-message { color: var(--rc-text-secondary); font-size: var(--rc-fs-14); margin: 0; }
.rc-alert-dismiss {
    background: none; border: 0; padding: 4px;
    color: var(--rc-text-muted);
    cursor: pointer;
    border-radius: var(--rc-r-sm);
    transition: background var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-alert-dismiss:hover { background: var(--rc-bg-card-hover); color: var(--rc-text); }

.rc-alert-success { border-left-color: var(--rc-success-500); background: var(--rc-success-bg); }
.rc-alert-success .rc-alert-icon { color: var(--rc-success-500); }
.rc-alert-warning { border-left-color: var(--rc-warning-500); background: var(--rc-warning-bg); }
.rc-alert-warning .rc-alert-icon { color: var(--rc-warning-500); }
.rc-alert-danger  { border-left-color: var(--rc-danger-500);  background: var(--rc-danger-bg); }
.rc-alert-danger  .rc-alert-icon { color: var(--rc-danger-500); }
.rc-alert-info    { border-left-color: var(--rc-info-500);    background: var(--rc-info-bg); }
.rc-alert-info    .rc-alert-icon { color: var(--rc-info-500); }


/* ----- Modal ---------------------------------------------------------- */
.rc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: var(--rc-bg-overlay);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    z-index: var(--rc-z-modal);
    display: flex; align-items: center; justify-content: center;
    padding: var(--rc-s-6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--rc-tx-normal) var(--rc-ease-out);
}
.rc-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.rc-modal {
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-xl);
    box-shadow: var(--rc-shadow-2xl);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 80px);
    display: flex; flex-direction: column;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition:
        transform var(--rc-tx-normal) var(--rc-ease-spring),
        opacity var(--rc-tx-normal) var(--rc-ease-out);
}
.rc-modal-backdrop.is-open .rc-modal { transform: none; opacity: 1; }
.rc-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--rc-s-7);
    border-bottom: 1px solid var(--rc-border);
}
.rc-modal-title { margin: 0; font-size: var(--rc-fs-20); font-weight: var(--rc-fw-semibold); }
.rc-modal-body  { padding: var(--rc-s-7); overflow-y: auto; flex: 1; }
.rc-modal-footer {
    padding: var(--rc-s-6) var(--rc-s-7);
    border-top: 1px solid var(--rc-border);
    display: flex; justify-content: flex-end; gap: var(--rc-s-4);
}
.rc-modal-sm  { max-width: 380px; }
.rc-modal-lg  { max-width: 720px; }
.rc-modal-xl  { max-width: 960px; }
.rc-modal-full{ max-width: calc(100vw - 32px); height: calc(100vh - 80px); }


/* ----- Toast ---------------------------------------------------------- */
.rc-toast-container {
    position: fixed;
    top: var(--rc-s-7);
    right: var(--rc-s-7);
    z-index: var(--rc-z-toast);
    display: flex; flex-direction: column;
    gap: var(--rc-s-4);
    pointer-events: none;
    max-width: calc(100vw - 32px);
    width: 380px;
}
.rc-toast {
    display: flex; align-items: flex-start; gap: var(--rc-s-4);
    padding: var(--rc-s-5) var(--rc-s-6);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-left: 4px solid var(--rc-info-500);
    border-radius: var(--rc-r-md);
    box-shadow: var(--rc-shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition:
        transform var(--rc-tx-normal) var(--rc-ease-spring),
        opacity var(--rc-tx-normal) var(--rc-ease-out);
}
.rc-toast.is-visible { transform: none; opacity: 1; }
.rc-toast-icon { font-size: var(--rc-fs-18); color: var(--rc-info-500); }
.rc-toast-body { flex: 1; min-width: 0; }
.rc-toast-title { font-weight: var(--rc-fw-semibold); font-size: var(--rc-fs-14); }
.rc-toast-message { font-size: var(--rc-fs-13, 13px); color: var(--rc-text-secondary); margin-top: 2px; }
.rc-toast-success { border-left-color: var(--rc-success-500); }
.rc-toast-success .rc-toast-icon { color: var(--rc-success-500); }
.rc-toast-warning { border-left-color: var(--rc-warning-500); }
.rc-toast-warning .rc-toast-icon { color: var(--rc-warning-500); }
.rc-toast-danger  { border-left-color: var(--rc-danger-500); }
.rc-toast-danger  .rc-toast-icon { color: var(--rc-danger-500); }

@media (max-width: 600px) {
    .rc-toast-container {
        top: auto; bottom: var(--rc-s-7);
        right: var(--rc-s-5); left: var(--rc-s-5);
        width: auto; max-width: none;
    }
    .rc-toast { transform: translateY(120%); }
    .rc-toast.is-visible { transform: none; }
}


/* ----- Skeleton ------------------------------------------------------- */
.rc-skeleton {
    display: block;
    background: linear-gradient(90deg,
        var(--rc-bg-elevated) 0%,
        var(--rc-bg-card-hover) 50%,
        var(--rc-bg-elevated) 100%);
    background-size: 200% 100%;
    animation: rc-shimmer 1.5s var(--rc-ease-in-out) infinite;
    border-radius: var(--rc-r-md);
    height: 1em;
}
.rc-skeleton-text   { height: 1em; margin-bottom: 8px; }
.rc-skeleton-title  { height: 1.5em; width: 50%; margin-bottom: 12px; }
.rc-skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.rc-skeleton-card   { height: 120px; }
@keyframes rc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ----- Empty state ---------------------------------------------------- */
.rc-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--rc-s-12) var(--rc-s-6);
    gap: var(--rc-s-5);
    color: var(--rc-text-secondary);
}
.rc-empty-state-icon {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-bg-elevated);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-full);
    color: var(--rc-orange-500);
    font-size: 28px;
}
.rc-empty-state-title  { font-size: var(--rc-fs-20); font-weight: var(--rc-fw-semibold); color: var(--rc-text); margin: 0; }
.rc-empty-state-body   { max-width: 420px; color: var(--rc-text-muted); margin: 0; line-height: var(--rc-lh-relaxed); }


/* ----- Dropdown ------------------------------------------------------- */
.rc-dropdown { position: relative; display: inline-block; }
.rc-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px); left: 0;
    min-width: 200px;
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    box-shadow: var(--rc-shadow-lg);
    z-index: var(--rc-z-dropdown);
    padding: 6px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--rc-tx-fast) var(--rc-ease-out), opacity var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-dropdown.is-open .rc-dropdown-menu {
    transform: none; opacity: 1; pointer-events: auto;
}
.rc-dropdown-menu-right { left: auto; right: 0; }
.rc-dropdown-item {
    display: flex; align-items: center; gap: var(--rc-s-4);
    padding: 10px 12px;
    border: 0;
    width: 100%;
    background: none;
    color: var(--rc-text);
    font-size: var(--rc-fs-14);
    border-radius: var(--rc-r-sm);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-dropdown-item:hover { background: var(--rc-bg-card-hover); }
.rc-dropdown-item.is-danger { color: var(--rc-danger-500); }
.rc-dropdown-divider { height: 1px; background: var(--rc-border); margin: 6px 0; }
.rc-dropdown-header  { padding: 8px 12px; font-size: var(--rc-fs-11); color: var(--rc-text-muted); text-transform: uppercase; letter-spacing: var(--rc-ls-wider); }


/* ----- Tabs ----------------------------------------------------------- */
.rc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--rc-border);
    margin-bottom: var(--rc-s-7);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rc-tabs::-webkit-scrollbar { display: none; }
.rc-tab {
    flex-shrink: 0;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    color: var(--rc-text-muted);
    font-size: var(--rc-fs-14);
    font-weight: var(--rc-fw-medium);
    cursor: pointer;
    position: relative;
    transition: color var(--rc-tx-fast) var(--rc-ease-out);
    white-space: nowrap;
}
.rc-tab:hover { color: var(--rc-text); }
.rc-tab[aria-selected="true"], .rc-tab.is-active {
    color: var(--rc-orange-500);
    font-weight: var(--rc-fw-semibold);
}
.rc-tab[aria-selected="true"]::after,
.rc-tab.is-active::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: -1px;
    height: 2px;
    background: var(--rc-orange-500);
    border-radius: 2px 2px 0 0;
}
.rc-tabs-vertical {
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--rc-border);
    overflow-x: visible;
    overflow-y: auto;
}
.rc-tabs-vertical .rc-tab[aria-selected="true"]::after,
.rc-tabs-vertical .rc-tab.is-active::after {
    left: auto; right: -1px; top: 12px; bottom: 12px;
    width: 2px; height: auto;
}


/* ----- Stepper ------------------------------------------------------- */
.rc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0; margin: 0 0 var(--rc-s-8);
}
.rc-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--rc-s-4);
    color: var(--rc-text-muted);
    font-size: var(--rc-fs-14);
    position: relative;
}
.rc-step::after {
    content: "";
    flex: 1;
    height: 2px;
    background: var(--rc-border);
    margin: 0 var(--rc-s-4);
}
.rc-step:last-child::after { display: none; }
.rc-step-mark {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rc-bg-elevated);
    border: 2px solid var(--rc-border);
    border-radius: 50%;
    font-size: var(--rc-fs-12);
    font-weight: var(--rc-fw-semibold);
    flex-shrink: 0;
}
.rc-step.is-current { color: var(--rc-orange-500); }
.rc-step.is-current .rc-step-mark { border-color: var(--rc-orange-500); background: var(--rc-orange-500); color: #fff; box-shadow: var(--rc-glow-orange); }
.rc-step.is-complete { color: var(--rc-text); }
.rc-step.is-complete .rc-step-mark { border-color: var(--rc-success-500); background: var(--rc-success-500); color: #fff; }
.rc-step.is-complete::after { background: var(--rc-success-500); }


/* ----- Table --------------------------------------------------------- */
.rc-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    background: var(--rc-bg-card);
}
.rc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rc-fs-14);
}
.rc-table thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: var(--rc-fs-12);
    font-weight: var(--rc-fw-semibold);
    color: var(--rc-text-muted);
    background: var(--rc-bg-elevated);
    border-bottom: 1px solid var(--rc-border);
    text-transform: uppercase;
    letter-spacing: var(--rc-ls-wide);
    white-space: nowrap;
    position: sticky; top: 0;
}
.rc-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--rc-border-subtle);
    color: var(--rc-text-secondary);
    vertical-align: middle;
}
.rc-table tbody tr:last-child td { border-bottom: 0; }
.rc-table tbody tr:hover td { background: var(--rc-bg-card-hover); }
.rc-table-compact thead th,
.rc-table-compact tbody td { padding: 8px 12px; }

/* Mobile card-stack: thead hides, td uses data-label */
@media (max-width: 768px) {
    .rc-table-stack { border: 0; background: transparent; }
    .rc-table-stack thead { display: none; }
    .rc-table-stack tbody tr {
        display: block;
        margin-bottom: var(--rc-s-5);
        background: var(--rc-bg-card);
        border: 1px solid var(--rc-border);
        border-radius: var(--rc-r-md);
        padding: var(--rc-s-5);
    }
    .rc-table-stack tbody td {
        display: flex; justify-content: space-between; gap: var(--rc-s-5);
        border-bottom: 1px solid var(--rc-border-subtle);
        padding: 8px 0;
    }
    .rc-table-stack tbody td:last-child { border-bottom: 0; padding-bottom: 0; }
    .rc-table-stack tbody td::before {
        content: attr(data-label);
        font-weight: var(--rc-fw-semibold);
        color: var(--rc-text-muted);
        text-transform: uppercase;
        font-size: var(--rc-fs-11);
        letter-spacing: var(--rc-ls-wide);
    }
}


/* ----- Progress + spinner ------------------------------------------- */
.rc-progress {
    width: 100%;
    height: 8px;
    background: var(--rc-bg-elevated);
    border-radius: var(--rc-r-full);
    overflow: hidden;
    position: relative;
}
.rc-progress-bar {
    height: 100%;
    background: var(--rc-grad-orange);
    border-radius: inherit;
    transition: width var(--rc-tx-slow) var(--rc-ease-out);
}
.rc-progress-success .rc-progress-bar { background: var(--rc-success-500); }
.rc-progress-warning .rc-progress-bar { background: var(--rc-warning-500); }
.rc-progress-danger  .rc-progress-bar { background: var(--rc-danger-500); }
.rc-progress-indeterminate .rc-progress-bar {
    width: 30% !important;
    animation: rc-progress-slide 1.4s var(--rc-ease-in-out) infinite;
}
@keyframes rc-progress-slide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(380%); }
}

.rc-progress-circular {
    --_pc-size: 48px;
    --_pc-thickness: 4px;
    --_pc-pct: 50;
    width: var(--_pc-size); height: var(--_pc-size);
    background:
        conic-gradient(var(--rc-orange-500) calc(var(--_pc-pct) * 1%), var(--rc-bg-elevated) 0);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
}
.rc-progress-circular::before {
    content: "";
    position: absolute;
    inset: var(--_pc-thickness);
    background: var(--rc-bg-card);
    border-radius: 50%;
}
.rc-progress-circular > * { position: relative; font-size: var(--rc-fs-12); font-weight: var(--rc-fw-semibold); }

.rc-spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid var(--rc-border);
    border-top-color: var(--rc-orange-500);
    border-radius: 50%;
    animation: rc-spin 0.7s linear infinite;
}
.rc-spinner-sm { width: 14px; height: 14px; border-width: 2px; }
.rc-spinner-lg { width: 32px; height: 32px; border-width: 3px; }


/* ----- Avatar -------------------------------------------------------- */
.rc-avatar {
    --_av-size: 40px;
    width: var(--_av-size); height: var(--_av-size);
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--rc-grad-orange);
    color: #fff;
    font-size: calc(var(--_av-size) * 0.4);
    font-weight: var(--rc-fw-semibold);
    text-transform: uppercase;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--rc-bg-card);
    user-select: none;
}
.rc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rc-avatar-xs { --_av-size: 24px; }
.rc-avatar-sm { --_av-size: 32px; }
.rc-avatar-md { --_av-size: 40px; }
.rc-avatar-lg { --_av-size: 56px; }
.rc-avatar-xl { --_av-size: 80px; }
.rc-avatar-2xl{ --_av-size: 120px; }
.rc-avatar-teal { background: var(--rc-grad-teal); }
.rc-avatar-stack { display: inline-flex; }
.rc-avatar-stack > .rc-avatar + .rc-avatar { margin-left: -10px; }


/* ----- Tooltip ------------------------------------------------------- */
.rc-tooltip { position: relative; display: inline-block; }
[data-tooltip] { position: relative; }
[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--rc-tx-fast) var(--rc-ease-out), transform var(--rc-tx-fast) var(--rc-ease-out);
    z-index: var(--rc-z-tooltip);
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--rc-neutral-900);
    color: #fff;
    padding: 6px 10px;
    border-radius: var(--rc-r-sm);
    font-size: var(--rc-fs-12);
    white-space: nowrap;
    border: 1px solid var(--rc-border);
}
[data-tooltip]::after {
    content: "";
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--rc-neutral-900);
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::before,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ----- Breadcrumb --------------------------------------------------- */
.rc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--rc-s-3);
    font-size: var(--rc-fs-13, 13px);
    color: var(--rc-text-muted);
    list-style: none;
    padding: 0; margin: 0 0 var(--rc-s-6);
}
.rc-breadcrumb li { display: flex; align-items: center; gap: var(--rc-s-3); }
.rc-breadcrumb li + li::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
    color: var(--rc-text-muted);
}
.rc-breadcrumb a { color: var(--rc-text-muted); }
.rc-breadcrumb a:hover { color: var(--rc-orange-500); }
.rc-breadcrumb [aria-current="page"] { color: var(--rc-text); font-weight: var(--rc-fw-medium); }


/* ----- Pagination --------------------------------------------------- */
.rc-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0; margin: 0;
}
.rc-pagination li button,
.rc-pagination li a {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--rc-border);
    color: var(--rc-text-secondary);
    border-radius: var(--rc-r-sm);
    font-size: var(--rc-fs-14);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-pagination li button:hover,
.rc-pagination li a:hover {
    border-color: var(--rc-orange-500);
    color: var(--rc-orange-500);
}
.rc-pagination li.is-active button,
.rc-pagination li.is-active a {
    background: var(--rc-orange-500);
    border-color: var(--rc-orange-500);
    color: #fff;
}
.rc-pagination li[aria-disabled="true"] button,
.rc-pagination li[aria-disabled="true"] a { opacity: 0.4; pointer-events: none; }


/* ----- Divider ------------------------------------------------------ */
.rc-divider {
    border: 0;
    border-top: 1px solid var(--rc-border);
    margin: var(--rc-s-7) 0;
}
.rc-divider-vertical {
    width: 1px;
    height: auto;
    border-top: 0;
    border-left: 1px solid var(--rc-border);
    margin: 0 var(--rc-s-5);
    align-self: stretch;
}
.rc-divider-decorative {
    text-align: center;
    color: var(--rc-text-muted);
    font-size: var(--rc-fs-12);
    text-transform: uppercase;
    letter-spacing: var(--rc-ls-wider);
    margin: var(--rc-s-7) 0;
    display: flex;
    align-items: center;
    gap: var(--rc-s-5);
    border: 0;
}
.rc-divider-decorative::before,
.rc-divider-decorative::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--rc-border);
}


/* ==========================================================================
   LAYER 4 · HVAC COMPOSITIONS
   ========================================================================== */

.rc-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--rc-s-7);
    padding: var(--rc-s-6);
    background: var(--rc-bg-elevated);
    border-top: 1px solid var(--rc-border);
    border-bottom: 1px solid var(--rc-border);
    color: var(--rc-text-secondary);
    font-size: var(--rc-fs-14);
}
.rc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.rc-trust-item .fas { color: var(--rc-orange-500); font-size: var(--rc-fs-16); }
.rc-trust-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rc-warning-500);
    font-size: var(--rc-fs-16);
    font-weight: var(--rc-fw-bold);
}
.rc-trust-stars-rating {
    color: var(--rc-text);
    margin-right: 4px;
}

.rc-emergency-banner {
    position: sticky;
    top: 0;
    z-index: var(--rc-z-sticky);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rc-s-5);
    padding: 10px var(--rc-s-6);
    background: var(--rc-danger-500);
    color: #fff;
    font-weight: var(--rc-fw-semibold);
    font-size: var(--rc-fs-14);
    text-align: center;
    box-shadow: var(--rc-shadow-md);
    flex-wrap: wrap;
}
.rc-emergency-banner .fas {
    animation: rc-pulse-strong 1.6s var(--rc-ease-in-out) infinite;
}
@keyframes rc-pulse-strong {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: 0.8; }
}
.rc-emergency-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: var(--rc-fw-bold);
}
.rc-emergency-banner-close {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    padding: 4px;
}

.rc-service-tile {
    --_st-pad: var(--rc-s-7);
    display: flex;
    flex-direction: column;
    gap: var(--rc-s-5);
    padding: var(--_st-pad);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-lg);
    text-decoration: none;
    color: var(--rc-text);
    transition:
        transform var(--rc-tx-normal) var(--rc-ease-out),
        box-shadow var(--rc-tx-normal) var(--rc-ease-out),
        border-color var(--rc-tx-normal) var(--rc-ease-out);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}
.rc-service-tile::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--rc-grad-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--rc-tx-normal) var(--rc-ease-out);
}
.rc-service-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--rc-shadow-lg);
    border-color: var(--rc-orange-500);
}
.rc-service-tile:hover::before { transform: scaleX(1); }
.rc-service-tile-icon {
    width: 56px; height: 56px;
    background: rgba(251, 142, 40, 0.12);
    color: var(--rc-orange-500);
    border-radius: var(--rc-r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
}
.rc-service-tile-title {
    font-size: var(--rc-fs-20);
    font-weight: var(--rc-fw-bold);
    margin: 0;
}
.rc-service-tile-desc {
    color: var(--rc-text-muted);
    font-size: var(--rc-fs-14);
    line-height: var(--rc-lh-relaxed);
    flex: 1;
    margin: 0;
}
.rc-service-tile-cta {
    color: var(--rc-orange-500);
    font-weight: var(--rc-fw-semibold);
    font-size: var(--rc-fs-14);
    display: inline-flex; align-items: center; gap: 6px;
}

.rc-comfort-club-card {
    background: var(--rc-orange-500);
    border: 0;
    border-radius: var(--rc-r-xl);
    padding: var(--rc-s-9);
    color: #fff;
    box-shadow: var(--rc-shadow-xl);
    position: relative;
    overflow: hidden;
}
.rc-comfort-club-card::before {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -160px; right: -160px;
}
.rc-comfort-club-card::after {
    content: "";
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -100px; left: -50px;
}
.rc-comfort-club-card > * { position: relative; z-index: 1; }
.rc-comfort-club-eyebrow {
    text-transform: uppercase;
    font-size: var(--rc-fs-12);
    letter-spacing: var(--rc-ls-wider);
    opacity: 0.85;
    margin-bottom: var(--rc-s-3);
}
.rc-comfort-club-price {
    font-size: var(--rc-fs-48);
    font-weight: var(--rc-fw-black);
    line-height: 1;
    letter-spacing: var(--rc-ls-tight);
}
.rc-comfort-club-price small {
    font-size: var(--rc-fs-16);
    font-weight: var(--rc-fw-medium);
    opacity: 0.85;
    color: inherit;
}
.rc-comfort-club-perks {
    list-style: none;
    padding: 0; margin: var(--rc-s-7) 0;
    display: flex; flex-wrap: wrap; gap: var(--rc-s-4);
}
.rc-comfort-club-perks li {
    background: rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: var(--rc-r-full);
    font-size: var(--rc-fs-13, 13px);
    font-weight: var(--rc-fw-medium);
}

.rc-quote-anchor {
    text-align: center;
    padding: var(--rc-s-9);
    border: 2px solid var(--rc-orange-500);
    border-radius: var(--rc-r-xl);
    background: rgba(251, 142, 40, 0.06);
}
.rc-quote-anchor-eyebrow {
    text-transform: uppercase;
    font-weight: var(--rc-fw-semibold);
    font-size: var(--rc-fs-12);
    letter-spacing: var(--rc-ls-wider);
    color: var(--rc-orange-500);
    margin-bottom: var(--rc-s-3);
}
.rc-quote-anchor-price {
    font-size: var(--rc-fs-72);
    font-weight: var(--rc-fw-black);
    line-height: 1;
    letter-spacing: var(--rc-ls-tight);
    color: var(--rc-text);
    background: var(--rc-grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rc-quote-anchor-label {
    font-size: var(--rc-fs-18);
    color: var(--rc-text-secondary);
    margin-top: var(--rc-s-4);
}

.rc-tech-card {
    display: flex;
    gap: var(--rc-s-5);
    padding: var(--rc-s-6);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    align-items: center;
}
.rc-tech-card-body { flex: 1; min-width: 0; }
.rc-tech-card-name {
    font-size: var(--rc-fs-16);
    font-weight: var(--rc-fw-semibold);
    margin: 0 0 4px;
}
.rc-tech-card-skills {
    display: flex; flex-wrap: wrap; gap: 4px;
    margin-top: 8px;
}

.rc-job-card {
    display: grid;
    grid-template-columns: 6px 1fr auto;
    gap: var(--rc-s-5);
    padding: var(--rc-s-6);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    transition: border-color var(--rc-tx-fast) var(--rc-ease-out), transform var(--rc-tx-fast) var(--rc-ease-out);
}
.rc-job-card:hover { transform: translateY(-1px); border-color: var(--rc-orange-500); }
.rc-job-card-priority {
    border-radius: var(--rc-r-full);
    background: var(--rc-neutral-600);
    align-self: stretch;
}
.rc-job-card-priority-high   { background: var(--rc-danger-500); }
.rc-job-card-priority-medium { background: var(--rc-warning-500); }
.rc-job-card-priority-low    { background: var(--rc-success-500); }
.rc-job-card-service {
    font-size: var(--rc-fs-15);
    font-weight: var(--rc-fw-semibold);
    margin: 0 0 4px;
}
.rc-job-card-customer { color: var(--rc-text-muted); font-size: var(--rc-fs-13, 13px); }
.rc-job-card-meta {
    display: flex; gap: var(--rc-s-5);
    margin-top: 8px;
    font-size: var(--rc-fs-12);
    color: var(--rc-text-muted);
}
.rc-job-card-value {
    font-size: var(--rc-fs-18);
    font-weight: var(--rc-fw-bold);
    color: var(--rc-orange-500);
    text-align: right;
    align-self: center;
}

.rc-customer-card {
    display: flex;
    flex-direction: column;
    gap: var(--rc-s-3);
    padding: var(--rc-s-7);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
}
.rc-customer-card-header {
    display: flex; align-items: center; gap: var(--rc-s-4);
    margin-bottom: var(--rc-s-4);
}
.rc-customer-card-name { font-weight: var(--rc-fw-semibold); font-size: var(--rc-fs-16); }
.rc-customer-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--rc-s-5);
    padding-top: var(--rc-s-5);
    border-top: 1px solid var(--rc-border);
}
.rc-customer-card-stat {
    display: flex; flex-direction: column; gap: 2px;
}
.rc-customer-card-stat-label {
    font-size: var(--rc-fs-11);
    text-transform: uppercase;
    letter-spacing: var(--rc-ls-wide);
    color: var(--rc-text-muted);
}
.rc-customer-card-stat-value {
    font-size: var(--rc-fs-16);
    font-weight: var(--rc-fw-semibold);
}

.rc-review-card {
    padding: var(--rc-s-7);
    background: var(--rc-bg-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-r-md);
    display: flex; flex-direction: column;
    gap: var(--rc-s-4);
}
.rc-review-card-stars {
    color: var(--rc-warning-500);
    font-size: var(--rc-fs-16);
    letter-spacing: 2px;
}
.rc-review-card-body {
    color: var(--rc-text-secondary);
    line-height: var(--rc-lh-relaxed);
    font-size: var(--rc-fs-14);
    flex: 1;
    font-style: italic;
}
.rc-review-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    color: var(--rc-text-muted);
    font-size: var(--rc-fs-13, 13px);
    border-top: 1px solid var(--rc-border-subtle);
    padding-top: var(--rc-s-4);
}


/* ==========================================================================
   LAYER 5 · PAGE LAYOUT PRIMITIVES
   ========================================================================== */
.rc-page {
    min-height: 100vh;
    background: var(--rc-bg-body);
    color: var(--rc-text);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.rc-hero {
    padding: var(--rc-s-12) var(--rc-s-7);
    background: var(--rc-bg-card);
    border-bottom: 1px solid var(--rc-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rc-hero-title {
    font-size: var(--rc-fs-48);
    font-weight: var(--rc-fw-black);
    line-height: var(--rc-lh-tight);
    letter-spacing: var(--rc-ls-tight);
    margin: 0 0 var(--rc-s-5);
    max-width: 800px;
    margin-inline: auto;
}
.rc-hero-subtitle {
    font-size: var(--rc-fs-18);
    color: var(--rc-text-secondary);
    line-height: var(--rc-lh-relaxed);
    max-width: 640px;
    margin-inline: auto;
}
.rc-hero-actions {
    margin-top: var(--rc-s-8);
    display: flex; justify-content: center;
    gap: var(--rc-s-4);
    flex-wrap: wrap;
}
.rc-hero-teal {
    background: var(--rc-grad-teal);
    color: #ffffff;
    border-bottom: 0;
}
.rc-hero-teal .rc-hero-subtitle { color: rgba(255, 255, 255, 0.85); }
.rc-hero-light {
    background: var(--rc-bg-elevated);
}

.rc-section {
    padding: var(--rc-s-11) 0;
}
.rc-section-header {
    margin-bottom: var(--rc-s-8);
}
.rc-section-eyebrow {
    text-transform: uppercase;
    font-size: var(--rc-fs-12);
    letter-spacing: var(--rc-ls-wider);
    font-weight: var(--rc-fw-semibold);
    color: var(--rc-orange-500);
    margin: 0 0 8px;
}
.rc-section-title {
    font-size: var(--rc-fs-30);
    font-weight: var(--rc-fw-bold);
    margin: 0 0 var(--rc-s-3);
}
.rc-section-helper { color: var(--rc-text-muted); margin: 0; max-width: 640px; }

.rc-container { width: 100%; margin-inline: auto; padding-inline: var(--rc-s-6); }
.rc-container-sm { max-width: var(--rc-container-sm); margin-inline: auto; padding-inline: var(--rc-s-6); }
.rc-container-md { max-width: var(--rc-container-md); margin-inline: auto; padding-inline: var(--rc-s-6); }
.rc-container-lg { max-width: var(--rc-container-lg); margin-inline: auto; padding-inline: var(--rc-s-6); }
.rc-container-xl { max-width: var(--rc-container-xl); margin-inline: auto; padding-inline: var(--rc-s-6); }
.rc-container-2xl{ max-width: var(--rc-container-2xl); margin-inline: auto; padding-inline: var(--rc-s-6); }

.rc-grid-2 { display: grid; gap: var(--rc-s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-grid-3 { display: grid; gap: var(--rc-s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rc-grid-4 { display: grid; gap: var(--rc-s-6); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-grid-auto { display: grid; gap: var(--rc-s-6); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 900px) {
    .rc-grid-3, .rc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .rc-grid-2, .rc-grid-3, .rc-grid-4 { grid-template-columns: 1fr; }
    .rc-hero { padding: var(--rc-s-10) var(--rc-s-6); }
    .rc-hero-title { font-size: var(--rc-fs-30); }
    .rc-hero-subtitle { font-size: var(--rc-fs-16); }
    .rc-section { padding: var(--rc-s-9) 0; }
    .rc-section-title { font-size: var(--rc-fs-24); }
}


/* ==========================================================================
   LAYER 6 · UTILITIES
   ========================================================================== */
.rc-flex   { display: flex; }
.rc-iflex  { display: inline-flex; }
.rc-grid   { display: grid; }
.rc-block  { display: block; }
.rc-inline { display: inline; }
.rc-hidden { display: none !important; }

.rc-stack  { display: flex; flex-direction: column; gap: var(--rc-s-5); }
.rc-row    { display: flex; flex-direction: row; align-items: center; gap: var(--rc-s-4); flex-wrap: wrap; }

.rc-items-start  { align-items: flex-start; }
.rc-items-center { align-items: center; }
.rc-items-end    { align-items: flex-end; }
.rc-justify-start   { justify-content: flex-start; }
.rc-justify-center  { justify-content: center; }
.rc-justify-end     { justify-content: flex-end; }
.rc-justify-between { justify-content: space-between; }

.rc-gap-0 { gap: 0; }
.rc-gap-1 { gap: var(--rc-s-2); }
.rc-gap-2 { gap: var(--rc-s-3); }
.rc-gap-3 { gap: var(--rc-s-4); }
.rc-gap-4 { gap: var(--rc-s-5); }
.rc-gap-5 { gap: var(--rc-s-6); }
.rc-gap-6 { gap: var(--rc-s-7); }
.rc-gap-7 { gap: var(--rc-s-8); }
.rc-gap-8 { gap: var(--rc-s-9); }

.rc-mt-0 { margin-top: 0; } .rc-mt-1 { margin-top: var(--rc-s-2); } .rc-mt-2 { margin-top: var(--rc-s-3); }
.rc-mt-3 { margin-top: var(--rc-s-4); } .rc-mt-4 { margin-top: var(--rc-s-5); } .rc-mt-5 { margin-top: var(--rc-s-6); }
.rc-mt-6 { margin-top: var(--rc-s-7); } .rc-mt-7 { margin-top: var(--rc-s-8); } .rc-mt-8 { margin-top: var(--rc-s-9); }
.rc-mb-0 { margin-bottom: 0; } .rc-mb-1 { margin-bottom: var(--rc-s-2); } .rc-mb-2 { margin-bottom: var(--rc-s-3); }
.rc-mb-3 { margin-bottom: var(--rc-s-4); } .rc-mb-4 { margin-bottom: var(--rc-s-5); } .rc-mb-5 { margin-bottom: var(--rc-s-6); }
.rc-mb-6 { margin-bottom: var(--rc-s-7); } .rc-mb-7 { margin-bottom: var(--rc-s-8); } .rc-mb-8 { margin-bottom: var(--rc-s-9); }

.rc-p-0 { padding: 0; } .rc-p-3 { padding: var(--rc-s-4); } .rc-p-4 { padding: var(--rc-s-5); }
.rc-p-5 { padding: var(--rc-s-6); } .rc-p-6 { padding: var(--rc-s-7); } .rc-p-7 { padding: var(--rc-s-8); }

.rc-text-xs   { font-size: var(--rc-fs-12); }
.rc-text-sm   { font-size: var(--rc-fs-14); }
.rc-text-base { font-size: var(--rc-fs-15); }
.rc-text-lg   { font-size: var(--rc-fs-18); }
.rc-text-xl   { font-size: var(--rc-fs-20); }
.rc-text-2xl  { font-size: var(--rc-fs-24); }
.rc-text-3xl  { font-size: var(--rc-fs-30); }
.rc-text-4xl  { font-size: var(--rc-fs-36); }

.rc-text-left   { text-align: left; }
.rc-text-center { text-align: center; }
.rc-text-right  { text-align: right; }

.rc-text-muted     { color: var(--rc-text-muted) !important; }
.rc-text-secondary { color: var(--rc-text-secondary) !important; }
.rc-text-default   { color: var(--rc-text) !important; }
.rc-text-success   { color: var(--rc-success-500) !important; }
.rc-text-warning   { color: var(--rc-warning-500) !important; }
.rc-text-danger    { color: var(--rc-danger-500) !important; }
.rc-text-info      { color: var(--rc-info-500) !important; }
.rc-text-orange    { color: var(--rc-orange-500) !important; }
.rc-text-teal      { color: var(--rc-teal-300) !important; }
html.theme-light .rc-text-teal { color: var(--rc-teal-800) !important; }

.rc-fw-regular  { font-weight: var(--rc-fw-regular); }
.rc-fw-medium   { font-weight: var(--rc-fw-medium); }
.rc-fw-semibold { font-weight: var(--rc-fw-semibold); }
.rc-fw-bold     { font-weight: var(--rc-fw-bold); }
.rc-fw-black    { font-weight: var(--rc-fw-black); }

.rc-w-full   { width: 100%; }
.rc-w-auto   { width: auto; }
.rc-h-full   { height: 100%; }
.rc-min-h-screen { min-height: 100vh; }

.rc-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rc-line-clamp-2,
.rc-line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rc-line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.rc-line-clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }

.rc-rounded-none { border-radius: 0; }
.rc-rounded-sm   { border-radius: var(--rc-r-sm); }
.rc-rounded-md   { border-radius: var(--rc-r-md); }
.rc-rounded-lg   { border-radius: var(--rc-r-lg); }
.rc-rounded-xl   { border-radius: var(--rc-r-xl); }
.rc-rounded-full { border-radius: var(--rc-r-full); }

.rc-shadow-sm  { box-shadow: var(--rc-shadow-sm); }
.rc-shadow-md  { box-shadow: var(--rc-shadow-md); }
.rc-shadow-lg  { box-shadow: var(--rc-shadow-lg); }
.rc-shadow-xl  { box-shadow: var(--rc-shadow-xl); }

.rc-bg-card     { background: var(--rc-bg-card); }
.rc-bg-elevated { background: var(--rc-bg-elevated); }
.rc-bg-orange   { background: var(--rc-orange-500); color: #fff; }
.rc-bg-teal     { background: var(--rc-teal-800); color: #fff; }

.rc-border-0       { border: 0; }
.rc-border         { border: 1px solid var(--rc-border); }
.rc-border-strong  { border: 1px solid var(--rc-border-strong); }
.rc-border-orange  { border: 1px solid var(--rc-orange-500); }
.rc-border-teal    { border: 1px solid var(--rc-teal-700); }
.rc-border-t       { border-top: 1px solid var(--rc-border); }
.rc-border-b       { border-bottom: 1px solid var(--rc-border); }

.rc-cursor-pointer { cursor: pointer; }

/* .rc-fade-in lives in rc-animations.css (animation-only owner). */

/* Screen-reader only */
.rc-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print */
@media print {
    .rc-no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .rc-card { border-color: #ccc !important; box-shadow: none !important; }
    a { color: #000 !important; text-decoration: underline; }
    .rc-emergency-banner { display: none !important; }
}
.rc-print-only { display: none !important; }
@media print { .rc-print-only { display: block !important; } }


/* ==========================================================================
   END OF FILE — RC DESIGN SYSTEM v1.0
   ========================================================================== */
