/* Base styles and halftone background grid */
html, body {
    background-color: #0d0d12 ;
    background-image:
            radial-gradient(rgba(255,255,255,0.1) 15%, transparent 16%),
            radial-gradient(rgba(255,255,255,0.1) 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-repeat: repeat;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Bold uppercase headings */
h1, h2, h3 {
    text-transform: uppercase;
    font-weight: 900;
}

/* Hard-bordered view counter badge */
.view-count-badge {
    background: #fff;
    border: 2px solid #000;
    padding: 2px 8px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-block;
    color: black;
    box-shadow: 2px 2px 0px #000;
}

a {
    text-decoration: none;
}

/* Main background image banner with crisp pixel rendering */
.BackgroundImage {
    background-color: #2196f3;
    background-image: url("../images/pixel_art2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 60px 0 100px 0;
    border-bottom: 6px solid #000;
    box-shadow: 0 8px 0px #000;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: background-image 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* Night Version (Version 1) - active at night or via toggle */
.theme-night .BackgroundImage,
body.theme-night .BackgroundImage,
.BackgroundImage.night-mode {
    background-color: #0b0c10;
    background-image: url("../images/pixel_art.png");
}

/* Day Version (Version 2) - active at day or via toggle */
.theme-day .BackgroundImage,
body.theme-day .BackgroundImage,
.BackgroundImage.day-mode {
    background-color: #2196f3;
    background-image: url("../images/pixel_art2.png");
}

/* Day/Night Toggle Button */
#dayNightToggle .bi-sun-fill {
    color: #e67e22 !important;
}
#dayNightToggle .bi-moon-stars-fill {
    color: #3f51b5 !important;
}
#dayNightToggle:hover {
    background-color: #ffeb3b;
}

/* Box container for the navbar */
.navbar {
    background: #fff;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0px #000;
    padding: 15px 25px;
    max-width: 600px;
    width: 90%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Pop-up effect on navbar hover */
.navbar:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #000;
}

/* Base style for navbar link items */
.NavBar {
    color: #fff ;
    font-weight: 900;
    text-transform: uppercase;
    border: 3px solid #000;
    padding: 6px 16px;
    background: #2196f3;
    box-shadow: 4px 4px 0px #000;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

/* Color swap on navbar item hover */
.NavBar:hover {
    background: #ffeb3b;
    color: #000 ;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* Navbar color variations */
.NavBar-login {
    background: #4caf50;
}

.NavBar-signup {
    background: #9e9e9e;
}

.bg-image-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.price-strikethrough {
    font-size: 1.1rem;
}

.filter-check-label {
    cursor: pointer;
    text-shadow: none;
}

/* User authorization layout container */
.comic-auth-box {
    background: #fff;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modifier classes for authentication container backgrounds */
.comic-auth-box.msg-yellow {
    background: #ffeb3b;
}

.comic-auth-box.msg-pink {
    background: #e91e63;
    color: #fff;
}

/* Badge layout for username */
.comic-username {
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    background: #ffeb3b;
    padding: 2px 6px;
    border: 2px solid #000;
}

/* Badge layout for user roles */
.comic-role {
    background: #e91e63;
    color: #fff;
    font-weight: bold;
    border: 2px solid #000;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Logout button styling and hover transition */
.comic-logout-btn {
    background: #ff5722;
    color: #fff ;
    font-weight: 900;
    text-transform: uppercase;
    border: 3px solid #000;
    padding: 5px 12px;
    box-shadow: 4px 4px 0px #000;
    text-decoration: none;
    margin-left: 10px;
    display: inline-block;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.comic-logout-btn:hover {
    background: #000;
    color: #fff ;
    box-shadow: 2px 2px 0px #000;
    transform: translate(2px, 2px);
}

/* Dropdown menu trigger button */
.comic-dropdown-btn {
    text-shadow: 4px 4px 0px #000;
    font-weight: 900;
    color: #fff ;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main dropdown menu wrapper */
.comic-dropdown-menu {
    background: #fff ;
    border: 4px solid #000 ;
    box-shadow: 8px 8px 0px #000 ;
    border-radius: 0 ;
    padding: 0 ;
}

/* Individual list item inside dropdown */
.comic-dropdown-item {
    font-weight: 900;
    text-transform: uppercase;
    color: #000 ;
    padding: 10px 20px ;
    border-bottom: 3px solid #000;
}

.comic-dropdown-item:last-child {
    border-bottom: none;
}

.comic-dropdown-item:hover {
    background: #ffeb3b ;
    color: #000 ;
}

.notif-dropdown-menu {
    width: 250px;
}

.notif-link {
    text-decoration: none;
    color: inherit;
}

/* Main promotional heading titles with double shadow */
.home-sale-title, .SaleBanner h1 {
    color: #fff ;
    font-size: 3rem;
    letter-spacing: 3px;
    text-shadow: 4px 4px 0px #000, 6px 6px 0px #dc3545;
    text-transform: uppercase;
    font-weight: 900;
}

/* Section titles for specific product categories */
.genre-title {
    color: #ffeb3b ;
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
    border-bottom: 4px solid #fff;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

/* General product grid item card containers */
.game-card, .home-sale-card {
    background: #ffffff ;
    border: 4px solid #000000;
    border-radius: 0;
    box-shadow: 8px 8px 0px #000000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: visible;
    will-change: transform;
    backface-visibility: hidden;
}

.store-game-item, #gamesGrid .game-item {
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
}

.game-card:hover, .home-sale-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #000000;
    z-index: 10;
}

.home-card-img-wrapper, .game-img-wrapper {
    border-bottom: 4px solid #000;
    position: relative;
    height: 220px;
    overflow: hidden;
}

.game-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.comic-card-title {
    color: #000 ;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.comic-price {
    font-weight: 900;
    font-size: 1.4rem;
    color: #4caf50;
    text-shadow: 1px 1px 0px #000;
}

/* Absolute rotated discount overlay label */
.discount-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #ffeb3b;
    color: #000;
    font-weight: 900;
    padding: 6px 12px;
    border: 3px solid #000;
    font-size: 1.2rem;
    box-shadow: 4px 4px 0px #000;
    z-index: 10;
    transform: rotate(-5deg);
}

.comic-badge-tag {
    background: #00bcd4 ;
    color: #000 ;
    border: 2px solid #000;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000;
    text-transform: uppercase;
}

.badge-priority {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #e91e63;
    color: #fff;
    border: 3px solid #000;
    font-weight: 900;
    padding: 4px 10px;
    box-shadow: 3px 3px 0px #000;
    z-index: 10;
    transform: rotate(5deg);
}

/* Side filter sidebar panel containing controls */
.filter-panel {
    background: #9c27b0;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    padding: 20px;
    margin-bottom: 40px;
}

.filter-label {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
    display: block;
    margin-bottom: 5px;
}

.filter-input, .filter-select {
    background-color: #fff ;
    border: 3px solid #000 ;
    color: #000 ;
    font-weight: 900;
    border-radius: 0 ;
    box-shadow: 4px 4px 0px #000;
}

.filter-input:focus, .filter-select:focus {
    box-shadow: 4px 4px 0px #ffeb3b;
    outline: none;
}

/* Block style checkbox styling */
.filter-check {
    border: 3px solid #000 ;
    background-color: #fff ;
    width: 24px;
    height: 24px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000;
    border-radius: 0 ;
}

.filter-check:checked {
    background-color: #ffeb3b ;
    border-color: #000 ;
}

/* Store primary call-to-action button */
.comic-btn-store {
    background: #ff5722 !important;
    color: #fff !important;
    font-weight: 900;
    text-transform: uppercase;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 10px 0;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.comic-btn-store:hover {
    background: #ffeb3b !important;
    color: #000 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    cursor: pointer;
}

/* Keep orange background when item is in cart (Bootstrap .active override), but allow hover to still show yellow */
.comic-btn-store.active,
.comic-btn-store:active {
    background: #ff5722 !important;
    color: #fff !important;
    border-color: #000 !important;
}

/* Hidden video background overlay showing on hover states */
.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.game-card:hover .game-video, .home-sale-card:hover .game-video {
    opacity: 1 ;
}

/* Management box settings for developer views */
.dev-panel {
    background: #4caf50;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    padding: 25px;
    color: #000;
}

.dev-title {
    color: #fff ;
    text-shadow: 3px 3px 0px #000;
    font-weight: 900;
    text-transform: uppercase;
}

/* Grid data overview tables layout */
.comic-table {
    background: #fff ;
    border: 4px solid #000 ;
    box-shadow: 8px 8px 0px #000;
    color: #000 ;
}

.comic-table th {
    background: #ffeb3b ;
    color: #000 ;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 4px solid #000 ;
    border-right: 2px solid #000;
}

.comic-table td {
    border: 2px solid #000 ;
    font-weight: bold;
    vertical-align: middle;
}

/* Controls for table entry modifications (Add, Edit, Delete) */
.btn-comic-add {
    background: #00bcd4;
    color: #000 ;
    font-weight: 900;
    text-transform: uppercase;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s ease;
}

.btn-comic-add:hover {
    background: #fff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.btn-comic-edit {
    background: #ffeb3b;
    color: #000 ;
    font-weight: 900;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.btn-comic-edit:hover {
    background: #000;
    color: #fff ;
}

.btn-comic-delete {
    background: #e91e63;
    color: #fff ;
    font-weight: 900;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.btn-comic-delete:hover {
    background: #000;
    color: #fff ;
}

/* Floating status panel positioned at the viewport corner */
.user-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: 3px solid #000;
    padding: 10px;
    box-shadow: 6px 6px 0px #000;
    z-index: 1000;
}

.hud-avatar {
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 50%;
    object-fit: cover;
}

.hud-username {
    font-weight: 900;
    background: #ffeb3b;
    padding: 0 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.hud-role {
    font-size: 0.7rem;
    color: #e91e63;
    font-weight: bold;
}

.hud-btn-bye {
    background: #ff5722;
    border: 2px solid #000;
    color: #fff;
    font-weight: 900;
    padding: 2px 8px;
    text-decoration: none;
    margin-left: 10px;
}

/* Main inner frame layout for reviews wrapper */
.comic-frame {
    border: 5px solid #fff;
    box-shadow: 12px 12px 0px var(--yellow);
    padding: 30px;
    background: var(--paper);
    position: relative;
}

.carousel-item img, .carousel-item video { height: 450px; object-fit: cover; width: 100%; border: 3px solid #fff; }

.price-tag { font-family: 'Bangers', sans-serif; font-size: 2.2rem; color: var(--green); text-shadow: 2px 2px 0px #000; letter-spacing: 1px; }
.sale-old { text-decoration: line-through; color: var(--blue); font-size: 1.2rem; font-family: 'Comic Neue', sans-serif; font-weight: 700; }

h1 { text-transform: uppercase; font-size: 3.4rem ; text-shadow: 4px 4px 0px var(--yellow); }

/* Standard custom submission buttons styling with press down effect */
.btn-comic {
    border: 4px solid #000 ;
    box-shadow: 6px 6px 0px #000 ;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #28a745;
    transition: all 0.1s;
}
.btn-comic:hover { transform: translate(-4px, -4px); box-shadow: 10px 10px 0px #000; filter: brightness(1.1); }
.btn-comic:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0px #000; }

/* Textarea wrapper components inside the rating module */
.rating-section {
    background: var(--paper);
    border: 5px solid #fff !important;
    box-shadow: 10px 10px 0px var(--blue);
    border-radius: 0 !important;
}
.rating-section h5 {
    font-size: 1.8rem;
    color: var(--yellow);
    text-shadow: 2px 2px 0px #000;
    transform: rotate(-1deg);
}
.rating-section textarea {
    background: #000;
    color: var(--green);
    font-family: 'Comic Neue', monospace;
    font-weight: 700;
    border-radius: 0;
}
.rating-section textarea::placeholder { color: #2f7a4f; }
.btn-comic.bg-danger { background-color: var(--red) !important; }

/* Rotated banner for review list sections */
.reviews-list h1 {
    transform: rotate(-2deg);
    display: inline-block;
    background: var(--red);
    padding: 8px 20px;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0px #000;
}

/* Review layout card with interactive slight rotation rules */
.comic-card {
    background: var(--paper);
    border: 4px solid #fff;
    box-shadow: 10px 10px 0px #000;
    position: relative;
    border-radius: 18px;
    transition: transform 0.15s ease;
}
.comic-card:nth-child(odd) { transform: rotate(-0.6deg); }
.comic-card:nth-child(even) { transform: rotate(0.6deg); }
.comic-card:hover { transform: rotate(0deg) translate(-2px,-2px); box-shadow: 13px 13px 0px #000; }

/* Speech bubble pointer elements (after/before vectors) */
.comic-card::after {
    content: "";
    position: absolute;
    left: 40px;
    bottom: -22px;
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 22px solid transparent;
    border-top: 26px solid #fff;
}
.comic-card::before {
    content: "";
    position: absolute;
    left: 44px;
    bottom: -15px;
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 17px solid transparent;
    border-top: 20px solid var(--paper);
    z-index: 1;
}

.comic-card .card-body { padding: 1.5rem; }

.reviewer-name {
    font-family: 'Bangers', sans-serif;
    font-size: 1.9rem;
    letter-spacing: 1px;
    color: var(--yellow);
    text-shadow: 2px 2px 0px #000;
}

/* Stamped status elements for reviewer choices */
.verdict-stamp {
    font-family: 'Bangers', sans-serif;
    font-size: 1.4rem;
    padding: 4px 14px;
    border: 3px solid #000;
    border-radius: 6px;
    transform: rotate(-8deg);
    display: inline-block;
    box-shadow: 3px 3px 0px #000;
}
.verdict-stamp.positive { background: var(--green); color: #063d1f; }
.verdict-stamp.negative { background: var(--red); color: #3d0505; }

/* Terminal code style typography for specific comment contents */
.review-font {
    font-family: 'Comic Neue', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: #00ff88;
    background: #000;
    border: 3px solid #fff;
    border-radius: 6px;
    padding: 1rem;
    margin: 0;
}

/* Halftone overlay pattern situated inside card corners */
.comic-card { overflow: hidden; }
.comic-card .halftone-corner {
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background-image: radial-gradient(var(--yellow) 3px, transparent 3px);
    background-size: 10px 10px;
    opacity: 0.5;
    transform: rotate(20deg);
    pointer-events: none;
}

/* ---- Wishlist-Feature ---- */
/* (Fix: fehlender Punkt vor der Klasse war der Grund, warum die
   Herz-Buttons vorher nicht gestylt wurden) */
.wishlist-btn {
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.wishlist-btn:hover {
    transform: scale(1.15);
}

.wishlist-btn.active {
    background: var(--red, #ff3b30);
    border-color: var(--red, #ff3b30);
}

.wishlist-btn i {
    pointer-events: none;
}

/* Kleine Variante: Overlay oben rechts auf Game-Cards (Store/Home) */
.wishlist-btn.card-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

/* Große Variante: Game-Detail Seite, neben BUY NOW */
.wishlist-btn.large {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
    border-width: 3px;
    flex-shrink: 0;
}

/* leere Wishlist Nachricht */
.msg-heart {
    background: #222;
    border: 3px solid #fff;
    color: #fff;
}

/* "auf der Wishlist seit ..." */
.wishlist-added-date {
    font-size: 0.85rem;
    color: #ccc;
}





/* big round avatar frame for user profile */
.profile-avatar-frame {
    width: 160px;
    height: 160px;
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 8px 8px 0px var(--yellow, #ffe14d);
    object-fit: cover;
    background: #000;
}

/* role badge for user profile */
.comic-role-badge {
    background: var(--blue, #3aa0ff);
    color: #000;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    padding: 4px 14px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
    transform: rotate(-2deg);
}

.friend-role-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
}

/* E-Mail Hover Reveal  */
.email-reveal-wrap {
    display: inline-flex;
    cursor: pointer;
    font-family: 'Comic Neue', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.email-visible {
    color: var(--yellow, #ffe14d);
}

.email-blurred {
    color: #ffe14d;
    filter: blur(5px);
    user-select: none;
    transition: filter 0.25s ease;
}

.email-reveal-wrap:hover .email-blurred {
    filter: blur(0);
}

.email-hint {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* friendship sticker */
.friend-stamp {
    font-family: 'Bangers', sans-serif;
    font-size: 1.2rem;
    padding: 6px 16px;
    border: 3px solid #000;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
}
.friend-stamp.pending { background: var(--yellow, #ffe14d); color: #3d2e00; }
.friend-stamp.friends { background: var(--green, #33d17a); color: #063d1f; }

/* single user cards */
.friend-card {
    background: var(--paper, #161616);
    border: 4px solid #fff;
    box-shadow: 8px 8px 0px #000;
    border-radius: 14px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.friend-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #000;
}
.friend-card .halftone-corner {
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    background-image: radial-gradient(var(--yellow, #ffe14d) 3px, transparent 3px);
    background-size: 10px 10px;
    opacity: 0.5;
    transform: rotate(20deg);
    pointer-events: none;
}
.friend-avatar {
    width: 110px;
    height: 110px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 5px 5px 0px #000;
    margin-bottom: 15px;
}
.friend-name {
    font-family: 'Bangers', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
}
.profile-comment-card {
    background: var(--paper, #161616);
    border: 3px solid #fff;
    border-radius: 12px;
    box-shadow: 6px 6px 0px #000;
    padding: 16px 18px;
    position: relative;
}

.profile-comment-avatar {
    width: 36px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.profile-comment-author {
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    font-size: 1.2rem;
    color: var(--yellow, #ffe14d);
    text-decoration: none;
}

.profile-comment-author:hover {
    color: #fff;
}

.profile-comment-text {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-comment-date {
    font-size: 0.75rem;
    color: #999;
}

.profile-comment-delete-btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.85rem;
}

.BackgroundImage,
.bg-image-wrap {
    overflow: visible !important;
}

.comic-dropdown-menu {
    z-index: 3000 !important;
}

.dropdown {
    position: relative;
    z-index: 2000;
}

.comic-dropdown-btn {
    transition: transform 0.15s ease, color 0.15s ease;
}
.comic-dropdown-btn:hover,
.comic-dropdown-btn:focus {
    transform: rotate(-2deg) scale(1.05);
    color: var(--red, #ff3b30) !important;
}
.comic-dropdown-btn[aria-expanded="true"] {
    transform: rotate(-2deg) scale(1.05);
}

.comic-dropdown-menu {
    animation: comic-pop-in 0.18s ease-out;
    border: 3px solid #000 !important;
    box-shadow: 8px 8px 0px #000 !important;
}
@keyframes comic-pop-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.comic-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.comic-dropdown-item:hover,
.comic-dropdown-item:focus {
    transform: translateX(4px) scale(1.03);
    background-color: var(--yellow, #ffe14d) !important;
    color: #000 !important;
}
.comic-dropdown-item i {
    font-size: 1.05rem;
}



body.bundle-dashboard {
    --ink: #0d0d0d;
    --paper: #161616;
    --yellow: #ffe14d;
    --red: #ff3b30;
    --blue: #3aa0ff;
    --green: #33d17a;

    background-color: var(--ink) !important;
    background-image:
            radial-gradient(
                    rgba(255, 255, 255, 0.06) 1.5px,
                    transparent 1.5px
            ) !important;
    background-size: 14px 14px !important;

    color: #fff !important;
    font-family: 'Comic Neue', sans-serif !important;
}

/* Typography */

body.bundle-dashboard h1,
body.bundle-dashboard h2,
body.bundle-dashboard h3,
body.bundle-dashboard h4,
body.bundle-dashboard h5,
body.bundle-dashboard .comic-font {
    font-family: 'Bangers', 'Comic Neue', sans-serif !important;
    letter-spacing: 1px;
}

body.bundle-dashboard h1,
body.bundle-dashboard h2 {
    text-transform: uppercase;
}

/* Page Header */

body.bundle-dashboard .bundle-header {
    border-bottom: 3px solid #000;
    padding-bottom: 18px;
    margin-bottom: 30px;
}

body.bundle-dashboard .bundle-header h2 {
    color: var(--yellow) !important;
    font-size: 2.45rem;
    margin: 0;
}

body.bundle-dashboard .bundle-header p {
    color: #a7a7a7 !important;
}

/* Main Panels */

body.bundle-dashboard .dev-panel {
    background: var(--paper) !important;
    border: 4px solid #000 !important;
    box-shadow: 10px 10px 0 #000 !important;
    padding: 30px !important;
    color: #fff !important;
    margin-bottom: 30px;
    position: relative;
}

body.bundle-dashboard .dev-panel h4 {
    color: var(--yellow) !important;
    font-size: 2rem;
}

/* Forms */

body.bundle-dashboard label {
    color: #bbb !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.bundle-dashboard .form-control,
body.bundle-dashboard .form-select,
body.bundle-dashboard textarea {
    border: 3px solid #000 !important;
    border-radius: 0 !important;
    font-weight: 700;
    background: #222 !important;
    color: #fff !important;
}

body.bundle-dashboard .form-control::placeholder,
body.bundle-dashboard textarea::placeholder {
    color: #888 !important;
}

body.bundle-dashboard .form-control:focus,
body.bundle-dashboard .form-select:focus,
body.bundle-dashboard textarea:focus {
    background: #222 !important;
    color: #fff !important;
    border-color: var(--yellow) !important;
    box-shadow: 3px 3px 0 var(--yellow) !important;
}

/* Sale / Info Boxes */

body.bundle-dashboard .sale-box {
    background: #202020 !important;
    border: 2px solid #000 !important;
    padding: 15px;
    color: #fff;
}

/* Buttons */

body.bundle-dashboard .btn-comic-submit {
    background: var(--green) !important;
    border: 4px solid #000 !important;
    color: #000 !important;
    font-family: 'Bangers', sans-serif !important;
    letter-spacing: 1px;
    font-size: 1.4rem;
    box-shadow: 6px 6px 0 #000 !important;
    transition: transform 0.1s ease;
}

body.bundle-dashboard .btn-comic-submit:hover {
    background: var(--green) !important;
    color: #000 !important;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 #000 !important;
}

body.bundle-dashboard .edit-btn {
    background: var(--yellow) !important;
    color: #000 !important;
    border: 3px solid #000 !important;
    font-weight: 900;
    box-shadow: 3px 3px 0 #000 !important;
}

body.bundle-dashboard .edit-btn:hover {
    background: var(--yellow) !important;
    color: #000 !important;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #000 !important;
}

body.bundle-dashboard .comic-danger-btn {
    background: var(--red) !important;
    color: #fff !important;
    border: 4px solid #000 !important;
    box-shadow: 6px 6px 0 #000 !important;
    font-family: 'Bangers', sans-serif !important;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

body.bundle-dashboard .comic-danger-btn:hover {
    background: var(--red) !important;
    color: #fff !important;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 #000 !important;
}

/* Game / Bundle Items */

body.bundle-dashboard .game-item {
    background: var(--paper) !important;
    border: 3px solid #000 !important;
    box-shadow: 6px 6px 0 #000 !important;
    color: #fff !important;
    padding: 18px;
    margin-bottom: 20px;
}

body.bundle-dashboard .game-item h5 {
    font-family: 'Bangers', sans-serif !important;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    color: #fff !important;
}

/* Badges */

body.bundle-dashboard .view-count-badge {
    background: #000 !important;
    color: var(--yellow) !important;
    padding: 3px 8px;
    border: 1px solid var(--yellow);
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

body.bundle-dashboard .bundle-role-badge {
    border: 2px solid #000 !important;
    font-weight: 900;
    padding: 4px 9px;
}

body.bundle-dashboard .bundle-owner-badge {
    background: var(--red) !important;
    color: #fff !important;
}

body.bundle-dashboard .bundle-manager-badge {
    background: var(--blue) !important;
    color: #000 !important;
}

body.bundle-dashboard .bundle-contributor-badge {
    background: var(--yellow) !important;
    color: #000 !important;
}

body.bundle-dashboard .bundle-published-badge {
    background: var(--green) !important;
    color: #000 !important;
}

body.bundle-dashboard .bundle-draft-badge {
    background: var(--yellow) !important;
    color: #000 !important;
}

/* Bundle Cover */

body.bundle-dashboard .bundle-cover,
body.bundle-dashboard .bundle-cover-small {
    width: 100%;
    object-fit: cover;
    display: block;
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
}

body.bundle-dashboard .bundle-cover {
    max-height: 420px;
}

body.bundle-dashboard .bundle-cover-small {
    height: 145px;
}

body.bundle-dashboard .bundle-empty-image {
    width: 100%;
    height: 145px;
    background: #252525 !important;
    color: #888 !important;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Game Thumbnail */

body.bundle-dashboard .thumb-frame {
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    width: 90px;
    height: 65px;
    object-fit: cover;
}

/* Bundle Game Cards */

body.bundle-dashboard .bundle-game-card {
    background: var(--paper);
    border: 3px solid #000;
    box-shadow: 6px 6px 0 #000;
    padding: 15px;
    min-height: 100px;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

body.bundle-dashboard .bundle-game-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #000;
}

body.bundle-dashboard .bundle-game-image {
    width: 85px;
    height: 65px;
    object-fit: cover;
    border: 3px solid #000;
    flex-shrink: 0;
}

/* Bundle Price */

body.bundle-dashboard .bundle-price-panel {
    position: sticky;
    top: 20px;
}

body.bundle-dashboard .bundle-stat-box {
    background: #202020;
    border: 2px solid #000;
    padding: 12px;
    font-family: 'Bangers', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

body.bundle-dashboard .bundle-stat-box small {
    display: block;
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
}

/* Responsive */

@media (max-width: 768px) {
    body.bundle-dashboard .bundle-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }

    body.bundle-dashboard .bundle-header h2 {
        font-size: 2rem;
    }

    body.bundle-dashboard .dev-panel {
        padding: 20px !important;
    }

    body.bundle-dashboard .bundle-price-panel {
        position: static;
    }
}

/* ============================================================
   PROFILE BADGES SYSTEM
   ============================================================ */

/* ---- Featured Badge Ribbon ---- */
.featured-badge-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bangers', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    padding: 6px 20px 6px 14px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    position: relative;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    /* angled right edge ribbon cut */
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    padding-right: 28px;
}
.featured-badge-ribbon::before {
    content: "★ FEATURED";
    position: absolute;
    top: -14px;
    left: 10px;
    font-family: 'Bangers', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
    color: #000;
    background: #fff;
    border: 2px solid #000;
    padding: 1px 6px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0px #000;
}
.featured-badge-ribbon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}
.featured-badge-ribbon i {
    font-size: 1.4rem;
}

/* ---- Tier glow rings around featured ribbon ---- */
.tier-legendary .featured-badge-ribbon  { animation: badge-pulse-legendary 2.4s ease-in-out infinite; }
.tier-diamond  .featured-badge-ribbon  { animation: badge-pulse-diamond  2.8s ease-in-out infinite; }
.tier-gold     .featured-badge-ribbon  { animation: badge-pulse-gold     3s   ease-in-out infinite; }
.tier-special  .featured-badge-ribbon  { animation: badge-pulse-special  2.5s ease-in-out infinite; }

@keyframes badge-pulse-legendary {
    0%, 100% { box-shadow: 4px 4px 0px #000, 0 0 0 0 rgba(255,215,0,0); }
    50%       { box-shadow: 4px 4px 0px #000, 0 0 18px 6px rgba(255,215,0,0.55); }
}
@keyframes badge-pulse-diamond {
    0%, 100% { box-shadow: 4px 4px 0px #000, 0 0 0 0 rgba(185,115,255,0); }
    50%       { box-shadow: 4px 4px 0px #000, 0 0 18px 6px rgba(185,115,255,0.5); }
}
@keyframes badge-pulse-gold {
    0%, 100% { box-shadow: 4px 4px 0px #000, 0 0 0 0 rgba(51,209,122,0); }
    50%       { box-shadow: 4px 4px 0px #000, 0 0 14px 4px rgba(51,209,122,0.45); }
}
@keyframes badge-pulse-special {
    0%, 100% { box-shadow: 4px 4px 0px #000, 0 0 0 0 rgba(236,55,80,0); }
    50%       { box-shadow: 4px 4px 0px #000, 0 0 14px 5px rgba(236,55,80,0.5); }
}

/* ---- Badge Grid (unlocked badges section) ---- */
.user-badges-section {
    margin: 22px 0 10px;
}

.badges-heading {
    font-family: 'Bangers', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badges-heading::before,
.badges-heading::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #333;
}

.badge-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ---- Individual Badge Chip ---- */
.badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bangers', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    padding: 5px 14px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    cursor: default;
    user-select: none;
    white-space: nowrap;
}
.badge-chip i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Hoverable (own profile picker mode) */
.badge-chip.badge-pickable {
    cursor: pointer;
}
.badge-chip.badge-pickable:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    filter: brightness(1.1);
}
.badge-chip.badge-pickable:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
}

/* Currently featured star marker */
.badge-chip.is-featured {
    outline: 3px solid #fff;
    outline-offset: 2px;
}
.badge-chip .featured-star {
    font-size: 0.75rem;
    position: absolute;
    top: -8px;
    right: -6px;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 0px #000;
    pointer-events: none;
}

/* Tier shimmer stripes */
.badge-chip.tier-legendary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: badge-shimmer 2s linear infinite;
    pointer-events: none;
}
.badge-chip.tier-diamond::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: badge-shimmer 2.5s linear infinite;
    pointer-events: none;
}
@keyframes badge-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Badge Tooltip ---- */
.badge-chip-wrap {
    position: relative;
    display: inline-block;
}
.badge-chip-wrap .badge-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #111;
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 4px 4px 0px #000;
    padding: 8px 14px;
    width: max-content;
    max-width: 220px;
    text-align: center;
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 9000;
    white-space: normal;
}
.badge-chip-wrap .badge-tooltip strong {
    display: block;
    font-family: 'Bangers', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--yellow, #ffe14d);
    margin-bottom: 2px;
}
.badge-chip-wrap .badge-tooltip .tooltip-date {
    font-size: 0.72rem;
    color: #888;
    margin-top: 3px;
}
/* tooltip pointer arrow */
.badge-chip-wrap .badge-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}
.badge-chip-wrap:hover .badge-tooltip,
.badge-chip-wrap:focus-within .badge-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Pick-hint label under grid (own profile only) ---- */
.badge-pick-hint {
    font-size: 0.72rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
}

/* ---- "No badges" placeholder ---- */
.no-badges-placeholder {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
    padding: 12px 20px;
    border: 2px dashed #333;
}

/* ---- "All Badges" Modal styling ---- */
.badge-modal-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bangers', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    color: #000;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.1s;
}
.badge-modal-chip:not(.locked):hover {
    transform: translateY(-1px);
    box-shadow: 4px 4px 0px #000;
}
.badge-modal-chip .badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.15);
    border: 2px solid rgba(0,0,0,0.25);
    flex-shrink: 0;
    font-size: 1.3rem;
}
.badge-modal-chip.locked {
    filter: grayscale(1) opacity(0.4);
    cursor: not-allowed;
    box-shadow: 2px 2px 0px #000;
}
.badge-modal-chip.locked:hover { transform: none; box-shadow: 2px 2px 0px #000; }
.badge-modal-chip .badge-modal-desc {
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(0,0,0,0.7);
    display: block;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 1px;
}
.badge-modal-chip .badge-text-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}
.badge-modal-chip .badge-name {
    line-height: 1.1;
}
.badge-modal-chip .badge-tier-label {
    font-size: 0.72rem;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.4);
    color: #000;
    background: rgba(0,0,0,0.18);
}
/* tier colour overrides */
.badge-tier-label[data-tier="legendary"] { background: #7c3aed; color: #fff; border-color: #4c1d95; }
.badge-tier-label[data-tier="diamond"]   { background: #06b6d4; color: #fff; border-color: #0e7490; }
.badge-tier-label[data-tier="gold"]      { background: #d97706; color: #fff; border-color: #92400e; }
.badge-tier-label[data-tier="silver"]    { background: #6b7280; color: #fff; border-color: #374151; }
.badge-tier-label[data-tier="bronze"]    { background: #92400e; color: #fff; border-color: #451a03; }
.badge-tier-label[data-tier="special"]   { background: #db2777; color: #fff; border-color: #831843; }
.badge-modal-chip .badge-check {
    color: #000;
    font-size: 1.15rem;
    flex-shrink: 0;
    opacity: 0.8;
}
#allBadgesModal .modal-content {
    background: var(--paper, #161616);
    border: 4px solid #fff;
    box-shadow: 10px 10px 0px #000;
    border-radius: 0;
    color: #fff;
}
#allBadgesModal .modal-header {
    border-bottom: 3px solid #fff;
    background: var(--yellow, #ffe14d);
    color: #000;
    border-radius: 0;
}
#allBadgesModal .modal-title {
    font-family: 'Bangers', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #000;
}
#allBadgesModal .modal-footer {
    border-top: 3px solid #333;
}
#allBadgesModal .btn-close {
    filter: invert(0);
}

/* ---- Community Card Micro-Badge ---- */
.friend-card-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Bangers', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    padding: 2px 9px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.friend-card-featured-badge i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- Comment Author Micro-Badge ---- */
.comment-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Bangers', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #000;
    padding: 1px 7px;
    border: 2px solid #000;
    box-shadow: 1px 1px 0px #000;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}
.comment-author-badge i {
    font-size: 0.72rem;
}

/* ---- Badge count bubble on avatar ---- */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}
.profile-avatar-badge-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: var(--yellow, #ffe14d);
    color: #000;
    font-family: 'Bangers', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    padding: 1px 6px;
    pointer-events: none;
}

/* ---- Pop-in animation for badge chips ---- */
@keyframes badge-pop-in {
    from { opacity: 0; transform: scale(0.7) rotate(-4deg); }
    to   { opacity: 1; transform: scale(1)   rotate(0deg);  }
}
.badge-chip-wrap {
    animation: badge-pop-in 0.22s ease-out both;
}
/* stagger via nth-child up to 10 */
.badge-chip-wrap:nth-child(1)  { animation-delay: 0.03s; }
.badge-chip-wrap:nth-child(2)  { animation-delay: 0.06s; }
.badge-chip-wrap:nth-child(3)  { animation-delay: 0.09s; }
.badge-chip-wrap:nth-child(4)  { animation-delay: 0.12s; }
.badge-chip-wrap:nth-child(5)  { animation-delay: 0.15s; }
.badge-chip-wrap:nth-child(6)  { animation-delay: 0.18s; }
.badge-chip-wrap:nth-child(7)  { animation-delay: 0.21s; }
.badge-chip-wrap:nth-child(8)  { animation-delay: 0.24s; }
.badge-chip-wrap:nth-child(9)  { animation-delay: 0.27s; }
.badge-chip-wrap:nth-child(10) { animation-delay: 0.30s; }


/* ============================================================
   MESSAGES PAGE
   the whole inbox / chat thread experience
   ============================================================ */

/* ---- Layout ---- */

.messages-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ---- Sidebar ---- */

.conversations-sidebar {
    background: var(--paper, #161616);
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    padding: 20px;
}

.sidebar-header h2 {
    font-family: 'Bangers', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--yellow, #ffe14d);
    text-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
    margin-bottom: 0;
}

/* search box to start a new chat */
.start-chat-form .form-control {
    background: #000;
    color: var(--green, #33d17a);
    border: 3px solid #fff;
    border-radius: 0;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    box-shadow: 3px 3px 0px #000;
}

.start-chat-form .form-control::placeholder {
    color: #444;
}

.start-chat-form .form-control:focus {
    background: #000;
    color: var(--green, #33d17a);
    border-color: var(--yellow, #ffe14d);
    box-shadow: 3px 3px 0px var(--yellow, #ffe14d);
    outline: none;
}

.start-chat-form .btn {
    background: var(--blue, #3aa0ff);
    color: #000;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    font-size: 1rem;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.start-chat-form .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: var(--yellow, #ffe14d);
    color: #000;
}

/* individual conversation row */
.conversation-item {
    background: var(--paper, #161616);
    border: 3px solid #333 !important;
    border-radius: 0 !important;
    padding: 12px 14px !important;
    margin-bottom: 6px;
    color: #fff !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    display: block;
    box-shadow: 4px 4px 0px #000;
    text-decoration: none;
}

.conversation-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
    background: #252525 !important;
    color: #fff !important;
}

/* active conversation has a yellow left stripe */
.conversation-item.active {
    border-left: 5px solid var(--yellow, #ffe14d) !important;
    background: #222 !important;
    color: #fff !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.conversation-avatar {
    border: 3px solid #fff;
    box-shadow: 3px 3px 0px #000;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-username {
    font-family: 'Bangers', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.conversation-preview {
    color: #888;
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 0.7rem;
    color: #666;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
}

/* no conversations at all */
.no-conversations-placeholder {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
    padding: 20px;
    border: 2px dashed #333;
    text-align: center;
    margin-top: 10px;
}

/* ---- Active Chat Thread Area ---- */

.chat-thread-box {
    background: var(--paper, #161616);
    border: 4px solid #000 !important;
    box-shadow: 8px 8px 0px #000;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

/* ---- Thread Header ---- */

.thread-header {
    padding: 16px 20px;
    border-bottom: 3px solid #000 !important;
    background: #111;
}

.thread-header .rounded-circle {
    border: 3px solid #fff;
    box-shadow: 3px 3px 0px #000;
}

.thread-header a.fw-bold {
    font-family: 'Bangers', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--yellow, #ffe14d);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    text-decoration: none;
}

.thread-header a.fw-bold:hover {
    color: #fff;
}

/* DEV badge inside the thread header */
.thread-header .badge.bg-danger {
    background: var(--red, #ff3b30) !important;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 0 !important;
    padding: 4px 10px !important;
}

/* View Profile button in thread header */
.thread-actions .btn-outline-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 0;
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 3px 3px 0px #000;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease, color 0.1s ease;
}

.thread-actions .btn-outline-secondary:hover {
    background: var(--yellow, #ffe14d);
    color: #000;
    border-color: #000;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
}

/* ---- Game Context Banner ---- */

.game-context-banner {
    background: #0d0d0d !important;
    border: 3px solid var(--blue, #3aa0ff) !important;
    border-radius: 0 !important;
    box-shadow: 5px 5px 0px #000;
    margin: 12px 16px;
    padding: 10px 16px !important;
    color: #fff !important;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    position: relative;
}

/* little comic tag tab on the left side of the banner */
.game-context-banner::before {
    content: "GAME";
    position: absolute;
    left: -3px;
    top: -14px;
    background: var(--blue, #3aa0ff);
    color: #000;
    font-family: 'Bangers', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 1px 8px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.game-context-banner a {
    color: var(--blue, #3aa0ff);
    font-family: 'Bangers', sans-serif;
    letter-spacing: 1px;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
}

.game-context-banner a:hover {
    color: #fff;
}

/* ---- Message Stream ---- */

.messages-stream {
    padding: 16px 20px;
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    /* custom scrollbar to fit the dark theme */
    scrollbar-width: thin;
    scrollbar-color: #333 #0d0d0d;
}

.messages-stream::-webkit-scrollbar {
    width: 6px;
}

.messages-stream::-webkit-scrollbar-track {
    background: #0d0d0d;
}

.messages-stream::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #000;
}

/* ---- Message Bubbles ---- */

.message-row {
    margin-bottom: 16px;
}

.message-bubble {
    position: relative;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
    border-radius: 0 !important;
    max-width: 75%;
    padding: 10px 14px !important;
}

/* sent by current user: right aligned, blue ink look */
.message-row.justify-content-end .message-bubble {
    background: var(--blue, #3aa0ff) !important;
    color: #000 !important;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

/* speech bubble tail pointing right */
.message-row.justify-content-end .message-bubble::after {
    content: "";
    position: absolute;
    right: -14px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 14px solid #000;
}

.message-row.justify-content-end .message-bubble::before {
    content: "";
    position: absolute;
    right: -10px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 11px solid var(--blue, #3aa0ff);
    z-index: 1;
}

/* received from partner: left aligned, white paper look */
.message-row.justify-content-start .message-bubble {
    background: #f0f0f0 !important;
    color: #000 !important;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}

/* speech bubble tail pointing left */
.message-row.justify-content-start .message-bubble::after {
    content: "";
    position: absolute;
    left: -14px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 14px solid #000;
}

.message-row.justify-content-start .message-bubble::before {
    content: "";
    position: absolute;
    left: -10px;
    bottom: 12px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 3px solid transparent;
    border-right: 11px solid #f0f0f0;
    z-index: 1;
}

/* message sender name */
.message-sender {
    font-family: 'Bangers', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* timestamp and status */
.message-time,
.message-status {
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.7;
}

/* game inquiry tag inside message bubble */
.message-game-tag {
    background: #000 !important;
    color: var(--yellow, #ffe14d) !important;
    font-family: 'Bangers', sans-serif !important;
    letter-spacing: 1px;
    font-size: 0.7rem !important;
    border-radius: 0 !important;
    padding: 2px 8px !important;
    border: 1px solid var(--yellow, #ffe14d);
    text-transform: uppercase;
}

/* trash delete button inside bubble */
.message-footer .btn-link {
    opacity: 0.5;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.message-footer .btn-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* no messages in this thread yet */
.no-messages-placeholder {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    padding: 40px 20px;
    border: 2px dashed #333;
    text-align: center;
    margin: 20px 0;
}

/* ---- Compose Area ---- */

.message-compose-form {
    padding: 14px 20px 18px;
    border-top: 3px solid #000 !important;
    background: #111;
}

.message-compose-form textarea {
    background: #000;
    color: var(--green, #33d17a);
    border: 3px solid #fff;
    border-radius: 0;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0px #000;
    resize: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.message-compose-form textarea::placeholder {
    color: #2f7a4f;
}

.message-compose-form textarea:focus {
    background: #000;
    color: var(--green, #33d17a);
    border-color: var(--yellow, #ffe14d);
    box-shadow: 3px 3px 0px var(--yellow, #ffe14d);
    outline: none;
}

/* the SEND button */
.message-compose-form .btn-primary {
    background: var(--green, #33d17a) !important;
    border: 4px solid #000 !important;
    border-radius: 0 !important;
    color: #000 !important;
    font-family: 'Bangers', sans-serif !important;
    font-size: 1.2rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 5px 5px 0px #000;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    white-space: nowrap;
    align-self: flex-end;
    padding: 6px 22px !important;
}

.message-compose-form .btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
    background: var(--yellow, #ffe14d) !important;
    color: #000 !important;
}

.message-compose-form .btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* ---- Empty State (No Active Conversation Selected) ---- */

.no-active-chat {
    background: var(--paper, #161616);
    border: 4px solid #000 !important;
    box-shadow: 8px 8px 0px #000;
    border-radius: 0 !important;
    padding: 60px 40px !important;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.no-active-chat h3 {
    font-family: 'Bangers', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 2px;
    color: var(--yellow, #ffe14d);
    text-shadow: 3px 3px 0px #000;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.no-active-chat p {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
    color: #666;
    font-size: 1rem;
    max-width: 320px;
    border: 2px dashed #333;
    padding: 14px;
}

/* ---- Flash Messages ---- */

.messages-flash-container .alert {
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 4px 4px 0px #000;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
}

/* ---- Message Buttons on Profile, Community, Game Detail ---- */

/* MESSAGE button on profile page: blue, comic push style */
.btn-comic-message {
    background: var(--blue, #3aa0ff);
    color: #000;
    font-family: 'Bangers', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 4px solid #000;
    box-shadow: 5px 5px 0px #000;
    padding: 8px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-comic-message:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0px #000;
    background: var(--yellow, #ffe14d);
    color: #000;
}

.btn-comic-message:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* MESSAGE in community card: placed cleanly inside the card (: */
.friend-card-actions {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.friend-card-message-btn {
    font-size: 0.95rem;
    padding: 6px 18px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    text-decoration: none;
    color: #000 !important;
}

.friend-card-message-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: var(--yellow, #ffe14d);
    color: #000 !important;
    border-color: #000;
}

.friend-card-link {
    width: 100%;
    color: #fff;
}

.friend-card-link:hover .friend-name {
    color: var(--yellow, #ffe14d);
}

/* MESSAGE DEV button on game detail page: cyan outline style */
.btn-outline-info.btn-comic {
    border: 3px solid #000 !important;
    background: #00bcd4 !important;
    color: #000 !important;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn-outline-info.btn-comic:hover {
    background: var(--yellow, #ffe14d) !important;
    color: #000 !important;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

/* ---- Responsive stacking for small screens ---- */

@media (max-width: 768px) {
    .chat-thread-box {
        min-height: 400px;
    }

    .messages-stream {
        max-height: 320px !important;
    }

    .message-bubble {
        max-width: 90%;
    }

    .no-active-chat {
        padding: 30px 20px !important;
    }

    .conversations-sidebar {
        margin-bottom: 20px;
    }
}


/* ============================================================
   HUD ICON BUTTONS & NOTIFICATIONS REDESIGN
   ============================================================ */

/* Comic icon buttons inside the HUD */
.hud-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #000;
    color: #000 !important;
    font-size: 1.15rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.hud-icon-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000;
    background: var(--yellow, #ffe14d);
    color: #000 !important;
}

.hud-icon-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
}

/* Badge counter pill positioned on top-right of HUD icons */
.hud-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red, #ff3b30);
    color: #fff;
    font-family: 'Bangers', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    padding: 0 5px;
    min-width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}

/* Comic-book notifications dropdown menu */
.comic-notif-menu {
    width: 340px !important;
    max-width: 90vw;
    background: var(--paper, #161616) !important;
    border: 4px solid #000 !important;
    box-shadow: 8px 8px 0px #000 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    z-index: 3500 !important;
    margin-top: 8px !important;
}

.comic-notif-header {
    background: var(--yellow, #ffe14d);
    border-bottom: 3px solid #000;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comic-notif-title {
    font-family: 'Bangers', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.comic-notif-badge {
    background: var(--red, #ff3b30);
    color: #fff;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    font-family: 'Bangers', sans-serif;
    font-size: 0.75rem;
    padding: 1px 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comic-notif-list {
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 #161616;
}

.comic-notif-list::-webkit-scrollbar {
    width: 6px;
}
.comic-notif-list::-webkit-scrollbar-track {
    background: #161616;
}
.comic-notif-list::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #000;
}

.comic-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 2px solid #282828;
    background: #161616;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.12s ease, transform 0.12s ease;
    position: relative;
}

.comic-notif-item:hover {
    background: #252525;
    color: #fff !important;
    transform: translateX(4px);
}

.comic-notif-item.is-unread {
    background: #1f1f18;
    border-left: 5px solid var(--yellow, #ffe14d);
}

.comic-notif-item.is-unread .comic-notif-text {
    color: #fff;
    font-weight: 700;
}

.comic-notif-icon-box {
    width: 32px;
    height: 32px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    background: #fff;
    color: #000;
}

.comic-notif-icon-box.type-direct_message {
    background: var(--blue, #3aa0ff);
    color: #000;
}

.comic-notif-icon-box.type-friend_request {
    background: var(--green, #33d17a);
    color: #000;
}

.comic-notif-icon-box.type-update {
    background: var(--yellow, #ffe14d);
    color: #000;
}

.comic-notif-content {
    flex-grow: 1;
    min-width: 0;
}

.comic-notif-text {
    font-family: 'Comic Neue', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #ddd;
    word-break: break-word;
}

.comic-notif-time {
    display: block;
    font-size: 0.72rem;
    color: #888;
    margin-top: 3px;
    font-family: 'Comic Neue', sans-serif;
    font-weight: 700;
}

.comic-notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: #777;
    font-family: 'Bangers', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.comic-notif-footer {
    border-top: 3px solid #000;
    background: #0d0d0d;
    padding: 8px 14px;
    text-align: center;
}

.comic-notif-updates-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Bangers', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--yellow, #ffe14d);
    text-decoration: none;
    transition: transform 0.1s ease, color 0.1s ease;
}

.comic-notif-updates-link:hover {
    color: #fff;
    transform: scale(1.04);
}

/* ============================================================
   COMIC DEMO FOOTER & STRIPE TEST CARD CREDENTIALS
   ============================================================ */
.comic-demo-footer {
    background: #101114;
    border-top: 5px solid #000;
    padding: 40px 15px 50px 15px;
    margin-top: 60px;
    color: #fff;
    font-family: 'Comic Neue', sans-serif;
}

.comic-demo-box {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    color: #000000;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px #000000;
    padding: 28px 24px 24px 24px;
    position: relative;
}

.comic-demo-badge {
    position: absolute;
    top: -16px;
    left: 20px;
    background: var(--red, #ff3b30);
    color: #ffffff;
    font-family: 'Bangers', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 4px 14px;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px #000000;
    text-transform: uppercase;
}

.comic-demo-title {
    font-family: 'Bangers', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    color: #000000;
    margin-top: 6px;
    margin-bottom: 8px;
}

.comic-demo-text {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 18px;
    line-height: 1.45;
}

.comic-test-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    background: var(--yellow, #ffe14d);
    border: 3px solid #000000;
    box-shadow: 4px 4px 0px #000000;
    padding: 16px;
}

.comic-test-card-col {
    display: flex;
    flex-direction: column;
}

.comic-test-card-label {
    font-family: 'Bangers', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 4px;
}

.comic-test-card-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    font-weight: 900;
    color: #000000;
    background: #ffffff;
    padding: 6px 10px;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    letter-spacing: 1px;
}