:root {
    --bg: #12111a;
    --bg-2: #1a1827;

    --shell: #8e79d8;
    --shell-2: #7d68cb;

    --panel: #efedf7;
    --panel-2: #ffffff;

    --text: #26233a;
    --muted: #7a738f;

    --line: #d7d2e9;
    --line-strong: #bfb6dc;

    --tab: #ddd8f1;
    --tab-active: #f3f1fb;

    --brand: #7b61ff;
    --brand-dark: #654ee0;

    --premium: #f2c94c;

    --shadow:
        0 18px 50px rgba(18, 14, 34, 0.24);

    --shadow-soft:
        0 10px 24px rgba(30, 24, 56, 0.08);

    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;

    --content-margin: 22px;
}


/* GLOBAL */

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at top,
            #201b32 0%,
            #12111a 55%
        );
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* PAGE */

.page-bg {
    position: relative;
    min-height: 100vh;
    padding: 28px;
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(
            circle at top,
            #201b32 0%,
            #171521 38%,
            #14131d 68%,
            #12111a 100%
        );
}


/* LAYERED WAVES
   All three bands use the same wave shape.
   Each layer becomes progressively darker. */

.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 330 C200 275 400 385 600 330 S1000 275 1200 330 S1400 385 1600 330 L1600 1000 L0 1000 Z' fill='%2312111a'/%3E%3Cpath d='M0 550 C200 495 400 605 600 550 S1000 495 1200 550 S1400 605 1600 550 L1600 1000 L0 1000 Z' fill='%230e0d14'/%3E%3Cpath d='M0 770 C200 715 400 825 600 770 S1000 715 1200 770 S1400 825 1600 770 L1600 1000 L0 1000 Z' fill='%2309080d'/%3E%3C/svg%3E");

    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}


/* STARS
   Deliberately irregular in position and size rather than a repeating grid.
   A stronger glow pulse plus a few extra popping stars. */

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        radial-gradient(circle at 5.5% 4%, rgba(255,255,255,.98) 0 1.7px, rgba(255,255,255,.28) 2.5px, transparent 4.6px),
        radial-gradient(circle at 18.1% 7.8%, rgba(255,255,255,.84) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.8px),
        radial-gradient(circle at 12.4% 16.6%, rgba(255,255,255,.94) 0 1.5px, rgba(255,255,255,.24) 2.3px, transparent 4.2px),
        radial-gradient(circle at 3.6% 24.8%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.16) 1.9px, transparent 3.6px),
        radial-gradient(circle at 20.8% 27.4%, rgba(255,255,255,.98) 0 1.9px, rgba(255,255,255,.3) 2.7px, transparent 4.8px),
        radial-gradient(circle at 8.7% 35.7%, rgba(255,255,255,.91) 0 1.4px, rgba(255,255,255,.2) 2.2px, transparent 4px),
        radial-gradient(circle at 14.9% 43.2%, rgba(255,255,255,.80) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.4px),
        radial-gradient(circle at 2.2% 50.5%, rgba(255,255,255,.94) 0 1.6px, rgba(255,255,255,.26) 2.4px, transparent 4.4px),
        radial-gradient(circle at 17.6% 56.8%, rgba(255,255,255,.89) 0 1.3px, rgba(255,255,255,.18) 2.1px, transparent 3.8px),
        radial-gradient(circle at 10.5% 64.9%, rgba(255,255,255,.97) 0 1.8px, rgba(255,255,255,.28) 2.6px, transparent 4.7px),
        radial-gradient(circle at 21.7% 71.2%, rgba(255,255,255,.85) 0 1.2px, rgba(255,255,255,.17) 2px, transparent 3.7px),
        radial-gradient(circle at 6.2% 78.9%, rgba(255,255,255,.93) 0 1.5px, rgba(255,255,255,.22) 2.3px, transparent 4.1px),
        radial-gradient(circle at 15.1% 86.1%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.16) 1.9px, transparent 3.6px),
        radial-gradient(circle at 3.8% 93.4%, rgba(255,255,255,.96) 0 1.7px, rgba(255,255,255,.26) 2.5px, transparent 4.6px),
        radial-gradient(circle at 22.4% 96.5%, rgba(255,255,255,.82) 0 1px, rgba(255,255,255,.15) 1.8px, transparent 3.5px),
        radial-gradient(circle at 7.4% 11.9%, rgba(255,255,255,.87) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.8px),
        radial-gradient(circle at 19.5% 20.8%, rgba(255,255,255,.92) 0 1.3px, rgba(255,255,255,.22) 2.1px, transparent 3.9px),
        radial-gradient(circle at 4.9% 31.6%, rgba(255,255,255,.79) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.4px),
        radial-gradient(circle at 16.2% 49.1%, rgba(255,255,255,.95) 0 1.6px, rgba(255,255,255,.24) 2.4px, transparent 4.3px),
        radial-gradient(circle at 9.8% 58.7%, rgba(255,255,255,.84) 0 1.1px, rgba(255,255,255,.17) 1.9px, transparent 3.6px),
        radial-gradient(circle at 21.1% 83.3%, rgba(255,255,255,.9) 0 1.2px, rgba(255,255,255,.2) 2px, transparent 3.8px),

        radial-gradient(circle at 94.8% 3.7%, rgba(255,255,255,.96) 0 1.8px, rgba(255,255,255,.27) 2.5px, transparent 4.6px),
        radial-gradient(circle at 83.9% 8.9%, rgba(255,255,255,.84) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.8px),
        radial-gradient(circle at 89.7% 15.1%, rgba(255,255,255,.94) 0 1.5px, rgba(255,255,255,.24) 2.3px, transparent 4.2px),
        radial-gradient(circle at 97.4% 22.7%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.16) 1.9px, transparent 3.6px),
        radial-gradient(circle at 80.9% 29.9%, rgba(255,255,255,.98) 0 1.9px, rgba(255,255,255,.3) 2.7px, transparent 4.8px),
        radial-gradient(circle at 92.3% 37.1%, rgba(255,255,255,.91) 0 1.4px, rgba(255,255,255,.2) 2.2px, transparent 4px),
        radial-gradient(circle at 85.4% 45.8%, rgba(255,255,255,.80) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.4px),
        radial-gradient(circle at 98.2% 52.6%, rgba(255,255,255,.94) 0 1.6px, rgba(255,255,255,.26) 2.4px, transparent 4.4px),
        radial-gradient(circle at 82.5% 60.4%, rgba(255,255,255,.89) 0 1.3px, rgba(255,255,255,.18) 2.1px, transparent 3.8px),
        radial-gradient(circle at 90.8% 67.9%, rgba(255,255,255,.97) 0 1.8px, rgba(255,255,255,.28) 2.6px, transparent 4.7px),
        radial-gradient(circle at 78.7% 74.3%, rgba(255,255,255,.85) 0 1.2px, rgba(255,255,255,.17) 2px, transparent 3.7px),
        radial-gradient(circle at 95.6% 81.4%, rgba(255,255,255,.93) 0 1.5px, rgba(255,255,255,.22) 2.3px, transparent 4.1px),
        radial-gradient(circle at 86.1% 88.7%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.16) 1.9px, transparent 3.6px),
        radial-gradient(circle at 98.1% 95.2%, rgba(255,255,255,.96) 0 1.7px, rgba(255,255,255,.26) 2.5px, transparent 4.6px),
        radial-gradient(circle at 76.9% 97.1%, rgba(255,255,255,.82) 0 1px, rgba(255,255,255,.15) 1.8px, transparent 3.5px),
        radial-gradient(circle at 93.1% 12.4%, rgba(255,255,255,.87) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.8px),
        radial-gradient(circle at 81.2% 19.8%, rgba(255,255,255,.92) 0 1.3px, rgba(255,255,255,.22) 2.1px, transparent 3.9px),
        radial-gradient(circle at 96.3% 33.8%, rgba(255,255,255,.79) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.4px),
        radial-gradient(circle at 84.6% 55.2%, rgba(255,255,255,.95) 0 1.6px, rgba(255,255,255,.24) 2.4px, transparent 4.3px),
        radial-gradient(circle at 91.5% 63.6%, rgba(255,255,255,.84) 0 1.1px, rgba(255,255,255,.17) 1.9px, transparent 3.6px),
        radial-gradient(circle at 79.8% 84.4%, rgba(255,255,255,.9) 0 1.2px, rgba(255,255,255,.2) 2px, transparent 3.8px),

        radial-gradient(circle at 25.1% 11.2%, rgba(255,255,255,.78) 0 .9px, rgba(255,255,255,.12) 1.6px, transparent 3.1px),
        radial-gradient(circle at 74.4% 18.7%, rgba(255,255,255,.86) 0 1.1px, rgba(255,255,255,.17) 1.9px, transparent 3.6px),
        radial-gradient(circle at 24.2% 39.5%, rgba(255,255,255,.90) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.7px),
        radial-gradient(circle at 75.8% 48.2%, rgba(255,255,255,.82) 0 .9px, rgba(255,255,255,.12) 1.7px, transparent 3.2px),
        radial-gradient(circle at 23.3% 62.1%, rgba(255,255,255,.95) 0 1.4px, rgba(255,255,255,.22) 2.2px, transparent 4px),
        radial-gradient(circle at 77.2% 69.4%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.16) 1.9px, transparent 3.5px),
        radial-gradient(circle at 24.6% 82.5%, rgba(255,255,255,.84) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.3px),
        radial-gradient(circle at 73.8% 91.3%, rgba(255,255,255,.94) 0 1.3px, rgba(255,255,255,.2) 2.1px, transparent 3.8px),
        radial-gradient(circle at 31.6% 9.1%, rgba(255,255,255,.82) 0 1px, rgba(255,255,255,.12) 1.8px, transparent 3.3px),
        radial-gradient(circle at 68.9% 13.4%, rgba(255,255,255,.9) 0 1.2px, rgba(255,255,255,.18) 2px, transparent 3.7px),
        radial-gradient(circle at 28.4% 29.7%, rgba(255,255,255,.86) 0 1.1px, rgba(255,255,255,.15) 1.9px, transparent 3.5px),
        radial-gradient(circle at 71.1% 34.9%, rgba(255,255,255,.79) 0 .9px, rgba(255,255,255,.11) 1.6px, transparent 3.1px),
        radial-gradient(circle at 30.7% 53.9%, rgba(255,255,255,.95) 0 1.4px, rgba(255,255,255,.21) 2.2px, transparent 4px),
        radial-gradient(circle at 69.4% 58.8%, rgba(255,255,255,.84) 0 1px, rgba(255,255,255,.14) 1.8px, transparent 3.4px),
        radial-gradient(circle at 32.2% 74.6%, rgba(255,255,255,.91) 0 1.2px, rgba(255,255,255,.19) 2px, transparent 3.7px),
        radial-gradient(circle at 67.8% 79.2%, rgba(255,255,255,.8) 0 .95px, rgba(255,255,255,.12) 1.7px, transparent 3.2px),
        radial-gradient(circle at 28.9% 92.6%, rgba(255,255,255,.88) 0 1.1px, rgba(255,255,255,.17) 1.9px, transparent 3.6px),
        radial-gradient(circle at 70.2% 95.4%, rgba(255,255,255,.93) 0 1.3px, rgba(255,255,255,.2) 2.1px, transparent 3.8px);

    background-repeat: no-repeat;
    opacity: .97;
    filter:
        drop-shadow(0 0 3px rgba(255,255,255,.30))
        drop-shadow(0 0 10px rgba(190,174,255,.24))
        drop-shadow(0 0 18px rgba(123,97,255,.10));
    animation: starGlow 4.2s ease-in-out infinite;
    will-change: opacity, filter;
}

@keyframes starGlow {
    0%,
    100% {
        opacity: .72;
        filter:
            drop-shadow(0 0 1px rgba(255,255,255,.10))
            drop-shadow(0 0 4px rgba(174,158,255,.07));
    }

    50% {
        opacity: 1;
        filter:
            drop-shadow(0 0 5px rgba(255,255,255,.58))
            drop-shadow(0 0 14px rgba(194,180,255,.34))
            drop-shadow(0 0 22px rgba(123,97,255,.16));
    }
}

/* POPPING STARS
   A few extra dots softly appear and disappear in different places. */

.star-pop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    will-change: opacity, filter;
}

.star-pop-1 {
    background-image:
        radial-gradient(circle at 8% 18%, rgba(255,255,255,.98) 0 1.4px, rgba(255,255,255,.4) 2.4px, transparent 4.4px),
        radial-gradient(circle at 15% 61%, rgba(255,255,255,.96) 0 1.2px, rgba(190,174,255,.32) 2px, transparent 4px),
        radial-gradient(circle at 24% 87%, rgba(255,255,255,.95) 0 1.1px, rgba(190,174,255,.26) 1.9px, transparent 3.8px),
        radial-gradient(circle at 86% 14%, rgba(255,255,255,.98) 0 1.4px, rgba(255,255,255,.4) 2.4px, transparent 4.4px),
        radial-gradient(circle at 92% 58%, rgba(255,255,255,.96) 0 1.2px, rgba(190,174,255,.32) 2px, transparent 4px),
        radial-gradient(circle at 80% 84%, rgba(255,255,255,.95) 0 1.1px, rgba(190,174,255,.26) 1.9px, transparent 3.8px),
        radial-gradient(circle at 35% 26%, rgba(255,255,255,.88) 0 .9px, rgba(190,174,255,.18) 1.7px, transparent 3.2px),
        radial-gradient(circle at 67% 72%, rgba(255,255,255,.88) 0 .9px, rgba(190,174,255,.18) 1.7px, transparent 3.2px);
    background-repeat: no-repeat;
    animation: popStarsA 7.4s ease-in-out infinite;
}

.star-pop-2 {
    background-image:
        radial-gradient(circle at 11% 33%, rgba(255,255,255,.98) 0 1.3px, rgba(255,255,255,.38) 2.2px, transparent 4.2px),
        radial-gradient(circle at 20% 76%, rgba(255,255,255,.95) 0 1.1px, rgba(190,174,255,.28) 1.9px, transparent 3.8px),
        radial-gradient(circle at 31% 10%, rgba(255,255,255,.94) 0 1px, rgba(190,174,255,.25) 1.8px, transparent 3.6px),
        radial-gradient(circle at 83% 22%, rgba(255,255,255,.98) 0 1.3px, rgba(255,255,255,.38) 2.2px, transparent 4.2px),
        radial-gradient(circle at 88% 69%, rgba(255,255,255,.95) 0 1.1px, rgba(190,174,255,.28) 1.9px, transparent 3.8px),
        radial-gradient(circle at 74% 91%, rgba(255,255,255,.94) 0 1px, rgba(190,174,255,.25) 1.8px, transparent 3.6px),
        radial-gradient(circle at 41% 59%, rgba(255,255,255,.89) 0 .9px, rgba(190,174,255,.18) 1.7px, transparent 3.2px),
        radial-gradient(circle at 58% 41%, rgba(255,255,255,.89) 0 .9px, rgba(190,174,255,.18) 1.7px, transparent 3.2px);
    background-repeat: no-repeat;
    animation: popStarsB 9.1s ease-in-out infinite;
}

.star-pop-3 {
    background-image:
        radial-gradient(circle at 6% 46%, rgba(255,255,255,.97) 0 1.2px, rgba(255,255,255,.36) 2.1px, transparent 4.1px),
        radial-gradient(circle at 18% 94%, rgba(255,255,255,.94) 0 1px, rgba(190,174,255,.24) 1.8px, transparent 3.5px),
        radial-gradient(circle at 27% 20%, rgba(255,255,255,.92) 0 .95px, rgba(190,174,255,.20) 1.7px, transparent 3.3px),
        radial-gradient(circle at 94% 41%, rgba(255,255,255,.97) 0 1.2px, rgba(255,255,255,.36) 2.1px, transparent 4.1px),
        radial-gradient(circle at 82% 93%, rgba(255,255,255,.94) 0 1px, rgba(190,174,255,.24) 1.8px, transparent 3.5px),
        radial-gradient(circle at 71% 24%, rgba(255,255,255,.92) 0 .95px, rgba(190,174,255,.20) 1.7px, transparent 3.3px),
        radial-gradient(circle at 38% 80%, rgba(255,255,255,.88) 0 .85px, rgba(190,174,255,.16) 1.6px, transparent 3px),
        radial-gradient(circle at 63% 12%, rgba(255,255,255,.88) 0 .85px, rgba(190,174,255,.16) 1.6px, transparent 3px);
    background-repeat: no-repeat;
    animation: popStarsC 11.2s ease-in-out infinite;
}

@keyframes popStarsA {
    0%, 10%, 100% { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    15%, 23% { opacity: .9; filter: drop-shadow(0 0 6px rgba(255,255,255,.35)) drop-shadow(0 0 12px rgba(123,97,255,.14)); }
    29%, 44% { opacity: 0; }
    49%, 57% { opacity: .8; filter: drop-shadow(0 0 5px rgba(255,255,255,.28)) drop-shadow(0 0 10px rgba(123,97,255,.12)); }
    63%, 100% { opacity: 0; }
}

@keyframes popStarsB {
    0%, 18%, 100% { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    24%, 31% { opacity: .85; filter: drop-shadow(0 0 6px rgba(255,255,255,.32)) drop-shadow(0 0 11px rgba(123,97,255,.12)); }
    36%, 52% { opacity: 0; }
    58%, 66% { opacity: .78; filter: drop-shadow(0 0 5px rgba(255,255,255,.28)) drop-shadow(0 0 10px rgba(123,97,255,.11)); }
    72%, 100% { opacity: 0; }
}

@keyframes popStarsC {
    0%, 8%, 100% { opacity: 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    13%, 20% { opacity: .78; filter: drop-shadow(0 0 5px rgba(255,255,255,.28)) drop-shadow(0 0 9px rgba(123,97,255,.10)); }
    26%, 61% { opacity: 0; }
    67%, 75% { opacity: .88; filter: drop-shadow(0 0 6px rgba(255,255,255,.34)) drop-shadow(0 0 12px rgba(123,97,255,.13)); }
    82%, 100% { opacity: 0; }
}

.site-shell {
    position: relative;
    z-index: 1;

    width: min(1400px, 100%);
    margin: 0 auto;

    background:
        linear-gradient(
            180deg,
            var(--shell) 0%,
            var(--shell-2) 100%
        );

    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}


/* HEADER */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 24px;

    padding: 18px 26px 12px;
}

.top-left {
    display: flex;
    align-items: flex-start;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;

    gap: 20px;
}

.brand-logo-link {
    display: block;
    flex: 0 0 auto;
}

.brand-icon-wrap {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.25);

    box-shadow:
        0 5px 12px rgba(29, 21, 65, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28);

    overflow: hidden;
}

.brand-icon-img {
    display: block;

    width: 39px;
    height: 39px;

    max-width: 39px;
    max-height: 39px;

    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding-top: 1px;
}

.brand-name {
    color: #221f34;

    font-size: 1.2rem;
    font-weight: 800;

    line-height: 1;
}


/* CSS ARROWS */

.css-down-arrow {
    display: inline-block;

    width: 0;
    height: 0;

    margin-left: 2px;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #2e2a43;

    flex: 0 0 auto;
}

.light-arrow {
    border-top-color: #ffffff;
}


/* RESOURCES MENU */

.resources-dropdown {
    position: relative;
}

.resources-trigger {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #2e2a43;

    font: inherit;
    font-size: 0.87rem;
    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;
}

.resources-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    min-width: 210px;

    display: none;
    flex-direction: column;

    padding: 6px;

    background:
        rgba(255, 255, 255, 0.98);

    border: 1px solid var(--line);
    border-radius: 14px;

    box-shadow:
        0 14px 34px rgba(30, 24, 56, 0.18);

    z-index: 30;
}

