:root {
    --color-primary: #1877F2;
    --color-primary-hover: #1565D8;
    --color-bg-dark: #0A0A0A;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-success: #34C759;
    --color-gold: #FFD700;
    --color-white: #FFFFFF;
    --color-gray: #8E8E93;
    --color-gray-light: #AEAEB2;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #8E8E93;
    --color-border: rgba(255, 255, 255, 0.08);

    --font-size-heading: 20px;
    --font-size-body: 15px;
    --font-size-small: 13px;
    --font-weight-bold: 600;
    --font-weight-medium: 500;

    --border-radius-button: 10px;
    --border-radius-card: 12px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.card, .button, .item, .category-card, .subcategory-item {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0A0A0A;
    background: #0A0A0A;
    color: var(--color-text-primary);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    padding-top: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    margin: 0;
    position: relative;
}

body.mobile-device.fullscreen-mode:not(.onboarding-page) {
    padding-top: max(env(safe-area-inset-top, 0px), 48px);
    transition: padding-top 0.2s ease-out;
}

body.desktop-device:not(.onboarding-page),
body:not(.mobile-device):not(.onboarding-page) {
    padding-top: 1rem;
    transition: padding-top 0.2s ease-out;
}

body.mobile-device:not(.fullscreen-mode):not(.onboarding-page) {
    padding-top: 1rem;
    transition: padding-top 0.2s ease-out;
}

.app {
    min-height: 100vh;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    background: #0A0A0A;
}

/* Каталог: без лишнего отступа сверху в Telegram fullscreen (шапка прижата к safe-area). */
body.mobile-device.fullscreen-mode:not(.onboarding-page):has(.content.page-web3) {
    padding-top: max(env(safe-area-inset-top, 0px), 56px);
}

body.desktop-device:not(.onboarding-page):has(.content.page-web3),
body:not(.mobile-device):not(.onboarding-page):has(.content.page-web3) {
    padding-top: 0.35rem;
}

.app:has(.content.page-airdrop) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100vh;
    max-width: none;
    width: 100%;
}

.content {
    padding: 1rem;
    padding-top: 0;
    padding-bottom: 9vh;
    transition: padding-top 0.2s ease-out;
    -webkit-overflow-scrolling: touch;
    min-height: 93vh;
    max-height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
}


