* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: rgba(255, 255, 255, 0.15);
    --primary-border: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(20px);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent-color: #000000;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --sidebar-width: 320px;
    --top-bar-height: 70px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --header-bg: rgba(255, 255, 255, 0.85);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    --modal-bg: #ffffff;
    --widget-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
    --primary-bg: rgba(0, 0, 0, 0.4);
    --primary-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --accent-color: #ffffff;
    --header-bg: rgba(20, 20, 20, 0.85);
    --card-bg-hover: rgba(30, 30, 30, 0.98);
    --modal-bg: #1a1a1a;
    --widget-bg: rgba(30, 30, 30, 0.9);
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--primary-border);
    z-index: 200;
    animation: topBarSlideIn 0.5s var(--transition-smooth) both;
}

@keyframes topBarSlideIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-bar-content {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.server-info-bar {
    display: flex;
    align-items: center;
}

.server-ip-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.server-ip-bar:hover {
    background: rgba(0, 0, 0, 0.08);
}

.server-ip-bar i {
    color: var(--text-secondary);
    font-size: 1rem;
}

.server-ip-bar .ip-text {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--primary-border);
}

.online-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 45px;
}

.online-bar {
    width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.online-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--success-color);
    border-radius: 10px;
    transition: width 1s var(--transition-smooth);
}

[data-theme="dark"] .server-ip-bar,
[data-theme="dark"] .online-bar {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .server-ip-bar:hover {
    background: rgba(255, 255, 255, 0.08);
}

.server-ip-bar .copy-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-ip-bar .copy-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}

.top-nav {
    display: flex;
    gap: 8px;
}

.top-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s var(--transition-smooth);
}

.top-nav-item i {
    font-size: 1.1rem;
}

.top-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.top-nav-item.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--text-primary);
    opacity: 0;
    animation: pageFadeIn 0.6s var(--transition-smooth) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-border);
    border-radius: 10px;
    transition: all 0.3s var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-border) transparent;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #808080;
    /* Fallback gray */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: filter 0.5s ease;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

.skeleton {
    background: linear-gradient(90deg, #9ca3af 25%, #4b5563 37%, #9ca3af 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease infinite;
    border-radius: 8px;
    /* Smooth corners */
}

/* For specific elements */
.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-card {
    height: 300px;
    /* Approx height of a card */
    width: 100%;
}


@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.store-layout,
.rules-layout {
    display: flex;
    min-height: 100vh;
}

.categories-sidebar {
    position: fixed;
    left: 0;
    top: var(--top-bar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--top-bar-height));
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--primary-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    animation: sidebarSlideIn 0.6s var(--transition-smooth) 0.2s both;
}

@keyframes sidebarSlideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 40px 30px 30px;
    border-bottom: 1px solid var(--primary-border);
    text-align: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-nav {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
    text-align: left;
    width: 100%;
}

.category-nav-btn i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.category-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-border);
    transform: translateX(4px);
}

.category-nav-btn:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.category-nav-btn.active {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.category-nav-btn.active i {
    opacity: 1;
}

.category-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.category-nav-btn.active .category-number {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--primary-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.server-ip i {
    color: var(--text-secondary);
}

.server-ip span {
    flex: 1;
}

.copy-ip-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-ip-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}

.rules-link,
.store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--transition-smooth);
}

.rules-link:hover,
.store-link:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.store-content,
.rules-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
    height: calc(100vh - var(--top-bar-height));
    margin-top: var(--top-bar-height);
    overflow-y: auto;
    animation: contentFadeIn 0.6s var(--transition-smooth) 0.4s both;
    position: relative;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    animation: cardFadeIn 0.6s var(--transition-smooth) both;
    animation-delay: var(--delay);
    transform-origin: center center;
    z-index: 1;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    transform: scale(1.1);
    z-index: 50;
    background: var(--card-bg-hover);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-icon {
    transform: scale(1.2);
}

.product-card:hover .product-name {
    font-size: 1.4rem;
}

.product-card:hover .product-price {
    font-size: 1.1rem;
}

.product-card.hidden {
    display: none;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.4s var(--transition-smooth);
    color: var(--text-primary);
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: font-size 0.4s var(--transition-smooth);
}

.product-price {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: font-size 0.4s var(--transition-smooth);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
}

