/* IndiaMC Store Premium Styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Press+Start+2P&display=swap');

:root {
    /* Color Tokens */
    --bg-main: #1a1a1a;
    --bg-hero: #202022;
    --bg-card: #131316;
    --bg-card-alt: #16161e;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #5f6679;

    /* Neon Rank Colors */
    --rank-pro: #84cc16;
    --rank-pro-glow: rgba(132, 204, 22, 0.25);
    --rank-god: #fbbf24;
    --rank-god-glow: rgba(251, 191, 36, 0.25);
    --rank-don: #f87171;
    --rank-don-glow: rgba(248, 113, 113, 0.25);

    --color-primary: #9d4edd;
    --color-primary-glow: rgba(157, 78, 221, 0.4);
    --color-accent: #60a5fa;
    --color-accent-glow: rgba(96, 165, 250, 0.3);

    --accent-red: #f87171;
    --accent-green: #84cc16;
    --accent-blue: #60a5fa;
    --accent-orange: #FF661C;

    --grad-red: linear-gradient(135deg, #a41936, #7a0e24);
    --border-red: #d72146;

    --font-sans: 'Montserrat', sans-serif;
    --font-pixel: 'Press Start 2P', monospace;
    --font-mono: 'Courier New', Courier, monospace;

    --border-radius: 12px;
    --border-radius-sm: 6px;
    --transition-speed: 0.25s;
    --transition-bounce: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25), box-shadow 0.25s ease, filter 0.25s ease;
    --shadow-main: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.05);
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a1a;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Glow Background Orbs */
.glow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.15;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -15vw;
    left: -10vw;
    animation: floatingOrb 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -20vw;
    right: -10vw;
    animation: floatingOrb 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatingOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(6vw, 6vw) scale(1.15);
    }
}

/* Helper Utilities */
.hidden {
    display: none !important;
}

/* App Main Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px 20px 100px 20px;
    /* space bottom for console drawer */
    padding: 28px;
    background: rgba(12, 8, 22, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-main);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Header and Navigation */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

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

.logo-box {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.cube-icon {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #dcd1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand .subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Server Status badge */
.server-status-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ip-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.ip-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent-glow);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.ip-badge i.copy-icon {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 4px;
}

.ip-badge:hover i.copy-icon {
    color: var(--color-accent);
}

.port-text {
    color: var(--text-secondary);
    font-weight: 400;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 8px;
}

.players-online-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rank-pro);
}

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

.status-dot.online {
    background-color: var(--rank-pro);
    box-shadow: 0 0 8px var(--rank-pro);
}

.status-dot.pulsing {
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
}

/* User profile details */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 50px;
}

.user-profile-card img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info span:first-child {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
}

.user-info .badge {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    align-self: flex-start;
}

.user-info .badge-java-premium {
    color: #ffb300;
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid rgba(255, 179, 0, 0.25);
}

.user-info .badge-java-cracked {
    color: #aba1c1;
    background: rgba(171, 161, 193, 0.1);
    border: 1px solid rgba(171, 161, 193, 0.25);
}

.user-info .badge-bedrock {
    color: #00e676;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.btn-logout {
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-color: transparent !important;
}

.btn-logout:hover {
    background: rgba(255, 23, 68, 0.15) !important;
    color: var(--rank-don) !important;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: start;
}

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

/* Store Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed);
}

.card:hover {
    border-color: var(--border-glow);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--color-primary);
}

.card-body {
    padding: 22px;
}

/* Store catalog grid */
.store-catalog {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title-wrapper h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-wrapper h2 i {
    color: var(--color-primary);
}

.section-title-wrapper p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Category Banner Cards Grid */
.categories-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.category-banner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 130px;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    overflow: hidden !important;
    border: 3px solid #101014 !important;
    box-shadow: none !important;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.2s;
}

/* Category Specific Two-Tone Gradients with Left Oval Overlay */
.category-banner-card.cat-gradient-0 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #ff2a85 0%, #7c4dff 100%) !important;
}

.category-banner-card.cat-gradient-1 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #ffd600 0%, #ff6d00 100%) !important;
}

.category-banner-card.cat-gradient-2 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #00f2fe 0%, #0072ff 100%) !important;
}

.category-banner-card.cat-gradient-3 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #b06ab3 0%, #4568dc 100%) !important;
}

.category-banner-card.cat-gradient-4 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #00ff87 0%, #00a86b 100%) !important;
}