.content.page-user {
    padding-bottom: calc(10vh + 100px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
}

.content.page-quest {
    padding-bottom: calc(10vh + 100px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
}

.content.page-raffle {
    padding-bottom: calc(10vh + 100px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
}

.content.page-achievements {
    padding-bottom: calc(10vh + 100px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
}

.content.page-airdrop {
    padding: 0 !important;
    padding-bottom: calc(10vh + 20px) !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: calc(100vh - 80px) !important;
}

body.mobile-device.fullscreen-mode .content {
    padding-top: max(1rem, 48px);
    transition: padding-top 0.2s ease-out;
}

body.mobile-device.fullscreen-mode .page-web3 {
    /* Safe-area только в sticky-шапке каталога — без второго отступа у контейнера */
    padding-top: 0 !important;
    transition: padding-top 0.2s ease-out;
}

body.mobile-device.fullscreen-mode .content.page-web3 {
    padding-top: 0 !important;
}

body.mobile-device.fullscreen-mode .content.page-favorites {
    padding-top: 0 !important;
}

body.mobile-device.fullscreen-mode .page-airdrop,
body.mobile-device.fullscreen-mode .page-quest,
body.mobile-device.fullscreen-mode .page-raffle,
body.mobile-device.fullscreen-mode .page-user,
body.mobile-device.fullscreen-mode .page-favorites {
    padding-top: max(env(safe-area-inset-top, 0px), 48px);
    transition: padding-top 0.2s ease-out;
}

body.mobile-device.fullscreen-mode .content.page-airdrop {
    padding-top: 0 !important;
}

body.desktop-device .content,
body.desktop-device .page-web3,
body.desktop-device .page-airdrop,
body.desktop-device .page-quest,
body.desktop-device .page-raffle,
body.desktop-device .page-user,
body.desktop-device .page-achievements,
body.desktop-device .page-favorites,
body:not(.mobile-device) .content,
body:not(.mobile-device) .page-web3,
body:not(.mobile-device) .page-airdrop,
body:not(.mobile-device) .page-quest,
body:not(.mobile-device) .page-raffle,
body:not(.mobile-device) .page-user,
body:not(.mobile-device) .page-achievements,
body:not(.mobile-device) .page-favorites {
    padding-top: 1rem;
    transition: padding-top 0.2s ease-out;
}

body.desktop-device .content.page-web3,
body:not(.mobile-device) .content.page-web3 {
    padding-top: 0.35rem !important;
}

body.desktop-device .content.page-favorites,
body:not(.mobile-device) .content.page-favorites {
    padding-top: 0.35rem !important;
}

body.mobile-device:not(.fullscreen-mode) .content.page-web3 {
    padding-top: 0.35rem !important;
}

body.mobile-device:not(.fullscreen-mode) .content.page-favorites {
    padding-top: 0.35rem !important;
}

body.desktop-device .content.page-airdrop,
body:not(.mobile-device) .content.page-airdrop {
    padding-top: 0 !important;
}

body.mobile-device:not(.fullscreen-mode) .content,
body.mobile-device:not(.fullscreen-mode) .page-web3,
body.mobile-device:not(.fullscreen-mode) .page-airdrop,
body.mobile-device:not(.fullscreen-mode) .page-quest,
body.mobile-device:not(.fullscreen-mode) .page-raffle,
body.mobile-device:not(.fullscreen-mode) .page-user,
body.mobile-device:not(.fullscreen-mode) .page-achievements,
body.mobile-device:not(.fullscreen-mode) .page-favorites {
    padding-top: 1rem;
    transition: padding-top 0.2s ease-out;
}

body.mobile-device:not(.fullscreen-mode) .content.page-airdrop {
    padding-top: 0 !important;
}

.button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius-button);
    border: none;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    min-height: 44px;
}

.button .icon,
a.button .icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.button .bi,
a.button .bi,
button.button .bi {
    color: var(--color-white) !important;
}

.button.primary .bi,
.button[style*="background: var(--color-primary)"] .bi,
.button[style*="background-color: var(--color-primary)"] .bi {
    color: var(--color-white) !important;
}

.button:hover {
    background: var(--color-primary-hover);
    transform: scale(0.98);
}

.button:active {
    transform: scale(0.96);
}

.card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card:active {
    transform: translateY(0);
}

.title {
    font-size: var(--font-size-heading);
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
}

.text {
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.header {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Bottom nav — aligned with for_new_design/catalog/.../bottom-navigation.tsx */
.footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
    pointer-events: none;
}

.footer > * {
    pointer-events: auto;
}

.footer__bg {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid #222222;
}

.footer.web3-active .footer__bg {
    box-shadow: 0 -12px 36px rgba(24, 119, 242, 0.08);
}

.footer__row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0.5rem 0.15rem 0.35rem;
    gap: 0.1rem;
}

.footer__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    max-width: 5.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #888888;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.15s ease;
}

.footer__tab:active {
    transform: scale(0.95);
}

.footer__tab-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, #1877F2 0%, transparent 70%);
    transition: opacity 0.2s ease;
}

.footer__tab.active .footer__tab-glow {
    opacity: 0.2;
}

.footer__tab .footer-nav-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.footer__tab .footer-nav-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.footer__tab .title {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #888888;
}

.footer__tab.active {
    color: #1877F2;
}

