/* Neon rank store theme for Tebex */
:root {
    --bg-primary: #101113;
    --bg-secondary: #1b1d20;
    --bg-tertiary: #242628;
    --color-accent: #00e5ff;
    --color-accent-2: #9d4dff;
    --color-text: #f7f8ff;
    --color-text-muted: #aeb4c4;
    --color-btn-info: #ff585d;
    --color-btn-cart: #66e6ff;
    --color-nav: rgba(12, 13, 16, 0.9);
    --color-unavailable: #b75558;
    --color-success: #7dff5d;
    --font-primary: "Rajdhani", sans-serif;
    --border-radius: 8px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --transition: 160ms ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 229, 255, 0.2), transparent 32rem),
        radial-gradient(circle at 78% 8%, rgba(157, 77, 255, 0.24), transparent 34rem),
        var(--bg-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

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

img {
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #101113;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
    border-radius: 99px;
}

h1, h2, h3, h4 {
    margin: 0;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--color-nav);
    backdrop-filter: blur(16px);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(1220px, calc(100% - 28px));
    min-height: 66px;
    margin: 0 auto;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    font-weight: 900;
}

.nav-logo img {
    max-height: 46px;
    width: auto;
}

.logo-text {
    color: var(--color-accent);
    font-size: 24px;
    text-transform: uppercase;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 28px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--border-radius);
    color: var(--color-text-muted);
    font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(157, 77, 255, 0.14));
}

.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: #121418;
    box-shadow: var(--shadow);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    display: block;
}

.nav-basket,
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.basket-link,
.btn-sm,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--border-radius);
    padding: 0 14px;
    background: rgba(0, 229, 255, 0.08);
    color: var(--color-text);
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), filter var(--transition), border-color var(--transition);
}

.btn {
    min-height: 46px;
    padding: 0 18px;
}

.btn-lg {
    min-height: 52px;
    padding: 0 26px;
}

.btn-primary,
.btn-sm.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    color: #071016;
}

.btn-accent,
.btn-sm.btn-accent {
    border-color: rgba(157, 77, 255, 0.4);
    background: rgba(157, 77, 255, 0.16);
}

.basket-link:hover,
.btn:hover,
.btn-sm:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.basket-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 99px;
    background: var(--color-accent);
    color: #071016;
    font-size: 12px;
}

.user-greeting {
    color: var(--color-text-muted);
}

.alert-banner {
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    color: #071016;
    text-align: center;
    font-weight: 900;
}

.main-content {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero {
    position: relative;
    min-height: 360px;
    margin-bottom: 28px;
    padding: 72px 0 38px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1,
.category-title {
    font-size: clamp(42px, 7vw, 82px);
    text-shadow: 0 0 28px rgba(0, 229, 255, 0.18);
}

.hero-tagline,
.category-description,
.cms-content,
.package-detail-description {
    max-width: 720px;
    color: var(--color-text-muted);
    font-size: 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.category-card,
.module,
.cms-page,
.login-card,
.options-card,
.package-detail,
.basket-items,
.coupon-section,
.checkout-total,
.basket-empty {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.category-card {
    padding: 22px;
}

.category-card:hover {
    border-color: rgba(0, 229, 255, 0.44);
    transform: translateY(-3px);
}

.category-card p {
    color: var(--color-text-muted);
}

.category-page {
    padding-top: 18px;
}

.category-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
}

.rank-cards-container {
    margin-top: -8px;
    margin-bottom: 26px;
    padding-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rank-cards-scroll {
    display: grid;
    grid-template-columns: repeat(7, minmax(132px, 1fr));
    gap: 14px;
    min-width: 980px;
    padding: 8px 2px 18px;
}

.rank-card {
    position: relative;
    min-width: 132px;
    padding: 0 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    text-align: center;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.rank-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.62);
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.085), rgba(255, 255, 255, 0.018));
    box-shadow:
        0 0 0 1px rgba(0, 229, 255, 0.18),
        0 16px 36px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(0, 229, 255, 0.16);
}

.rank-card-image {
    position: relative;
    width: 96px;
    height: 96px;
    margin: -2px auto 12px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.rank-card-image::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.48), transparent 14%),
        linear-gradient(135deg, rgba(0, 229, 255, 0.95), rgba(157, 77, 255, 0.92));
    box-shadow:
        inset 0 0 0 4px rgba(16, 17, 19, 0.78),
        0 0 0 2px rgba(0, 229, 255, 0.72),
        0 0 22px rgba(0, 229, 255, 0.36),
        0 0 26px rgba(157, 77, 255, 0.22);
}

.rank-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
    clip-path: polygon(50% 0, 61% 12%, 78% 6%, 84% 23%, 100% 31%, 91% 48%, 98% 66%, 78% 72%, 72% 91%, 52% 84%, 35% 100%, 24% 80%, 4% 78%, 13% 59%, 0 43%, 17% 31%, 17% 12%, 37% 16%);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.42));
}

.rank-card-image img {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
}

.rank-card-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(6, 14, 21, 0.24), rgba(6, 14, 21, 0.72));
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.rank-ribbon {
    position: absolute;
    left: 50%;
    bottom: 5px;
    z-index: 2;
    transform: translateX(-50%);
    min-width: 84px;
    max-width: 106px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    color: #071016;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-card-name {
    margin: 0 0 12px;
    font-size: 21px;
}

