/* JD BR Community — shared visual foundation (loaded after legacy styles). */
:root {
    --jd-bg: #080a13;
    --jd-surface: #131625;
    --jd-surface-raised: #1a1e31;
    --jd-line: rgba(255, 255, 255, .12);
    --jd-text: #f8f7ff;
    --jd-muted: #adb2c8;
    --jd-purple: #8257f5;
    --jd-pink: #f72585;
    --jd-cyan: #20d7e5;
    --jd-yellow: #ffc928;
    --jd-danger: #ff5470;
    --jd-radius-sm: 12px;
    --jd-radius: 20px;
    --jd-radius-lg: 28px;
    --jd-shadow: 0 22px 64px rgba(0, 0, 0, .34);
    --jd-focus: 0 0 0 3px rgba(32, 215, 229, .38);
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
    accent-color: var(--jd-purple);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img, video, canvas, svg { max-width: 100%; }
img, video { height: auto; }

:where(button, [type="button"], [type="submit"], [role="button"], a, input, select, textarea) {
    font: inherit;
}

:where(button, [type="button"], [type="submit"], [role="button"]) {
    min-height: 44px;
    touch-action: manipulation;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--jd-cyan);
    outline-offset: 3px;
    box-shadow: var(--jd-focus);
}

:where(input, select, textarea) {
    max-width: 100%;
}

[hidden] { display: none !important; }

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

.jd-skip-link {
    position: fixed;
    z-index: 100000;
    top: 12px;
    left: 12px;
    padding: 11px 16px;
    border-radius: 999px;
    background: var(--jd-text);
    color: var(--jd-bg);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .18s ease;
}

.jd-skip-link:focus { transform: translateY(0); }

/* The choreography rail is the shared signature: each color represents a stage. */
:where(.profile-hub-card, .admin-card, .dashboard-card, .panel, .reset-card) {
    position: relative;
}

:where(.profile-hub-card, .admin-card, .dashboard-card, .panel, .reset-card)::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -1px;
    left: clamp(16px, 4vw, 34px);
    width: clamp(72px, 13vw, 150px);
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--jd-purple), var(--jd-pink), var(--jd-cyan), var(--jd-yellow));
    box-shadow: 0 0 18px rgba(130, 87, 245, .4);
}

@media (max-width: 720px) {
    :root { --jd-radius-lg: 22px; }
    :where(dialog, [role="dialog"]) { max-width: calc(100vw - 20px); }
}

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