/* #region Generals */
@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter_SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    scroll-behavior: smooth;
    box-sizing: border-box;
    user-select: none;
}

*:focus {
    outline: none;
}

body {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
    color: #090909;
}

@-webkit-keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* main {
    display: flex;
    flex-direction: column;
    gap: 176px;
} */

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

.v-hidden {
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
}

.d-none {
    display: none !important;
}

.flex-align-center {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.flex-center {
    display: flex;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
}

.txt-line-limit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

section {
    margin: 0 auto;
    padding: 0 64px;
}

img[lazy] {
    display: inline-block;
    width: 1px;
    height: 1px;
    vertical-align: middle;
}

.divider {
    border-bottom: 1px solid #f5f5f5;
    margin: 64px;
}

@media (min-width: 768px) {
    .web-only {
        display: block !important;
    }

    .mb-only {
        display: none !important;
    }

    .category__shortcut {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .web-only {
        display: none !important;
    }

    .mb-only {
        display: block !important;
    }

    .category__shortcut {
        display: grid;
    }

    .hero__slide img {
        aspect-ratio: auto !important;
        height: auto !important;
        width: 100% !important;
    }
}

/* #endregion */

/* #region General button */
.general__btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    height: 44px;
    padding: 4px 60px 4px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(0, 255, 128, 0.7), rgba(52, 255, 164, 0.4));
    user-select: none;
    position: relative;
    z-index: 1;
    width: fit-content;
    outline: none;
    border: none;
    box-sizing: unset;
}

.general__btn p {
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    z-index: 2;
    transition: color 0.3s;
}

.general__btn span {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 44px;
    width: 44px;
    height: 44px;
    background-color: #fff;
    position: absolute;
    right: 4px;
    transition: all 0.3s;
    z-index: inherit;
}

.general__btn:hover {
    box-shadow: 0 0 25px rgba(52, 199, 89, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.general__btn:hover p {
    color: #008C4F;
}

.general__btn:hover span {
    width: calc(100% - 8px) !important;
}

.general__btn:hover span img,
.general__btn:hover p {
    animation: scroll-inertia 0.2s ease-out;
}

/* Keyframe animation to "flicker" the image */
@keyframes scroll-inertia {
    0% {
        transform: translateY(0);
        height: 20px;
    }

    25% {
        transform: translateY(-10px);
        opacity: 0.5;
        height: 10px;
    }

    50% {
        transform: translateY(-25px);
        opacity: 0;
        height: 0;
    }

    75% {
        transform: translateY(10px);
        opacity: 0.5;
        height: 10px;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        height: 20px;
    }
}

.general__btn img {
    width: 24px !important;
    height: 24px !important;
    position: absolute !important;
    left: unset !important;
    right: 10px !important;
    top: 10px !important;
    transition: transform 0.4s ease-out;
}

.general__btn.general__btn--center {
    margin: 0 auto;
}

.general__btn.general__btn--contact {
    background-color: #f5f5f5;
    border: 1px solid #008C4F;
    height: 44px;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

.general__btn.general__btn--contact p {
    color: #008C4F;
}

.general__btn.general__btn--contact:hover p {
    color: #fff;
}

.general__btn.general__btn--contact span {
    background-color: #008C4F;
    height: 36px;
    width: 36px;
}

.general__btn.general__btn--contact img {
    right: 6px !important;
    top: 6px !important;
}

.general__btn.general__btn--add {
    background-color: #f5f5f5;
    border: 1px solid #008C4F;
    font-size: 14px;
    font-weight: 400;
}

.general__btn.general__btn--add p {
    color: #008C4F;
}

.general__btn.general__btn--add:hover p {
    color: #fff;
}

.general__btn.general__btn--add span {
    background-color: #008C4F;
}

/* #endregion */

/* #region QR scanner general*/

:root {
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #1f2937 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #007aff;
    --accent-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --success-color: #34c759;
    --warning-color: #ff9f0a;
    --danger-color: #ff453a;
}

@property --grad-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spinGradient {
    0% {
        --grad-angle: 0deg;
    }

    100% {
        --grad-angle: 360deg;
    }
}

body {
    background: linear-gradient(calc(-180deg + var(--grad-angle)), #000 0%, #111128 50%, #000 100%);
    animation: spinGradient 30s linear infinite;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 420px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 36px;
    box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 0 20px 24px 20px;
    position: relative;
    overflow-y: auto;
    max-height: 92vh;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-container::-webkit-scrollbar {
    display: none;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #000;
    padding: 24px 0 20px 0;
    margin-bottom: 5px;
    border-bottom: 2px solid;
    border-image: linear-gradient(135deg, rgba(0, 255, 128, 0.7), rgba(52, 255, 164, 0.4)) 1;
}

.app-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* #endregion */

/* #region Glass button */

.glass-btn {
    height: 52px;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
}

.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: 0.5s;
}

.glass-btn:hover::before {
    left: 100%;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--glass-highlight);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.glass-btn.primary {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.4), rgba(0, 198, 255, 0.4));
    border-color: rgba(0, 198, 255, 0.4);
}

.glass-btn.primary:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.6), rgba(0, 198, 255, 0.6));
    box-shadow: 0 0 25px rgba(0, 122, 255, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.4);
}

.glass-btn.success {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.4), rgba(40, 167, 69, 0.4));
    border-color: rgba(52, 199, 89, 0.4);
}

.glass-btn.success:hover {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.6), rgba(40, 167, 69, 0.6));
    box-shadow: 0 0 25px rgba(52, 199, 89, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.4);
}

/* #endregion */