@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600;800&family=Rubik+Dirt&family=Annie+Use+Your+Telescope&family=Sirin+Stencil&family=Rock+Salt&family=Caveat:wght@400;700&family=Reenie+Beanie&family=Passions+Conflict&family=Homenaje&display=swap');

:root {
    --primary-color: #082871;
    /* Deep Blue requested by user */
    --bg-color: #050505;
    --text-color: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Image & Overlay */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Étiré pour couvrir tout l'écran */
    object-position: center 30%;
    /* Décale l'image pour centrer le sujet visuel */
}

/* Smoke Canvas */
#smoke-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.hamburger {
    display: none;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    background: rgba(10, 10, 10, 0.6);
    padding: 15px 50px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

nav ul:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 0 20px rgba(8, 40, 113, 0.3);
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
    font-family: 'Homenaje', sans-serif;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary-color);
}

nav a:hover,
nav a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    perspective: 1000px;
}

.server-logo {
    max-width: 150px;
    /* Reduced size for top-left */
    width: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    animation: logoEntrance 3s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.server-logo.static {
    animation: none;
    opacity: 1;
    top: 20px;
    left: 20px;
    transform: none;
}

.main-title {
    font-family: 'Rock Salt', cursive;
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp 1s ease 2.6s forwards;
    color: white;
}

.main-title .white {
    color: #ffffff;
}

.main-title .blue {
    color: #1a50a6;
}

.presentation-text {
    font-family: 'Homenaje', sans-serif;
    font-size: 1rem;
    /* Plus petit format */
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
    opacity: 0;
    animation: fadeUp 1s ease 2.9s forwards;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
    /* Homenaje often looks better in caps/uppercase context, though it's not strictly caps-only */
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    opacity: 0;
    animation: fadeUp 1s ease 3.5s forwards;
}

.btn {
    padding: 15px 40px;
    border: none;
    background: var(--glass-bg);
    color: white;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    cursor: pointer;
    border: var(--glass-border);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(8, 40, 113, 0.4);
}

.btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    box-shadow: 0 0 30px rgba(8, 40, 113, 0.8);
    border-color: var(--primary-color);
}

.btn.primary:hover {
    box-shadow: 0 0 40px rgba(8, 40, 113, 0.7);
}

/* Animations */
@keyframes logoEntrance {
    0% {
        opacity: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.2);
        max-width: 400px;
        filter: blur(20px) drop-shadow(0 0 30px var(--primary-color));
    }

    40% {
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.0);
        max-width: 400px;
        filter: blur(0) drop-shadow(0 0 50px var(--primary-color));
    }

    70% {
        opacity: 1;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.8);
        max-width: 600px;
    }

    100% {
        opacity: 1;
        top: 20px;
        left: 20px;
        transform: translate(0, 0) scale(1);
        max-width: 150px;
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Pages */
.page-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    max-width: 1000px;
    width: 90%;
    margin: 40px auto;
    animation: fadeUp 0.8s ease forwards;
}

h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.subtitle {
    color: #aaa;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.5;
    transition: 0.3s;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.rule-card:hover::before {
    opacity: 1;
    width: 5px;
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rule-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.rule-card p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-small {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.rule-card:hover .btn-small {
    background: var(--primary-color);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0a0a0a;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #fff;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Custom Scrollbar - Premium Neon Style */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, #1a50a6 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1a50a6 0%, #3498db 100%);
    background-clip: content-box;
    box-shadow: 0 0 15px rgba(26, 80, 166, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a50a6 rgba(0, 0, 0, 0.3);
}

/* Modal Content Styles */
#modal-body h2 {
    font-family: 'Bebas Neue', cursive;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.rule-detail p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 15px;
}

.rule-detail strong {
    color: var(--primary-color);
}

.rule-detail ul {
    margin: 20px 0;
    padding-left: 20px;
    color: #bbb;
}

.rule-detail li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
}

.rule-detail li::before {
    content: '‣';
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}

/* Boutique & Shop Styles */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.shop-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0.6;
}

.shop-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
}

.shop-card h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
}

.shop-card p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.page-container h1,
.page-container h2,
.page-container h3,
.shop-card h2,
.rule-card h3,
.streamer-card h3 {
    font-family: 'Homenaje', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-container h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(8, 40, 113, 0.8);
}

.page-container p,
.page-container li,
.rule-detail,
.shop-card p,
.shop-card ul {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.2rem;
    font-weight: 300;
}

.price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(8, 40, 113, 0.5);
}

/* Streamers Styles */
.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.streamer-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.streamer-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #111;
    margin: 0 auto 20px auto;
    border: 3px solid var(--primary-color);
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(8, 40, 113, 0.2);
    object-fit: cover;
}

.streamer-card:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(8, 40, 113, 0.4);
}

.streamer-name {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.live-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    transition: 0.3s;
}

.live-status.live {
    background: #d63031;
    color: white;
    box-shadow: 0 0 10px rgba(214, 48, 49, 0.5);
    animation: pulse-live 2s infinite;
}

.live-status.offline {
    background: #444;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(214, 48, 49, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 48, 49, 0);
    }
}

