:root {
    --font-family-primary: "Sinkin Sans", sans-serif;
    --card-border: solid 1px var(--input-border);
    --clr-primary: #253a43;
    --clr-secondary: #f59e0b;
    --clr-secondary-hover: #c26e08;
    --error: #e5484d;
    --font-size-primary: 16px;
    --font-size-small: 14px;
    --font-size-smaller: 12px;
    --glass-bg: rgba(255, 255, 255, 0.16);
    --glass-border: rgba(255,255,255,0.18);
    --border-radius: 10px;
    --border-radius-sm: 5px;
    --input-border: #e2e8f0;
    --input-border-focus: #cbd5e1;
    --input-focus-ring: rgba(148, 163, 184, 0.25);
    --input-text: #1e293b;
    --input-icon: #64748b;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-primary);
    color: black;
}

h1, h2, h3, h4, h5, h6,
button, input, label {
    line-height: 1.1;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

img,
picture,
svg,
video {
    max-width: 100%;
    display: block;
}

label {
    display: block;
    text-align: left;
}

input,
textarea,
select {
    font: inherit;
    color: black;
}

input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])),
select,
textarea {
    padding: 8px 14px;
    background-color: #fff;
    border: solid 1px var(--input-border);
    border-radius: var(--border-radius);
    color: var(--input-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

    input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])):focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--input-border-focus);
        box-shadow: 0 0 0 3px var(--input-focus-ring);
    }

    input::placeholder,
    textarea::placeholder {
        color: var(--input-icon);
        font-weight: 400;
    }

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

    select:disabled {
        background-color: rgba(0, 0, 0, .1);
        cursor: default;
    }

textarea {
    width: 100%;
}

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-text-fill-color: #222 !important;
        -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
        box-shadow: 0 0 0 1000px rgba(255, 255, 255) inset !important;
        caret-color: #222;
        font: inherit !important;
        transition: background-color 5000s ease-in-out 0s;
    }

    input:disabled,
    textarea:disabled {
        background-color: rgba(0, 0, 0, .1);
    }

    textarea:not([rows]) {
        min-height: 10em;
    }

button {
    padding: .5rem 1rem;
    background-color: var(--clr-secondary);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #fff;
    letter-spacing: 1px;
    cursor: pointer;
    font: inherit;
}

    button:hover {
        background-color: var(--clr-secondary-hover);
    }

    button:disabled {
        opacity: .5;
        cursor: default;
    }

        button:disabled:hover {
            background-color: var(--clr-secondary);
        }

link,
a {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-primary);
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: none;
    cursor: pointer;
}

    link:hover,
    a:hover {
        color: var(--clr-secondary);
    }

/*ul,
ol {
    list-style: none;
}*/

table {
    border-collapse: collapse;
    border-spacing: 0;
}

textarea {
    resize: vertical;
}

:target {
    scroll-margin-block: 5ex;
}

fieldset {
    border: none;
}

address {
    font-style: normal;
}

[hidden] {
    display: none !important;
}

.validation-message {
    color: var(--error, #dc2626);
    font-size: var(--font-size-smaller);
    margin-top: 4px;
    display: block;
}

/* Firefox + modern Chromium (standardized) */
* {
    scrollbar-width: thin;
}

/* WebKit-based browsers (Chrome, Edge, Safari) - older syntax, still widely needed */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background-color: #b3babd;
    border-radius: 10px;
    border: 2px solid #f0f1f3;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #949a9d;
    }

.global-tooltip {
    position: fixed;
    inset: auto;
    margin: 0;
    border: none;
    overflow: visible;
    z-index: 2147483647;
    width: max-content;
    max-width: 250px;
    white-space: pre-line;
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    background-color: var(--clr-primary);
    color: white;
    font-size: var(--font-size-smaller);
    font-weight: normal;
    pointer-events: none;
    border: solid 1px white;
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    background-color: white;
    border: solid 1px #cbd5e1;
    border-radius: 999px;
    font-size: var(--font-size-small);
    letter-spacing: normal;
    color: var(--clr-primary);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease;
}

    .tab:hover {
        background-color: white;
        border-color: #94a3b8;
    }

.active-tab,
.active-tab:hover {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: white;
}

.star-shine {
    position: relative;
}

    .star-shine:hover {
        background: linear-gradient(110deg, #fbbf24 44%, #fffbeb 50%, #fbbf24 56%);
        background-size: 250% 100%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: starGlint .6s ease-out forwards;
    }

    .star-shine::after {
        content: "\2726";
        position: absolute;
        top: -7px;
        right: -8px;
        font-family: Arial, sans-serif;
        font-size: 10px;
        font-weight: normal;
        color: #fbbf24;
        -webkit-text-fill-color: #fbbf24;
        opacity: 0;
        pointer-events: none;
    }

    .star-shine:hover::after {
        animation: starSparkle .6s ease-out .15s;
    }

@keyframes starGlint {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0 0;
    }
}

@keyframes starSparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
}