.category-banner-card.cat-gradient-5 {
    background: radial-gradient(circle at 0% 50%, rgba(0, 0, 0, 0.08) 55%, transparent 55.2%),
        linear-gradient(135deg, #ff0844 0%, #cc0033 100%) !important;
}

/* Category Hover / Press Interactions */
.category-banner-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
}

.category-banner-card:active {
    transform: scale(0.98) !important;
}

.category-banner-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.category-banner-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.category-banner-card-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.category-banner-card-img {
    position: absolute;
    right: 16px;
    bottom: 12px;
    height: 100px;
    width: auto;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-banner-card:hover .category-banner-card-img {
    transform: scale(1.1) translateY(-4px) rotate(-2deg);
}

.category-banner-card-icon {
    position: absolute;
    right: 28px;
    bottom: 18px;
    font-size: 52px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

/* Gradient presets for categories */
.cat-gradient-0 {
    background: linear-gradient(135deg, #e91e8f, #c2185b, #9a0d42);
}

.cat-gradient-1 {
    background: linear-gradient(135deg, #c8941e, #b8860b, #8b6914);
}

.cat-gradient-2 {
    background: linear-gradient(135deg, #1e88e5, #1565c0, #0d47a1);
}

.cat-gradient-3 {
    background: linear-gradient(135deg, #7c3aed, #6d28d9, #5b21b6);
}

.cat-gradient-4 {
    background: linear-gradient(135deg, #059669, #047857, #065f46);
}

.cat-gradient-5 {
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
}

@media (max-width: 640px) {
    .categories-banner-grid {
        grid-template-columns: 1fr;
    }

    .category-banner-card {
        min-height: 110px;
        padding: 22px 20px;
    }

    .category-banner-card-name {
        font-size: 13px;
    }

    .category-banner-card-img {
        height: 80px;
    }

    .category-banner-card-icon {
        font-size: 40px;
        right: 20px;
        bottom: 14px;
    }
}

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

.btn-back {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-back:hover {
    background: rgba(157, 78, 221, 0.08);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.btn-back:active {
    background: rgba(157, 78, 221, 0.15);
}

.category-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 28px;
    letter-spacing: 1px;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

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

.product-skeleton {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-style: italic;
}

/* Product list item cards - Horizontal Breathing Layout */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #0f0f13;
    background-image: radial-gradient(circle at 75% 50%, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.02) 58%, transparent 58.5%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 20px;
    gap: 20px;
    min-height: 156px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.25s, box-shadow 0.25s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.55);
}

.product-banner {
    width: 110px;
    height: 110px;
    background: #25252b;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-banner-img {
    max-width: 85px;
    max-height: 85px;
    object-fit: contain;
}

.product-banner i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.7);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    height: 110px;
    /* Align perfectly to the height of the banner */
    padding: 0;
    gap: 4px;
}

.product-card-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-original {
    font-size: 13px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.35);
}

.price-current {
    font-size: 18px;
    font-weight: 800;
    color: #fbbf24;
    /* yellow/gold color */
    line-height: 1;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
}

.btn-card-info {
    background: #d97706 !important;
    /* Force override other themes if needed */
    color: #ffffff !important;
    border: 1.5px solid #f59e0b !important;
    /* Premium gold outline */
    border-radius: 8px !important;
    width: 55px !important;
    height: 38px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer;
    font-family: var(--font-sans) !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    padding: 0 !important;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn-card-info:hover {
    background: #b45309 !important;
    border-color: #fbbf24 !important;
}

.btn-add-to-cart {
    background: #3b82f6;
    /* blue */
    color: #ffffff;
    border: 1.5px solid #60a5fa;
    /* Premium light blue outline */
    border-radius: 8px;
    flex-grow: 1;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    padding: 0;
}

.btn-add-to-cart:hover {
    background: #2563eb;
    border-color: #93c5fd;
}

.btn-add-to-cart:active,
.btn-card-info:active {
    transform: scale(0.95) !important;
}

/* Vote Link Cards */
.vote-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    background: #0d0d11;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.25s, box-shadow 0.25s;
}

.vote-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vote-card-number {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    font-weight: 800;
    color: var(--rank-god);
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
}

.vote-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
    min-width: 0;
}

.vote-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.vote-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.vote-card-action {
    flex-shrink: 0;
}

.btn-vote-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}

.btn-vote-now:hover {
    background: linear-gradient(135deg, #a855f7, #8b31d9);
    box-shadow: 0 4px 18px rgba(157, 78, 221, 0.35);
    transform: translateY(-1px);
}

.btn-vote-now:active {
    transform: scale(0.97);
}

.btn-vote-now i {
    font-size: 12px;
}

/* Vote grid — single column for vote links */
.vote-links-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 640px) {
    .vote-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .vote-card-number {
        font-size: 15px;
        min-width: 36px;
    }

    .vote-card-info {
        flex-basis: calc(100% - 60px);
    }

    .vote-card-action {
        width: 100%;
    }

    .btn-vote-now {
        width: 100%;
        justify-content: center;
    }
}

/* Sidebar Columns */
.store-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Shopping Cart styling */
.cart-card {
    min-height: 250px;
}

.cart-count-badge {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid var(--color-primary-glow);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
}

.cart-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 150px;
}

.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    text-align: center;
    color: var(--text-muted);
}