.resources-menu.open {
    display: flex;
}

.resources-menu a {
    display: block;

    padding: 10px 12px;

    border-radius: 9px;

    color: var(--text);

    font-size: 0.92rem;
    font-weight: 700;
}

.resources-menu a:hover {
    background: #f0edf9;
}


/* HEADER ACTIONS */

.top-actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

.language-button,
.premium-button,
.login-button {
    border: 0;

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.language-button:hover,
.premium-button:hover,
.login-button:hover {
    transform: translateY(-1px);
}


/* LANGUAGE SELECTOR */

.language-dropdown {
    position: relative;
}

.language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 40px;

    padding: 9px 12px;

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.12);

    color: white;

    box-shadow:
        0 4px 9px rgba(31, 21, 70, 0.13);
}

.language-flag {
    display: block;

    width: 22px;
    height: 22px;

    min-width: 22px;

    border-radius: 50%;

    object-fit: cover;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.45),
        0 2px 5px rgba(24, 17, 58, 0.18);
}

.language-code {
    font-weight: 800;
}

.language-menu {
    position: absolute;

    top: calc(100% + 9px);
    right: 0;

    min-width: 220px;

    display: none;

    padding: 7px;

    background:
        rgba(255, 255, 255, 0.98);

    border:
        1px solid var(--line);

    border-radius: 14px;

    box-shadow:
        0 14px 34px rgba(30, 24, 56, 0.18);

    z-index: 40;
}

.language-menu.open {
    display: block;
}

.language-option {
    width: 100%;

    display: grid;

    grid-template-columns:
        28px 1fr auto;

    align-items: center;

    gap: 9px;

    padding: 10px 11px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--text);

    font: inherit;

    text-align: left;

    cursor: pointer;
}

.language-option:hover {
    background: #f0edf9;
}

.language-option.active {
    background: #ece8fa;
}

.language-option-flag {
    display: block;

    width: 24px;
    height: 24px;

    min-width: 24px;

    border-radius: 50%;

    object-fit: cover;

    box-shadow:
        0 0 0 1px rgba(74, 63, 112, 0.16),
        0 2px 5px rgba(30, 24, 56, 0.10);
}

.language-option-name {
    font-weight: 700;
}

.language-option-code {
    color: var(--muted);

    font-size: 0.82rem;
    font-weight: 800;
}

.language-coming-soon {
    margin-top: 5px;

    padding: 9px 11px 6px;

    border-top:
        1px solid var(--line);

    color: var(--muted);

    font-size: 0.78rem;
    font-style: italic;

    text-align: center;
}


/* PREMIUM BUTTON */

.premium-button {
    padding: 11px 16px;

    border-radius: 11px;

    background: var(--premium);

    color: #705500;

    box-shadow:
        0 5px 12px rgba(91, 69, 0, 0.22);
}


/* LOGIN BUTTON */

.login-button {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 16px;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            180deg,
            #7357ec 0%,
            #654ee0 100%
        );

    box-shadow:
        0 5px 12px rgba(54, 39, 125, 0.28);
}

.discord-logo-img {
    display: block;

    width: 18px;
    height: 18px;

    max-width: 18px;
    max-height: 18px;

    object-fit: contain;

    flex: 0 0 18px;
}


/* MAIN NAVIGATION TABS */

.folder-tabs {
    display: flex;
    align-items: flex-end;

    gap: 8px;

    margin:
        0 var(--content-margin);

    padding: 0;

    position: relative;

    z-index: 2;
}

.folder-tab {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding:
        12px 20px 0;

    background:
        rgba(255, 255, 255, 0.44);

    color: #2c2840;

    font-weight: 800;

    line-height: 1;

    border-radius:
        14px 14px 0 0;

    box-shadow:
        0 -3px 9px rgba(35, 27, 76, 0.13);

    transition:
        background 140ms ease,
        min-height 140ms ease,
        padding 140ms ease,
        box-shadow 140ms ease;
}

.folder-tab:hover {
    min-height: 52px;

    padding-top: 14px;

    background:
        rgba(255, 255, 255, 0.64);

    box-shadow:
        0 -5px 13px rgba(35, 27, 76, 0.16);
}

.folder-tab.active {
    min-height: 52px;

    padding-top: 14px;

    background: var(--tab-active);

    box-shadow:
        0 -5px 14px rgba(35, 27, 76, 0.18);
}


/* MAIN CONTENT */

.folder-content {
    position: relative;

    z-index: 1;

    margin:
        0 var(--content-margin);

    min-height: 720px;

    padding: 30px;

    background:
        rgba(243, 241, 251, 0.96);

    border-left:
        1px solid rgba(193, 184, 223, 0.7);

    border-right:
        1px solid rgba(193, 184, 223, 0.7);

    border-bottom:
        1px solid rgba(193, 184, 223, 0.7);

    border-top: 0;

    border-radius:
        0 22px 22px 22px;
}


/* PAGE HEADER */

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 24px;
}

.tools-header h1 {
    margin: 0;

    font-size:
        clamp(2.2rem, 5vw, 3.4rem);

    line-height: 1;

    letter-spacing: -0.03em;
}

.tools-header p {
    max-width: 720px;

    margin: 10px 0 0;

    color: var(--muted);

    font-size: 1.02rem;
}


/* TOOL COUNT */

.tool-count {
    display: flex;
    align-items: baseline;

    gap: 6px;

    padding: 10px 14px;

    background: #ece8f7;

    border: 1px solid var(--line);
    border-radius: 13px;

    color: var(--muted);

    box-shadow:
        0 4px 10px rgba(30, 24, 56, 0.07);
}

.tool-count strong {
    color: var(--text);
}


/* SEARCH */

.tool-search-section {
    margin-bottom: 34px;
}

.search-box {
    display: flex;
    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 0 16px;

    background:
        rgba(255, 255, 255, 0.92);

    border: 1px solid var(--line);
    border-radius: 16px;

    box-shadow: var(--shadow-soft);
}

.search-box span {
    color: var(--muted);

    font-size: 1.35rem;
}

.search-box input {
    width: 100%;

    padding: 17px 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font: inherit;
    font-size: 1rem;
}


/* CATEGORY FILTERS */

.category-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 16px;
}

.category-button {
    padding: 9px 14px;

    border:
        1px solid var(--line-strong);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.7);

    color: var(--text);

    font: inherit;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 9px rgba(34, 26, 68, 0.09);

    transition:
        transform 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease,
        border-color 140ms ease;
}

.category-button:hover {
    background: #eeebf9;

    transform:
        translateY(-1px);

    box-shadow:
        0 6px 13px rgba(34, 26, 68, 0.13);
}

.category-button.active {
    background:
        linear-gradient(
            180deg,
            #7b61ff 0%,
            #654ee0 100%
        );

    border-color: transparent;

    color: white;

    box-shadow:
        0 6px 15px
        rgba(101, 78, 224, 0.25);
}


/* TOOL CATEGORIES */

.tool-category {
    margin: 42px 0;
}

.category-heading {
    margin-bottom: 14px;
}

.category-heading h2 {
    margin: 0;

    font-size: 1.55rem;

    letter-spacing: -0.02em;
}

.category-heading p {
    margin: 6px 0 0;

    color: var(--muted);

    font-style: italic;
}


/* TOOL GRID */

.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(300px, 1fr)
        );

    gap: 16px;
}


/* TOOL CARDS */

.tool-card {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    min-height: 128px;

    padding: 18px;

    background:
        rgba(255, 255, 255, 0.92);

    border:
        1px solid var(--line);

    border-radius: 16px;

    box-shadow: var(--shadow-soft);

    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        border-color 140ms ease;
}

.tool-card:hover {
    transform:
        translateY(-2px);

    border-color: #bcaef3;

    box-shadow:
        0 18px 34px
        rgba(76, 58, 146, 0.12);
}

.tool-card:focus-visible {
    outline:
        3px solid #7b61ff;

    outline-offset: 3px;
}


/* TOOL ICON */

.tool-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #ede9fb 0%,
            #e5def8 100%
        );

    color: #352b68;

    font-size: 1.35rem;
    font-weight: 900;

    box-shadow:
        0 4px 10px
        rgba(58, 42, 110, 0.09);
}

.tool-card h3 {
    margin: 0 0 6px;

    font-size: 1.05rem;

    letter-spacing: -0.01em;
}

.tool-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.45;
}


/* EMPTY SEARCH RESULTS */

.no-results {
    padding: 60px 20px;

    text-align: center;
}

.no-results h2 {
    margin-bottom: 8px;
}

.no-results p {
    color: var(--muted);
}


/* FOOTER */
.footer-mega {
    display: grid;
    grid-template-columns: minmax(260px, 1.65fr) repeat(5, minmax(120px, 1fr));
    gap: 34px;
    align-items: start;
    padding: 42px 34px 24px;
    color: #201b35;
}
.footer-brand-column { min-width: 0; }
.footer-brand-lockup { display:flex; align-items:center; gap:14px; }
.footer-brand-logo { width:76px !important; height:76px !important; object-fit:contain; flex:0 0 76px; }
.footer-brand-name { font-size:2.7rem; line-height:.92; font-weight:950; letter-spacing:-0.045em; }
.footer-brand-copy { max-width:330px; margin:18px 0 18px; font-size:.92rem; font-weight:650; line-height:1.55; color:#302849; }
.footer-social-discord { display:block; width:26px !important; height:26px !important; object-fit:contain; }
.footer-disclaimer { margin:12px 0 0; font-size:.78rem; font-weight:700; color:#41375d; }
.footer-column { display:flex; flex-direction:column; gap:10px; }
.footer-column h2 { margin:0 0 5px; font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:#332951; }
.footer-column a,.footer-muted { font-size:.88rem; font-weight:700; line-height:1.35; color:#251f3a; }
.footer-column a { transition: transform 120ms ease, opacity 120ms ease; }
.footer-column a:hover { transform:translateX(2px); opacity:.76; }
.footer-muted { opacity:.68; }
.footer-bottom { grid-column:1/-1; margin-top:8px; padding-top:18px; border-top:1px solid rgba(39,29,73,.24); font-size:.82rem; font-weight:750; }

/* COMING SOON */

.construction-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 32px;

    background:
        radial-gradient(
            circle at top,
            #211b34 0%,
            #12111a 55%
        );
}

.construction-card {
    width: min(720px, 100%);

    padding: 48px 28px;

    text-align: center;

    background:
        rgba(244, 242, 251, 0.97);

    border-radius: 28px;

    box-shadow: var(--shadow);
}

.construction-card img {
    width: 160px;
    height: 160px;

    max-width: 160px;
    max-height: 160px;

    margin-bottom: 22px;

    object-fit: contain;
}

.construction-card h1 {
    margin: 0 0 10px;

    color: var(--text);

    font-size:
        clamp(2rem, 5vw, 3rem);
}

.construction-card p {
    margin: 0;

    color: var(--muted);

    font-size: 1.1rem;
}

.construction-back {
    display: inline-block;

    margin-top: 28px;

    padding: 12px 18px;

    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            #7357ec 0%,
            #654ee0 100%
        );

    color: white;

    font-weight: 700;

    box-shadow:
        0 6px 14px
        rgba(54, 39, 125, 0.24);

    transition:
        transform 140ms ease,
        box-shadow 140ms ease;
}

.construction-back:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 9px 18px
        rgba(54, 39, 125, 0.28);
}


/* TABLET */

@media (max-width: 860px) {

    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tools-header {
        flex-direction: column;
    }

    .tool-count {
        width: max-content;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    :root {
        --content-margin: 22px;
    }

    .page-bg {
        padding: 0;
    }

    .site-shell {
        min-height: 100vh;
        border-radius: 0;
    }

    .top-bar {
        padding: 18px 22px 14px;
    }

    .brand {
        gap: 18px;
    }

    .brand-icon-wrap {
        width: 58px;
        height: 58px;
    }

    .brand-icon-img {
        width: 42px;
        height: 42px;

        max-width: 42px;
        max-height: 42px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .resources-trigger {
        font-size: 0.88rem;
    }

    .top-actions {
        gap: 12px;
    }

    .login-button,
    .premium-button,
    .language-button {
        font-size: 0.92rem;
    }

    .folder-tabs {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        width: auto;

        margin:
            0 var(--content-margin) 12px;

        padding: 0;

        gap: 8px;

        overflow: visible;
    }

    .folder-tab {
        width: 100%;

        min-width: 0;
        min-height: 54px;

        padding:
            0 8px;

        white-space: nowrap;

        border-radius: 14px;

        font-size:
            clamp(0.82rem, 3.2vw, 0.94rem);

        text-align: center;

        box-shadow:
            0 3px 9px rgba(35, 27, 76, 0.13);
    }

    .folder-tab:hover,
    .folder-tab.active {
        min-height: 54px;

        padding-top: 0;

        box-shadow:
            0 5px 13px rgba(35, 27, 76, 0.18);
    }

    .folder-content {
        margin:
            0 var(--content-margin);

        padding:
            26px 20px;

        border:
            1px solid rgba(193, 184, 223, 0.7);

        border-radius: 18px;
    }

    .tools-header h1 {
        font-size:
            clamp(2rem, 10vw, 3rem);

        line-height: 1.05;
    }

    .tools-header p {
        font-size: 1rem;

        line-height: 1.45;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .category-filters {
        gap: 10px;
    }

    .category-button {
        padding:
            9px 14px;
    }

    .language-menu {
        left: 0;
        right: auto;
    }
}


/* EXTRA SMALL MOBILE */

@media (max-width: 430px) {

    .top-actions {
        display: grid;

        grid-template-columns:
            auto 1fr 1fr;

        width: 100%;
    }

    .language-button,
    .premium-button,
    .login-button {
        justify-content: center;

        min-height: 44px;

        padding:
            9px 11px;
    }

    .folder-tabs {
        gap: 7px;
    }

    .folder-tab {
        min-height: 52px;

        padding:
            0 6px;

        font-size: 0.78rem;
    }

    .folder-tab:hover,
    .folder-tab.active {
        min-height: 52px;

        padding-top: 0;
    }

    .folder-content {
        padding:
            24px 18px;

        border-radius: 18px;
    }
}


/* =========================================================
   TIMESTAMP GENERATOR
   ========================================================= */

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

.timestamp-page {
    padding-bottom: 42px;
}

.timestamp-hero {
    margin-bottom: 26px;
}

.tool-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #645b7c;
    font-size: 0.9rem;
    font-weight: 800;
    transition:
        color 140ms ease,
        transform 140ms ease;
}

.tool-back-link:hover {
    color: var(--brand-dark);
    transform: translateX(-2px);
}

.timestamp-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.timestamp-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.timestamp-title-row p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.local-time-badge {
    min-width: 150px;
    padding: 10px 13px;
    background: #ece8f7;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-align: right;
    box-shadow:
        0 4px 10px rgba(30, 24, 56, 0.07);
}

.local-time-badge strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 0.98rem;
}

.timestamp-builder {
    padding: 20px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.timestamp-date-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 14px;
    align-items: end;
}

.datetime-input-wrap {
    position: relative;
    min-width: 0;
}

.datetime-text-input {
    width: 100%;
    min-height: 54px;
    padding: 0 58px 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.07);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.datetime-text-input:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.13),
        0 7px 16px rgba(34, 26, 68, 0.08);
}

.calendar-button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    background: #eeeafd;
    color: var(--brand-dark);
    cursor: pointer;
    transition:
        transform 140ms ease,
        background 140ms ease,
        box-shadow 140ms ease;
}

.calendar-button:hover {
    transform: translateY(-50%) scale(1.035);
    background: #e5dffc;
    box-shadow:
        0 5px 12px rgba(79, 59, 165, 0.15);
}

.calendar-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.native-date-picker {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.time-select-wrap {
    display: block;
}

.time-select-label {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.time-dropdown {
    position: relative;
}

.time-trigger {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 17px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    outline: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    color: var(--text);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(34, 26, 68, 0.07);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.time-trigger:hover,
.time-trigger:focus-visible,
.time-dropdown.open .time-trigger {
    border-color: #8f7ae0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13), 0 8px 18px rgba(64, 45, 120, 0.10);
}

.time-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #75699a;
    border-bottom: 2px solid #75699a;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 60% 60%;
    transition: transform 150ms ease;
}

.time-dropdown.open .time-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.time-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 90;
    display: grid;
    gap: 4px;
    max-height: 330px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8a7ee transparent;
    border: 1px solid #d6cfea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 18px 40px rgba(39, 28, 78, 0.16), 0 4px 12px rgba(39, 28, 78, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.time-menu::-webkit-scrollbar {
    width: 9px;
}

.time-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #b8a7ee;
    background-clip: padding-box;
}

.time-dropdown.open .time-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.time-option {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #40394f;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 720;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.time-option:hover,
.time-option:focus-visible {
    color: #4f39b6;
    background: #f3efff;
    border-color: #b7a6ef;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12), 0 5px 14px rgba(92, 68, 177, 0.10);
    transform: translateY(-1px);
}

.time-option.selected {
    color: #5c44c7;
    background: #eee9ff;
    border-color: #c4b7f0;
}

.time-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.datetime-error {
    min-height: 18px;
    margin: 8px 2px 0;
    color: #b0475a;
    font-size: 0.82rem;
    font-weight: 700;
}

.timestamp-output-section,
.discord-preview-section {
    margin-top: 34px;
}

.timestamp-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.timestamp-section-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.timestamp-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.copy-selected-button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #c9c0e7;
    border-radius: 10px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 4px 9px rgba(34, 26, 68, 0.07);
    transition:
        transform 140ms ease,
        background 140ms ease,
        border-color 140ms ease;
}

.copy-selected-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    border-color: #aa9adb;
}

.timestamp-list {
    display: grid;
    gap: 9px;
}

.timestamp-row {
    display: grid;
    grid-template-columns: minmax(205px, 0.82fr) minmax(0, 1.4fr) 42px;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 9px 10px 9px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 4px 10px rgba(30, 24, 56, 0.045);
    cursor: pointer;
    transition:
        transform 130ms ease,
        border-color 130ms ease,
        background 130ms ease,
        box-shadow 130ms ease;
}

.timestamp-row:hover {
    transform: translateY(-1px);
    border-color: #b9ade0;
    background: #ffffff;
    box-shadow:
        0 8px 17px rgba(51, 39, 96, 0.08);
}

.timestamp-row.selected {
    border-color: #8c75e5;
    background: #f5f1ff;
    box-shadow:
        0 0 0 2px rgba(123, 97, 255, 0.08),
        0 8px 17px rgba(51, 39, 96, 0.08);
}

.timestamp-code-wrap {
    min-width: 0;
}

.timestamp-format-name {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.timestamp-code {
    display: inline-block;
    max-width: 100%;
    padding: 5px 7px;
    overflow: hidden;
    border-radius: 7px;
    background: #262232;
    color: #f5f2ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.87rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.timestamp-rendered {
    min-width: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.35;
}

.timestamp-copy-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    transition:
        background 130ms ease,
        transform 130ms ease;
}

