body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 8rem;
    background: rgba(30, 30, 50, 0.95) !important;
}
.container {
    max-width: 36rem;
    width: 100%;
    margin: 1.5rem;
    position: relative;
    z-index: 1;
}
.card {
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    background: rgba(50, 50, 80, 0.95);
    color: #e5e7eb;
}
.card:hover {
    transform: translateY(-5px);
}
.qr-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.main-card {
    border-radius: 1rem;
    padding: 2rem;
    background: rgba(30, 30, 50, 0.95);
    color: #e5e7eb;
}
.title-container {
    position: relative;
    z-index: 20;
    overflow: visible;
    margin-bottom: 1.5rem;
}
.welcome-text {
    font-weight: 600;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #B41FEF, #69007f, #B41FEF);
    background-size: 200% 100%;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    animation: gradientFlow 3s ease-in-out infinite;
    margin-bottom: 0.5rem;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}
.main-card label,
.main-card input,
.main-card select,
.main-card textarea,
.main-card .tab,
.main-card .icon-option span {
    color: #e5e7eb;
}
.main-card .form-input,
.main-card .telegram-input,
.main-card .hex-input {
    background: rgba(70, 70, 100, 0.95);
    border-color: #4b4b6b;
    color: #e5e7eb;
}
.main-card .tab {
    background: rgba(70, 70, 100, 0.95);
}
.main-card .tab:hover {
    background: rgba(90, 90, 120, 0.95);
}
.main-card .icon-option {
    background: rgba(70, 70, 100, 0.95);
}
#qrContainer, #barcodeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    height: 250px;
    padding: 1rem;
    margin: 1rem auto;
    position: relative;
}
#qrContainer img:not(.absoluteIcon),
#barcodeContainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.qr-info {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin: 0 1rem;
    text-align: center;
}
.absoluteIcon {
    object-fit: contain;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #ffffff;
    z-index: 10;
}
.tab {
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    background: rgba(70, 70, 100, 0.95);
}
.tab:hover {
    background: rgba(90, 90, 120, 0.95);
}
.tab.active {
    background: #B41FEF;
    color: white;
    border: 2px solid #B41FEF;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#title {
    font-weight: 700;
    font-size: 1.75rem;
    background: linear-gradient(90deg, #B41FEF, #69007f);
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    position: relative;
    z-index: 20;
    overflow: visible;
    will-change: transform;
}
nav.top-nav {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-link {
    transition: all 0.3s ease;
    font-weight: 500;
    color: #e5e7eb;
}
.nav-link:hover {
    color: #B41FEF;
}
.nav-link.active {
    color: #B41FEF;
    font-weight: 600;
}
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(30, 30, 50, 0.95);
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 0.5rem 0;
}
.bottom-nav-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    color: #e5e7eb;
    transition: all 0.3s ease;
}
.bottom-nav-link i {
    font-size: 1.5rem;
}
.bottom-nav-link:hover {
    color: #B41FEF;
}
.bottom-nav-link.active {
    color: #B41FEF;
}
#iconPreviewContainer {
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    background: rgba(50, 50, 80, 0.95);
}
#iconPreview {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}
.icon-option {
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.icon-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: #B41FEF;
}
.icon-option.selected {
    border: 3px solid #B41FEF;
    background: #B41FEF;
    transform: scale(1.05);
}
.icon-option img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}
.icon-option span {
    margin-top: 4px;
    font-size: 0.75rem;
    text-align: center;
}
.icon-option:hover span, .icon-option.selected span {
    color: white;
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}
.color-swatch:hover {
    transform: scale(1.2);
}
.hex-input {
    width: 80px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.hex-input:focus {
    outline: none;
    border-color: #B41FEF;
    box-shadow: 0 0 0 2px rgba(180, 31, 239, 0.2);
}
.input-group {
    position: relative;
}
.form-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.875rem;
}
.form-input:focus {
    outline: none;
    border-color: #B41FEF;
    box-shadow: 0 0 0 2px rgba(180, 31, 239, 0.2);
}
.telegram-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.875rem;
    height: 100px;
    resize: none;
}
.telegram-input:focus {
    outline: none;
    border-color: #B41FEF;
    box-shadow: 0 0 0 2px rgba(180, 31, 239, 0.2);
}
.banner-card {
    width: 190px;
    height: 254px;
    background: #07182E;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    z-index: 11;
    padding: 1rem;
}
.banner-card h2 {
    z-index: 1;
    color: white;
    font-size: 1.3em;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.banner-card p {
    z-index: 1;
    color: white;
    font-size: 0.8em;
    text-align: center;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.banner-card a {
    z-index: 1;
    color: #00b7ff;
    font-size: 0.75em;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem;
    line-height: 1.4;
}
.banner-card a:hover {
    color: #ff30ff;
}
.banner-card::before {
    content: '';
    position: absolute;
    width: 100px;
    background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(255, 48, 255));
    height: 130%;
    animation: rotBGimg 3s linear infinite;
    transition: all 0.2s linear;
}
@keyframes rotBGimg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.banner-card::after {
    content: '';
    position: absolute;
    background: #07182E;
    inset: 5px;
    border-radius: 15px;
}
.resolution-button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    background: rgba(50, 50, 80, 0.95);
    border: 1px solid #B41FEF;
    color: #e5e7eb;
}
.resolution-button:hover {
    background: rgba(70, 70, 100, 0.95);
}
.resolution-button i {
    margin-left: 0.5rem;
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: rgba(30, 30, 50, 0.95);
    color: #e5e7eb;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 90%;
    width: 400px;
}
.popup-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.popup-content button {
    background: #B41FEF;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 0.5rem;
    width: 100%;
}
.popup-content button:hover {
    background: #FF2020;
}
.resolution-option {
    background: rgba(50, 50, 80, 0.95);
    font-size: 0.875rem;
}
.resolution-option:hover {
    background: rgba(70, 70, 100, 0.95);
}
@media (max-width: 640px) {
    body {
        padding-top: 0;
        padding-bottom: 4rem;
    }
    .top-nav, #language {
        display: none;
    }
    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .container {
        margin: 0.75rem;
        padding: 0.75rem;
    }
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .qr-card {
        flex-direction: column;
    }
    .main-card {
        padding: 1.5rem;
    }
    #qrContainer, #barcodeContainer {
        width: 200px;
        height: 200px;
        padding: 0.75rem;
        margin: 0.75rem auto;
    }
    #qrContainer img:not(.absoluteIcon),
    #barcodeContainer img {
        max-height: 40vh;
    }
    .qr-info {
        margin: 0.5rem 0;
    }
    .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    .tab-buttons {
        gap: 0.25rem;
    }
    .icon-option img {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    .icon-option span {
        font-size: 0.65rem;
    }
    .color-swatch {
        width: 20px;
        height: 20px;
    }
    .hex-input {
        width: 70px;
        font-size: 0.75rem;
    }
    .form-input, .telegram-input {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    .telegram-input {
        height: 80px;
    }
    .banner-card {
        width: 140px;
        height: 180px;
        bottom: 4rem;
        right: 0.5rem;
    }
    .banner-card h2 {
        font-size: 1.1em;
    }
    .banner-card p {
        font-size: 0.7em;
        margin-bottom: 0.5rem;
    }
    .banner-card a {
        font-size: 0.65em;
        padding: 0.4rem;
    }
    .sparkle-button, .button {
        padding: 0.75rem;
        font-size: 1rem;
    }
    .resolution-button {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    .popup-content {
        width: 90%;
        padding: 1.5rem;
    }
    .popup-content h3 {
        font-size: 1rem;
    }
    .popup-content button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    .welcome-text {
        font-size: 1.25rem;
    }
}
@media (min-width: 641px) {
    .bottom-nav {
        display: none;
    }
}
.sparkle-button {
    --active: 0;
    background: #B41FEF;
    font-size: 1.2rem;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    padding: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    white-space: nowrap;
    border-radius: 100px;
    position: relative;
    box-shadow: 0 0 calc(var(--active) * 3em) calc(var(--active) * 1em) rgba(180, 31, 239, 0.75);
    transition: box-shadow 0.3s, scale 0.3s, background 0.3s;
    scale: calc(1 + (var(--active) * 0.1));
    width: 100%;
}
.sparkle-button:hover, .sparkle-button:focus-visible {
    --active: 1;
}
.sparkle-button:active {
    scale: 1;
    transition: 0.3s;
}
.sparkle-button .text {
    color: #fff;
    transition: color 0.3s;
}
.sparkle-button i {
    font-size: 1.2rem;
    color: #fff;
}
.button {
    position: relative;
    text-decoration: none;
    color: #fff;
    background: #B41FEF;
    padding: 14px 25px;
    border-radius: 10px;
    font-size: 1.25em;
    cursor: pointer;
    border: none;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.button span {
    position: relative;
    z-index: 1;
}
.button::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: #272727;
    border-radius: 9px;
    transition: 0.5s;
}
.button:hover::before {
    opacity: 0.7;
}