.empty-cart-state i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-cart-state p {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-cart-state span {
    font-size: 12px;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    animation: itemPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

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

.cart-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
    padding: 4px;
}

.btn-remove-item:hover {
    color: var(--rank-don);
}

/* Cart Summary & Calc */
.cart-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14.5px;
}

.summary-line span:first-child {
    color: var(--text-secondary);
}

.summary-line .price-val {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* Support Card Info styling */
.info-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-accent);
    text-decoration: none;
    padding: 10px 14px;
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.support-link:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.support-link i {
    font-size: 14px;
}

/* Buttons style system */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #822caf 100%);
    color: #fff;
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
    background: linear-gradient(135deg, #a75ce6 0%, var(--color-primary) 100%);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
}

/* Modals Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 2, 8, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: rgba(20, 14, 34, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.modal-close:hover {
    color: var(--rank-don);
}

.modal-body {
    padding: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #fff;
    padding: 12px 14px;
    outline: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.form-group input[type="text"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.25);
}

/* Radio Group as Cards */
.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-label {
    cursor: pointer;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-btn-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: all var(--transition-speed);
}

.radio-btn-card i {
    font-size: 22px;
    color: var(--text-muted);
}

.radio-btn-card span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.radio-btn-card small {
    font-size: 10px;
    color: var(--text-muted);
}

.radio-label input[type="radio"]:checked+.radio-btn-card {
    background: rgba(157, 78, 221, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 0 12px rgba(157, 78, 221, 0.2);
}

.radio-label input[type="radio"]:checked+.radio-btn-card i.font-java {
    color: #e76f51;
}

.radio-label input[type="radio"]:checked+.radio-btn-card i.font-bedrock {
    color: #2a9d8f;
}

.radio-label input[type="radio"]:checked+.radio-btn-card span {
    color: #fff;
}

.login-feedback {
    font-size: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.text-danger {
    color: var(--rank-don);
}

.btn-login-submit {
    padding: 12px !important;
}

/* Collapsible Dev Console Drawer at bottom */
.console-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: rgba(10, 6, 17, 0.95);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
    transition: background 0.2s, border-color 0.2s;
}

.drawer-header:hover {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(96, 165, 250, 0.25);
}

.drawer-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-title i {
    color: var(--color-accent);
}

.drawer-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition-speed);
}

.drawer-body {
    padding: 16px 20px;
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dots .dot.red {
    background-color: #ff5f56;
}

.terminal-dots .dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dots .dot.green {
    background-color: #27c93f;
}

.terminal-body {
    background-color: #040207;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 14px;
    overflow-y: auto;
    height: 180px;
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--text-secondary);
}

.log-entry {
    display: block;
    margin-bottom: 4px;
}

.log-time {
    color: var(--text-muted);
    margin-right: 6px;
    font-size: 11px;
}

.log-cmd-tag {
    color: var(--color-accent);
    margin-right: 6px;
    font-weight: bold;
}

.log-res-tag {
    color: var(--color-primary);
    margin-right: 6px;
    font-weight: bold;
}