.timestamp-copy-button:hover {
    background: #e9e4fa;
    transform: scale(1.04);
}

.timestamp-copy-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timestamp-copy-button.copied,
.copy-selected-button.copied {
    color: #347b5a;
}

.discord-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 16px;
    background: #313338;
    color: #dbdee1;
    box-shadow:
        0 10px 25px rgba(22, 18, 35, 0.18);
}

.discord-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(
            135deg,
            #9a85ed 0%,
            #7257da 100%
        );
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.discord-message-content {
    min-width: 0;
    flex: 1;
}

.discord-message-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    line-height: 1.2;
}

.discord-username {
    color: #f2f3f5;
    font-weight: 650;
}

.discord-message-time {
    color: #949ba4;
    font-size: 0.72rem;
    font-weight: 500;
}

.discord-message {
    margin-top: 4px;
    color: #dbdee1;
    font-size: 1rem;
    line-height: 1.4;
    word-break: break-word;
}

.discord-timestamp-token {
    display: inline;
    max-width: 100%;
    padding: 0 2px;
    border-radius: 3px;
    background: rgba(79, 84, 92, 0.48);
    color: #dbdee1;
    font: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

@media (max-width: 860px) {

    .timestamp-title-row {
        flex-direction: column;
    }

    .local-time-badge {
        text-align: left;
    }

    .timestamp-date-row {
        grid-template-columns: 1fr;
    }

    .timestamp-row {
        grid-template-columns: minmax(0, 1fr) 42px;
    }

    .timestamp-rendered {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0 2px 4px;
    }

    .timestamp-copy-button {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 700px) {

    .timestamp-page {
        padding-bottom: 32px;
    }

    .timestamp-builder {
        padding: 15px;
        border-radius: 14px;
    }

    .timestamp-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .timestamp-row {
        padding-left: 11px;
    }

    .timestamp-title-row h1 {
        font-size: clamp(1.9rem, 9vw, 2.75rem);
    }

    .discord-preview-card {
        padding: 16px;
    }
}

@media (max-width: 430px) {

    .datetime-text-input,
    .time-select {
        min-height: 52px;
    }

    .timestamp-code {
        font-size: 0.78rem;
    }

    .timestamp-row {
        gap: 8px;
    }

    .discord-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}


/* =========================================================
   MARKDOWN PREVIEWER
   ========================================================= */

.markdown-page {
    padding-bottom: 42px;
}

.markdown-hero {
    margin-bottom: 24px;
}

.markdown-title-row {
    display: block;
}

.markdown-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.markdown-title-row p {
    max-width: none;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: nowrap;
}


.markdown-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    margin-bottom: 26px;
    padding: 8px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.markdown-format-button {
    min-height: 36px;
    min-width: 0;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 3px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #38324b;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform 130ms ease,
        background 130ms ease,
        border-color 130ms ease,
        box-shadow 130ms ease;
}

.markdown-format-button span {
    color: #6f6783;
    font-size: 0.65rem;
    font-weight: 750;
}

.markdown-format-button:hover {
    transform: translateY(-1px);
    background: #f2eefc;
    border-color: #d0c7eb;
    box-shadow:
        0 4px 9px rgba(34, 26, 68, 0.07);
}

.markdown-format-button:focus-visible {
    outline: 3px solid rgba(123, 97, 255, 0.2);
    outline-offset: 2px;
}

.markdown-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.markdown-column {
    min-width: 0;
}

.markdown-panel-heading {
    min-height: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.markdown-panel-heading h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.015em;
}

.markdown-panel-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.markdown-editor {
    width: 100%;
    min-height: 390px;
    display: block;
    resize: vertical;
    padding: 17px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    outline: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.94rem;
    line-height: 1.55;
    box-shadow:
        0 8px 18px rgba(34, 26, 68, 0.06);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.markdown-editor::placeholder {
    color: #a39cad;
    opacity: 1;
}

.markdown-editor:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.12),
        0 9px 21px rgba(34, 26, 68, 0.07);
}

.markdown-workspace-footer {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
}

.markdown-character-counter {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.markdown-character-counter.near-limit {
    color: #a96d24;
}

.markdown-character-counter.at-limit {
    color: #b54456;
}

.markdown-editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.markdown-copy-button,
.markdown-clear-button {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 130ms ease,
        box-shadow 130ms ease,
        background 130ms ease;
}

.markdown-copy-button {
    border: 1px solid #c9c0e7;
    background: #f7f5fd;
    color: #51456f;
}

.markdown-copy-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    box-shadow:
        0 5px 11px rgba(34, 26, 68, 0.08);
}

.markdown-copy-button.copied {
    color: #347b5a;
    border-color: #9dceb6;
    background: #edf8f2;
}

.markdown-clear-button {
    border: 1px solid #efb3bc;
    background: #fff0f2;
    color: #b23c4f;
}

.markdown-clear-button:hover {
    transform: translateY(-1px);
    background: #ffe5e9;
    box-shadow:
        0 5px 11px rgba(130, 38, 52, 0.08);
}

.markdown-discord-preview {
    min-height: 390px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(42, 44, 49, 0.8);
    border-radius: 15px;
    background: #313338;
    color: #dbdee1;
    box-shadow:
        0 10px 25px rgba(22, 18, 35, 0.17);
}

.markdown-preview-message {
    margin-top: 4px;
    color: #dbdee1;
    font-size: 1rem;
    line-height: 1.375;
    overflow-wrap: anywhere;
}

.markdown-preview-empty {
    color: #949ba4;
    font-style: italic;
}

.markdown-preview-message p {
    margin: 0 0 4px;
}

.markdown-preview-message p:last-child {
    margin-bottom: 0;
}

.markdown-preview-message strong {
    color: #f2f3f5;
    font-weight: 700;
}

.markdown-preview-message em {
    font-style: italic;
}

.markdown-preview-message u {
    text-decoration: underline;
}

.markdown-preview-message s {
    text-decoration: line-through;
}

.markdown-preview-message code {
    padding: 2px 4px;
    border-radius: 3px;
    background: #1e1f22;
    color: #dbdee1;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.875em;
}

.markdown-preview-message pre {
    margin: 5px 0;
    padding: 9px 10px;
    overflow-x: auto;
    border: 1px solid #1e1f22;
    border-radius: 4px;
    background: #2b2d31;
    color: #dbdee1;
    white-space: pre-wrap;
}

.markdown-preview-message pre code {
    padding: 0;
    background: transparent;
}

.markdown-preview-message .discord-spoiler {
    padding: 0 2px;
    border-radius: 3px;
    background: #1e1f22;
    color: transparent;
    cursor: pointer;
    transition:
        color 120ms ease,
        background 120ms ease;
}

.markdown-preview-message .discord-spoiler.revealed {
    color: #dbdee1;
    background: rgba(30, 31, 34, 0.55);
}

.markdown-preview-message .discord-header-1,
.markdown-preview-message .discord-header-2,
.markdown-preview-message .discord-header-3 {
    display: block;
    color: #f2f3f5;
    font-weight: 700;
    line-height: 1.2;
}

.markdown-preview-message .discord-header-1 {
    margin: 8px 0 5px;
    font-size: 1.5rem;
}

.markdown-preview-message .discord-header-2 {
    margin: 7px 0 4px;
    font-size: 1.25rem;
}

.markdown-preview-message .discord-header-3 {
    margin: 6px 0 3px;
    font-size: 1.05rem;
}

.markdown-preview-message .discord-subtext {
    color: #949ba4;
    font-size: 0.78rem;
}

.markdown-preview-message .discord-quote {
    display: block;
    margin: 3px 0;
    padding-left: 10px;
    border-left: 4px solid #949ba4;
}

.markdown-preview-message .discord-bullet {
    display: block;
    position: relative;
    padding-left: 18px;
}

.markdown-preview-message .discord-bullet::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #dbdee1;
}

@media (max-width: 1000px) {

    .markdown-toolbar {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .markdown-format-button {
        flex: 0 0 auto;
    }
}

@media (max-width: 860px) {

    .markdown-title-row p {
        white-space: normal;
    }

    .markdown-workspace {
        grid-template-columns: 1fr;
    }

    .markdown-editor,
    .markdown-discord-preview {
        min-height: 320px;
    }
}

@media (max-width: 700px) {

    .markdown-page {
        padding-bottom: 32px;
    }

    .markdown-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        overflow: visible;
    }

    .markdown-format-button {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        justify-content: flex-start;
        gap: 7px;
        padding: 9px 11px;
        border-color: rgba(208, 199, 235, 0.72);
        background: rgba(255, 255, 255, 0.56);
        font-size: 0.8rem;
        white-space: normal;
        text-align: left;
    }

    .markdown-format-button span {
        min-width: 0;
        font-size: 0.7rem;
        line-height: 1.15;
    }

    .markdown-editor {
        min-height: 290px;
        padding: 14px;
    }

    .markdown-discord-preview {
        min-height: 270px;
        padding: 16px;
    }
}

@media (max-width: 430px) {

    .markdown-workspace-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .markdown-editor-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .markdown-copy-button,
    .markdown-clear-button {
        flex: 1;
    }
}


/* =========================================================
   CHARACTER COUNTER
   ========================================================= */

.counter-page {
    padding-bottom: 42px;
}

.counter-hero {
    margin-bottom: 24px;
}

.counter-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.counter-title-row p {
    max-width: none;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: nowrap;
}

.counter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    align-items: end;
    margin-bottom: 8px;
}

.counter-mode-field,
.counter-custom-field {
    display: block;
    min-width: 0;
}

.counter-control-label {
    display: block;
    margin: 0 0 7px 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.counter-mode-select,
.counter-custom-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 750;
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.07);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.counter-mode-select {
    padding: 0 42px 0 14px;
    cursor: pointer;
}

.counter-custom-input {
    padding: 0 14px;
}

.counter-mode-select:focus,
.counter-custom-input:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.13),
        0 7px 16px rgba(34, 26, 68, 0.08);
}

.counter-mode-note {
    min-height: 20px;
    margin: 0 2px 12px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.counter-editor-section {
    margin-top: 4px;
}

.counter-editor-wrap {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 8px 18px rgba(34, 26, 68, 0.06);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.counter-editor-wrap:focus-within {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.12),
        0 9px 21px rgba(34, 26, 68, 0.07);
}

.counter-highlight,
.counter-editor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 18px;
    border: 0;
    font: inherit;
    font-size: 1rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    tab-size: 4;
}

.counter-highlight {
    overflow: auto;
    pointer-events: none;
    color: var(--text);
    background: transparent;
    scrollbar-width: none;
}

.counter-highlight::-webkit-scrollbar {
    display: none;
}

.counter-highlight-over {
    color: #d64a5d;
    font-weight: 700;
}

.counter-editor {
    z-index: 1;
    resize: vertical;
    min-height: 420px;
    outline: 0;
    overflow: auto;
    background: transparent;
    color: transparent;
    caret-color: var(--text);
    -webkit-text-fill-color: transparent;
}

.counter-editor::placeholder {
    color: #a39cad;
    -webkit-text-fill-color: #a39cad;
    opacity: 1;
}

.counter-editor::selection {
    background: rgba(123, 97, 255, 0.23);
}

.counter-footer {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
}

.counter-status {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.87rem;
}

.counter-status strong {
    color: #676078;
    font-size: 0.94rem;
}

.counter-status.over-limit,
.counter-status.over-limit strong {
    color: #c93d51;
}

.counter-status.below-minimum,
.counter-status.below-minimum strong {
    color: #a96d24;
}

.counter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.counter-copy-button,
.counter-clear-button {
    min-height: 39px;
    padding: 8px 13px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 130ms ease,
        box-shadow 130ms ease,
        background 130ms ease;
}

.counter-copy-button {
    border: 1px solid #c9c0e7;
    background: #f7f5fd;
    color: #51456f;
}

.counter-copy-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    box-shadow:
        0 5px 11px rgba(34, 26, 68, 0.08);
}

.counter-copy-button.copied {
    color: #347b5a;
    border-color: #9dceb6;
    background: #edf8f2;
}

.counter-clear-button {
    border: 1px solid #efb3bc;
    background: #fff0f2;
    color: #b23c4f;
}

.counter-clear-button:hover {
    transform: translateY(-1px);
    background: #ffe5e9;
    box-shadow:
        0 5px 11px rgba(130, 38, 52, 0.08);
}

@media (max-width: 860px) {

    .counter-title-row p {
        white-space: normal;
    }

    .counter-controls {
        grid-template-columns: 1fr;
    }

    .counter-editor-wrap,
    .counter-editor {
        min-height: 340px;
    }
}

@media (max-width: 700px) {

    .counter-page {
        padding-bottom: 32px;
    }

    .counter-editor-wrap,
    .counter-editor {
        min-height: 300px;
    }

    .counter-highlight,
    .counter-editor {
        padding: 15px;
    }
}

@media (max-width: 430px) {

    .counter-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .counter-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .counter-copy-button,
    .counter-clear-button {
        flex: 1;
    }
}


/* =========================================================
   USER LOOKUP
   ========================================================= */

.user-lookup-page {
    padding-bottom: 42px;
}

.lookup-hero {
    margin-bottom: 24px;
}

.lookup-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.lookup-title-row p {
    max-width: none;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: nowrap;
}

.lookup-search-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.lookup-input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 850;
}

.lookup-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.lookup-user-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 650;
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.07);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.lookup-user-input:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.13),
        0 7px 16px rgba(34, 26, 68, 0.08);
}

.lookup-submit-button {
    min-width: 132px;
    min-height: 52px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #795fe9 0%,
            #654ee0 100%
        );
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(68, 48, 155, 0.22);
    transition:
        transform 130ms ease,
        box-shadow 130ms ease,
        opacity 130ms ease;
}

.lookup-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 9px 18px rgba(68, 48, 155, 0.26);
}

.lookup-submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.lookup-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.lookup-search-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.lookup-paste-button {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.lookup-status {
    min-height: 20px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.lookup-status.error {
    color: #b23c4f;
}

.lookup-status.success {
    color: #347b5a;
}

.lookup-result {
    margin-top: 26px;
    scroll-margin-top: 20px;
}

.lookup-profile-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.lookup-banner {
    min-height: 150px;
    background:
        linear-gradient(
            135deg,
            #8d78d8 0%,
            #6550b6 100%
        );
    background-position: center;
    background-size: cover;
}

.lookup-profile-body {
    position: relative;
    padding: 0 24px 22px;
}

.lookup-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -47px;
}

.lookup-avatar-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

.lookup-avatar {
    width: 112px;
    height: 112px;
    display: block;
    object-fit: cover;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #7763c8;
    box-shadow:
        0 7px 18px rgba(35, 27, 76, 0.17);
}

.lookup-avatar-decoration {
    position: absolute;
    inset: -10px;
    width: 132px;
    height: 132px;
    max-width: none;
    pointer-events: none;
    object-fit: contain;
}

.lookup-profile-identity {
    min-width: 0;
    padding-bottom: 6px;
}

.lookup-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lookup-name-line h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.025em;
}

.lookup-username {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 700;
}

.lookup-type-pill {
    padding: 3px 6px;
    border-radius: 5px;
    background: #5865f2;
    color: #ffffff;
    font-size: 0.63rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.035em;
}

.lookup-type-pill.system {
    background: #ed4245;
}

.lookup-primary-guild {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 4px 7px;
    border: 1px solid #ddd7ee;
    border-radius: 7px;
    background: #f3f0fa;
    color: #5a526e;
    font-size: 0.76rem;
    font-weight: 850;
}

.lookup-primary-guild-badge {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.lookup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.lookup-badge-pill {
    padding: 5px 8px;
    border: 1px solid #d5cdeb;
    border-radius: 999px;
    background: #f3f0fb;
    color: #5b5078;
    font-size: 0.72rem;
    font-weight: 800;
}

.lookup-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.lookup-secondary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #c9c0e7;
    border-radius: 9px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 130ms ease,
        background 130ms ease,
        box-shadow 130ms ease;
}

.lookup-secondary-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    box-shadow:
        0 5px 11px rgba(34, 26, 68, 0.08);
}

.lookup-secondary-button.copied {
    color: #347b5a;
    border-color: #9dceb6;
    background: #edf8f2;
}

.lookup-info-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.lookup-info-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.045);
}

.lookup-info-card h3 {
    margin: 0 0 11px;
    font-size: 1rem;
}

.lookup-detail-list {
    margin: 0;
}

.lookup-detail-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e7e3f0;
}

.lookup-detail-list > div:first-child {
    border-top: 0;
}

.lookup-detail-list dt {
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 800;
}

.lookup-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}

.lookup-color-value::before {
    content: "";
    width: 11px;
    height: 11px;
    display: inline-block;
    margin-right: 6px;
    border: 1px solid rgba(0, 0, 0, 0.13);
    border-radius: 50%;
    background: var(--lookup-color, transparent);
    vertical-align: -1px;
}

.lookup-raw-details {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
}

.lookup-raw-details summary {
    padding: 12px 14px;
    color: #554d6b;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
}

.lookup-raw-details pre {
    max-height: 360px;
    margin: 0;
    padding: 15px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #262232;
    color: #f5f2ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {

    .lookup-title-row p {
        white-space: normal;
    }

    .lookup-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .user-lookup-page {
        padding-bottom: 32px;
    }

    .lookup-search-panel {
        padding: 15px;
    }

    .lookup-search-row {
        grid-template-columns: 1fr;
    }

    .lookup-submit-button {
        width: 100%;
    }

    .lookup-banner {
        min-height: 125px;
    }

    .lookup-profile-body {
        padding: 0 17px 18px;
    }

    .lookup-avatar-wrap {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .lookup-avatar {
        width: 92px;
        height: 92px;
    }

    .lookup-avatar-decoration {
        inset: -8px;
        width: 108px;
        height: 108px;
    }

    .lookup-profile-top {
        gap: 13px;
        margin-top: -39px;
    }
}

@media (max-width: 430px) {

    .lookup-search-meta {
        align-items: flex-start;
    }

    .lookup-profile-top {
        align-items: flex-start;
        flex-direction: column;
        margin-top: -42px;
    }

    .lookup-profile-identity {
        padding-bottom: 0;
    }

    .lookup-detail-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .lookup-detail-list dd {
        text-align: left;
    }

    .lookup-action-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.lookup-api-note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #d7d2e9;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: #6f6783;
    font-size: 0.8rem;
    line-height: 1.5;
}

.lookup-api-note strong {
    color: #3f3855;
}

/* User Lookup badge icons + optional rows */
.lookup-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lookup-badge-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    object-fit: contain;
}

.lookup-avatar-failed {
    background:
        linear-gradient(
            135deg,
            #9a85ed 0%,
            #7257da 100%
        );
}

[data-optional-guild][hidden] {
    display: none !important;
}


/* =========================================================
   INVITE LOOKUP
   ========================================================= */

.invite-lookup-page {
    padding-bottom: 42px;
}

.invite-lookup-hero {
    margin-bottom: 24px;
}

.invite-lookup-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.invite-lookup-title-row p {
    max-width: none;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: nowrap;
}

.invite-search-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.invite-input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 850;
}

.invite-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.invite-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 650;
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.07);
}

.invite-input:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.13),
        0 7px 16px rgba(34, 26, 68, 0.08);
}