.new-price {
    font-weight: 700;
    color: var(--error-color);
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--error-color);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 10;
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes badgePop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.coin-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 16px 50px;
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    background: var(--card-bg-hover);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.clear-search {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.clear-search:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.rules-section {
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 20px;
    overflow: hidden;
}

.category-rules {
    display: none;
    animation: rulesFadeIn 0.4s var(--transition-smooth);
}

.category-rules.active {
    display: block;
}

@keyframes rulesFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-item {
    display: flex;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--transition-smooth);
    animation: ruleSlideIn 0.5s var(--transition-smooth) both;
}

.rule-item:nth-child(1) {
    animation-delay: 0.05s;
}

.rule-item:nth-child(2) {
    animation-delay: 0.1s;
}

.rule-item:nth-child(3) {
    animation-delay: 0.15s;
}

.rule-item:nth-child(4) {
    animation-delay: 0.2s;
}

.rule-item:nth-child(5) {
    animation-delay: 0.25s;
}

.rule-item:nth-child(6) {
    animation-delay: 0.3s;
}

.rule-item:nth-child(7) {
    animation-delay: 0.35s;
}

.rule-item:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes ruleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(6px);
}

.rule-header {
    margin-right: 20px;
    flex-shrink: 0;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 36px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
}

.rule-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.rule-punishment {
    display: inline-flex;
    align-items: center;
    background: var(--error-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: overlayFadeIn 0.3s var(--transition-smooth);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: var(--modal-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    margin: 60px auto;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-border);
    animation: modalSlideIn 0.4s var(--transition-smooth);
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

.modal.closing .modal-content {
    animation: modalSlideOut 0.3s var(--transition-smooth) forwards;
}

.modal.closing .modal-overlay {
    animation: overlayFadeOut 0.3s var(--transition-smooth) forwards;
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 40px 40px 25px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 30px 40px;
}

#modalDescription {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
    white-space: pre-line;
    font-size: 0.95rem;
}

.period-section,
.luck-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.period-label,
.section-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.period-buttons,
.luck-buttons {
    display: flex;
    gap: 10px;
}

.period-btn,
.luck-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background: rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: 'Inter', sans-serif;
}

.period-btn:hover,
.luck-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

.period-btn.active,
.luck-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.period-duration {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.period-btn.active .period-duration,
.luck-btn.active .period-duration {
    color: #ffffff;
}

.period-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.period-btn.active .period-price,
.luck-btn.active .period-price {
    color: rgba(255, 255, 255, 0.9);
}

.modal-price-row,
.quantity-section,
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-label,
.quantity-label,
.total-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-value,
.total-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-section:nth-last-child(2) {
    border-bottom: none;
    padding-bottom: 0;
}

.total-section {
    border-bottom: none;
    padding-top: 25px;
    margin-top: 5px;
}

.total-value {
    font-size: 1.4rem;
    color: var(--accent-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-btn,
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.03);
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

[data-theme="dark"] .qty-btn {
    background: rgba(255, 255, 255, 0.03);
}

.quantity-btn:hover,
.qty-btn:hover:not(:disabled) {
    background: var(--text-primary);
    color: var(--modal-bg);
    transform: scale(1.05);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-value-container {
    position: relative;
    min-width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s var(--transition-smooth);
}

.quantity-value-container:hover {
    background: rgba(0, 0, 0, 0.05);
}

.quantity-value-container.editing {
    min-width: 100px;
    background: rgba(0, 0, 0, 0.05);
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: var(--modal-bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s var(--transition-smooth);
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-display {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 40px;
    text-align: center;
    display: block;
}

.qty-display-wrapper {
    min-width: 60px;
    display: flex;
    justify-content: center;
}

.modal-footer {
    padding: 0 40px 40px;
}



.btn-primary,
.buy-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--accent-color);
    color: var(--modal-bg);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover,
.buy-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .buy-btn:hover {
    background: #e0e0e0;
}

.btn-primary:disabled,
.buy-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.purchase-summary {
    padding: 0;
    margin-bottom: 25px;
}

.summary-product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.summary-details {
    flex: 1;
}

.summary-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.summary-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.summary-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.summary-info-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    padding: 6px 12px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: all 0.3s var(--transition-smooth);
}

.input-wrapper:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    outline: none;
}

[data-theme="dark"] .input-wrapper {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
}

/* Promo input inside payment flow */
.promo-input-wrapper {
    position: relative;
}

.promo-apply-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.promo-apply-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(0, 0, 0, 0.16);
    color: var(--text-primary);
}

.nickname-status {
    margin-top: 10px;
    font-size: 0.85rem;
    min-height: 20px;
}

.nickname-status.valid {
    color: var(--success-color);
}

.nickname-status.invalid {
    color: var(--error-color);
}

.nickname-status.checking {
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.payment-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.payment-btn.card {
    background: var(--accent-color);
    color: var(--modal-bg);
}

.payment-btn.card:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.payment-btn.coins {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #ffffff;
}

.payment-btn.coins:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.coin-success-text {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.coin-command-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid var(--primary-border);
}

[data-theme="dark"] .coin-command-box {
    background: rgba(255, 255, 255, 0.05);
}

.coin-command-box code {
    flex: 1;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.copy-command-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--text-primary);
    color: var(--modal-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-command-btn:hover {
    transform: scale(1.1);
}

.success-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.coin-info-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.error-message {
    display: none;
    margin-top: 20px;
    padding: 16px;
    background: var(--error-color);
    color: #ffffff;
    border-radius: 12px;
    text-align: center;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-width: 380px;
    pointer-events: none;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    animation: notificationSlideIn 0.4s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .notification {
    background: rgba(30, 30, 30, 0.95);
}

.notification i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--error-color);
}

.notification.info i {
    color: var(--accent-color);
}

.notification-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;
}

.notification.removing {
    animation: notificationSlideOut 0.3s var(--transition-smooth);
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.notification-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-icon.success {
    color: var(--success-color);
}

.notification-icon.error {
    color: var(--error-color);
}

.notification-icon.info {
    color: #3b82f6;
}

.notification-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.success-page {
    text-align: center;
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 80px 50px;
    border: 1px solid var(--primary-border);
    border-radius: 24px;
    max-width: 500px;
    margin: 100px auto;
    animation: successFadeIn 0.6s var(--transition-smooth);
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-page .success-icon {
    animation: iconBounce 0.6s var(--transition-smooth) 0.3s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-page h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.success-page p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 35px;
}

.back-btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s var(--transition-smooth);
}

.back-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--primary-border);
    padding: 12px 20px;
    z-index: 600;
}