.log-error {
    color: var(--rank-don);
    font-weight: bold;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Minecraft standard formatting colors for console */
.mc-color-0 {
    color: #000000;
}

.mc-color-1 {
    color: #0000aa;
}

.mc-color-2 {
    color: #00aa00;
}

.mc-color-3 {
    color: #00aaaa;
}

.mc-color-4 {
    color: #aa0000;
}

.mc-color-5 {
    color: #aa00aa;
}

.mc-color-6 {
    color: #ffaa00;
}

.mc-color-7 {
    color: #aaaaaa;
}

.mc-color-8 {
    color: #555555;
}

.mc-color-9 {
    color: #5555ff;
}

.mc-color-a {
    color: #55ff55;
}

.mc-color-b {
    color: #55ffff;
}

.mc-color-c {
    color: #ff5555;
}

.mc-color-d {
    color: #ff55ff;
}

.mc-color-e {
    color: #ffff55;
}

.mc-color-f {
    color: #ffffff;
}

.mc-bold {
    font-weight: bold;
}

.mc-italic {
    font-style: italic;
}

.mc-underline {
    text-decoration: underline;
}

.mc-strikethrough {
    text-decoration: line-through;
}

.mc-obfuscated {
    filter: blur(2px);
    opacity: 0.8;
}

/* Toast Notifications Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1600;
}

.toast {
    background: rgba(12, 7, 24, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 260px;
    animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.3s;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

.toast.toast-success {
    border-left: 4px solid var(--rank-pro);
}

.toast.toast-error {
    border-left: 4px solid var(--rank-don);
}

.toast.toast-info {
    border-left: 4px solid var(--color-accent);
}

.toast-icon {
    font-size: 16px;
}

.toast-success .toast-icon {
    color: var(--rank-pro);
}

.toast-error .toast-icon {
    color: var(--rank-don);
}

.toast-info .toast-icon {
    color: var(--color-accent);
}

.toast-message {
    font-size: 13px;
    font-weight: 600;
}

/* -------------------------------------------------------------
   Announcement Banner Styles (Mockup Design Match)
   ------------------------------------------------------------- */
.announcement-banner {
    width: 100%;
    background-color: #08040f;
    padding: 8px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.ann-content-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.ann-pill {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.3);
}

.ann-text {
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
}

.ann-divider {
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
    margin: 0 4px;
}

.ann-countdown-label {
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
}

#annCountdownTimeVal {
    color: #ffb300;
    font-weight: 700;
    margin-left: 2px;
}

/* -------------------------------------------------------------
   Category Tabs Styles
   ------------------------------------------------------------- */
.category-tabs-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.category-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateY(-1px);
}

.category-tab.active {
    background: var(--active-bg, rgba(157, 78, 221, 0.15));
    border-color: var(--active-color, var(--color-primary));
    color: #fff;
    box-shadow: 0 0 10px var(--active-glow, var(--color-primary-glow));
}

/* -------------------------------------------------------------
   Footer Styles
   ------------------------------------------------------------- */
.app-footer {
    padding: 24px;
    background: rgba(10, 6, 17, 0.45);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.footer-brand-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: all var(--transition-speed);
}

.footer-socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-glow);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--color-primary-glow);
}

/* -------------------------------------------------------------
   Admin Settings Helper Panel Styles
   ------------------------------------------------------------- */
.admin-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.25s ease-in;
}

.panel-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-section-title i {
    color: var(--color-accent);
}

.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-items-list .cart-item {
    animation: none !important;
}

.admin-body-layout {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
}

.btn-info-popup {
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: var(--color-accent) !important;
    border-color: rgba(0, 242, 254, 0.2) !important;
    background: rgba(0, 242, 254, 0.03) !important;
}

.btn-info-popup:hover {
    background: var(--color-accent) !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--color-accent-glow) !important;
}

/* -------------------------------------------------------------
   Premium Admin Panel Styling Overrides
   ------------------------------------------------------------- */
.admin-dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn var(--transition-speed) ease-out;
}

.admin-dashboard-wrapper .dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .admin-dashboard-wrapper .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Tab menu */
.tab-menu-btn {
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    background: rgba(255, 255, 255, 0.01) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--border-radius-sm) !important;
    transition: all var(--transition-speed) ease !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
}

.tab-menu-btn i {
    font-size: 15px;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.tab-menu-btn:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.tab-menu-btn.active {
    background: rgba(157, 78, 221, 0.08) !important;
    color: #fff !important;
    border-left: 3px solid var(--color-primary) !important;
    border-color: rgba(157, 78, 221, 0.25) !important;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.1) !important;
}

.tab-menu-btn.active i {
    color: var(--color-primary);
}

/* Input Fields styling */
.admin-tab-panel input[type="text"],
.admin-tab-panel select,
.admin-tab-panel input[type="datetime-local"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: #fff;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    transition: all var(--transition-speed);
}

.admin-tab-panel input[type="text"]:focus,
.admin-tab-panel select:focus,
.admin-tab-panel input[type="datetime-local"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.25);
    background: rgba(0, 0, 0, 0.35);
}

/* File Upload Button styling */
.admin-tab-panel button.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all var(--transition-speed);
}