.social-link {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.social-link:hover {
    color: #fff;
}

/* ============================================================
   Boutique Page - Auth, Cart, Products, Toast
   ============================================================ */

/* Boutique Page Layout */
.boutique-page {
    max-width: 1200px;
    margin-top: 100px;
    margin-bottom: 40px;
    align-self: flex-start;
}

/* Allow scrolling on content pages */
body.page-boutique,
body.page-content {
    height: auto;
    min-height: 100vh;
}

body.page-boutique main,
body.page-content main {
    align-items: flex-start;
}

/* Auth Bar */
.auth-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.auth-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-text {
    color: #aaa;
    font-size: 0.95rem;
    margin: 0;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.auth-username {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.auth-badge {
    font-size: 0.75rem;
    color: #aaa;
    display: block;
    margin-top: 2px;
}

/* Shop Filters */
.shop-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chip:hover {
    background: rgba(8, 40, 113, 0.2);
    border-color: var(--primary-color);
    color: #fff;
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(8, 40, 113, 0.4);
}

/* Shop Loading */
.shop-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.shop-loading p {
    color: #aaa;
    font-size: 0.95rem;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Cards - Enhanced */
.shop-card-img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-card:hover .shop-card-img img {
    transform: scale(1.05);
}

.shop-card-img-placeholder {
    background: rgba(8, 40, 113, 0.1);
}

.shop-card-body {
    text-align: left;
}

.shop-card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0.8;
}

.shop-card-title {
    font-family: 'Homenaje', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    margin: 6px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-card-desc {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.shop-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.shop-card-original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1rem;
    margin-right: 8px;
}

.shop-card-sale-price {
    color: #e74c3c;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #1a50a6;
    box-shadow: 0 0 20px rgba(8, 40, 113, 0.5);
    transform: translateY(-2px);
}

/* Cart Overlay & Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-header h2 {
    font-family: 'Homenaje', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    border: none;
    padding: 0;
}

.cart-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.cart-close:hover {
    color: #fff;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.cart-qty-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.cart-qty {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.2s;
}

.cart-remove-btn:hover {
    opacity: 0.7;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-coupon {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cart-coupon input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.cart-coupon input:focus {
    border-color: var(--primary-color);
}

.cart-coupon input::placeholder {
    color: #555;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(8, 40, 113, 0.5);
    z-index: 900;
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 30px rgba(8, 40, 113, 0.7);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 280px;
    max-width: 400px;
    font-size: 0.9rem;
    color: #fff;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.toast.show {
    transform: translateX(0);
}

.toast button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.3rem;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

.toast-success {
    border-left: 3px solid #2ecc71;
}

.toast-error {
    border-left: 3px solid #e74c3c;
}

.toast-info {
    border-left: 3px solid var(--primary-color);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Navigation Mobile */
    nav {
        padding: 20px;
        background: transparent;
        justify-content: flex-end;
        align-items: center;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 10002;
        /* Extremely high z-index */
        background: rgba(0, 0, 0, 0.8);
        padding: 12px;
        border-radius: 8px;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        touch-action: manipulation;
        /* Improves touch response */
        -webkit-tap-highlight-color: transparent;
        /* Removes tap highlight */
    }

    .hamburger .line {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    nav ul {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: linear-gradient(135deg, rgba(5, 5, 5, 0.95), rgba(20, 20, 20, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        transition: 0.5s ease-in-out;
        z-index: 10001;
        /* High z-index */
        padding: 0;
        border-radius: 0;
        border: none;
    }

    nav ul.nav-active {
        right: 0;
    }

    nav li {
        margin: 20px 0;
    }

    nav a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Section */
    .server-logo {
        max-width: 100px;
        top: 10px;
        left: 10px;
    }

    .server-logo.static {
        max-width: 80px;
    }

    .main-title {
        font-size: 2.5rem;
        /* Smaller font on mobile */
        margin-top: 60px;
    }

    .presentation-text {
        font-size: 1.2rem;
        padding: 0 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    /* Page Containers */
    .page-container {
        padding: 20px;
        width: 95%;
        margin-top: 80px;
        padding-bottom: 40px;
        /* Add bottom padding for scroll */
    }

    .page-container h1 {
        /* Increased specificity */
        font-size: 2.5rem;
        /* Smaller headers */
        text-align: center;
    }

    .subtitle {
        text-align: center;
        font-size: 1.1rem;
        /* Slightly larger for readability */
    }

    /* Grids */
    .rules-grid,
    .shop-grid,
    .streamer-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    /* Modal */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
        max-height: 80vh;
    }

    .close-modal {
        right: 15px;
        top: 10px;
    }

    #modal-body h2 {
        font-size: 1.8rem;
    }

    /* Boutique Mobile */
    .auth-state {
        flex-direction: column;
        text-align: center;
    }

    .auth-bar {
        padding: 14px 16px;
    }

    .shop-filters {
        justify-content: center;
    }

    .filter-chip {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .shop-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-add-cart {
        justify-content: center;
    }

    .floating-cart {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .toast {
        min-width: auto;
        max-width: 90vw;
        right: 5%;
    }

    .toast-container {
        right: 10px;
        left: 10px;
    }

    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
    }
}