.mobile-nav {
    display: none;
    justify-content: center;
    gap: 40px;
    z-index: 1000;
}

.coin-purchase-details {
    margin-bottom: 25px;
}

.summary-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--modal-bg);
    border: 1px solid var(--primary-border);
    color: var(--text-primary);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: var(--modal-bg);
}

[data-theme="dark"] .theme-toggle i {
    color: #f1c40f;
}

[data-theme="dark"] .server-ip-bar,
[data-theme="dark"] .category-nav-btn:hover,
[data-theme="dark"] .search-box input,
[data-theme="dark"] .rule-item:hover,
[data-theme="dark"] .period-btn,
[data-theme="dark"] .luck-btn,
[data-theme="dark"] .quantity-btn,
[data-theme="dark"] .form-group input {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-box input:focus,
[data-theme="dark"] .form-group input:focus {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .rule-item {
    border-color: rgba(255, 255, 255, 0.05);
}

.mobile-categories {
    display: none;
}

[data-theme="dark"] .mobile-nav {
    background: var(--header-bg);
}

@media (max-width: 1024px) {
    .theme-toggle {
        bottom: 100px;
        left: 20px;
    }

    .sales-widget {
        bottom: 100px;
        right: 20px;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: var(--text-primary);
}

.nav-item:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Mobile Header */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--header-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--primary-border);
    z-index: 500;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-toggle-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-toggle-btn:hover,
.mobile-toggle-btn.active {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 350;
    /* Below sidebar (400) but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {

    /* Reset zoom for modals to avoid double scaling or tiny modals? 
       Actually zoom on body affects everything attached to body. 
       Fixed elements might behave differently. 
    */
    .mobile-header {
        display: flex;
        justify-content: center;
    }

    .mobile-toggle-btn {
        display: none;
    }

    body {
        overflow: hidden;
        height: 100vh;
    }

    .top-bar {
        display: none;
    }

    .categories-sidebar {
        display: none;
    }

    .mobile-categories {
        display: flex;
        overflow-x: auto;
        padding: 0 20px;
        height: 65px;
        align-items: center;
        background: var(--header-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--primary-border);
        gap: 12px;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 450;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-categories::-webkit-scrollbar {
        display: none;
    }

    .mobile-category-btn {
        white-space: nowrap;
        padding: 10px 18px;
        background: var(--primary-bg);
        border: 1px solid var(--primary-border);
        border-radius: 12px;
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s var(--transition-smooth);
    }

    .mobile-category-btn.active {
        background: var(--accent-color);
        color: #ffffff;
        border-color: var(--accent-color);
    }

    .store-content,
    .rules-content {
        margin-left: 0;
        padding: 20px;
        height: calc(100vh - 125px);
        /* 60 header + 65 categories */
        margin-top: 125px;
        overflow-y: auto;
        padding-bottom: 100px;
    }

    .mobile-nav {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .product-card:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    @media (max-width: 450px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
    }

    .product-card {
        padding: 25px 15px;
    }

    .product-icon {
        font-size: 2.2rem;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 0.8rem;
    }

    .product-card:hover {
        transform: scale(1.05);
    }

    .modal-content {
        width: 95%;
        margin: 30px auto;
        border-radius: 20px;
    }

    .modal-header,
    .modal-body {
        padding-left: 25px;
        padding-right: 25px;
    }

    .modal-footer {
        padding: 0 25px 30px;
    }

    .payment-methods {
        flex-direction: column;
    }

    .notification-container {
        bottom: 80px;
        right: 15px;
        left: 15px;
        max-width: none;
    }

    .success-page {
        margin: 50px 20px;
        padding: 50px 30px;
    }
}

/* 404 Error Page */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.error-content {
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: errorFadeIn 0.6s var(--transition-smooth);
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.error-icon {
    font-size: 5rem;
    color: var(--error-color);
    margin-bottom: 25px;
    animation: errorShake 0.6s ease-in-out 0.3s backwards;
}

@keyframes errorShake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.error-content h1 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Notification Fix */
.notification {
    transition: all 0.4s var(--transition-smooth);
    opacity: 1;
    max-height: 150px;
    /* Arbitrary large height */
    overflow: hidden;
    margin-bottom: 12px;
}

.notification.removing {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    transform: translateX(50px);
}

/* Server Status Widget */
.server-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
    gap: 4px;
}

.online-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}

.online-bar {
    width: 100%;
    min-width: 100px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.online-progress {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    border-radius: 3px;
    transition: width 1s var(--transition-smooth);
}

/* Processing Modal */
.processing-modal-content {
    text-align: center;
    max-width: 400px;
}

.processing-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.processing-spinner {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.processing-body h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
}

.processing-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Modal Transitions */
.modal.switching-out {
    display: block !important;
    z-index: 1001;
    pointer-events: none;
}

.modal.switching-in {
    display: block !important;
    z-index: 1002;
    pointer-events: auto;
}

.sales-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    padding: 12px 16px;
    border-radius: 20px;
    z-index: 150;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 0;
    width: 200px;
    transition: all 0.5s var(--transition-smooth);
    overflow: hidden;
    cursor: pointer;
    animation: salesWidgetSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.sales-widget:hover {
    width: 300px;
    gap: 12px;
    padding: 20px;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.sales-widget-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--transition-smooth), opacity 0.4s ease;
    opacity: 0;
}

.sales-widget:hover .sales-widget-details {
    grid-template-rows: 1fr;
    opacity: 1;
}

.details-content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes salesWidgetSlideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.sales-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sales-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--error-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.sales-widget-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
}

.sales-widget-date {
    font-size: 0.8rem;
    color: var(--text-primary);
    opacity: 0.9;
    font-weight: 500;
}

.sales-widget-timer {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.timer-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
    border: 1px solid var(--primary-border);
}

[data-theme="dark"] .timer-item {
    background: rgba(255, 255, 255, 0.05);
}

.timer-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.timer-item small {
    font-size: 0.65rem;
    color: var(--text-primary);
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 700;
}

.sales-widget-badge {
    background: var(--error-color);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Override standard animation for switching in */
.modal.switching-in .modal-content {
    animation: modalSwitchIn 0.4s var(--transition-smooth) both;
}

/* Animation for switching out */
.modal.switching-out .modal-content {
    animation: modalSwitchOut 0.4s var(--transition-smooth) both;
}

/* Handle overlays during switch */
.modal.switching-out .modal-overlay {
    opacity: 1;
    /* Keep background dark */
    animation: none;
}

.modal.switching-in .modal-overlay {
    opacity: 0;
    /* Hide new overlay so we don't double up */
    animation: none;
}

@keyframes modalSwitchIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateX(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@keyframes modalSwitchOut {
    from {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateX(-30px);
    }
}

/* Punishment Alerts */
.punishment-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 0.9rem;
    animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.punishment-alert i {
    font-size: 1.5rem;
}

.punishment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.punishment-info strong {
    font-weight: 700;
}

.punishment-info span {
    opacity: 0.9;
}

.punishment-alert.ban {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.punishment-alert.mute {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.punishment-alert.lobby-ban {
    background: rgba(153, 27, 27, 0.1);
    border: 2px solid #991b1b;
    color: #991b1b;
}

[data-theme="dark"] .punishment-alert.ban {
    background: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .punishment-alert.mute {
    background: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .punishment-alert.lobby-ban {
    background: rgba(153, 27, 27, 0.2);
}


.dot-loader {
    display: flex;
    gap: 3px;
}

.dot-loader .dot {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: dotJump 0.6s infinite alternate;
}

.dot-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotJump {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-6px);
    }
}

.input-wrapper.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border-color: var(--error-color) !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.input-wrapper input {
    padding-right: 48px !important;
}

.purchase-blocked-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px dashed #ef4444;
    border-radius: 14px;
    color: #ef4444;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 25px;
    animation: fadeInDown 0.3s ease-out;
    min-height: 70px;
}

.purchase-blocked-status.waiting {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.waiting-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.waiting-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: dotJumpSimple 0.8s infinite alternate;
}

.waiting-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.waiting-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotJumpSimple {
    from {
        transform: translateY(5px);
    }

    to {
        transform: translateY(-5px);
    }
}

.purchase-blocked-status i {
    font-size: 1.5rem;
}

[data-theme="dark"] .purchase-blocked-status {
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .purchase-blocked-status.waiting {
    background: rgba(245, 158, 11, 0.15);
}

.promo-trigger-wrapper {
    margin-top: 15px;
    text-align: center;
}

.promo-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.promo-trigger:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

.payment-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: transparent;
    border: 2px dashed #000000;
    border-radius: 14px;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.6;
    cursor: default;
    transition: all 0.3s ease;
}

[data-theme="dark"] .payment-placeholder {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.promo-trigger.activated {
    color: var(--success-color);
    text-decoration: none;
    cursor: default;
    font-weight: 600;
}

.promo-trigger.error {
    color: var(--error-color);
}

.payment-selection {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.payment-price-summary {
    margin-top: 10px;
    margin-bottom: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--primary-border);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payment-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-price-row span:first-child {
    color: var(--text-secondary);
}

.payment-price-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.payment-price-total span:last-child {
    font-size: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

[data-theme="dark"] .payment-option {
    background: rgba(255, 255, 255, 0.05);
}

.payment-option:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

[data-theme="dark"] .payment-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.payment-option.selected {
    border-color: var(--accent-color);
    background: rgba(0, 0, 100, 0.05);
}

[data-theme="dark"] .payment-option.selected {
    background: rgba(255, 255, 255, 0.1);
}

.option-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    width: 40px;
    display: flex;
    justify-content: center;
}

.payment-option.selected .option-icon {
    color: var(--accent-color);
}

.option-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.option-title {
    font-weight: 700;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.option-check {
    opacity: 0;
    transform: scale(0.5);
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s var(--transition-smooth);
}

.payment-option.selected .option-check {
    opacity: 1;
    transform: scale(1);
}

/* Dynamic Price Animation */
.summary-price {
    position: relative;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.old-price.discounted {
    transform: translateX(-15px) scale(0.85);
    opacity: 0.4;
}

.new-price {
    color: var(--text-primary);
    animation: priceFadeIn 0.5s var(--transition-smooth) both;
}

@keyframes priceFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-border);
}

.promo-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-layout {
    display: flex;
    justify-content: center;
    padding: var(--top-bar-height) 20px 40px;
    min-height: 100vh;
}

.info-content {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    animation: contentFadeIn 0.6s var(--transition-smooth);
}

.info-card {
    background: var(--primary-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-section:nth-last-child(2) {
    border-bottom: none;
    padding-bottom: 0;
}

.info-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section h2 i {
    color: var(--accent-color);
}

.delivery-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.document-link,
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
    width: fit-content;
}

.document-link:hover,
.contact-link:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.legal-info {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid var(--primary-border);
}

.disclaimer {
    margin-top: 5px;
    opacity: 0.7;
    font-size: 0.85rem;
}