.admin-tab-panel button.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Color Picker Container */
#catColorHex {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* Lists and Cards */
.admin-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 6px;
}

.admin-items-list .cart-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.admin-items-list .cart-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.admin-items-list .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-items-list .cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-items-list .cart-item-name code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--color-accent);
}

.admin-items-list .btn-remove-item {
    background: rgba(255, 75, 43, 0.05);
    border: 1px solid rgba(255, 75, 43, 0.15);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rank-don);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-items-list .btn-remove-item:hover {
    background: var(--rank-don);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.4);
    transform: scale(1.05);
}

.admin-items-list .btn-edit-item {
    background: rgba(255, 75, 43, 0.05);
    border: 1px solid rgba(255, 75, 43, 0.15);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rank-don);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.admin-items-list .btn-edit-item:hover {
    background: var(--rank-don);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 75, 43, 0.4);
    transform: scale(1.05);
}

/* Custom Modal overlays */
.modal-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* RCON Console Tester Box */
.terminal-welcome {
    color: var(--text-muted);
    font-style: italic;
}

/* Dropdowns wrapper arrow */
.admin-tab-panel select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23a0a0a0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 35px;
}

/* -------------------------------------------------------------
   Responsive Mobile and Tablet Layout Optimization Rules
   ------------------------------------------------------------- */