.invite-lookup-button {
    min-width: 132px;
    min-height: 52px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #795fe9 0%,
            #654ee0 100%
        );
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(68, 48, 155, 0.22);
}

.invite-lookup-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.invite-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.invite-search-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.invite-paste-button {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.invite-lookup-status {
    min-height: 20px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.invite-lookup-status.error {
    color: #b23c4f;
}

.invite-lookup-status.success {
    color: #347b5a;
}

.invite-lookup-result {
    margin-top: 26px;
    scroll-margin-top: 20px;
}

.invite-profile-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.invite-server-banner {
    min-height: 165px;
    background:
        linear-gradient(
            135deg,
            #8d78d8 0%,
            #6550b6 100%
        );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.invite-profile-body {
    position: relative;
    padding: 0 24px 22px;
}

.invite-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -47px;
}

.invite-server-icon-wrap {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

.invite-server-icon {
    width: 112px;
    height: 112px;
    display: block;
    object-fit: cover;
    border: 6px solid #ffffff;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            #9a85ed 0%,
            #7257da 100%
        );
    box-shadow:
        0 7px 18px rgba(35, 27, 76, 0.17);
}

.invite-profile-identity {
    min-width: 0;
    padding-top: 48px;
    padding-bottom: 5px;
}

.invite-server-name-line h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.18rem, 2.5vw, 1.55rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.invite-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.invite-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #ddd7ee;
    border-radius: 999px;
    background: #f3f0fa;
    color: #5a526e;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.invite-summary-pill.vanity {
    color: #58458f;
    border-color: #cfc2ee;
    background: #eee9fa;
}

.invite-summary-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.invite-boost-icon {
    border-radius: 0;
}

.invite-boost-pill > span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
}

.invite-description-section {
    margin-top: 18px;
}

.invite-description-label {
    margin: 0 0 7px 2px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
}

.invite-description {
    padding: 12px 14px;
    border: 1px solid #ded8ef;
    border-radius: 12px;
    background: #f6f4fb;
    color: #676078;
    font-size: 0.9rem;
    line-height: 1.5;
}

.invite-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.invite-secondary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #c9c0e7;
    border-radius: 9px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.invite-secondary-button[hidden] {
    display: none !important;
}

.invite-secondary-button.copied {
    color: #347b5a;
    border-color: #9dceb6;
    background: #edf8f2;
}

.invite-info-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.invite-info-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.045);
}

.invite-info-card h3 {
    margin: 0 0 11px;
    font-size: 1rem;
}

.invite-detail-list {
    margin: 0;
}

.invite-detail-list > div {
    display: grid;
    grid-template-columns:
        minmax(155px, 0.9fr)
        minmax(0, 1.1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e7e3f0;
}

.invite-detail-list > div:first-child {
    border-top: 0;
}

.invite-detail-list dt {
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 800;
}

.invite-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}

[data-invite-optional][hidden] {
    display: none !important;
}

.invite-inviter-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.invite-inviter-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.invite-inviter-name {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.invite-inviter-id {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.invite-api-note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #d7d2e9;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: #6f6783;
    font-size: 0.8rem;
    line-height: 1.5;
}

.invite-api-note strong {
    color: #3f3855;
}

.invite-raw-details {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
}

.invite-raw-details summary {
    padding: 12px 14px;
    color: #554d6b;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
}

.invite-raw-details pre {
    max-height: 360px;
    margin: 0;
    padding: 15px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #262232;
    color: #f5f2ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {

    .invite-lookup-title-row p {
        white-space: normal;
    }

    .invite-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .invite-search-row {
        grid-template-columns: 1fr;
    }

    .invite-lookup-button {
        width: 100%;
    }

    .invite-server-banner {
        min-height: 130px;
    }

    .invite-profile-body {
        padding: 0 17px 18px;
    }

    .invite-server-icon-wrap {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .invite-server-icon {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .invite-profile-top {
        gap: 13px;
        margin-top: -39px;
    }

    .invite-profile-identity {
        padding-top: 40px;
    }
}

@media (max-width: 430px) {

    .invite-profile-top {
        align-items: flex-start;
        flex-direction: column;
        margin-top: -42px;
    }

    .invite-profile-identity {
        padding-top: 0;
    }

    .invite-detail-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .invite-detail-list dd {
        text-align: left;
    }
}

/* =========================================================
   SERVER LOOKUP
   ========================================================= */

.server-lookup-page {
    padding-bottom: 42px;
}

.server-lookup-hero {
    margin-bottom: 24px;
}

.server-lookup-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.15rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.server-lookup-title-row p {
    max-width: none;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    white-space: nowrap;
}

.server-search-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.server-input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 850;
}

.server-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.server-id-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 650;
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.07);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.server-id-input:focus {
    border-color: #8f7ae0;
    box-shadow:
        0 0 0 3px rgba(123, 97, 255, 0.13),
        0 7px 16px rgba(34, 26, 68, 0.08);
}

.server-lookup-button {
    min-width: 132px;
    min-height: 52px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            180deg,
            #795fe9 0%,
            #654ee0 100%
        );
    color: #ffffff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(68, 48, 155, 0.22);
    transition:
        transform 130ms ease,
        box-shadow 130ms ease,
        opacity 130ms ease;
}

.server-lookup-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 9px 18px rgba(68, 48, 155, 0.26);
}

.server-lookup-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.server-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.server-search-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.server-paste-button {
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: var(--brand-dark);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    cursor: pointer;
}

.server-lookup-status {
    min-height: 20px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.server-lookup-status.error {
    color: #b23c4f;
}

.server-lookup-status.success {
    color: #347b5a;
}

.server-lookup-result {
    margin-top: 26px;
    scroll-margin-top: 20px;
}

.server-profile-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.server-banner {
    min-height: 165px;
    background:
        linear-gradient(
            135deg,
            #8d78d8 0%,
            #6550b6 100%
        );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.server-profile-body {
    position: relative;
    padding: 0 24px 22px;
}

.server-profile-top {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-top: -47px;
}

.server-icon-wrap {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
}

.server-icon {
    width: 112px;
    height: 112px;
    display: block;
    object-fit: cover;
    border: 6px solid #ffffff;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            #9a85ed 0%,
            #7257da 100%
        );
    box-shadow:
        0 7px 18px rgba(35, 27, 76, 0.17);
}

.server-profile-identity {
    min-width: 0;
    padding-top: 48px;
    padding-bottom: 5px;
}

.server-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.server-name-line h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.18rem, 2.5vw, 1.55rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.server-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.server-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 29px;
    padding: 5px 8px;
    border: 1px solid #ddd7ee;
    border-radius: 999px;
    background: #f3f0fa;
    color: #5a526e;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.server-boost-pill > img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.server-boost-pill > span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
}

.server-guild-tag {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #d8d1ec;
    border-radius: 999px;
    background: #f3f0fa;
    color: #5a526e;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1;
}

.server-guild-tag[hidden] {
    display: none !important;
}

.server-guild-tag-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    object-fit: contain;
}

.server-description-section {
    margin-top: 18px;
}

.server-description-section[hidden] {
    display: none !important;
}

.server-description-label {
    margin: 0 0 7px 2px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
}

.server-description-full {
    max-width: none;
    margin-top: 0;
    padding: 12px 14px;
    border: 1px solid #ded8ef;
    border-radius: 12px;
    background: #f6f4fb;
    color: #676078;
    font-size: 0.9rem;
    line-height: 1.5;
}

.server-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.server-secondary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #c9c0e7;
    border-radius: 9px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 130ms ease,
        background 130ms ease,
        box-shadow 130ms ease;
}

.server-secondary-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    box-shadow:
        0 5px 11px rgba(34, 26, 68, 0.08);
}

.server-secondary-button[hidden] {
    display: none !important;
}

.server-secondary-button.copied {
    color: #347b5a;
    border-color: #9dceb6;
    background: #edf8f2;
}

.server-info-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.server-info-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 5px 13px rgba(34, 26, 68, 0.045);
}

.server-info-card h3 {
    margin: 0 0 11px;
    font-size: 1rem;
}

.server-detail-list {
    margin: 0;
}

.server-detail-list > div {
    display: grid;
    grid-template-columns:
        minmax(155px, 0.9fr)
        minmax(0, 1.1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #e7e3f0;
}

.server-detail-list > div:first-child {
    border-top: 0;
}

.server-detail-list dt {
    color: var(--muted);
    font-size: 0.79rem;
    font-weight: 800;
}

.server-detail-list dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
}

.server-community-row {
    border-top: 1px solid #e7e3f0 !important;
}

[data-server-optional][hidden],
#server-stats-card[hidden],
#server-boost-card[hidden] {
    display: none !important;
}

.server-api-note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #d7d2e9;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: #6f6783;
    font-size: 0.8rem;
    line-height: 1.5;
}

.server-api-note strong {
    color: #3f3855;
}

.server-raw-details {
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
}

.server-raw-details summary {
    padding: 12px 14px;
    color: #554d6b;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
}