.footer__tab.active .footer-nav-icon:not(.footer-nav-icon--catalog) {
    color: #1877F2;
    filter: drop-shadow(0 0 8px #1877F2);
}

.footer__tab.active .title {
    color: #1877F2;
    font-weight: 600;
}

/* Catalog (center) — circle + label under, -mt-6 */
.footer__tab.footer__tab--catalog {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
    margin-top: -1.5rem;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
    transform: none;
}

.footer__tab.footer__tab--catalog:active {
    transform: scale(0.95);
}

.footer__catalog-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__catalog-btn {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1877F2 0%, #1565D8 100%);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.footer__tab.footer__tab--catalog.active .footer__catalog-btn {
    background: linear-gradient(135deg, #1877F2 0%, #4B9FFF 100%);
    box-shadow:
        0 0 30px rgba(24, 119, 242, 0.5),
        0 0 60px rgba(24, 119, 242, 0.3);
}

.footer__catalog-ping {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #1877F2;
    opacity: 0;
    pointer-events: none;
}

.footer__tab.footer__tab--catalog.active .footer__catalog-ping {
    opacity: 0.3;
    animation: footer-catalog-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes footer-catalog-ping {
    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.footer-nav-icon--catalog {
    color: #fff;
    z-index: 2;
}

.footer__tab.footer__tab--catalog.active .footer-nav-icon.footer-nav-icon--catalog {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.footer-nav-icon--catalog svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

/* Круг каталога синий — иконка всегда белая (общее правило выше задаёт stroke: currentColor с более высокой специфичностью). */
.footer__tab.footer__tab--catalog .footer-nav-icon.footer-nav-icon--catalog svg {
    stroke: #ffffff;
}

.footer__tab.footer__tab--catalog .title {
    margin-top: 0.25rem;
    font-size: 10px;
    font-weight: 600;
    color: #888888;
}

.footer__tab.footer__tab--catalog.active .title {
    color: #1877F2;
}

.footer__tab .bi {
    font-size: 22px;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.footer__tab.active .bi {
    color: var(--color-primary) !important;
}

.footer__tab .icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    background-size: 22px 22px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(5044%) hue-rotate(133deg) brightness(87%) contrast(83%);
    transition: all 0.2s ease;
    flex-shrink: 0 !important;
    display: block !important;
}

.footer__tab.active .icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(202deg) brightness(102%) contrast(101%);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bi {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.icon-sm .bi {
    font-size: 1rem;
}

.icon-lg .bi {
    font-size: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-card);
    padding: 2rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: var(--spacing-lg) auto;
}

.wheel-container canvas {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border-radius: 50%;
}

.wheel-container .pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid var(--color-primary);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-container #logo {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-alt));
    border-radius: 4px;
    transition: width 0.3s ease;
}

._noscrollbar::-webkit-scrollbar {
    display: none;
}

._noscrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal.active {
    opacity: 1;
    pointer-events: all;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.custom-modal-content {
    position: relative;
    background: var(--color-bg-dark);
    border-radius: 24px;
    padding: 2rem;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    margin: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    will-change: transform, opacity;
}

.custom-modal-content.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.custom-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 1rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.custom-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.custom-modal-content.show .custom-modal-title {
    opacity: 1;
    transform: translateY(0);
}

.custom-modal-message {
    font-size: 15px;
    color: var(--color-text-secondary);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.custom-modal-content.show .custom-modal-message {
    opacity: 1;
    transform: translateY(0);
}

.custom-modal-buttons {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.custom-modal-content.show .custom-modal-buttons {
    opacity: 1;
    transform: translateY(0);
}

.custom-modal-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    position: relative;
    overflow: hidden;
}

.custom-modal-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.custom-modal-button:hover::before {
    width: 300px;
    height: 300px;
}

.custom-modal-button.primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.custom-modal-button.primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.custom-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-modal-button:active {
    transform: translateY(0) scale(0.98);
}

.app {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Поверх общего .app { max-width: 480px } — аирдроп на всю ширину экрана */
.app:has(.content.page-airdrop) {
    max-width: none;
    max-height: none;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: var(--spacing-md);
    padding-bottom: 9vh;
    padding-left: max(var(--spacing-md), env(safe-area-inset-left, 0px));
    padding-right: max(var(--spacing-md), env(safe-area-inset-right, 0px));
    padding-bottom: max(9vh, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

@media (max-height: 700px) {
    .content {
        padding: 0.75rem;
        padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
        padding-bottom: max(7vh, env(safe-area-inset-bottom, 0px));
    }

    .footer__row {
        padding: 0.35rem 0.1rem 0.25rem;
    }

    .footer__tab {
        padding: 0.35rem 0.4rem;
    }

    .footer__tab .title {
        font-size: 9px;
    }

    .footer__tab .bi {
        font-size: 18px;
    }
}

.content > * {
    max-width: 100%;
}

.card, .button {
    max-width: 100%;
    word-wrap: break-word;
}

.page {
    position: relative;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.slide-out-left {
    animation: slideOutLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-out-right {
    animation: slideOutRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInRight 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-in-left {
    animation: slideInLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-30%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(30%);
        opacity: 0;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}