@media (max-width: 1240px) {
    .app-container {
        margin: 20px auto 100px auto;
        width: calc(100% - 24px);
        padding: 16px;
    }

    .console-drawer {
        width: calc(100% - 24px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {

    /* Main layout splits */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .store-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Header layout */
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-bottom: 20px;
    }

    .brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .logo-box {
        margin: 0 auto;
    }

    .brand h1 {
        font-size: 24px;
    }

    .brand .subtitle {
        font-size: 12.5px;
    }

    /* Server connection badge status wrapper */
    .server-status-container {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 8px;
    }

    .ip-badge,
    .players-online-badge {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .ip-text {
        font-size: 12px;
    }

    /* Login profile details area */
    .user-auth-area {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .user-profile-card {
        padding: 4px 12px;
    }

    /* Category tabs scroll panel */
    .category-tabs-container {
        gap: 8px;
        padding-bottom: 8px;
    }

    .category-tab {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    /* Footer section layout */
    .app-footer {
        padding: 20px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    .footer-brand-info {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 600px) {

    /* Product perk display cards vertical stacking */
    .product-card {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 14px;
    }

    .product-icon-container {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 8px;
    }

    .product-icon-container img {
        width: 26px !important;
        height: 26px !important;
    }

    .product-info-panel h3 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .product-info-panel p {
        font-size: 12.5px;
    }

    .product-price-section {
        align-items: center;
        text-align: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 12px;
        margin-top: 4px;
    }

    .product-price-section div {
        justify-content: center !important;
        width: 100%;
    }

    .price-digits {
        font-size: 20px;
    }

    /* Toast alerts */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }

    /* Modals */
    .modal-card {
        max-width: 92% !important;
    }
}

@media (max-width: 480px) {

    /* Top announcement banner styling elements scale */
    .announcement-banner {
        padding: 6px 12px;
    }

    .ann-pill {
        font-size: 8px;
        padding: 2px 10px;
    }

    .ann-text,
    .ann-countdown-label {
        font-size: 11px;
    }
}

/* -------------------------------------------------------------
   Premium Storefront Styling Architecture Overrides
   ------------------------------------------------------------- */

/* A. Top Promo Banner */
.top-promo-banner {
    width: 100%;
    background-color: var(--bg-hero);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.promo-pill {
    background-color: var(--accent-green);
    color: #121214;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(132, 204, 22, 0.4);
}

.promo-text {
    color: var(--text-white);
}

.promo-highlight {
    color: var(--accent-red);
    font-weight: 900;
}

.promo-decorator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 8px var(--accent-green);
}

.promo-decorator-slash {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* B. Deep-Dimension Hero Section */
.hero-section {
    width: 100%;
    background-color: #1a1a1a;
    position: relative;
    padding: 60px 20px 80px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0) 15%, rgba(26, 26, 26, 0.35) 45%, rgba(26, 26, 26, 0.8) 70%, #1a1a1a 90%),
        linear-gradient(to right, #1a1a1a 0%, rgba(26, 26, 26, 0.8) 5%, rgba(26, 26, 26, 0.35) 15%, rgba(26, 26, 26, 0) 25%, rgba(26, 26, 26, 0) 75%, rgba(26, 26, 26, 0.35) 85%, rgba(26, 26, 26, 0.8) 95%, #1a1a1a 100%),
        radial-gradient(circle at 50% 50%, rgba(164, 25, 54, 0.35) 0%, transparent 70%),
        url('banner.png') center/cover no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    gap: 20px;
}

.server-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f87171, #a41936);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(164, 25, 54, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 2px solid #ef4444;
    animation: breathingLogo 4s infinite ease-in-out;
}

.server-logo i {
    font-size: 42px;
    color: var(--text-primary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Breathing animation for hero logo */
#storeLogo {
    animation: breathingLogo 4s infinite ease-in-out;
    display: block;
    margin: 0 auto;
}

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

    50% {
        transform: scale(1.07);
    }

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

@keyframes bounceLogo {

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

    50% {
        transform: translateY(-8px);
    }
}

.hero-title {
    font-family: var(--font-pixel);
    font-size: 30px;
    line-height: 1.4;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    text-shadow:
        0 2px 0 #a41936,
        0 4px 0 #8b132c,
        0 6px 0 #720c21,
        0 8px 0 #5a0010,
        0 10px 15px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 14.5px;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 600px;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* C. Floating Utility Navigation Bar */
.navbar-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: -32px auto 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.navbar-container {
    background: linear-gradient(135deg, rgba(26, 26, 30, 0.98) 0%, rgba(20, 20, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    gap: 16px;
}

.console-dropdown {
    background: linear-gradient(135deg, #1b3810, #11220a);
    border: 1px solid var(--accent-green);
    padding: 8px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.console-dropdown:hover {
    opacity: 0.9;
}

.console-dropdown-icon {
    color: var(--accent-green);
    font-size: 13px;
}

.console-dropdown-text {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 900;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.ip-panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.ip-panel-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-white);
    text-transform: uppercase;
}

.ip-panel-copy {
    font-size: 11px;
    color: var(--text-muted);
}

.online-glow-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-green);
    color: #000;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 0 8px var(--accent-green);
    letter-spacing: 0.5px;
}

.nav-action-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-shadowed {
    background: var(--grad-red);
    border: 1px solid var(--border-red);
    color: var(--text-white);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 0 #4c0815, 0 6px 16px rgba(164, 25, 54, 0.35);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.2s, filter 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
}

.btn-shadowed::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-shadowed:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #4c0815, 0 12px 24px rgba(164, 25, 54, 0.5);
    filter: brightness(1.1);
}

.btn-shadowed:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 0 #4c0815, 0 4px 8px rgba(0, 0, 0, 0.4) !important;
}

.btn-login {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.15), border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    background-color: rgba(157, 78, 221, 0.08);
    border-color: rgba(157, 78, 221, 0.45);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(1px);
}

.user-head-thumbnail {
    width: 16px;
    height: 16px;
    background-color: #555;
    image-rendering: pixelated;
    border-radius: 2px;
    background-image: url('https://mc-heads.net/avatar/steve');
    background-size: cover;
}

.cart-badge {
    background-color: var(--accent-blue);
    color: #0b1320;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.25), box-shadow 0.2s;
}

.cart-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.45), 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.cart-badge:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(96, 165, 250, 0.2);
}

/* D. Main Workspace Perks Grid override */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Card Hover States: Premium 3D bounce translation upwards with inner border shine */
.product-card {
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    filter: brightness(1.06);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(255, 255, 255, 0.03);
}

/* Rank Specific Neon Colors & Glow Outlines */
.product-card.rank-pro-color {
    border-color: rgba(132, 204, 22, 0.15) !important;
}

.product-card.rank-pro-color:hover {
    border-color: var(--rank-pro) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 25px var(--rank-pro-glow) !important;
}

.product-card.rank-god-color {
    border-color: rgba(251, 191, 36, 0.15) !important;
}

.product-card.rank-god-color:hover {
    border-color: var(--rank-god) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 25px var(--rank-god-glow) !important;
}

.product-card.rank-don-color {
    border-color: rgba(248, 113, 113, 0.15) !important;
}

.product-card.rank-don-color:hover {
    border-color: var(--rank-don) !important;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.65), 0 0 25px var(--rank-don-glow) !important;
}

/* Premium Buttons Metallic Reflection Shine Sweep */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: none;
}

.btn-primary:hover::after {
    left: 120%;
    transition: all 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animated Top Promo Banner Shine */
.top-promo-banner {
    background: linear-gradient(90deg, #1d1d21, #2e2e34, #1d1d21);
    background-size: 200% 100%;
    animation: promoShine 6s infinite linear;
}

@keyframes promoShine {
    0% {
        background-position: 200% 0;
    }

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

/* E. Sliding Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    background: linear-gradient(180deg, #16161e 0%, #101014 100%);
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.cart-header-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header-title i {
    color: var(--accent-blue);
}

.cart-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.cart-close-btn:hover {
    color: var(--accent-red);
}

.cart-body-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Username validation workflow */
.mc-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-input-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.mc-input-wrapper {
    position: relative;
    display: flex;
}

.mc-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 12px 14px 12px 40px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mc-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 102, 28, 0.2);
}

.mc-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* Cart item list */
.cart-items-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-row {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-item-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-price {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
}

.cart-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.cart-item-delete:hover {
    color: var(--accent-red);
}

.cart-footer-panel {
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.cart-total-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.cart-total-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}

/* F. Premium Login overlay backdrop-filter */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-card {
    background-color: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.login-modal-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
}

.login-modal-header h3 {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.login-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Toggle slider styles */
.platform-toggle-container {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    position: relative;
}

.platform-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.platform-btn.active {
    color: #fff;
}

.platform-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    border-radius: 6px;
    background: var(--accent-orange);
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15), background-color 0.25s ease;
    box-shadow: 0 0 10px rgba(255, 102, 28, 0.3);
}

.platform-toggle-container.bedrock-selected .platform-slider {
    transform: translateX(100%);
    background: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Recent supporters list */
.supporter-showcase-section {
    background-color: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.supporter-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.support-links {
    margin-top: 10px;
}


/* Category Cards Design */
.store-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius);
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-6px) !important;
    filter: brightness(1.08);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}


/* Server Selector Dropdown */
.server-selector-container {
    position: relative;
}

.btn-server-select {
    background-color: #84cc16;
    color: #121214;
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25);
    transition: transform 0.2s, opacity 0.2s;
}

.btn-server-select:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-server-select:active {
    transform: translateY(1px);
}

.server-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #131316;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.server-option:hover {
    background-color: rgba(255, 255, 255, 0.06);
    padding-left: 18px;
}

