
/* ============================ UIVERSE BATCH 2: buttons, notifications, cards ============================
   All MIT (https://github.com/uiverse-io/galaxy), tied to the theme variables:
   buttons: angry-bullfrog-58 by Codecite (gradient pill with a shine) in accent, green and red
   toasts: funny-impala-78 by Gianluks90 (round icon, bold title, animated gradient border)
   cards: rare-rattlesnake-22 by Aryan-81 (neon glow that lights up on hover) */

/* ---- 1 buttons: primary, confirm and danger become glossy gradient pills with a top and bottom shine ---- */
:root:root .btn-primary, :root:root .ux-primary, :root:root .btn.primary, :root:root .auth-submit-action, :root:root .btn-success, :root:root .btn-danger {
    --fb-0: color-mix(in srgb, var(--accent) 78%, #fff); --fb-50: var(--accent); --fb-100: color-mix(in srgb, var(--accent) 72%, #3b82f6);
    --fb-top: color-mix(in srgb, var(--accent) 25%, #fff); --fb-bot: color-mix(in srgb, var(--accent) 22%, #b6fff6);
    position: relative; z-index: 0; overflow: hidden; border: 0; border-radius: 999px; color: #fff; font-weight: 600; text-shadow: 0 .5px .5px rgba(0,0,0,.25);
    background-color: transparent; background-repeat: no-repeat; background-position: 0 -6px, 0 0;
    background-image: linear-gradient(to bottom, var(--fb-top), transparent 8px), linear-gradient(to bottom, var(--fb-0) 0%, var(--fb-50) 50%, var(--fb-100) 100%);
    box-shadow: 0 4px 12px rgba(9,12,60,.18), 0 2px 8px rgba(9,12,60,.15), 0 1px 3px rgba(9,12,60,.12), inset 0 1px 1px rgba(255,255,255,.22), inset 0 -1px 3px color-mix(in srgb, var(--fb-bot) 40%, transparent);
    transition: transform .12s, box-shadow .2s, filter .2s;
}
:root:root .btn-success { --fb-0: #52e08f; --fb-50: #23a55a; --fb-100: #168a49; --fb-top: #d9ffe8; --fb-bot: #b6ffd9; }
:root:root .btn-danger { --fb-0: #ff7b7e; --fb-50: #f23f43; --fb-100: #c42a2e; --fb-top: #ffe1e2; --fb-bot: #ffb8ba; }
:root:root .btn-primary::before, :root:root .ux-primary::before, :root:root .btn.primary::before, :root:root .auth-submit-action::before, :root:root .btn-success::before, :root:root .btn-danger::before {
    content: ""; position: absolute; left: 50%; top: -3px; width: 60%; max-width: 110px; height: 6px; transform: translateX(-50%); border-radius: inherit; background: var(--fb-top); opacity: .6; filter: blur(6px); pointer-events: none; transition: opacity .25s, transform .25s;
}
:root:root .btn-primary::after, :root:root .ux-primary::after, :root:root .btn.primary::after, :root:root .auth-submit-action::after, :root:root .btn-success::after, :root:root .btn-danger::after {
    content: ""; position: absolute; left: 50%; bottom: -4px; width: 60%; max-width: 100px; height: 8px; transform: translateX(-50%); border-radius: 50%; background: var(--fb-bot); opacity: .7; filter: blur(6px); pointer-events: none; transition: opacity .25s, transform .25s;
}
:root:root .btn-primary:hover, :root:root .ux-primary:hover, :root:root .btn.primary:hover, :root:root .auth-submit-action:hover, :root:root .btn-success:hover, :root:root .btn-danger:hover { filter: brightness(1.06); color: #fff; background-color: transparent; }
:root:root .btn-primary:hover::before, :root:root .ux-primary:hover::before, :root:root .btn.primary:hover::before, :root:root .auth-submit-action:hover::before, :root:root .btn-success:hover::before, :root:root .btn-danger:hover::before { opacity: .85; transform: translateX(-50%) scale(1.25); }
:root:root .btn-primary:hover::after, :root:root .ux-primary:hover::after, :root:root .btn.primary:hover::after, :root:root .auth-submit-action:hover::after, :root:root .btn-success:hover::after, :root:root .btn-danger:hover::after { opacity: 1; transform: translateX(-50%) scale(1.2); }
:root:root .btn-primary:active, :root:root .ux-primary:active, :root:root .btn.primary:active, :root:root .auth-submit-action:active, :root:root .btn-success:active, :root:root .btn-danger:active { transform: translateY(1px) scale(.98); }
:root:root .btn-success:disabled, :root:root .btn-danger:disabled, :root:root .btn-primary:disabled, :root:root .auth-submit-action:disabled { filter: grayscale(.7) brightness(.8); box-shadow: none; cursor: not-allowed; }
:root:root .btn-success:disabled::before, :root:root .btn-success:disabled::after, :root:root .btn-danger:disabled::before, :root:root .btn-danger:disabled::after, :root:root .auth-submit-action:disabled::before, :root:root .auth-submit-action:disabled::after { display: none; }

/* ---- 2 toasts: a round icon badge, bold text, and a softly moving gradient border ---- */
#toast-container .toast-item { position: relative; z-index: 0; border: 0; border-radius: 14px; padding: 5px 6px 5px 6px; gap: 7px; font-size: 12px; line-height: 1.3; font-weight: 600; max-width: 280px; --tb: 1.5px; background: transparent; }
#toast-container .toast-item::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg-4); }
#toast-container .toast-item::after { content: ""; position: absolute; inset: calc(-1 * var(--tb)); z-index: -2; border-radius: calc(14px + var(--tb)); background: linear-gradient(75deg, var(--accent-hi, var(--accent)), color-mix(in srgb, var(--accent) 55%, #000), var(--accent-hi, var(--accent))); background-size: 300% 300%; animation: uv-grad 4s ease alternate infinite; }
#toast-container .toast-item.error::after { background: linear-gradient(75deg, #ff5a5f, #b32428, #ff5a5f); background-size: 300% 300%; }
#toast-container .toast-tx { padding-inline-end: 2px; }
#toast-container .toast-x { width: 20px; height: 20px; font-size: 10px; }
#toast-container .toast-ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12); }
#toast-container .toast-ic svg { width: 12px; height: 12px; }
@keyframes uv-grad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (prefers-reduced-motion: reduce) { #toast-container .toast-item::after { animation: none; } }

/* ---- 3 cards: roles and themes light up with a turning neon ring and a glow when you point at them ---- */
@property --uv-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes uv-ring { to { --uv-ang: 360deg; } }
.role-card, .theme-card { position: relative; transition: box-shadow .35s, transform .3s cubic-bezier(.175,.885,.32,1.275); }
.role-card::after, .theme-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: conic-gradient(from var(--uv-ang), color-mix(in srgb, var(--accent) 45%, #fff), var(--accent), color-mix(in srgb, var(--accent) 60%, #000), color-mix(in srgb, var(--accent) 45%, #fff));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; animation: uv-ring 3s linear infinite; }
.role-card:hover, .theme-card:hover { transform: translateY(-2px); box-shadow: 0 0 26px -6px var(--accent), 0 10px 24px -10px rgba(0,0,0,.6); }
.role-card:hover::after, .theme-card:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .role-card::after, .theme-card::after { animation: none; } .role-card:hover, .theme-card:hover { transform: none; } }
