* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: none !important;
}

html {
    scrollbar-gutter: stable;
    overscroll-behavior: none;
    color-scheme: dark;
}

body {
    scrollbar-gutter: stable;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-main);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    overscroll-behavior: none;
}

/* Global Image & Link Reset: No Drag, No Select */
img,
a {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img {
    pointer-events: none;
}

/* Restore pointer events if we want click interactions on specific images (like buttons) */
button img,
a img,
.interactive-img {
    pointer-events: auto;
}

/* Inherit fonts and colors for form elements */
button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Custom Text Selection */
::selection {
    background: var(--c-secondary);
    color: var(--c-bg);
    /* Ensure contrast */
}

/* Global Scrollbar Hiding - Innovative Design */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none !important;
}

/* Utility: Prevent scrolling when overlays are open */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* Utility: Non-selectable element with default cursor */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
}

/* Global Utilities */
.hidden {
    display: none !important;
}

/* Password field cleanup */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}