.server-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #84cc16;
    box-shadow: 0 0 8px #84cc16;
}

.server-option-name {
    font-size: 12px;
    font-weight: 700;
    color: #84cc16;
}

.server-option-ip {
    font-size: 10.5px;
    color: var(--text-secondary);
}

/* Hero Logo Image */
.hero-logo-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* ===== Premium Footer ===== */
.app-footer {
    background-color: #0c0c0f;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 40px;
    padding: 0;
    border-radius: 0;
    width: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col-title {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-col-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.footer-brand-name {
    font-family: var(--font-pixel);
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
}

.footer-brand-dash {
    color: var(--text-secondary);
    font-size: 18px;
}

.footer-brand-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.footer-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(132, 204, 22, 0.08);
    border: 1px solid rgba(132, 204, 22, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
}

.footer-ip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #84cc16;
    box-shadow: 0 0 6px #84cc16;
}

.footer-ip-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.footer-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.25s, filter 0.2s;
}

.footer-discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.55);
    filter: brightness(1.1);
}

.footer-social-icons {
    display: flex;
    gap: 10px;
}

.footer-social-icon-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25), box-shadow 0.25s;
}

/* Discord – brand blue */
#footerDiscord2:hover {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.5);
    color: #5865F2;
    box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
    transform: translateY(-3px);
}

/* Instagram – brand pink/magenta */
#footerInstagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.45);
    color: #E1306C;
    box-shadow: 0 0 18px rgba(225, 48, 108, 0.35);
    transform: translateY(-3px);
}

/* YouTube – brand red */
#footerYoutube:hover {
    background: rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.4);
    color: #FF0000;
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.3);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 32px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 16px 20px;
    }
}

/* ─── Rich Text Editor ──────────────────────────────────────────────────── */
.rich-editor-wrapper {
    border: 1px solid rgba(157, 78, 221, 0.35);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s;
}

.rich-editor-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.15);
}

/* Toolbar */
.rich-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-sans);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.rte-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.rte-btn.rte-btn-active {
    background: rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.4);
    color: var(--color-primary);
}

.rte-btn.rte-btn-danger {
    color: rgba(248, 113, 113, 0.7);
}

.rte-btn.rte-btn-danger:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.rte-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Heading select */
.rte-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-family: var(--font-sans);
    padding: 4px 8px;
    height: 30px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.rte-select:focus {
    border-color: var(--color-primary);
}