.rank-card-price {
    min-height: 48px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 2px;
}

.price-amount,
.price-current,
.featured-price,
.total-amount {
    color: #ff6269;
    font-weight: 900;
}

.price-original {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.rank-card-actions {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.btn-info,
.btn-cart,
.btn-remove {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--border-radius);
    color: #101113;
    font-size: 19px;
    font-weight: 900;
    cursor: pointer;
    transition: transform var(--transition), filter var(--transition);
}

.btn-info {
    background: var(--color-btn-info);
}

.btn-cart {
    background: linear-gradient(135deg, var(--color-btn-cart), #78f0ff);
}

.btn-cart.btn-in-cart {
    background: linear-gradient(135deg, var(--color-success), var(--color-accent));
}

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

.btn-info:hover,
.btn-cart:hover,
.btn-remove:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.comparison-section {
    overflow-x: auto;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
}

.comparison-table {
    min-width: 980px;
}

.comparison-row {
    display: flex;
    align-items: stretch;
    min-height: 42px;
}

.comparison-row:nth-child(odd) {
    background: #111315;
}

.comparison-row:nth-child(even) {
    background: #242628;
}

.comparison-header {
    background: #151719 !important;
}

.comparison-label,
.comparison-cell {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    font-weight: 900;
}

.comparison-label {
    flex: 0 0 250px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(24, 25, 27, 0.98);
}

.comparison-cell {
    flex: 1 1 0;
    justify-content: center;
    text-align: center;
}

.header-cell {
    color: #ffffff;
}

.section-header {
    min-height: 37px;
    background: #111315 !important;
}

.section-header .comparison-label {
    position: static;
    flex: 1 1 100%;
    justify-content: center;
    background: #111315;
    color: #ffc247;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-header .comparison-label::before {
    content: "\2605";
    margin-right: 8px;
}

.section-cell {
    display: none;
}

.cell-x {
    color: var(--color-unavailable);
    font-size: 26px;
}

.cell-check {
    color: var(--color-success);
    font-size: 27px;
}

.cell-available {
    color: #ffffff;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
}

.modal-content {
    width: min(720px, 100%);
    max-height: 86vh;
    overflow: auto;
    border: 1px solid rgba(0, 229, 255, 0.28);
    border-radius: var(--border-radius);
    background: #151719;
    box-shadow: var(--shadow);
    padding: 24px;
}

.modal-close {
    float: right;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--border-radius);
    background: var(--color-btn-info);
    color: #101113;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.modal-header img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.modal-description {
    color: var(--color-text-muted);
}

.package-page,
.checkout-page,
.login-page,
.options-page,
.cms-page {
    max-width: 960px;
    margin: 0 auto;
}

.package-detail {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
}

.package-detail-image img {
    width: 100%;
    border-radius: var(--border-radius);
}

.package-detail-price,
.package-detail-actions,
.checkout-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.package-unavailable {
    color: var(--color-unavailable);
}

.checkout-page h1,
.login-card h1,
.options-card h1,
.cms-page h1 {
    margin-bottom: 20px;
    font-size: clamp(32px, 5vw, 58px);
}

.about-discord {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-discord h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.about-discord p {
    margin: 0;
    color: var(--color-text-muted);
}

.basket-items,
.coupon-section,
.checkout-total,
.basket-empty,
.login-card,
.options-card,
.cms-page {
    padding: 22px;
    margin-bottom: 16px;
}

.basket-table {
    width: 100%;
    border-collapse: collapse;
}

.basket-table th,
.basket-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.btn-remove {
    background: var(--color-btn-info);
}

.coupon-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.coupon-input,
.login-input,
.option-input,
.giftcard-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0 14px;
    background: #111315;
    color: var(--color-text);
}

.applied-coupons,
.modules-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: var(--border-radius);
    background: rgba(0, 229, 255, 0.12);
}

.total-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 22px;
    font-weight: 900;
}

.basket-empty {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 220px;
    text-align: center;
}

.basket-empty .mdi {
    color: var(--color-accent);
    font-size: 54px;
}

.login-card,
.options-card {
    width: min(460px, 100%);
    margin: 0 auto;
}

.option-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 13, 16, 0.82);
}

.footer-container {
    width: min(1220px, calc(100% - 28px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-text-muted);
}

.footer-brand {
    color: #ffffff;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.module {
    width: min(320px, 100%);
    padding: 16px;
}

.module-title {
    margin-bottom: 10px;
    color: var(--color-accent);
}

.goal-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 99px;
    background: #111315;
}

.goal-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
}

.payments-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.payment-item,
.topdonator-info,
.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-avatar,
.topdonator-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-unavailable);
}

.status-online .status-dot {
    background: var(--color-success);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-grid;
    }

    .nav-container {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-links {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown {
        position: static;
        display: block;
        box-shadow: none;
        margin-left: 12px;
    }

    .category-header {
        grid-template-columns: 1fr;
    }

    .package-detail {
        grid-template-columns: 1fr;
    }

    .about-discord {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .main-content {
        width: min(100% - 20px, 1220px);
        padding-top: 18px;
    }

    .rank-cards-scroll {
        grid-template-columns: repeat(7, 134px);
        min-width: 1000px;
    }

    .comparison-label {
        flex-basis: 188px;
    }

    .nav-basket,
    .nav-user {
        flex: 1 1 auto;
    }
}