.server-raw-details pre {
    max-height: 360px;
    margin: 0;
    padding: 15px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #262232;
    color: #f5f2ff;
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {

    .server-lookup-title-row p {
        white-space: normal;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .server-lookup-page {
        padding-bottom: 32px;
    }

    .server-search-panel {
        padding: 15px;
    }

    .server-search-row {
        grid-template-columns: 1fr;
    }

    .server-lookup-button {
        width: 100%;
    }

    .server-banner {
        min-height: 130px;
    }

    .server-profile-body {
        padding: 0 17px 18px;
    }

    .server-icon-wrap {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .server-icon {
        width: 92px;
        height: 92px;
        border-radius: 24px;
    }

    .server-profile-top {
        gap: 13px;
        margin-top: -39px;
    }

    .server-profile-identity {
        padding-top: 40px;
    }
}

@media (max-width: 430px) {

    .server-profile-top {
        align-items: flex-start;
        flex-direction: column;
        margin-top: -42px;
    }

    .server-profile-identity {
        padding-top: 0;
    }

    .server-detail-list > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .server-detail-list dd {
        text-align: left;
    }

    .server-action-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================
   PUBLIC SITE / LEGAL / TEAM / STATUS
   ========================================================= */
.info-page { min-height: 560px; }
.info-hero { padding: 4px 0 24px; border-bottom:1px solid var(--line); }
.info-hero .eyebrow { margin:0 0 8px; color:var(--brand-dark); font-size:.72rem; font-weight:900; letter-spacing:.14em; }
.info-hero h1 { margin:0; font-size:clamp(2rem,5vw,3.25rem); line-height:1.05; }
.info-hero p:last-child { margin:10px 0 0; color:var(--muted); font-weight:650; }
.legal-copy { max-width:900px; margin:28px auto 0; }
.legal-copy h2 { margin:28px 0 8px; font-size:1.15rem; }
.legal-copy p { margin:0 0 12px; color:#5f5873; line-height:1.72; }
.legal-copy a { color:var(--brand-dark); font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.form-card { max-width:760px; margin:28px auto 0; padding:24px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-soft); }
.support-form { display:grid; gap:18px; }
.support-form label { display:grid; gap:7px; color:#40394f; font-size:.84rem; font-weight:800; }
.support-form input,.support-form textarea,.support-form select { width:100%; border:1px solid #cfc8e1; border-radius:11px; padding:12px 13px; background:#faf9fd; color:var(--text); font:inherit; outline:none; }
.support-form input:focus,.support-form textarea:focus,.support-form select:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(123,97,255,.12); }
.field-help { color:var(--muted); font-size:.75rem; font-weight:600; line-height:1.4; }
.form-submit { justify-self:start; min-height:42px; padding:10px 18px; border:0; border-radius:10px; background:linear-gradient(180deg,var(--brand),var(--brand-dark)); color:#fff; font:inherit; font-weight:850; cursor:pointer; }
.form-submit:disabled { opacity:.6; cursor:wait; }
.form-status { margin:0; min-height:1.3em; color:var(--muted); font-size:.84rem; font-weight:700; }
.form-status.success { color:#2d7b58; }.form-status.error { color:#b33b52; }.honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.team-grid { margin-top:28px; display:grid; grid-template-columns:minmax(0,390px); gap:12px; }
.team-card { overflow:hidden; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:var(--shadow-soft); transition:transform 140ms ease,box-shadow 140ms ease; }
.team-card:hover { transform:translateY(-3px); box-shadow:0 16px 30px rgba(30,24,56,.12); }
.team-banner { height:126px; position:relative; background:linear-gradient(135deg,#1c1830,#6f56d9); background-position:center; background-size:cover; }
.team-banner-fallback { position:absolute; inset:0; background:linear-gradient(135deg,rgba(123,97,255,.38),rgba(142,121,216,.1)); }
.team-banner.has-image .team-banner-fallback { display:none; }
.team-card-body { position:relative; padding:58px 22px 24px; }
.team-avatar { position:absolute; top:-49px; left:22px; width:92px !important; height:92px !important; border-radius:28px; border:5px solid #fff; object-fit:cover; background:#ece9f7; }
.team-role { margin-bottom:8px; color:var(--brand-dark); font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.team-card h2 { margin:0; font-size:1.35rem; }
.team-username { margin-top:5px; color:var(--muted); font-weight:750; }
.team-user-id { display:inline-block; margin-top:15px; padding:7px 9px; border-radius:8px; background:#f0eef7; color:#6e6680; font-size:.78rem; }
.team-load-status { margin:0 4px; color:var(--muted); font-size:.78rem; }



/* PUBLIC STATUS V2 */
.footer-social-link { display:inline-flex; width:max-content; border-radius:10px; transition:transform 140ms ease, opacity 140ms ease; }
.footer-social-link:hover { transform:translateY(-1px); opacity:.78; }
.status-page { padding-bottom:42px; }
.status-overview-card { display:flex; justify-content:space-between; align-items:center; gap:22px; margin:26px 0 18px; padding:18px 20px; border:1px solid rgba(58,168,120,.42); border-radius:17px; background:rgba(255,255,255,.82); box-shadow:0 8px 22px rgba(38,30,72,.05); }
.status-overview-main { display:flex; align-items:center; gap:14px; }
.status-overview-main>div { display:grid; gap:3px; }
.status-overview-main strong { font-size:1rem; }
.status-overview-main span:not(.status-dot) { color:var(--muted); font-size:.76rem; font-weight:650; }
.status-overview-card>span:last-child { color:var(--muted); font-size:.78rem; font-weight:700; }
.status-dot,.component-dot { display:inline-block; border-radius:999px; background:#9a93aa; }
.status-dot { width:13px; height:13px; flex:0 0 13px; }
.component-dot { width:9px; height:9px; flex:0 0 9px; }
.status-dot.operational,.component-dot.operational { background:#48bf88; }
.status-dot.operational { animation:statusGlow 1.7s ease-in-out infinite; }
.status-dot.warning,.component-dot.warning { background:#e6b92d; }
.status-dot.warning { animation:statusGlowWarning 1.7s ease-in-out infinite; }
.status-dot.down,.component-dot.down { background:#d85a6d; }
.status-dot.down { animation:statusGlowDown 1.4s ease-in-out infinite; }
.status-dot.checking,.component-dot.unknown { background:#9a93aa; }
.status-dot.checking { animation:statusGlowChecking 1.7s ease-in-out infinite; }
@keyframes statusGlow { 0%,100%{box-shadow:0 0 0 0 rgba(72,191,136,.18),0 0 10px rgba(72,191,136,.36);} 50%{box-shadow:0 0 0 6px rgba(72,191,136,0),0 0 18px rgba(72,191,136,.72);} }
@keyframes statusGlowWarning { 0%,100%{box-shadow:0 0 0 0 rgba(230,185,45,.18),0 0 10px rgba(230,185,45,.36);} 50%{box-shadow:0 0 0 6px rgba(230,185,45,0),0 0 18px rgba(230,185,45,.72);} }
@keyframes statusGlowDown { 0%,100%{box-shadow:0 0 0 0 rgba(216,90,109,.18),0 0 10px rgba(216,90,109,.35);} 50%{box-shadow:0 0 0 6px rgba(216,90,109,0),0 0 18px rgba(216,90,109,.72);} }
@keyframes statusGlowChecking { 0%,100%{box-shadow:0 0 0 0 rgba(154,147,170,.18),0 0 8px rgba(154,147,170,.30);transform:scale(1);} 50%{box-shadow:0 0 0 6px rgba(154,147,170,0),0 0 16px rgba(154,147,170,.62);transform:scale(1.08);} }
.status-switcher { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:24px; }
.status-switch { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:8px 17px 8px 10px; border:1px solid #cbc4de; border-radius:999px; background:#fff; color:#3d3650; font:inherit; font-size:.84rem; font-weight:850; cursor:pointer; transition:transform 120ms ease,border-color 120ms ease,background 120ms ease; }
.status-switch:hover { transform:translateY(-1px); }
.status-switch.active { border-color:var(--brand); background:#eeeafd; color:#4e3cb0; }
.status-switch-icon { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; overflow:hidden; }
.status-switch-icon img { width:22px !important; height:22px !important; object-fit:contain; }
.status-site-icon { background:#efeafd; }
.status-cordy-icon { background:linear-gradient(145deg,#302653,#8e79d8); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.status-cordy-icon img { filter:drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.status-discord-icon { background:#5865f2; }
.status-discord-icon img { filter:brightness(0) invert(1); }
.status-service-head { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:0 0 14px; padding:0 2px; }
.status-service-identity { display:flex; align-items:center; gap:13px; }
.status-service-logo { width:52px; height:52px; display:grid; place-items:center; border-radius:14px; overflow:hidden; flex:0 0 52px; }
.status-service-logo img { width:42px !important; height:42px !important; object-fit:contain; }
.status-site-logo { background:#f0ecfb; }
.status-cordy-logo { background:linear-gradient(145deg,#302653,#8e79d8); box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 8px 18px rgba(50,39,88,.18); }
.status-discord-logo { background:#5865f2; }
.status-discord-logo img { filter:brightness(0) invert(1); width:36px !important; height:36px !important; }
.status-service-head h2 { margin:0; font-size:1.35rem; }
.status-service-head p { margin:4px 0 0; color:var(--muted); font-size:.8rem; font-weight:650; }
.status-badge { display:inline-flex; align-items:center; min-height:30px; padding:7px 12px; border-radius:999px; font-size:.76rem; font-weight:900; }
.status-badge.checking { background:#eeeaf7; color:#6d6381; }
.status-badge.operational { background:#e8f8f0; color:#277653; border:1px solid rgba(39,118,83,.15); }
.status-badge.warning { background:#fff7d6; color:#8b6a00; border:1px solid rgba(139,106,0,.14); }
.status-badge.down { background:#feecef; color:#a43b4d; border:1px solid rgba(164,59,77,.14); }
.status-groups { display:grid; gap:16px; }
.status-group-card { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:#fff; box-shadow:0 8px 22px rgba(38,30,72,.045); }
.status-group-title { padding:13px 18px; border-bottom:1px solid var(--line); background:#f5f3fb; color:#5e5480; font-size:.72rem; font-weight:900; letter-spacing:.11em; text-transform:uppercase; }
.status-group-rows { display:grid; }
.status-monitor-row { padding:14px 18px 12px; border-top:1px solid var(--line); }
.status-monitor-row:first-child { border-top:0; }
.status-monitor-line { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.status-monitor-name { min-width:0; display:flex; align-items:center; gap:10px; }
.status-monitor-name strong { font-size:.91rem; }
.status-component-detail { color:var(--muted); font-size:.72rem; font-weight:650; white-space:nowrap; }
.status-monitor-stats { flex:0 0 auto; display:flex; align-items:baseline; gap:4px; color:var(--muted); font-size:.72rem; font-weight:700; white-space:nowrap; }
.status-monitor-stats strong { color:var(--text); font-size:.78rem; }
.status-runtime { color:#6c6284; }
.uptime-blocks { display:grid; grid-template-columns:repeat(48,minmax(2px,1fr)); gap:3px; margin-top:11px; }
.uptime-block { height:22px; border-radius:3px; background:#d9d5e4; }
.uptime-block.operational { background:#49b986; }
.uptime-block.warning { background:#e5b82c; }
.uptime-block.down { background:#d85a6d; }
.uptime-block.unknown { background:#e6e2ed; }
.status-loading,.status-error { padding:24px; border:1px solid var(--line); border-radius:15px; background:#fff; color:var(--muted); font-weight:700; }
.status-error { color:#b33b52; }
.status-refresh-note { margin:24px 0 0; color:var(--muted); text-align:center; font-size:.76rem; font-weight:650; }
@media (max-width:1100px){ .footer-mega { grid-template-columns:repeat(3,minmax(0,1fr)); }.footer-brand-column { grid-column:span 3; }.footer-bottom { grid-column:1/-1; } }
@media (max-width:760px){ .footer-mega { grid-template-columns:repeat(2,minmax(0,1fr)); padding:34px 22px 24px; }.footer-brand-column { grid-column:1/-1; }.footer-bottom { grid-column:1/-1; }.footer-brand-name { font-size:2.4rem; }.status-overview-card,.status-service-head,.status-monitor-line { align-items:flex-start; }.status-monitor-line { flex-direction:column; gap:7px; }.status-monitor-stats { white-space:normal; flex-wrap:wrap; }.uptime-blocks { gap:2px; }.uptime-block { height:18px; } }
@media (max-width:430px){ .footer-mega { grid-template-columns:1fr; }.footer-brand-column,.footer-bottom { grid-column:1; }.footer-brand-name { font-size:2.15rem; }.status-overview-card,.status-service-head { flex-direction:column; }.status-switch { flex:1 1 100%; }.status-component-detail { display:none; }.uptime-blocks { grid-template-columns:repeat(24,minmax(3px,1fr)); }.uptime-block:nth-child(-n+24) { display:none; } }


/* Status v5 refinements */
.status-discord-icon,
.status-discord-logo {
    background: transparent;
}

.status-discord-icon img,
.status-discord-logo img {
    filter: none !important;
    object-fit: contain;
}

.status-discord-icon img {
    width: 29px !important;
    height: 29px !important;
}

.status-discord-logo img {
    width: 52px !important;
    height: 52px !important;
}

.status-group-card > summary {
    list-style: none;
}

.status-group-card > summary::-webkit-details-marker {
    display: none;
}

.status-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.status-group-title:hover {
    background: #f0edf8;
}

.status-group-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #756b91;
    border-bottom: 2px solid #756b91;
    transform: rotate(45deg);
    transition: transform 150ms ease;
    margin-right: 3px;
}

.status-group-card:not([open]) .status-group-chevron {
    transform: rotate(-45deg);
}

.status-group-card:not([open]) .status-group-title {
    border-bottom: 0;
}

/* Shared resources chevron — matches status group arrows */
.resources-trigger .css-down-arrow {
    width: 8px;
    height: 8px;
    margin-left: 3px;
    margin-top: -1px;
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: inherit;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform 150ms ease;
    flex: 0 0 8px;
}

.resources-trigger[aria-expanded="true"] .css-down-arrow {
    transform: rotate(-45deg);
}

/* =========================================================
   DATA REQUEST SELECT / TEMPLATE PLACEHOLDERS
   ========================================================= */
.request-type-dropdown {
    position: relative;
    width: 100%;
}

.request-type-native {
    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;
}

.support-form .request-type-trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 18px;
    border: 1px solid #cfc8e1;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    color: var(--text);
    font: inherit;
    font-weight: 780;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: 0 6px 16px rgba(34, 26, 68, 0.07);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, transform 150ms ease;
}

.support-form .request-type-trigger:hover {
    border-color: #ad9ce7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.08), 0 8px 20px rgba(64, 45, 120, 0.10);
}

.support-form .request-type-trigger:focus-visible,
.request-type-dropdown.open .request-type-trigger {
    border-color: #8f7ae0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.14), 0 9px 22px rgba(64, 45, 120, 0.11);
}

.request-type-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #75699a;
    border-bottom: 2px solid #75699a;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 60% 60%;
    transition: transform 150ms ease;
}

.request-type-dropdown.open .request-type-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.request-type-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 80;
    display: grid;
    gap: 5px;
    padding: 8px;
    border: 1px solid #d6cfea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(39, 28, 78, 0.16), 0 4px 12px rgba(39, 28, 78, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.request-type-dropdown.open .request-type-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.request-type-option {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #40394f;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 720;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.request-type-option:hover,
.request-type-option:focus-visible {
    color: #4f39b6;
    background: #f3efff;
    border-color: #b7a6ef;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12), 0 5px 14px rgba(92, 68, 177, 0.10);
    transform: translateY(-1px);
}

.request-type-option.selected {
    color: #5c44c7;
    background: #eee9ff;
    border-color: #c4b7f0;
}

.support-form textarea::placeholder {
    color: #9a93aa;
    opacity: 1;
    font-weight: 600;
}

/* =========================================================
   CUSTOM TIMESTAMP CALENDAR
   ========================================================= */
.custom-calendar {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 18px 42px rgba(34, 26, 68, 0.18),
        0 4px 12px rgba(34, 26, 68, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition:
        opacity 140ms ease,
        transform 140ms ease,
        visibility 140ms ease;
}

.custom-calendar.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.custom-calendar-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.calendar-month-label {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 850;
    text-align: center;
}

.calendar-nav-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #f0ecfb;
    color: var(--brand-dark);
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease, transform 140ms ease;
}

.calendar-nav-button:hover {
    background: #e6dffb;
    transform: translateY(-1px);
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekdays {
    margin-bottom: 5px;
}

.calendar-weekdays span {
    padding: 3px 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day-spacer,
.calendar-day {
    aspect-ratio: 1;
}

.calendar-day {
    display: grid;
    place-items: center;
    min-width: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.calendar-day:hover {
    background: #eeeafd;
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.calendar-day.today {
    box-shadow: inset 0 0 0 1px #b9aae8;
}

.calendar-day.selected {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(89, 63, 195, 0.24);
}

.calendar-day:focus-visible,
.calendar-nav-button:focus-visible {
    outline: 3px solid rgba(123, 97, 255, 0.22);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .custom-calendar {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 56px));
        transform-origin: top left;
    }
}


/* =========================================================
   EMOJI + SYMBOL LIBRARIES
   ========================================================= */
.library-page {
    padding-bottom: 44px;
}

.library-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.library-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    color: var(--ink, #24213b);
}

.library-hero p {
    margin: 0;
    color: var(--muted, #7a7690);
    font-size: 1.05rem;
}

.library-count-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(126, 99, 210, .22);
    border-radius: 18px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 8px 20px rgba(65, 48, 120, .07);
}

.library-count-pill strong {
    font-size: 1.35rem;
}

.library-count-pill span {
    color: #77728c;
}

.library-controls {
    padding: 22px;
    margin-bottom: 30px;
    border: 1px solid rgba(126, 99, 210, .16);
    border-radius: 22px;
    background: rgba(255,255,255,.58);
    box-shadow: 0 12px 30px rgba(63, 47, 118, .06);
}

.library-search-box {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid rgba(126,99,210,.28);
    border-radius: 18px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.library-search-box:focus-within {
    border-color: #7656f5;
    box-shadow: 0 0 0 4px rgba(118,86,245,.12), 0 10px 26px rgba(89,63,183,.10);
}

.library-search-box > span {
    color: #81799d;
    font-size: 1.65rem;
    line-height: 1;
}

.library-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #27233f;
    font: inherit;
    font-size: 1.04rem;
}

.library-search-box input::placeholder { color: #9a95ab; }

.library-copy-hint {
    margin: 10px 2px 16px;
    color: #858097;
    font-size: .88rem;
}

.library-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.library-category-button {
    appearance: none;
    border: 1px solid rgba(108,84,188,.24);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255,255,255,.78);
    color: #39334f;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

.library-category-button:hover,
.library-category-button:focus-visible {
    border-color: #7557ef;
    background: #f4efff;
    color: #5b3bd5;
    box-shadow: 0 0 0 3px rgba(117,87,239,.10), 0 8px 18px rgba(91,59,213,.10);
    transform: translateY(-1px);
    outline: none;
}

.library-category-button.active {
    border-color: transparent;
    background: linear-gradient(135deg, #7c5cff, #6746e8);
    color: #fff;
    box-shadow: 0 8px 18px rgba(103,70,232,.22);
}

.library-section {
    scroll-margin-top: 22px;
    margin: 0 0 34px;
}

.library-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.library-section-heading h2 {
    margin: 0;
    color: #2b2740;
    font-size: 1.35rem;
}

.library-section-heading span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(126,99,210,.10);
    color: #766d92;
    font-size: .78rem;
    font-weight: 800;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
    gap: 10px;
}

.library-item {
    appearance: none;
    min-width: 0;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 8px 11px;
    border: 1px solid rgba(117,95,186,.16);
    border-radius: 17px;
    background: rgba(255,255,255,.78);
    color: #29253f;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(59,44,108,.04);
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.library-item:hover,
.library-item:focus-visible {
    transform: translateY(-2px);
    border-color: #8a6cff;
    background: #faf8ff;
    box-shadow: 0 0 0 3px rgba(125,94,255,.10), 0 10px 24px rgba(83,57,173,.12);
    outline: none;
}

.library-char {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    white-space: nowrap;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 2.15rem;
    line-height: 1;
}

.library-flag-image {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
}

.library-name {
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #77728c;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

[data-library="symbols"] .library-char {
    font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Arial Unicode MS", sans-serif;
    font-size: 1.75rem;
}

[data-library="symbols"] .library-item-wide {
    grid-column: span 2;
}

[data-library="symbols"] .library-item-wide .library-char {
    font-size: 1.15rem;
}

.library-empty,
.library-load-error {
    padding: 34px 20px;
    border: 1px dashed rgba(117,95,186,.30);
    border-radius: 18px;
    color: #77728c;
    text-align: center;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1200;
    max-width: min(88vw, 520px);
    padding: 11px 16px;
    border-radius: 999px;
    background: #29243b;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 34px rgba(35,26,67,.25);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .16s ease, transform .16s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 700px) {
    .library-hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
    .library-count-pill { padding: 11px 14px; }
    .library-controls { padding: 15px; border-radius: 18px; }
    .library-category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: thin;
    }
    .library-category-button { flex: 0 0 auto; }
    .library-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
    .library-item { min-height: 96px; border-radius: 15px; padding: 10px 6px 9px; }
    .library-char { min-height: 40px; font-size: 1.9rem; }
    .library-flag-image { width: 2rem; height: 2rem; }
    .library-name { font-size: .62rem; }
    [data-library="symbols"] .library-item-wide { grid-column: 1 / -1; }
}


/* Local flag sprite: avoids platform-dependent regional-indicator rendering. */
.library-flag-sprite {
    display: inline-block;
    width: 56px;
    height: 40px;
    flex: 0 0 56px;
    background-image: url('/assets/img/emoji-flags.png?v=1');
    background-repeat: no-repeat;
    background-size: 896px 640px;
    border-radius: 4px;
}

@media (max-width: 700px) {
    .library-flag-sprite {
        transform: scale(.82);
        transform-origin: center;
    }
}


/* Regional indicator symbols: render consistently even on Windows, where the
   raw Unicode code points are commonly shown as plain letters. */
.library-regional-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.5rem;
    background: linear-gradient(145deg, #5d7ff0, #4966d5);
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(53, 63, 133, 0.24);
}

@media (max-width: 700px) {
    .library-regional-indicator {
        width: 1.95rem;
        height: 1.95rem;
        font-size: 1.04rem;
    }
}

/* =========================================================
   MOBILE SCROLL PERFORMANCE
   Keep the desktop background effects intact, but avoid asking
   mobile browsers to continuously rasterize full-page animated
   star/filter layers while fast-scrolling long pages.
   ========================================================= */
@media (max-width: 700px) {
    /* The site shell fills the mobile viewport, so these decorative
       page-background layers are effectively hidden behind it anyway. */
    .page-bg::before,
    .page-bg::after,
    .star-pop {
        display: none;
    }

    /* Avoid keeping a large composited shadow around the full-height shell
       on phones. It is not visible at the screen edge in the mobile layout. */
    .site-shell {
        box-shadow: none;
    }
}

/* User Lookup: keep the Discord profile icon and label neatly contained. */
.lookup-discord-profile-button {
    gap: 7px;
    min-width: 0;
    line-height: 1.2;
    text-align: center;
}

.lookup-discord-profile-icon-wrap {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
}

.lookup-discord-profile-icon {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 18px;
    object-fit: contain;
}

@media (max-width: 430px) {
    .lookup-discord-profile-button {
        gap: 6px;
        padding-inline: 8px;
        font-size: 0.76rem;
    }

    .lookup-discord-profile-icon-wrap {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .lookup-discord-profile-icon {
        width: 16px;
        height: 16px;
        max-width: 16px;
    }
}


/* Server Lookup: hidden optional count pills must stay hidden. */
.server-count-pill[hidden] {
    display: none !important;
}


/* =========================================================
   DESKTOP CORDLABS SCROLLBAR + SCROLL PAINT STABILITY
   ========================================================= */

/* Give the browser a real base color to paint immediately while scrolling. */
html {
    background-color: #12111a;
}

body,
.page-bg {
    background-color: #12111a;
}

.site-shell {
    background-color: var(--shell);
}

/* Avoid deferred section painting / placeholder flashes on long pages. */
.library-section {
    content-visibility: visible;
}

/* CordLabs desktop scrollbar. */
@media (min-width: 701px) {
    html {
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: #8e79d8 #171521;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 14px;
        height: 14px;
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        background: #171521;
        box-shadow:
            inset 0 0 0 1px rgba(178, 160, 238, 0.12);
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        min-height: 46px;
        border: 3px solid #171521;
        border-radius: 999px;
        background:
            linear-gradient(
                180deg,
                #a38ff0 0%,
                #8e79d8 45%,
                #7359dc 100%
            );
        box-shadow:
            0 0 8px rgba(142, 121, 216, 0.70),
            0 0 16px rgba(123, 97, 255, 0.34);
    }

    html::-webkit-scrollbar-thumb:hover,
    body::-webkit-scrollbar-thumb:hover {
        background:
            linear-gradient(
                180deg,
                #b7a6f6 0%,
                #9b86e5 45%,
                #8066e5 100%
            );
        box-shadow:
            0 0 10px rgba(163, 143, 240, 0.88),
            0 0 20px rgba(123, 97, 255, 0.46);
    }

    html::-webkit-scrollbar-thumb:active,
    body::-webkit-scrollbar-thumb:active {
        background:
            linear-gradient(
                180deg,
                #927ce2 0%,
                #7b61ff 100%
            );
    }

    html::-webkit-scrollbar-corner,
    body::-webkit-scrollbar-corner {
        background: #171521;
    }
}

/* INTENTS CALCULATOR */

.intents-page {
    padding-bottom: 44px;
}

.intents-hero {
    margin-bottom: 24px;
}

.intents-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-top: 18px;
}

.intents-kicker {
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.intents-title-row h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.intents-title-row p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.intents-selected-badge {
    flex: 0 0 auto;
    min-width: 126px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .7);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    box-shadow: var(--shadow-soft);
}

.intents-selected-badge strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 18px;
}

.intents-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 22px;
    align-items: start;
}

.intents-main-column,
.intents-output-column {
    min-width: 0;
}

.intents-output-column {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.intents-control-card,
.intents-output-card,
.intents-info-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-soft);
}

.intents-control-card {
    padding: 20px;
}

.intents-control-heading,
.intents-output-heading,
.intents-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.intents-field-label,
.intents-code-label {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.intents-control-heading p,
.intents-output-heading p,
.intents-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.intents-selection-summary {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.intents-value-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.intents-value-input {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-variant-numeric: tabular-nums;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.intents-value-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(123, 97, 255, .12);
}

.intents-copy-value,
.intents-code-copy,
.intents-preset-button {
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.intents-copy-value,
.intents-code-copy {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(123, 97, 255, .22);
}

.intents-copy-value {
    flex: 0 0 auto;
    padding: 0 16px;
}

.intents-copy-value:hover,
.intents-code-copy:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.intents-warning {
    min-height: 18px;
    margin: 9px 0 0;
    color: #b84a5a;
    font-size: 12px;
    font-weight: 700;
}

.intents-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.intents-preset-button {
    padding: 9px 13px;
    border: 1px solid #c9c2e3;
    background: #ebe7f8;
    color: #4f4668;
}

.intents-preset-button:hover {
    border-color: #b1a4dc;
    background: #dfd8f5;
}

.intents-preset-button-muted {
    background: #f3f1f8;
    color: var(--muted);
}

.intents-section-heading {
    margin: 26px 2px 13px;
}

.intents-section-heading h2 {
    margin: 0;
    font-size: 21px;
}

.intents-legend {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.intents-legend span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e65b70;
    box-shadow: 0 0 0 4px rgba(230, 91, 112, .11);
}

.intents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.intent-option {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    min-height: 108px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, .74);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 6px 14px rgba(34, 27, 61, .035);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.intent-option:hover {
    border-color: #bcb1e2;
    transform: translateY(-1px);
}

.intent-option:has(input:focus-visible) {
    outline: 3px solid rgba(123, 97, 255, .23);
    outline-offset: 2px;
}

.intent-option:has(input:checked) {
    border-color: #8067f3;
    background: linear-gradient(135deg, #8e79d8 0%, #755ce6 100%);
    box-shadow:
        0 0 0 1px rgba(123, 97, 255, .16),
        0 8px 24px rgba(123, 97, 255, .28),
        0 0 28px rgba(123, 97, 255, .18);
    transform: translateY(-1px);
}

.intent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.intent-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #bbb4cf;
    border-radius: 7px;
    background: #fff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 1000;
    transition: all .18s ease;
}

.intent-option input:checked + .intent-check {
    border-color: rgba(255, 255, 255, .95);
    background: #fff;
    box-shadow: 0 0 14px rgba(255, 255, 255, .6);
}

.intent-option input:checked + .intent-check::after {
    content: "✓";
}

.intent-option-content {
    min-width: 0;
}

.intent-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.intent-name {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.intent-privileged {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(218, 55, 78, .1);
    color: #bd3045;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.intent-description,
.intent-bit {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.intent-bit {
    margin-top: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
}

.intent-option:has(input:checked) .intent-name,
.intent-option:has(input:checked) .intent-description,
.intent-option:has(input:checked) .intent-bit {
    color: #fff;
}

.intent-option:has(input:checked) .intent-description,
.intent-option:has(input:checked) .intent-bit {
    opacity: .82;
}

.intent-option:has(input:checked) .intent-privileged {
    background: rgba(61, 17, 26, .33);
    color: #fff;
}

.intents-output-card {
    overflow: hidden;
}

.intents-output-heading {
    padding: 16px 16px 13px;
}

.intents-code-copy {
    padding: 8px 12px;
    font-size: 12px;
}

.intents-code-block {
    min-height: 112px;
    max-height: 330px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-top: 1px solid rgba(255, 255, 255, .05);
    background: #17161f;
    color: #f2efff;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
    tab-size: 4;
}

.intents-info-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
}

.intents-info-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9e4fb;
    color: var(--brand-dark);
    font-weight: 900;
}

.intents-info-card h2 {
    margin: 2px 0 5px;
    font-size: 14px;
}

.intents-info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 980px) {
    .intents-layout {
        grid-template-columns: 1fr;
    }

    .intents-output-column {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intents-info-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .intents-title-row,
    .intents-control-heading,
    .intents-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .intents-selected-badge {
        width: 100%;
        text-align: left;
    }

    .intents-grid,
    .intents-output-column {
        grid-template-columns: 1fr;
    }

    .intents-info-card {
        grid-column: auto;
    }

    .intents-value-row {
        flex-direction: column;
    }

    .intents-copy-value {
        min-height: 44px;
    }
}


/* Role Color Chooser */
.role-color-page {
    padding-bottom: 42px;
}

.role-color-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

.role-color-panel,
.role-color-output-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-soft);
}

.role-color-section-heading {
    margin-bottom: 18px;
}

.role-color-section-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.role-color-section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.role-color-label,
.role-color-output-label {
    display: block;
    margin: 17px 0 7px 2px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.role-color-input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    outline: 0;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 5px 13px rgba(34, 26, 68, 0.06);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.role-color-input:focus {
    border-color: #8f7ae0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13), 0 7px 16px rgba(34, 26, 68, 0.08);
}

.role-color-value-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: stretch;
}

.role-color-copy-button {
    min-width: 76px;
    padding: 0 14px;
    border: 1px solid #c9c0e7;
    border-radius: 12px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(34, 26, 68, 0.06);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.role-color-copy-button:hover {
    transform: translateY(-1px);
    background: #eeeafd;
    border-color: #aa9adb;
}

.role-color-copy-button.copied {
    color: #347b5a;
}

.role-color-error {
    min-height: 18px;
    margin: 7px 2px -2px;
    color: #b0475a;
    font-size: 0.8rem;
    font-weight: 700;
}

.custom-color-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 10px;
    align-items: stretch;
}

.custom-color-trigger {
    min-height: 52px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #c9c0e7;
    border-radius: 12px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(34, 26, 68, 0.06);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.custom-color-trigger:hover,
.custom-color-trigger:focus-visible {
    transform: translateY(-1px);
    background: #eeeafd;
    border-color: #8c75e5;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.11), 0 7px 15px rgba(51, 39, 96, 0.1);
    outline: 0;
}

.custom-color-palette-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(51, 38, 94, 0.2));
}

.custom-color-palette-shape {
    stroke: #2f2947;
    stroke-width: 1.25;
    stroke-linejoin: round;
}

.custom-color-palette-dot {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(47, 41, 71, 0.28);
    stroke-width: 0.55;
}

.custom-color-swatch {
    min-width: 64px;
    min-height: 52px;
    border: 3px solid #ffffff;
    border-radius: 14px;
    background: #5865F2;
    box-shadow: 0 0 0 1px rgba(57, 45, 94, 0.18), 0 5px 12px rgba(38, 28, 77, 0.12);
    transition: background 60ms linear;
}


.role-image-color-picker {
    margin-top: 12px;
}

.role-image-picker-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.role-image-upload-button,
.role-image-remove {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #c9c0e7;
    border-radius: 11px;
    background: #f7f5fd;
    color: #51456f;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 4px 9px rgba(34, 26, 68, 0.05);
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.role-image-upload-button:hover,
.role-image-upload-button:focus-within,
.role-image-remove:hover,
.role-image-remove:focus-visible {
    transform: translateY(-1px);
    background: #eeeafd;
    border-color: #8c75e5;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.1);
    outline: 0;
}

.role-image-upload-icon {
    font-size: 1rem;
    line-height: 1;
}

.role-image-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.role-image-local-note {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.role-image-workspace {
    margin-top: 11px;
    padding: 10px;
    border: 1px solid #d5cdef;
    border-radius: 14px;
    background: rgba(246, 243, 253, 0.78);
}

.role-image-workspace[hidden] {
    display: none !important;
}

.role-image-canvas-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    overflow: hidden;
    border-radius: 11px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #eeeaf8 25%, transparent 25%),
        linear-gradient(-45deg, #eeeaf8 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eeeaf8 75%),
        linear-gradient(-45deg, transparent 75%, #eeeaf8 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.role-image-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: none;
}

.role-image-loupe {
    --loupe-color: #5865F2;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
    width: 132px;
    padding: 8px;
    border: 2px solid #ffffff;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0 0 1px rgba(61, 48, 105, 0.2), 0 10px 25px rgba(43, 31, 89, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-9999px, -9999px);
    transition: opacity 80ms linear;
}

.role-image-loupe.visible {
    opacity: 1;
}

.role-image-loupe canvas {
    display: block;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(58, 47, 94, 0.15);
    border-radius: 8px;
    background: #fff;
}

.role-image-loupe-hex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 7px;
    color: #39314f;
    font-size: 0.76rem;
    font-weight: 900;
}

.role-image-loupe-hex::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 1px solid rgba(47, 41, 71, 0.18);
    border-radius: 4px;
    background: var(--loupe-color);
}

.role-image-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}

.role-image-name {
    min-width: 0;
    overflow: hidden;
    color: #5d5474;
    font-size: 0.76rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-image-remove {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 0.74rem;
}

.role-image-help {
    margin: 8px 1px 0;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 650;
}

.native-color-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.role-color-presets {
    display: grid;
    grid-template-columns: repeat(10, minmax(26px, 1fr));
    gap: 8px;
}

.role-color-preset {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 9px;
    background: var(--preset-color);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(57, 45, 94, 0.16), 0 4px 9px rgba(38, 28, 77, 0.08);
    transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

.role-color-preset:hover,
.role-color-preset:focus-visible {
    transform: translateY(-2px) scale(1.04);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.14), 0 8px 15px rgba(38, 28, 77, 0.12);
}

.role-color-preset-check {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 1000;
    opacity: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.role-color-preset.selected {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px #7b61ff, 0 0 18px rgba(123, 97, 255, 0.58), 0 8px 16px rgba(43, 30, 91, 0.18);
}

.role-color-preset.selected .role-color-preset-check {
    opacity: 1;
}

.role-color-preview-column {
    min-width: 0;
}

.role-discord-preview {
    min-height: 152px;
}

.role-preview-name {
    transition: color 120ms ease;
}

.role-pill-preview-wrap {
    margin-top: 18px;
}

.role-pill-preview-label {
    display: block;
    margin-bottom: 6px;
    color: #949ba4;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-pill-preview {
    --role-color: #5865F2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--role-color) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-color) 16%, #313338);
    color: var(--role-color);
    font-size: 0.82rem;
    font-weight: 650;
}

.role-pill-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.role-color-output-card {
    margin-top: 18px;
}

.role-color-output-heading {
    margin-bottom: 11px;
}

.role-color-output-heading .role-color-output-label {
    margin: 0 0 4px;
}

.role-color-output-heading strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

.role-color-readonly {
    background: #f7f5fd;
}

.role-color-summary {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 650;
}

@media (max-width: 860px) {
    .role-color-layout {
        grid-template-columns: 1fr;
    }

    .role-color-presets {
        grid-template-columns: repeat(10, minmax(28px, 1fr));
    }
}

@media (max-width: 560px) {
    .role-color-panel,
    .role-color-output-card {
        padding: 16px;
    }

    .role-color-presets {
        grid-template-columns: repeat(5, 1fr);
    }

    .custom-color-row {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .custom-color-swatch {
        min-width: 58px;
    }

    .role-color-value-row {
        grid-template-columns: 1fr;
    }

    .role-color-copy-button {
        min-height: 43px;
    }
}


/* Discord Emoji Maker */
.emoji-maker-page {
    padding-bottom: 24px;
}

.emoji-maker-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}

.emoji-maker-panel,
.emoji-output-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(103, 80, 164, 0.2);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(55, 45, 100, 0.08);
    padding: 22px;
}

.emoji-maker-heading h2,
.emoji-output-heading h2 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1.12rem;
}

.emoji-maker-heading p,
.emoji-output-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.emoji-upload-zone {
    margin-top: 18px;
    border: 2px dashed rgba(115, 91, 190, 0.28);
    border-radius: 18px;
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    background: rgba(245, 242, 255, 0.58);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
    cursor: pointer;
}

.emoji-upload-zone:hover,
.emoji-upload-zone.dragging {
    border-color: var(--shell);
    background: rgba(238, 233, 255, 0.9);
    transform: translateY(-1px);
}

.emoji-upload-zone.has-image {
    cursor: default;
}

.emoji-upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.emoji-upload-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: linear-gradient(135deg, #7867f0, #9e88ff);
    box-shadow: 0 10px 22px rgba(88, 72, 190, 0.2);
}

.emoji-upload-empty strong {
    font-size: 1.05rem;
    color: var(--text);
}

.emoji-upload-empty span {
    color: var(--muted);
    font-size: 0.9rem;
}

.emoji-upload-button,
.emoji-action-button {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #6f5de7, #8c79f2);
    color: white;
    font: inherit;
    font-weight: 800;
    padding: 11px 16px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(93, 72, 194, 0.18);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.emoji-upload-button:hover,
.emoji-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(93, 72, 194, 0.24);
    filter: brightness(1.03);
}

.emoji-source-preview {
    display: none;
    width: 100%;
}

.emoji-upload-zone.has-image .emoji-upload-empty {
    display: none;
}

.emoji-upload-zone.has-image .emoji-source-preview {
    display: block;
}

.emoji-source-canvas-wrap,
.emoji-output-preview {
    background-color: #f5f3fb;
    background-image:
        linear-gradient(45deg, rgba(95, 83, 135, 0.09) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(95, 83, 135, 0.09) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(95, 83, 135, 0.09) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(95, 83, 135, 0.09) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.emoji-source-canvas-wrap {
    border-radius: 16px;
    min-height: 190px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(91, 76, 145, 0.14);
}

.emoji-source-canvas-wrap img {
    display: block;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.emoji-source-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.emoji-source-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.emoji-secondary-button {
    border: 1px solid rgba(101, 80, 170, 0.25);
    border-radius: 12px;
    background: rgba(255,255,255,0.76);
    color: var(--text);
    font: inherit;
    font-weight: 750;
    padding: 10px 14px;
    cursor: pointer;
}

.emoji-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.emoji-output-card {
    border: 1px solid rgba(105, 83, 175, 0.18);
    border-radius: 17px;
    padding: 16px;
    background: rgba(248, 246, 255, 0.76);
}

.emoji-output-card h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1rem;
}

.emoji-output-card > p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.emoji-output-preview {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(90, 75, 145, 0.12);
}

.emoji-output-preview canvas {
    width: 100%;
    height: 100%;
    image-rendering: auto;
}

.emoji-output-meta {
    margin: 10px 0 12px;
    min-height: 18px;
    color: var(--muted);
    font-size: 0.8rem;
}

.emoji-action-button {
    width: 100%;
}

.emoji-privacy-note {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.emoji-privacy-note strong {
    color: var(--text);
}

.emoji-maker-error {
    min-height: 20px;
    margin-top: 10px;
    color: #b42352;
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .emoji-maker-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .emoji-maker-panel,
    .emoji-output-panel {
        padding: 17px;
        border-radius: 17px;
    }

    .emoji-output-grid {
        grid-template-columns: 1fr;
    }

    .emoji-upload-zone {
        min-height: 210px;
        padding: 20px;
    }
}


/* WEBHOOK SENDER */

.webhook-sender-page {
    padding-bottom: 26px;
}

.webhook-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 22px;
    align-items: start;
}

.webhook-builder-column {
    display: grid;
    gap: 16px;
}

.webhook-preview-column {
    position: sticky;
    top: 18px;
}

.webhook-panel,
.webhook-preview-section {
    border: 1px solid rgba(101, 80, 170, 0.18);
    border-radius: 19px;
    background: rgba(255,255,255,0.72);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.webhook-panel-heading {
    margin-bottom: 16px;
}

.webhook-panel-heading h2 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    color: var(--text);
}

.webhook-panel-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.9rem;
}

.webhook-label {
    display: block;
    margin: 0 0 7px;
    color: #665f7a;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.webhook-input,
.webhook-textarea {
    width: 100%;
    border: 1px solid #cfc7e7;
    border-radius: 12px;
    background: rgba(255,255,255,0.86);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.webhook-input {
    height: 48px;
    padding: 0 14px;
}

.webhook-textarea {
    resize: vertical;
    min-height: 108px;
    padding: 13px 14px;
    line-height: 1.45;
}

.webhook-input:focus,
.webhook-textarea:focus {
    border-color: #917cf1;
    box-shadow: 0 0 0 4px rgba(123,97,255,0.11);
    background: #fff;
}

.webhook-input::placeholder,
.webhook-textarea::placeholder {
    color: #a29bad;
}

.webhook-show-url {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.84rem;
    cursor: pointer;
}

.webhook-show-url input,
.webhook-inline-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border: 1px solid #c8bee8;
    border-radius: 6px;
    background: rgba(255,255,255,.92);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.webhook-show-url input:hover,
.webhook-inline-check input:hover {
    border-color: #8c79f2;
}

.webhook-show-url input:checked,
.webhook-inline-check input:checked {
    border-color: #765ff0;
    background-color: #765ff0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.3 6.5 11.4 12.8 4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
    box-shadow: 0 0 0 3px rgba(123,97,255,.14), 0 0 14px rgba(123,97,255,.28);
}

.webhook-show-url input:focus-visible,
.webhook-inline-check input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123,97,255,.18), 0 0 14px rgba(123,97,255,.28);
}

.webhook-privacy-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.webhook-privacy-note strong {
    color: var(--text);
}

.webhook-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.webhook-char-count {
    margin-top: 6px;
    text-align: right;
    color: var(--muted);
    font-size: 0.78rem;
}

.webhook-embed-toggle-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.webhook-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.webhook-switch > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.webhook-switch-track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbc6d8;
    transition: background .16s ease, box-shadow .16s ease;
}

.webhook-switch-track span {
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 7px rgba(24,18,50,.18);
    transition: transform .16s ease;
}

.webhook-switch input:checked + .webhook-switch-track {
    background: linear-gradient(135deg, #6f5de7, #8c79f2);
    box-shadow: 0 0 0 3px rgba(123,97,255,.10);
}

.webhook-switch input:checked + .webhook-switch-track span {
    transform: translateX(18px);
}

.webhook-embed-fields {
    transition: opacity .16s ease;
}

.webhook-embed-fields.is-disabled {
    opacity: .48;
}

.webhook-title-color-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 14px;
    margin-bottom: 16px;
}

.webhook-color-control {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    border: 1px solid #cfc7e7;
    border-radius: 12px;
    background: rgba(255,255,255,0.86);
    padding: 6px 10px 6px 7px;
}

.webhook-color-input {
    width: 42px;
    height: 34px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.webhook-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.webhook-color-input::-webkit-color-swatch {
    border: 0;
    border-radius: 8px;
}

.webhook-color-input::-moz-color-swatch {
    border: 0;
    border-radius: 8px;
}

#webhook-color-value {
    color: #665f7a;
    font-size: 0.78rem;
    font-weight: 800;
}

.webhook-fields-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.webhook-fields-heading h3 {
    margin: 0 0 3px;
    font-size: 0.98rem;
}

.webhook-fields-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.webhook-secondary-button,
.webhook-remove-field {
    border: 1px solid rgba(101,80,170,.25);
    border-radius: 11px;
    background: rgba(255,255,255,.82);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.webhook-secondary-button {
    padding: 10px 13px;
}

.webhook-secondary-button:hover,
.webhook-remove-field:hover {
    border-color: rgba(101,80,170,.45);
    background: white;
}

.webhook-secondary-button:disabled {
    opacity: .45;
    cursor: default;
}

.webhook-fields-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.webhook-field-row {
    border: 1px solid rgba(103,83,160,.16);
    border-radius: 15px;
    background: rgba(248,246,255,.72);
    padding: 13px;
}

.webhook-field-grid {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 12px;
}

.webhook-field-grid .webhook-textarea {
    min-height: 82px;
}

.webhook-field-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.webhook-inline-check {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-size: .82rem;
    cursor: pointer;
}

.webhook-remove-field {
    padding: 7px 10px;
    color: #9c3154;
    font-size: .78rem;
}

.webhook-send-button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #6f5de7, #8b77f2);
    color: #fff;
    font: inherit;
    font-weight: 900;
    font-size: .96rem;
    padding: 14px 18px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(93,72,194,.20);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.webhook-send-discord-icon {
    width: 22px;
    height: 22px;
    display: block;
    border-radius: 50%;
    flex: 0 0 auto;
}

.webhook-send-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 12px 26px rgba(93,72,194,.26);
}

.webhook-send-button:disabled {
    opacity: .58;
    cursor: wait;
}

.webhook-status {
    min-height: 20px;
    text-align: center;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.webhook-status.is-success {
    color: #167a50;
}

.webhook-status.is-error {
    color: #ae3158;
}

.webhook-discord-card {
    display: flex;
    gap: 12px;
    min-height: 170px;
    border-radius: 17px;
    background: #313338;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(30,26,47,.18);
    color: #dbdee1;
}

.webhook-discord-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #7664ea, #9b84ff);
    background-position: center;
    background-size: cover;
    color: white;
    font-weight: 900;
    font-size: 1rem;
}

.webhook-discord-avatar.has-image {
    color: transparent;
}

.webhook-discord-body {
    min-width: 0;
    flex: 1;
}

.webhook-discord-header {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.webhook-discord-username {
    color: #f2f3f5;
    font-weight: 750;
}

.webhook-bot-badge {
    border-radius: 3px;
    background: #5865f2;
    color: white;
    font-size: .61rem;
    line-height: 1.5;
    font-weight: 800;
    padding: 0 4px;
}

.webhook-discord-time {
    color: #949ba4;
    font-size: .72rem;
}

.webhook-discord-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #dbdee1;
    font-size: .92rem;
    line-height: 1.4;
}

.webhook-preview-placeholder {
    color: #949ba4;
}

.webhook-discord-embed {
    --webhook-embed-color: #7b61ff;
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin-top: 8px;
    border-radius: 4px;
    background: #2b2d31;
    border: 1px solid rgba(28,29,34,.75);
}

.webhook-discord-embed[hidden] {
    display: none;
}

.webhook-discord-embed-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--webhook-embed-color);
}

.webhook-discord-embed-inner {
    display: flex;
    gap: 14px;
    padding: 12px 12px 8px 16px;
}

.webhook-discord-embed-copy {
    min-width: 0;
    flex: 1;
}

.webhook-discord-embed-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
}

.webhook-discord-embed-title-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    object-fit: cover;
}

.webhook-discord-embed-title {
    color: #f2f3f5;
    font-size: .9rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.webhook-discord-embed-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #dbdee1;
    font-size: .84rem;
    line-height: 1.45;
}

.webhook-discord-thumbnail {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.webhook-discord-fields {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px 8px;
    margin-top: 10px;
}

.webhook-discord-field {
    grid-column: 1 / -1;
    min-width: 0;
}

.webhook-discord-field.is-inline {
    grid-column: span 4;
}

.webhook-discord-field-name {
    color: #f2f3f5;
    font-weight: 750;
    font-size: .8rem;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}

.webhook-discord-field-value {
    color: #dbdee1;
    font-size: .78rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.webhook-discord-footer {
    margin: 8px 16px 12px;
    color: #b5bac1;
    font-size: .7rem;
    font-weight: 650;
    line-height: 1.35;
}

.webhook-discord-image {
    display: block;
    max-width: calc(100% - 20px);
    max-height: 310px;
    margin: 4px 10px 12px 16px;
    border-radius: 4px;
    object-fit: contain;
}

.webhook-preview-tip {
    margin-top: 12px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .webhook-layout {
        grid-template-columns: 1fr;
    }

    .webhook-preview-column {
        position: static;
    }
}

@media (max-width: 620px) {
    .webhook-panel,
    .webhook-preview-section {
        padding: 16px;
        border-radius: 17px;
    }

    .webhook-two-column,
    .webhook-title-color-row,
    .webhook-field-grid {
        grid-template-columns: 1fr;
    }

    .webhook-title-color-row {
        margin-bottom: 16px;
    }

    .webhook-embed-toggle-row,
    .webhook-fields-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .webhook-discord-card {
        padding: 14px;
    }

    .webhook-discord-field.is-inline {
        grid-column: span 6;
    }
}

@media (max-width: 430px) {
    .webhook-discord-field.is-inline {
        grid-column: 1 / -1;
    }

    .webhook-discord-thumbnail {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }
}

/* Emoji/Symbol Library: filtered cards and empty category sections must stay hidden */
.library-item[hidden],
.library-section[hidden] {
    display: none !important;
}

/* Mention Builder */
.mention-page {
    display: grid;
    gap: 22px;
}

.mention-hero {
    display: grid;
    gap: 16px;
}

.mention-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mention-title-row h1 {
    margin: 0 0 6px;
}

.mention-title-row p,
.mention-card-heading p,
.mention-section-heading p,
.mention-reference-note {
    margin: 0;
    color: var(--text-muted, #7d7898);
}

.mention-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    font-size: 42px;
    line-height: 1;
}

.mention-builder-card,
.mention-reference-card,
.mention-preview-section {
    border: 1px solid rgba(104, 86, 170, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 30px rgba(71, 54, 136, .08);
    padding: 22px;
}

.mention-card-heading,
.mention-section-heading {
    margin-bottom: 16px;
}

.mention-card-heading h2,
.mention-section-heading h2 {
    margin: 0 0 5px;
    font-size: 1.22rem;
}

.mention-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(103, 82, 179, .18);
    border-radius: 15px;
    background: rgba(239, 236, 251, .84);
}

.mention-type-tab {
    appearance: none;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #57516f;
    padding: 10px 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: .18s ease;
}

.mention-type-tab:hover {
    background: rgba(126, 95, 246, .09);
}

.mention-type-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #7c5cff, #6845f2);
    box-shadow: 0 6px 16px rgba(106, 72, 239, .28);
}

.mention-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mention-field {
    display: grid;
    gap: 8px;
}

.mention-field[hidden] {
    display: none !important;
}

.mention-field span,
.mention-output-label {
    color: #69627f;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mention-field input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfc4f1;
    border-radius: 13px;
    background: rgba(255,255,255,.86);
    color: #2a2740;
    padding: 13px 14px;
    font: inherit;
    outline: none;
}

.mention-field input:focus {
    border-color: #805fff;
    box-shadow: 0 0 0 3px rgba(127, 94, 255, .13);
}

.mention-output-block {
    margin-top: 18px;
}

.mention-output-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid #cfc4f1;
    border-radius: 13px;
    background: #26242d;
}

.mention-output-row code {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: #f7f5ff;
    padding: 5px 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mention-copy-button {
    border: 0;
    border-radius: 10px;
    background: #f4f0ff;
    color: #4b416d;
    padding: 9px 14px;
    font-weight: 900;
    cursor: pointer;
}

.mention-copy-button.copied {
    background: #7655f6;
    color: #fff;
    box-shadow: 0 0 18px rgba(118,85,246,.32);
}

.mention-error {
    min-height: 1.2em;
    margin: 7px 2px 0;
    color: #b94762;
    font-size: .86rem;
}

.mention-discord-preview {
    margin: 0;
}

.mention-preview-pill {
    display: inline-flex;
    align-items: center;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(88, 101, 242, .35);
    color: #c8ccff;
    font-weight: 600;
}

.mention-preview-channel {
    color: #c8ccff;
}

.mention-preview-command {
    border-radius: 5px;
}

.mention-preview-emoji {
    color: #dbdee1;
    font-weight: 600;
}

.mention-reference-grid {
    display: grid;
    gap: 11px;
}

.mention-reference-grid > div {
    display: grid;
    grid-template-columns: minmax(130px, .28fr) 1fr;
    align-items: center;
    gap: 18px;
}

.mention-reference-grid span {
    color: #6c6683;
    font-weight: 800;
}

.mention-reference-grid code {
    color: #342f4a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-wrap: anywhere;
}

.mention-reference-note {
    margin-top: 17px;
    font-size: .9rem;
}

@media (max-width: 720px) {
    .mention-title-row {
        align-items: flex-start;
    }

    .mention-input-grid {
        grid-template-columns: 1fr;
    }

    .mention-type-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mention-type-tab {
        padding-inline: 8px;
    }

    .mention-reference-grid > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}


/* ANSI Color Text */
.ansi-page {
    display: grid;
    gap: 20px;
}

.ansi-hero {
    padding-bottom: 4px;
}

.ansi-title-row h1 {
    margin: 14px 0 4px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.ansi-title-row p,
.ansi-section-heading p {
    margin: 0;
    color: #80799a;
}

.ansi-note {
    border: 1px solid #efc65d;
    background: #fff8de;
    color: #6e5922;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: .93rem;
}

.ansi-workspace {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
}

.ansi-builder-card,
.ansi-preview-section,
.ansi-code-section {
    background: rgba(255, 255, 255, .78);
    border: 1px solid #ddd5f2;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(65, 48, 126, .08);
    padding: 20px;
}

.ansi-output-column {
    display: grid;
    gap: 18px;
}

.ansi-section-heading {
    margin-bottom: 16px;
}

.ansi-section-heading h2 {
    margin: 0 0 3px;
    font-size: 1.22rem;
}

.ansi-segments {
    display: grid;
    gap: 12px;
}

.ansi-segment-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f4f1fb;
    border: 1px solid #ddd5f2;
}

.ansi-field {
    display: grid;
    gap: 6px;
}

.ansi-field > span {
    color: #665f7d;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ansi-field input,
.ansi-field select {
    width: 100%;
    min-height: 45px;
    border: 1px solid #d3c8ef;
    border-radius: 12px;
    background: #fff;
    color: #302b45;
    padding: 10px 12px;
    font: inherit;
    font-weight: 650;
    outline: none;
}

.ansi-field input:focus,
.ansi-field select:focus {
    border-color: #7657f6;
    box-shadow: 0 0 0 3px rgba(118, 87, 246, .12);
}

.ansi-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ansi-segment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ansi-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #554f6b;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.ansi-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ansi-check-box {
    width: 19px;
    height: 19px;
    border: 1.5px solid #bcb1dc;
    border-radius: 5px;
    background: #fff;
    display: grid;
    place-items: center;
    transition: .16s ease;
}

.ansi-check input:checked + .ansi-check-box {
    background: #7557f5;
    border-color: #7557f5;
    box-shadow: 0 0 0 3px rgba(117, 87, 245, .16), 0 0 12px rgba(117, 87, 245, .48);
}

.ansi-check input:checked + .ansi-check-box::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.ansi-check input:focus-visible + .ansi-check-box {
    outline: 3px solid rgba(117, 87, 245, .2);
    outline-offset: 2px;
}

.ansi-remove-button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #d62e4c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.ansi-remove-button:disabled {
    opacity: .4;
    cursor: default;
}

.ansi-secondary-button,
.ansi-copy-button {
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ansi-secondary-button {
    margin-top: 14px;
    padding: 10px 14px;
    color: #554d72;
    background: #ece8f8;
}

.ansi-copy-button {
    margin-top: 12px;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #6f52f4, #8b72f8);
    box-shadow: 0 7px 16px rgba(111, 82, 244, .22);
}

.ansi-copy-button:hover,
.ansi-secondary-button:hover {
    transform: translateY(-1px);
}

.ansi-copy-button.copied {
    background: #4eaf78;
}

.ansi-discord-preview {
    min-height: 128px;
}

.ansi-preview-code {
    display: inline-block;
    margin-top: 6px;
    max-width: 100%;
    min-width: min(100%, 330px);
    border-radius: 6px;
    background: #1e1f22;
    color: #dbdee1;
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ansi-code-display {
    min-height: 112px;
    margin: 0;
    padding: 15px;
    overflow-x: auto;
    border-radius: 12px;
    background: #222327;
    color: #f1f2f3;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ansi-copy-status {
    min-height: 18px;
    margin: 7px 0 0;
    color: #6f6890;
    font-size: .84rem;
}

@media (max-width: 850px) {
    .ansi-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ansi-select-grid {
        grid-template-columns: 1fr;
    }

    .ansi-segment-actions {
        gap: 11px;
    }

    .ansi-remove-button {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
}


/* COLOR CONVERTER */
.color-converter-page {
    display: grid;
    gap: 24px;
}

.color-converter-hero h1 {
    margin: 14px 0 4px;
    color: #29243e;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.color-converter-hero p {
    margin: 0;
    color: #7a7294;
    font-size: 1.02rem;
}

.color-converter-card {
    padding: 22px;
    border: 1px solid #ddd5ef;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 12px 26px rgba(78,59,142,.08);
}

.color-converter-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
}

.color-converter-format {
    display: grid;
    gap: 7px;
}

.color-converter-format > span,
.color-converter-box > span {
    color: #665f7d;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.color-converter-format select {
    min-height: 48px;
    width: 100%;
    padding: 10px 42px 10px 13px;
    border: 1px solid #d3c8ef;
    border-radius: 13px;
    background: #fff;
    color: #302b45;
    font: inherit;
    font-weight: 750;
    outline: none;
}

.color-converter-format select:focus,
.color-converter-box textarea:focus {
    border-color: #7657f6;
    box-shadow: 0 0 0 3px rgba(118,87,246,.12);
}

.color-converter-swap {
    width: 48px;
    height: 48px;
    border: 1px solid #d3c8ef;
    border-radius: 13px;
    background: #f4f1fb;
    color: #654ee8;
    font-size: 1.45rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.color-converter-swap:hover {
    transform: translateY(-1px);
    background: #ece7fb;
    box-shadow: 0 6px 14px rgba(106,82,215,.12);
}

.color-converter-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.color-converter-box {
    position: relative;
    display: grid;
    gap: 7px;
}

.color-converter-box textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid #d3c8ef;
    border-radius: 15px;
    background: #fff;
    color: #302b45;
    padding: 15px;
    font: 700 1.05rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    outline: none;
}

.color-converter-output-box textarea {
    padding-right: 86px;
    background: #f8f6fc;
}

.color-converter-box small {
    min-height: 18px;
    color: #8a829f;
    font-size: .82rem;
}

.color-converter-copy {
    position: absolute;
    right: 12px;
    top: 35px;
    border: 1px solid #d1c6ef;
    border-radius: 10px;
    background: #f1edfa;
    color: #554d72;
    padding: 9px 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.color-converter-copy.copied {
    color: #fff;
    border-color: #4eaf78;
    background: #4eaf78;
}

.color-converter-preview-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2dcf1;
}

.color-converter-swatch {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #d7cfee, 0 6px 14px rgba(62,49,105,.12);
}

.color-converter-preview-row strong {
    color: #332e48;
}

.color-converter-preview-row p {
    margin: 3px 0 0;
    color: #7b7490;
    font-size: .9rem;
}

.color-converter-preview-row p.is-error {
    color: #c84158;
}

@media (max-width: 680px) {
    .color-converter-toolbar {
        grid-template-columns: 1fr auto 1fr;
    }

    .color-converter-boxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .color-converter-card {
        padding: 16px;
    }

    .color-converter-toolbar {
        grid-template-columns: 1fr;
    }

    .color-converter-swap {
        width: 100%;
        height: 42px;
    }
}

/* COLOR CONVERTER - ALIGNED CUSTOM FORMAT PICKERS */
.color-converter-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 14px;
}

.color-converter-format {
    position: relative;
    min-width: 0;
}

.color-converter-format-from {
    z-index: 4;
}

.color-format-dropdown {
    position: relative;
}

.color-format-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 17px;
    border: 1px solid var(--line-strong, #d3c8ef);
    border-radius: 13px;
    outline: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    color: #302b45;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(34, 26, 68, 0.05);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.color-format-trigger:hover,
.color-format-trigger:focus-visible,
.color-format-dropdown.open .color-format-trigger {
    border-color: #8f7ae0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13), 0 8px 18px rgba(64, 45, 120, 0.10);
}

.color-format-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #75699a;
    border-bottom: 2px solid #75699a;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 60% 60%;
    transition: transform 150ms ease;
}

.color-format-dropdown.open .color-format-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.color-format-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 95;
    display: grid;
    gap: 4px;
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b8a7ee transparent;
    border: 1px solid #d6cfea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 18px 40px rgba(39, 28, 78, 0.16), 0 4px 12px rgba(39, 28, 78, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.color-format-menu::-webkit-scrollbar { width: 9px; }
.color-format-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #b8a7ee;
    background-clip: padding-box;
}

.color-format-dropdown.open .color-format-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.color-format-option {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #40394f;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 720;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
}

.color-format-option:hover,
.color-format-option:focus-visible {
    color: #4f39b6;
    background: #f3efff;
    border-color: #b7a6ef;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12), 0 5px 14px rgba(92, 68, 177, 0.10);
    transform: translateY(-1px);
}

.color-format-option.selected {
    color: #5c44c7;
    background: #eee9ff;
    border-color: #c4b7f0;
}

.color-format-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.color-converter-swap {
    position: absolute;
    right: -12px;
    bottom: 0;
    z-index: 10;
    transform: translateX(50%);
}

.color-converter-swap:hover {
    transform: translateX(50%) translateY(-1px);
}

.color-converter-boxes {
    align-items: start;
}

.color-converter-output-box textarea {
    padding-right: 15px;
}

.color-converter-copy-row {
    min-height: 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.color-converter-copy {
    position: static;
    min-width: 86px;
    margin-top: 0;
}

@media (max-width: 680px) {
    .color-converter-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 500px) {
    .color-converter-toolbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .color-converter-swap {
        position: static;
        width: 100%;
        height: 42px;
        margin-top: 8px;
        transform: none;
    }

    .color-converter-swap:hover {
        transform: translateY(-1px);
    }
}


/* COLOR CONVERTER - SPACING + OUTPUT ACTIONS */
@media (min-width: 501px) {
    .color-converter-toolbar {
        /* Keep the To column aligned with the output box while reserving
           a true center gap for the swap control */
        grid-template-columns: calc(50% - 35px) minmax(0, 1fr);
        column-gap: 42px;
    }

    .color-converter-format-from .color-converter-swap {
        right: -52px;
        transform: none;
    }

    .color-converter-format-from .color-converter-swap:hover {
        transform: translateY(-1px);
    }
}

.color-converter-copy-row {
    gap: 10px;
}

.color-converter-clear,
.color-converter-copy {
    position: static;
    min-width: 86px;
    min-height: 41px;
    margin-top: 0;
    padding: 9px 14px;
    border: 1px solid #d1c6ef;
    border-radius: 10px;
    background: #f1edfa;
    color: #554d72;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.color-converter-clear:hover,
.color-converter-clear:focus-visible,
.color-converter-copy:hover,
.color-converter-copy:focus-visible {
    transform: translateY(-1px);
    outline: 0;
    border-color: #9b87e6;
    background: #ebe5fb;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.10);
}

.color-converter-copy.copied {
    color: #fff;
    border-color: #4eaf78;
    background: #4eaf78;
}

/* COLOR CONVERTER - FINAL TOOLBAR + ACTION POLISH */
@media (min-width: 501px) {
    .color-converter-toolbar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 14px;
    }

    .color-converter-format-from {
        padding-right: 62px;
    }

    .color-converter-format-from .color-converter-swap {
        right: 0;
        bottom: 0;
        transform: none;
    }

    .color-converter-format-from .color-converter-swap:hover {
        transform: translateY(-1px);
    }
}

.color-converter-swap {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    text-align: center;
}

.color-converter-copy-row {
    gap: 10px;
}

.color-converter-copy {
    border: 1px solid #c9c0e7;
    background: #f7f5fd;
    color: #51456f;
}

.color-converter-copy:hover,
.color-converter-copy:focus-visible {
    border-color: #c9c0e7;
    background: #eeeafd;
    box-shadow: 0 5px 11px rgba(34, 26, 68, 0.08);
}

.color-converter-clear {
    border: 1px solid #efb3bc;
    background: #fff0f2;
    color: #b23c4f;
}

.color-converter-clear:hover,
.color-converter-clear:focus-visible {
    border-color: #efb3bc;
    background: #ffe5e9;
    box-shadow: 0 5px 11px rgba(130, 38, 52, 0.08);
}

@media (max-width: 500px) {
    .color-converter-format-from {
        padding-right: 0;
    }
}


/* INVISIBLE TEXT TOOL */
.invisible-text-page {
    display: grid;
    gap: 22px;
}

.invisible-text-hero {
    display: grid;
    gap: 18px;
}

.invisible-text-title-row h1 {
    margin: 0;
    color: #28233f;
    font-size: clamp(2.15rem, 4.5vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.invisible-text-title-row p {
    margin: 7px 0 0;
    color: #7a7295;
    font-size: 1.05rem;
}

.invisible-text-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 22px;
    align-items: start;
}

.invisible-text-card,
.invisible-text-note-card {
    border: 1px solid #ddd6ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 28px rgba(57, 42, 103, 0.07);
}

.invisible-text-card {
    padding: 22px;
}

.invisible-text-card-heading h2,
.invisible-text-section-heading h2,
.invisible-text-note-card h2 {
    margin: 0;
    color: #302a48;
    font-size: 1.3rem;
}

.invisible-text-card-heading p,
.invisible-text-section-heading p,
.invisible-text-note-card p {
    margin: 4px 0 0;
    color: #81799a;
}

.invisible-text-settings-card {
    display: grid;
    gap: 18px;
}

.invisible-text-field {
    display: grid;
    gap: 8px;
}

.invisible-text-label {
    color: #6d6584;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.invisible-text-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfc5ed;
    border-radius: 13px;
    outline: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #302a48;
    font: inherit;
    font-weight: 720;
    box-sizing: border-box;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.invisible-text-field input:focus {
    border-color: #8269e4;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13);
}

.invisible-character-dropdown {
    position: relative;
}

.invisible-character-trigger {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid #cfc5ed;
    border-radius: 13px;
    outline: 0;
    background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
    color: #302a48;
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 13px rgba(34, 26, 68, 0.05);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.invisible-character-trigger:hover,
.invisible-character-trigger:focus-visible,
.invisible-character-dropdown.open .invisible-character-trigger {
    border-color: #8f7ae0;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.13), 0 8px 18px rgba(64, 45, 120, 0.10);
}

.invisible-character-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid #75699a;
    border-bottom: 2px solid #75699a;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: 60% 60%;
    transition: transform 150ms ease;
}

.invisible-character-dropdown.open .invisible-character-chevron {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.invisible-character-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 95;
    display: grid;
    gap: 4px;
    max-height: 300px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #d6cfea;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 40px rgba(39, 28, 78, 0.16), 0 4px 12px rgba(39, 28, 78, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.985);
    transform-origin: top center;
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: #b8a7ee transparent;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.invisible-character-menu::-webkit-scrollbar { width: 9px; }
.invisible-character-menu::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #b8a7ee;
    background-clip: padding-box;
}

.invisible-character-dropdown.open .invisible-character-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.invisible-character-option {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #40394f;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 720;
    text-align: left;
    cursor: pointer;
    outline: 0;
    transition: color 130ms ease, background 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.invisible-character-option:hover,
.invisible-character-option:focus-visible {
    color: #4f39b6;
    background: #f3efff;
    border-color: #b7a6ef;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

.invisible-character-option.selected {
    color: #5c44c7;
    background: #eee9ff;
    border-color: #c4b7f0;
}

.invisible-text-selected-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 8px;
    padding: 14px 15px;
    border: 1px solid #e0d9ef;
    border-radius: 13px;
    background: #f8f6fd;
}

.invisible-text-selected-info strong {
    color: #3b3551;
}

.invisible-text-selected-info span {
    color: #796e9b;
    font-weight: 800;
}

.invisible-text-selected-info p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #7f7892;
    line-height: 1.45;
}

.invisible-text-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invisible-copy-main.copied,
.invisible-quick-copy.copied {
    border-color: #4eaf78 !important;
    background: #4eaf78 !important;
    color: #fff !important;
}

.invisible-text-status {
    min-height: 20px;
    margin: -4px 0 0;
    color: #4e8b69;
    font-weight: 750;
}

.invisible-text-status.error {
    color: #b23c4f;
}

.invisible-text-quick-section {
    display: grid;
    gap: 12px;
}

.invisible-text-section-heading {
    padding: 2px 2px 0;
}

.invisible-text-quick-list {
    display: grid;
    gap: 10px;
}

.invisible-quick-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid #ddd6ef;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 18px rgba(57, 42, 103, 0.05);
}

.invisible-quick-card h3 {
    margin: 0;
    color: #433c59;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.invisible-quick-card p {
    margin: 5px 0 0;
    color: #817a92;
    line-height: 1.45;
}

.invisible-quick-copy {
    min-width: 74px;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #cec5e7;
    border-radius: 10px;
    background: #f5f2fb;
    color: #564d72;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.invisible-quick-copy:hover,
.invisible-quick-copy:focus-visible {
    transform: translateY(-1px);
    outline: 0;
    border-color: #a591e9;
    background: #eee9ff;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.11);
}

.invisible-text-note-card {
    padding: 20px 22px;
}

.invisible-text-note-card p + p {
    margin-top: 6px;
}

@media (max-width: 820px) {
    .invisible-text-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .invisible-text-card,
    .invisible-text-note-card {
        padding: 17px;
        border-radius: 15px;
    }

    .invisible-quick-card {
        grid-template-columns: 1fr;
    }

    .invisible-quick-copy {
        width: 100%;
    }
}


/* Invisible Text repeat control + primary copy button */
.invisible-copy-main {
    margin-top: 0;
}

.invisible-repeat-control {
    position: relative;
}

.invisible-repeat-control input {
    padding-right: 52px;
    -moz-appearance: textfield;
}

.invisible-repeat-control input::-webkit-outer-spin-button,
.invisible-repeat-control input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.invisible-repeat-steppers {
    position: absolute;
    top: 5px;
    right: 6px;
    bottom: 5px;
    width: 38px;
    display: grid;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #d7cfed;
    border-radius: 9px;
    background: #f7f5fc;
}

.invisible-repeat-step {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: background 140ms ease, box-shadow 140ms ease;
}

.invisible-repeat-step + .invisible-repeat-step {
    border-top: 1px solid #ddd6ef;
}

.invisible-repeat-step:hover,
.invisible-repeat-step:focus-visible {
    outline: 0;
    background: #ece7ff;
    box-shadow: inset 0 0 0 1px rgba(123, 97, 255, 0.12);
}

.invisible-repeat-chevron {
    width: 7px;
    height: 7px;
    border-top: 2px solid #74679a;
    border-left: 2px solid #74679a;
}

.invisible-repeat-chevron.up {
    transform: translateY(2px) rotate(45deg);
}

.invisible-repeat-chevron.down {
    transform: translateY(-2px) rotate(225deg);
}

/* COPY SUCCESS STATE - SITE-WIDE STANDARD */
.timestamp-copy-button.copied,
.copy-selected-button.copied,
.markdown-copy-button.copied,
.counter-copy-button.copied,
.lookup-secondary-button.copied,
.invite-secondary-button.copied,
.server-secondary-button.copied,
.role-color-copy-button.copied,
.mention-copy-button.copied,
.ansi-copy-button.copied,
.color-converter-copy.copied,
.invisible-copy-main.copied,
.invisible-quick-copy.copied {
    color: #ffffff !important;
    border-color: #4eaf78 !important;
    background: #4eaf78 !important;
    box-shadow: 0 5px 11px rgba(50, 135, 88, 0.18) !important;
}



/* EMOJI GRABBER */
.emoji-grabber-page {
    display: grid;
    gap: 22px;
    align-content: start;
    grid-auto-rows: max-content;
}

.emoji-grabber-card {
    padding: 22px;
    border: 1px solid #d8d1eb;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(57, 42, 103, 0.06);
}

.emoji-grabber-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.emoji-grabber-field {
    display: grid;
    gap: 8px;
}

.emoji-grabber-label {
    color: #4a435e;
    font-size: 0.9rem;
    font-weight: 800;
}

.emoji-grabber-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cec5e7;
    border-radius: 12px;
    background: #fff;
    color: #332e46;
    font: inherit;
    font-weight: 700;
    outline: 0;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.emoji-grabber-input:focus {
    border-color: #9f8bea;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.11);
}

.emoji-grabber-button,
.emoji-grabber-download {
    min-height: 48px;
    padding: 11px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #7b61ff 0%, #654ee0 100%);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(101, 78, 224, 0.24);
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.emoji-grabber-button:hover,
.emoji-grabber-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(101, 78, 224, 0.29);
}

.emoji-grabber-button:disabled,
.emoji-grabber-download:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.emoji-grabber-status {
    min-height: 20px;
    margin: 12px 2px 0;
    color: #746b8c;
    font-weight: 750;
}

.emoji-grabber-status.error {
    color: #b23c4f;
}

.emoji-grabber-result[hidden] {
    display: none !important;
}

.emoji-grabber-result {
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
    align-items: stretch;
}

.emoji-grabber-preview-panel,
.emoji-grabber-info-panel {
    border: 1px solid #ddd6ef;
    border-radius: 16px;
    background: rgba(255,255,255,0.76);
}

.emoji-grabber-preview-panel {
    min-height: 300px;
    display: grid;
    place-items: center;
    padding: 24px;
    background-color: #f8f7fc;
    background-image:
        linear-gradient(45deg, #ece9f4 25%, transparent 25%),
        linear-gradient(-45deg, #ece9f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ece9f4 75%),
        linear-gradient(-45deg, transparent 75%, #ece9f4 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.emoji-grabber-preview {
    width: min(220px, 76%);
    aspect-ratio: 1;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 10px 18px rgba(40, 31, 75, 0.15));
}

.emoji-grabber-info-panel {
    padding: 20px;
    display: grid;
    gap: 18px;
}

.emoji-grabber-info-panel h2 {
    margin: 0;
    color: #3d3651;
    font-size: 1.1rem;
}

.emoji-grabber-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.emoji-grabber-info-item {
    padding: 13px 14px;
    border: 1px solid #e1dcee;
    border-radius: 12px;
    background: #f8f6fc;
}

.emoji-grabber-info-item span {
    display: block;
    margin-bottom: 4px;
    color: #817895;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.emoji-grabber-info-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #3c3650;
    font-size: 0.94rem;
}

.emoji-grabber-source {
    display: grid;
    gap: 7px;
}

.emoji-grabber-source code {
    display: block;
    padding: 12px 13px;
    overflow-wrap: anywhere;
    border: 1px solid #ddd6ef;
    border-radius: 11px;
    background: #eeebf7;
    color: #5c527b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.emoji-grabber-actions {
    display: flex;
    justify-content: flex-end;
}

.emoji-grabber-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (max-width: 760px) {
    .emoji-grabber-form,
    .emoji-grabber-result {
        grid-template-columns: 1fr;
    }

    .emoji-grabber-button,
    .emoji-grabber-download {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .emoji-grabber-card {
        padding: 17px;
        border-radius: 15px;
    }

    .emoji-grabber-info-grid {
        grid-template-columns: 1fr;
    }
}

/* EMOJI GRABBER COMPACT EMPTY STATE */
.emoji-grabber-card {
    min-height: 0 !important;
    height: auto !important;
    align-self: start;
}

.emoji-grabber-form {
    margin-bottom: 0 !important;
}

.emoji-grabber-result[hidden] {
    display: none !important;
}

.emoji-grabber-card:has(.emoji-grabber-result[hidden]) {
    padding-bottom: 22px !important;
}

/* EMOJI GRABBER HEADER SPACING */
.emoji-grabber-page > .counter-hero {
    margin-bottom: 0 !important;
}

/* LINK CLEANER */

.link-cleaner-page {
    display: grid;
    gap: 22px;
    align-content: start;
    grid-auto-rows: max-content;
}

.link-cleaner-page > .counter-hero {
    margin-bottom: 0;
}

.link-cleaner-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.link-cleaner-field {
    display: grid;
    gap: 8px;
}

.link-cleaner-field + .link-cleaner-field {
    margin-top: 18px;
}

.link-cleaner-label {
    color: #514a6b;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.link-cleaner-textarea {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    padding: 16px;
    border: 1px solid #cfc5f4;
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.link-cleaner-textarea:focus {
    border-color: #8b72ff;
    box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.12);
}

.link-cleaner-textarea[readonly] {
    background: #f9f8fd;
}

.link-cleaner-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.link-cleaner-copy {
    padding: 11px 16px;
    border: 1px solid #cfc5f4;
    border-radius: 11px;
    background: #f7f5fd;
    color: #514a6b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 140ms ease,
        box-shadow 140ms ease,
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease;
}

.link-cleaner-copy:hover {
    transform: translateY(-1px);
    border-color: #ad9df1;
    box-shadow: 0 5px 11px rgba(54, 39, 125, 0.10);
}

.link-cleaner-copy.copied {
    color: #ffffff !important;
    border-color: #4eaf78 !important;
    background: #4eaf78 !important;
    box-shadow: 0 5px 11px rgba(50, 135, 88, 0.18) !important;
}

.link-cleaner-summary {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 700px) {
    .link-cleaner-card {
        padding: 18px;
    }

    .link-cleaner-textarea {
        min-height: 150px;
    }
}


.link-cleaner-education[hidden] {
    display: none !important;
}

.link-cleaner-education {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.link-cleaner-education-heading {
    margin-bottom: 14px;
}

.link-cleaner-education-heading h2 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.link-cleaner-education-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.link-cleaner-education-list {
    display: grid;
    gap: 12px;
}

.link-cleaner-explanation {
    padding: 15px 16px;
    border: 1px solid #ddd7ef;
    border-radius: 14px;
    background: #f9f8fd;
}

.link-cleaner-explanation-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.link-cleaner-explanation-title {
    min-width: 0;
}

.link-cleaner-explanation-title strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.link-cleaner-explanation-title span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.link-cleaner-parameter-badge {
    flex: 0 0 auto;
    max-width: 48%;
    padding: 5px 8px;
    border: 1px solid #d2c9f4;
    border-radius: 8px;
    background: #f0edfb;
    color: #5a4f85;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.link-cleaner-explanation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.link-cleaner-explanation-item {
    padding: 11px 12px;
    border: 1px solid #e2ddef;
    border-radius: 11px;
    background: #ffffff;
}

.link-cleaner-explanation-item h3 {
    margin: 0 0 5px;
    color: #5c5475;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.link-cleaner-explanation-item p {
    margin: 0;
    color: #625b77;
    font-size: 0.84rem;
    line-height: 1.45;
}

.link-cleaner-manual-example {
    display: inline;
    padding: 2px 5px;
    border-radius: 5px;
    background: #f0edfb;
    color: #544a78;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

@media (max-width: 850px) {
    .link-cleaner-explanation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .link-cleaner-explanation-top {
        flex-direction: column;
    }

    .link-cleaner-parameter-badge {
        max-width: 100%;
    }
}


/* STATUS PAGE HEADER LAYOUT SAFETY */
.top-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.top-actions > * {
    flex: 0 0 auto;
}

/* STATUS SIGNAL LOADER */
body.status-loading-page {
    overflow: hidden;
}

body.status-loading-page.status-ready {
    overflow: auto;
}

.status-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 13, 39, 0.25);
    backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    transition: none;
}

.status-loader-overlay.is-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.status-loader-scene {
    width: min(260px, 68vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 18px 36px rgba(28, 18, 70, 0.30));
}

.status-loader-scene.is-entering {
    animation:
        status-signal-spin-in 760ms cubic-bezier(.20,.75,.25,1) both;
}

.status-loader-overlay.is-exiting {
    pointer-events: none;
    animation: status-loader-overlay-exit 680ms cubic-bezier(.40,.05,.55,.95) forwards;
}

.status-loader-overlay.is-exiting .status-loader-scene {
    animation: status-signal-spin-out 680ms cubic-bezier(.40,.05,.55,.95) forwards;
}

.status-signal-orb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    padding: 8px;
    background:
        linear-gradient(
            180deg,
            #cb4eff 0%,
            #a52de2 35%,
            #7530ad 68%,
            #35164e 100%
        );
}

.status-signal-orb::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 50% 35%,
            #42215f 0%,
            #34194f 55%,
            #28113f 100%
        );
    box-shadow:
        inset 0 0 28px rgba(9, 5, 22, 0.34);
}

.status-signal-stars {
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.status-signal-star {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ffffff;
    opacity: .22;
    transform: scale(.7);
    transform-origin: center;
    animation:
        status-star-sparkle 1.55s ease-in-out infinite;
}

.status-signal-star::before,
.status-signal-star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    background: rgba(255,255,255,0.95);
    opacity: 0;
    transform: translate(-50%, -50%);
}

.status-signal-star::before {
    width: 1px;
    height: 9px;
}

.status-signal-star::after {
    width: 9px;
    height: 1px;
}

.status-signal-star:nth-child(2n) {
    animation-duration: 1.9s;
    animation-delay: -.55s;
}

.status-signal-star:nth-child(3n) {
    width: 2px;
    height: 2px;
    animation-duration: 1.25s;
    animation-delay: -.85s;
}

.status-signal-star:nth-child(4n) {
    width: 4px;
    height: 4px;
    animation-duration: 2.1s;
    animation-delay: -1.25s;
}

.status-signal-star:nth-child(5n) {
    animation-delay: -.25s;
}

.status-signal-star.star-1  { left: 18%; top: 18%; }
.status-signal-star.star-2  { left: 35%; top: 11%; }
.status-signal-star.star-3  { left: 54%; top: 16%; }
.status-signal-star.star-4  { left: 72%; top: 13%; }
.status-signal-star.star-5  { left: 83%; top: 27%; }
.status-signal-star.star-6  { left: 14%; top: 36%; }
.status-signal-star.star-7  { left: 31%; top: 33%; }
.status-signal-star.star-8  { left: 58%; top: 31%; }
.status-signal-star.star-9  { left: 76%; top: 42%; }
.status-signal-star.star-10 { left: 20%; top: 56%; }
.status-signal-star.star-11 { left: 42%; top: 51%; }
.status-signal-star.star-12 { left: 66%; top: 58%; }
.status-signal-star.star-13 { left: 82%; top: 66%; }
.status-signal-star.star-14 { left: 15%; top: 73%; }
.status-signal-star.star-15 { left: 34%; top: 79%; }
.status-signal-star.star-16 { left: 55%; top: 74%; }
.status-signal-star.star-17 { left: 71%; top: 82%; }
.status-signal-star.star-18 { left: 87%; top: 78%; }

.status-signal-bars {
    position: absolute;
    left: 35%;
    top: 68%;
    z-index: 2;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: rotate(38deg);
    transform-origin: center;
}

.status-signal-arc {
    position: absolute;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    border: 9px solid #caff33;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(202, 255, 51, 0.20));
    transform: translate(-50%, -50%);
}

.status-signal-arc.signal-1 {
    width: 104px;
    height: 104px;
    animation: status-signal-step-1 1.6s steps(1, end) infinite;
}

.status-signal-arc.signal-2 {
    width: 158px;
    height: 158px;
    animation: status-signal-step-2 1.6s steps(1, end) infinite;
}

.status-signal-arc.signal-3 {
    width: 212px;
    height: 212px;
    animation: status-signal-step-3 1.6s steps(1, end) infinite;
}

@keyframes status-star-sparkle {
    0%, 100% {
        opacity: .34;
        transform: scale(.90);
        box-shadow: 0 0 1px rgba(255, 255, 255, .12);
    }

    50% {
        opacity: .76;
        transform: scale(1.08);
        box-shadow: 0 0 3px rgba(255, 255, 255, .40);
    }
}

.status-signal-star:nth-child(4n)::before,
.status-signal-star:nth-child(4n)::after {
    animation: status-star-cross 2.6s ease-in-out infinite;
}

@keyframes status-star-cross {
    0%, 44%, 56%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.72);
    }

    50% {
        opacity: .28;
        transform: translate(-50%, -50%) scale(.88);
    }
}

@keyframes status-signal-step-1 {
    0%, 74% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes status-signal-step-2 {
    0%, 24% { opacity: 0; }
    25%, 74% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes status-signal-step-3 {
    0%, 49% { opacity: 0; }
    50%, 74% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes status-signal-spin-in {
    0% {
        opacity: 0;
        transform: scale(.72) rotate(-360deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes status-loader-overlay-exit {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99.9% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes status-signal-spin-out {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(.72) rotate(360deg);
    }
}

@media (max-width: 640px) {
    .status-loader-scene {
        width: min(220px, 72vw);
    }

    .status-signal-arc {
        border-width: 8px;
    }

    .status-signal-arc.signal-1 {
        width: 60px;
        height: 60px;
    }

    .status-signal-arc.signal-2 {
        width: 96px;
        height: 96px;
    }

    .status-signal-arc.signal-3 {
        width: 132px;
        height: 132px;
    }
}

@media (max-width: 640px) {
    .status-signal-bars {
        left: 35%;
        top: 68%;
    }

    .status-signal-arc.signal-1 {
        width: 88px;
        height: 88px;
    }

    .status-signal-arc.signal-2 {
        width: 134px;
        height: 134px;
    }

    .status-signal-arc.signal-3 {
        width: 180px;
        height: 180px;
    }
}