/* Color picker group */
.rte-color-group {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.rte-color-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
}

.rte-color-group:hover .rte-color-label {
    border-color: rgba(255, 255, 255, 0.3);
}

.rte-color-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

/* Editable content area */
.rich-editor-area {
    min-height: 120px;
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 13.5px;
    font-family: var(--font-sans);
    line-height: 1.6;
    outline: none;
    caret-color: var(--color-primary);
}

/* Placeholder */
.rich-editor-area:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

/* Content styles inside editor */
.rich-editor-area h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0;
    color: #fff;
}

.rich-editor-area h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0;
    color: #e5e5e5;
}

.rich-editor-area ul,
.rich-editor-area ol {
    margin: 4px 0 4px 20px;
}

.rich-editor-area li {
    margin-bottom: 2px;
}

.rich-editor-area a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Rendered HTML description in perk info modal and product cards */
.product-card-desc h3,
.product-card-desc h4 {
    margin: 2px 0;
    color: #fff;
}

.product-card-desc ul,
.product-card-desc ol {
    margin: 4px 0 4px 18px;
}

#infoModalDesc h3,
#infoModalDesc h4 {
    margin: 4px 0;
    color: #fff;
}

#infoModalDesc ul,
#infoModalDesc ol {
    margin: 6px 0 6px 20px;
}

#infoModalDesc li {
    margin-bottom: 3px;
}

/* -------------------------------------------------------------
   MOBILE AND TABLET LAYOUT OPTIMIZATION (ADDITIONAL RESPONSIVENESS OVERRIDES)
   ------------------------------------------------------------- */

/* Hide category scrollbars on Webkit browsers for modern look */
.category-tabs-container::-webkit-scrollbar {
    display: none;
}

/* Responsive Floating Navigation Bar */
@media (max-width: 950px) {
    .navbar-wrapper {
        margin-top: 10px !important;
        padding: 0 10px !important;
    }

    .navbar-container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
        gap: 10px !important;
    }

    .server-selector-container,
    .ip-panel,
    .nav-action-block {
        width: 100% !important;
        justify-content: center !important;
    }

    .btn-server-select {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
    }

    .ip-panel {
        padding: 10px 14px !important;
        justify-content: center !important;
        width: auto !important;
    }

    .online-glow-badge {
        top: -4px !important;
        right: 10px !important;
    }

    .nav-action-block {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .nav-action-block > a,
    .nav-action-block > div,
    .nav-action-block > button {
        flex-grow: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 28px !important;
    }
    h2, .section-title {
        font-size: 22px !important;
    }
    .hero-subtitle {
        font-size: 14px !important;
    }
    .store-catalog {
        padding: 10px !important;
    }
}

/* Responsive Products Grid */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Responsive Cart Sidebar Width */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100% !important;
    }
}

/* Premium Admin Dashboard Responsiveness Overrides */
@media (max-width: 900px) {

    /* Main Layout Grid */
    .admin-dashboard-wrapper .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Horizontal scrolling tab menu */
    #adminTabsMenu {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        white-space: nowrap !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    #adminTabsMenu::-webkit-scrollbar {
        display: none;
    }

    .tab-menu-btn {
        flex-shrink: 0 !important;
        padding: 10px 16px !important;
        font-size: 12.5px !important;
    }
}

/* General responsive rules for admin tables, forms and cards */
@media (max-width: 768px) {

    /* Stack forms and inline column grids to single column */
    .radio-group,
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Input row groups stacking */
    .input-row-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .input-row-group>* {
        width: 100% !important;
    }

    /* Purchase log filters stacking */
    .purchases-filters {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .purchases-filters>*,
    .purchases-filters>div {
        width: 100% !important;
        justify-content: space-between !important;
    }
}

/* Responsive Admin Header actions */
@media (max-width: 600px) {
    .admin-dashboard-wrapper .app-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .admin-dashboard-wrapper .app-header>div {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .admin-dashboard-wrapper .app-header .btn {
        flex-grow: 1 !important;
        text-align: center !important;
        font-size: 12px !important;
        padding: 10px 14px !important;
    }
}

/* Responsive Purchase Statistics cards */
@media (max-width: 768px) {
    .purchases-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .purchases-stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Pre-Footer Info Cards */
.pre-footer-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto 20px auto;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 300px;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
}

.info-card-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-card .text-blue {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.info-card .text-orange {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.info-card .text-blue-light {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.info-card .text-blue-light:hover {
    text-decoration: underline;
}

.info-card .text-muted-small {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
}