/* V2 styles with ads, two-column layout, avatars, admin */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Verdana", Verdana;
    background: #050608;
    color: #e5e5e5;
}

/* ---------- Global link styling ---------- */

a {
    color: #8fb3ff;
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(111, 159, 255, 0.65);
}

a:active {
    color: #d0e0ff;
}

/* ===== Christmas snow effect ===== */

#snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 50; /* above content & header (header is 40) */
}

/* Individual snowflakes */
.snowflake {
    position: absolute;
    top: -10vh;
    color: #ffffff;
    opacity: 0.9;
    font-size: 10px;
    line-height: 1;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.7),
        0 0 8px rgba(148, 163, 184, 0.6);
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
}

/* Main fall animation: gentle drift + fall */
@keyframes snow-fall {
    0% {
        transform: translate3d(0, -10vh, 0) rotateZ(0deg);
    }
    100% {
        transform: translate3d(20px, 110vh, 0) rotateZ(360deg);
    }
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.activity-icon-paste { }
.activity-icon-file  { }
.activity-icon-image { }



/* ---------- Layout wrapper ---------- */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Header & nav (compact, modern) ---------- */

.site-header {
    border-bottom: 1px solid #141722;
    background: #050608;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

/* logo */

.logo {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.logo span {
    color: #8fa7ff;
}

.logo-icon {
    width: 35px;
    height: 35px;
}

/* main nav */

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-left: auto;
    padding: 0;
}

/* base nav link */

.nav a {
    position: relative;
    padding: 0.15rem 0;
    margin: 0;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: #c4c7da;
    text-decoration: none;
    transition:
        color 0.15s ease,
        text-shadow 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.nav a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(111, 159, 255, 0.65);
}

/* active page link */

.nav-link-active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f46e5, #f97316);
}

/* CTA & ghost buttons in nav (Login/Register/Logout) */

.nav-cta {
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #3b82f6;
    background: #111827;
    color: #e5ecff;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
}

.nav-cta:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.55);
    text-shadow: none;
}

.nav-ghost {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.86rem;
    border: 1px solid transparent;
    color: #cbd5f5;
    text-decoration: none;
}

.nav-ghost:hover {
    border-color: #334155;
    background: #020617;
    color: #ffffff;
    text-shadow: none;
}

/* mobile: stack nav under logo */

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        padding: 0.4rem 0.2rem;
        gap: 0.4rem;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .nav-cta,
    .nav-ghost {
        font-size: 0.8rem;
        padding: 0.2rem 0.7rem;
    }
}


/* Tiny spinner shown during uploads */
.upload-spinner {
    margin-left: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-top-color: #e5e7eb;
    display: inline-block;
    animation: upload-spin 0.7s linear infinite;
    vertical-align: middle;
}

/* initially hidden; JS will toggle this class */
.upload-spinner.is-hidden {
    display: none;
}

@keyframes upload-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error box highlight when we land back on the page with errors */
.errors.errors-highlight {
    background: rgba(239, 68, 68, 0.08);      /* soft red tint */
    border-radius: 6px;
    padding: 0.55rem 0.9rem;
    animation: errorPulse 1.1s ease-out 1;
}

@keyframes errorPulse {
    0% {
        box-shadow: 0 0 0 rgba(248, 113, 113, 0);
    }
    40% {
        box-shadow: 0 0 18px rgba(248, 113, 113, 0.45);
    }
    100% {
        box-shadow: 0 0 0 rgba(248, 113, 113, 0);
    }
}




/* ---------- Announcement bar (season-aware) ---------- */

.announce-bar {
    border-top: 1px solid #181b23;
    border-bottom: 1px solid #181b23;
    background: radial-gradient(circle at top left, #101321 0%, #050608 60%);
}

.announce-bar--default {
    background: radial-gradient(circle at top left, #101321 0%, #050608 60%);
}

.announce-bar--halloween {
    background: radial-gradient(circle at top left, #251320 0%, #050608 60%);
}

.announce-bar--winter {
    background: radial-gradient(circle at top left, #142439 0%, #050608 60%);
}

.announce-inner {
    padding: 0.7rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
}

/* left side: content + chips */

.announce-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.announce-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.72rem;
}

.announce-chip {
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.26);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    font-size: 0.68rem;
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

.announce-season-chip {
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.6);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c7d2fe;
    background: rgba(30, 64, 175, 0.16);
}

/* main row: icon + title + body */

.announce-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.86rem;
}

.announce-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.announce-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 70%);
    border: 1px solid rgba(250, 204, 21, 0.6);
}

.announce-bar--halloween .announce-icon-circle {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 70%);
    border-color: rgba(249, 115, 22, 0.7);
}

.announce-bar--winter .announce-icon-circle {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), transparent 70%);
    border-color: rgba(96, 165, 250, 0.7);
}

.announce-icon-symbol {
    font-size: 0.95rem;
}

.announce-title-text {
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    color: #f9fafb;
}

/* body text */

.announce-body {
    line-height: 1.4;
    color: #d1d5db;
    max-width: 780px;
}

.announce-body a {
    color: #facc15;
    text-decoration: underline;
}

.announce-body a:hover {
    color: #fef3c7;
}

/* right side meta */

.announce-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    font-size: 0.78rem;
    text-align: right;
}

.announce-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    font-size: 0.7rem;
}

.announce-meta-pill {
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #374151;
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

/* mobile tweaks */

@media (max-width: 720px) {
    .announce-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .announce-right {
        align-items: flex-start;
        text-align: left;
    }
}



/* ---------- Ad banners ---------- */

.ad-banner-link {
    position: relative;
    display: block;
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    padding: 0.25rem;
    border-radius: 999px;
    overflow: hidden;

    /* gradient border + dark inner (same vibe as .text-ad) */
    border: 1px solid transparent;
    background:
        linear-gradient(120deg, #020617, #020617) padding-box,
        linear-gradient(120deg, #ff4f81, #ffb347, #6366f1) border-box;
    box-shadow:
        0 0 14px rgba(15, 23, 42, 0.95),
        0 0 24px rgba(236, 72, 153, 0.4);

    animation: textAdGlowPulse 3s ease-in-out infinite; /* reuse existing keyframes */
}

/* shimmer sweep across the banner, reuse textAdShine keyframes */
.ad-banner-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 40%,
        transparent 100%
    );
    transform: translateX(-140%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: textAdShine 2.6s ease-in-out infinite;
}

.ad-banner-wrapper {
    border-top: 1px solid #181b23;
    border-bottom: 1px solid #181b23;
    background: #070910;
}

.ad-banner-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
    flex-wrap: nowrap;
}

.ad-banner {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
}

.ad-banner-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 90px;
    height: auto;
    object-fit: contain;
    border-radius: 0.85rem;
    background: #020617; /* fallback bg behind transparent GIFs */
}

.ad-banner img {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.ad-buy-layout {
    margin-top: 1.2rem;
}

/* Preview card */
.ad-preview-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ad-preview-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.ad-preview-frame {
    border-radius: 0.75rem;
    border: 1px solid #111827;
    background: #020617;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top image area */
.ad-preview-image {
    width: 100%;
    height: 120px;
    background: radial-gradient(circle at top left, #1d4ed8, #020617);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-preview-image-placeholder {
    font-size: 0.8rem;
    color: #e5e7eb;
    opacity: 0.75;
}

/* Text body */
.ad-preview-body {
    padding: 0.8rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ad-preview-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.ad-preview-sponsored {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: #facc15;
}

.ad-preview-domain {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ad-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f9fafb;
}

.ad-preview-text {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.4;
    max-height: 4.1em; /* roughly 3 lines */
    overflow: hidden;
}

.ad-preview-cta {
    align-self: flex-start;
    margin-top: 0.25rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

/* Tiny note under preview */
.ad-preview-note {
    font-size: 0.78rem;
    color: #9ca3af;
}

/* Stack banners vertically on narrow screens */
@media (max-width: 720px) {
    .ad-banner-link {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile: stack form + preview nicely */
@media (max-width: 800px) {
    .ad-buy-layout {
        flex-direction: column;
    }
}


/* ===== HOME PAGE LAYOUT (breach-style) ===== */

.home-main {
    padding-top: 1.2rem;
}

/* HERO SECTION */

.home-hero {
    margin-bottom: 2rem;
    
    background: #050608; /* match page background */
}

.home-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem 0 1.7rem;
}

.home-hero-logo-wrap {
    margin: 0.5rem 0 0.75rem;
    display: flex;
    justify-content: center;      /* center horizontally */
}


.home-hero-logo {
    max-width: 180px;             /* controls how wide it can get */
    width: 100%;                  /* shrink on smaller screens */
    height: auto;                 /* keep aspect ratio */
    object-fit: contain;          /* never stretch/crop */
}


/* main hero card */

.home-hero-card {
    flex: 1 1 60%;
    position: relative;
    padding: 1.6rem 1.8rem 1.8rem;
    border-radius: 10px;
    border: 1px solid #202332;
    background: #0b0d12;             /* simple dark card */
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
}


.home-hero-eyebrow {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9aa4ff;
    margin-bottom: 0.3rem;
}

.home-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.home-hero-subtitle {
    font-size: 0.95rem;
    color: #c0c7e6;                  /* a bit softer */
    max-width: 520px;
    line-height: 1.5;
    margin-bottom: 0.95rem;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.home-hero-button {
    font-size: 0.95rem;
    padding: 0.55rem 1.4rem;
}

.home-hero-secondary {
    font-size: 0.9rem;
    color: #9fb0ff;
}

.home-hero-secondary:hover {
    text-decoration: underline;
}

/* small chips under buttons */

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.3;
}

.chip-soft {
    background: #111422;
    border: 1px solid #2b3350;
    color: #d5dcff;
}

.chip-outline {
    border: 1px solid #30344a;
    color: #b5bedf;
}

/* right-side hero info card */

.home-hero-side {
    flex: 0 0 32%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-hero-side-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9aa4ff;
    margin-bottom: 0.5rem;
}

.home-hero-side-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.86rem;
    color: #d0d7ff;
}

.home-hero-side-list li {
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 0.9rem;
}

.home-hero-side-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.02rem;
    color: #6f9fff;
}

/* MAIN GRID BELOW HERO */

.home-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.home-column.home-left {
    flex: 1 1 60%;
}

.home-column.home-right {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-info-card {
    font-size: 0.9rem;
}

/* responsive tweaks */

@media (max-width: 900px) {
    .home-hero-inner {
        flex-direction: column;
        padding-top: 1.3rem;
        padding-bottom: 1.4rem;
    }

    .home-hero-card {
        flex: 1 1 auto;
        padding: 1.4rem 1.3rem 1.6rem;
    }

    .home-hero-title {
        font-size: 1.6rem;
    }

    .home-hero-subtitle {
        font-size: 0.9rem;
    }

    .home-hero-side {
        flex: 1 1 auto;
    }

    .home-grid {
        flex-direction: column;
    }

    .home-column.home-left,
    .home-column.home-right {
        flex: 1 1 100%;
    }
}


/* ---------- Main layout ---------- */

.main-content {
    padding: 1.5rem 0 2.5rem;
}

.layout-two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.column-main {
    flex: 1 1 60%;
}

.column-sidebar {
    flex: 1 1 35%;
}

@media (max-width: 800px) {
    .layout-two-column {
        flex-direction: column;
    }
}

/* ---------- Cards ---------- */

.card {
    background: #0b0d12;
    border: 1px solid #181b23;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.card-header {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------- Forms ---------- */

form {
    margin-top: 1rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: #050608;
    border: 1px solid #262a35;
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    color: #e5e5e5;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

textarea {
    min-height: 200px;
    font-family: monospace;
}

button,
.button {
    display: inline-block;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    font-size: 0.95rem;
    cursor: pointer;
    background: #2d5fe8;          /* flat deep blue */
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

button:hover,
.button:hover {
    background: #3a6cf0;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

button:active,
.button:active {
    background: #234fd4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transform: translateY(0);
}


.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.errors {
    color: #ff6666;
    margin-bottom: 0.5rem;
    list-style: disc;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.success {
    color: #7cff7c;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.muted {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

/* ---------- Pastes ---------- */

.paste-reactions {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.paste-reaction-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Small, subtle buttons for reactions */
.button-reaction {
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6); /* slate-400 */
    color: #e5e7eb; /* light text on dark background */
}

.button-reaction:hover {
    background: rgba(59, 130, 246, 0.12);       /* soft blue hover */
    border-color: #3b82f6;
}

.button-reaction--secondary {
    border-color: rgba(148, 163, 184, 0.9);
    opacity: 0.9;
}

.button-reaction--secondary:hover {
    background: rgba(248, 113, 113, 0.12);      /* soft red-ish hover, tweak if you like */
    border-color: #f97373;
}

.paste-reaction-count {
    font-size: 0.78rem;
    color: #9ca3af; /* muted grey */
}




/* PASTE VIEW LAYOUT LIMITS  -------------------------------------- */

.paste-main-card {
    background: #0b0d12;
    border: 1px solid #202332;
    border-radius: 10px;
    padding: 1rem 1.1rem 0.9rem;
    overflow: hidden;
}

/* the wrapper around <pre><code> */
.paste-content.hljs-wrapper {
    max-height: 600px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid #202332;
    background: #05070d;
}

/* Slim scrollbars for the code area */
.paste-content.hljs-wrapper::-webkit-scrollbar {
    width: 6px;
}
.paste-content.hljs-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.paste-content.hljs-wrapper::-webkit-scrollbar-thumb {
    background: #2a3045;
    border-radius: 999px;
}


/* if you’d rather wrap long lines instead of horizontal scroll,
   uncomment these two lines:
.paste-content.hljs-wrapper pre code {
    white-space: pre-wrap;
    word-break: break-word;
}
*/


.paste-row {
    margin-bottom: 0.8rem;
}

.paste-row-title a {
    color: #f4c95d;
    text-decoration: none;
    font-weight: 500;
}
.paste-row-title a:hover {
    color: #ffe89c;
    text-shadow: 0 0 6px rgba(244, 201, 93, 0.6);
}

.paste-row-meta {
    font-size: 0.8rem;
    color: #888;
}

.paste-row-meta a {
    color: #8fb3ff;
}
.paste-row-meta a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(111, 159, 255, 0.65);
}

.paste-row-small {
    margin-bottom: 0.5rem;
}
.paste-row-small a {
    text-decoration: none;
    color: #f4c95d;
}
.paste-row-small a:hover {
    color: #ffe89c;
    text-shadow: 0 0 6px rgba(244, 201, 93, 0.6);
}

.paste-content {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    background: #050608;
    border-radius: 4px;
    padding: 0.8rem;
    border: 1px solid #181b23;
}

.burn-label {
    color: #ff6666;
}

/* === Paste view layout – like breach.fo === */

/* === Paste layout tweaks: smaller profile card, bigger paste === */

/* overall paste layout */
.paste-page {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

.paste-main-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 12px;
}

.paste-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.paste-header-main {
    flex: 1;
}

.paste-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 0 0.4rem;
}

.paste-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.paste-metachip {
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    background: #f3f4f6;
    font-size: 0.8rem;
    color: #4b5563;
}

.paste-tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.paste-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

.paste-reactions {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.paste-reaction-form {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.paste-reaction-button {
    padding: 0.15rem 0.6rem;
    font-size: 0.85rem;
}

.paste-reaction-button--secondary {
    background: #111827;
    border-color: #4b5563;
}

.paste-reaction-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

.paste-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.paste-action-button {
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
}

/* Scrollable code area */
.paste-content.hljs-wrapper {
    max-height: 600px;
    overflow: auto;
    border-radius: 8px;
    background: #030712; /* or keep your highlight theme bg */
}

.paste-code-pre {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

/* Footer brand + CTA */
.paste-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.paste-footer-cta {
    font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .paste-header {
        flex-direction: column;
        align-items: stretch;
    }

    .paste-main-card {
        padding: 1.25rem 1rem;
    }

    .paste-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .paste-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* Flashy animated text ad banner */

/* ---------- Text ads – big flashy animated pill ---------- */

.text-ad {
    position: relative;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;

    /* dark inner + neon gradient border */
    border: 1px solid transparent;
    background:
        linear-gradient(120deg, #020617, #020617) padding-box,
        linear-gradient(120deg, #ff4f81, #ffb347, #6366f1) border-box;
    box-shadow:
        0 0 14px rgba(15, 23, 42, 0.95),
        0 0 26px rgba(236, 72, 153, 0.45);

    animation: textAdGlowPulse 3s ease-in-out infinite;
}

/* small "spark" icon on the left */
.text-ad::before {
    content: "✦";
    font-size: 0.95rem;
    color: #ffe4f2;
    opacity: 0.9;
}

/* shimmer sweep across the banner */
.text-ad::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.22) 40%,
        transparent 100%
    );
    transform: translateX(-140%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: textAdShine 2.4s ease-in-out infinite;
}

@keyframes textAdShine {
    0% {
        transform: translateX(-140%);
        opacity: 0;
    }
    25% {
        opacity: 0.7;
    }
    60% {
        transform: translateX(150%);
        opacity: 0;
    }
    100% {
        transform: translateX(150%);
        opacity: 0;
    }
}

@keyframes textAdGlowPulse {
    0% {
        box-shadow:
            0 0 12px rgba(15, 23, 42, 0.95),
            0 0 18px rgba(59, 130, 246, 0.25);
    }
    50% {
        box-shadow:
            0 0 18px rgba(15, 23, 42, 1),
            0 0 30px rgba(255, 79, 129, 0.45);
    }
    100% {
        box-shadow:
            0 0 12px rgba(15, 23, 42, 0.95),
            0 0 18px rgba(59, 130, 246, 0.25);
    }
}

/* text inside the banner */
.text-ad,
.text-ad span {
    color: #e5e7eb;
}

/* make the domain (in <strong>) use animated gradient text like the admin badge */
.text-ad strong {
    position: relative;
    font-size: 0.86rem;
    font-weight: 700;
    background: linear-gradient(120deg, #ff4f81, #ffb347, #ff4f81);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: admin-gradient-move 3s ease-in-out infinite, admin-glow-pulse 1.6s ease-in-out infinite;
}

/* links inside the text ad */
.text-ad a {
    color: #facc15;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted rgba(250, 204, 21, 0.7);
}
.text-ad a:hover {
    color: #fef08a;
    border-bottom-color: transparent;
}

/* allow wrapping on small screens */
@media (max-width: 640px) {
    .text-ad {
        white-space: normal;
        align-items: flex-start;
    }
}


/* ---------- User display / avatars / profile stats ---------- */

.user-display .username-core.username-admin {
    color: #B84444 !important;
}

.user-display .username-core.username-moderator {
    color: #ffa640 !important;
}

.user-display .username-core.username-user {
    color: #8fb3ff !important;
}

/* OG – gold, matches the OG badge */
.user-display .username-core.flair-og {
    color: #f5c542 !important;
    text-shadow: 0 0 4px rgba(245, 197, 66, 0.35);
}

/* Trusted Seller – green to match trusted badge */
.user-display .username-core.flair-trusted {
    color: #4ade80; /* emerald-ish */
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.35);
}

/* Contributor – blue / cyan to match contributor badge */
.user-display .username-core.flair-contributor {
    color: #38bdf8 !important;
    
}

/* Respected – purple to match respected badge */
.user-display .username-core.flair-respected {
    color: #a855f7 !important;
    text-shadow: 0 0 4px rgba(168, 85, 247, 0.4);
}

/* Godlike – stronger pink/red glow to match godlike badge */
.user-display .username-core.flair-godlike {
    color: #fb7185 !important;
    text-shadow: 0 0 6px rgba(251, 113, 133, 0.5);
}

.profile-card {
    margin-bottom: 1.5rem;
    background: #0b0d12;
    border: 1px solid #202332;
    border-radius: 10px;
    padding: 0.85rem 0.9rem;
}

.profile-header-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.65rem;
}


.profile-stats {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Bigger avatar inside profile card on paste view */
.profile-card .user-avatar {
    width: 48px;
    height: 48px;
}


.profile-stat {
    background: #10141f;
    border: 1px solid #262b3f;
    border-radius: 7px;
    padding: 0.45rem 0.7rem;
    min-width: 120px;
}

.profile-stat-label {
    font-size: 0.72rem;
    color: #8790ad;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-stat-value {
    margin-top: 0.15rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    position: relative;
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: block;
}

/* animated frames (optional cosmetic) */

.user-avatar.frame-glow-blue {
    box-shadow: 0 0 0 0 rgba(88, 150, 255, 0.9);
    animation: frame-glow-blue 1.8s ease-out infinite;
}

@keyframes frame-glow-blue {
    0%   { box-shadow: 0 0 0 0 rgba(88,150,255,0.9); }
    70%  { box-shadow: 0 0 0 4px rgba(88,150,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(88,150,255,0); }
}

.user-avatar.frame-pulse-purple {
    box-shadow: 0 0 0 0 rgba(180,120,255,0.9);
    animation: frame-pulse-purple 1.6s ease-out infinite;
}

@keyframes frame-pulse-purple {
    0%   { box-shadow: 0 0 0 0 rgba(180,120,255,0.9); }
    60%  { box-shadow: 0 0 0 4px rgba(180,120,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(180,120,255,0); }
}

.username-core {
    font-weight: 600;
}

.username-item {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    border: 1px solid #333;
}

.badge-og {
    border-color: #f5c542;
    color: #f5c542;
}
.staff-badge {
    margin-left: 0.2rem;
}

/* existing OG already OK */

.badge-trusted {
    border-color: #3fd47a;
    color: #3fd47a;
}

.badge-contributor {
    border-color: #F9FF8F;
    color: #F9FF8F;
}

/* Base look for the Godlike badge */
.badge-godlike {
    border-color: #822EF2;
    color: #822EF2;
    position: relative;
    animation: godlike-twinkle 1.6s ease-in-out infinite;
}

/* Little star that twinkles on the edge */
.badge-godlike::after {
    content: "✦";
    position: absolute;
    top: -0.25rem;
    right: -0.35rem;
    font-size: 0.65rem;
    color: #ffd6de;
    pointer-events: none;
    animation: godlike-star 1.6s ease-in-out infinite;
}

/* Text / border twinkle */
@keyframes godlike-twinkle {
    0% {
        text-shadow: 0 0 0 rgba(130, 46, 242, 0);
        box-shadow: 0 0 0 rgba(130, 46, 242, 0);
    }
    40% {
        text-shadow: 0 0 6px rgba(130, 46, 242, 0.8);
        box-shadow: 0 0 10px rgba(130, 46, 242, 0.6);
    }
    100% {
        text-shadow: 0 0 0 rgba(130, 46, 242, 0);
        box-shadow: 0 0 0 rgba(130, 46, 242, 0);
    }
}

/* Star twinkle / float */
@keyframes godlike-star {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    30% {
        opacity: 1;
        transform: translateY(-1px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-2px) scale(0.7);
    }
}


.badge-respected {
    border-color: #F08FFF;
    color: #F08FFF;
    position: relative;
    animation: respected-twinkle 1.6s ease-in-out infinite;
}

.badge-respected::after {
    content: "✦";
    position: absolute;
    top: -0.25rem;
    right: -0.35rem;
    font-size: 0.65rem;
    color: #ffd6de;
    pointer-events: none;
    animation: godlike-star 1.6s ease-in-out infinite;
}

@keyframes respected-twinkle {
    0% {
        text-shadow: 0 0 0 rgba(292, 100, 78, 0);
        box-shadow: 0 0 0 rgba(292, 100, 78, 0);
    }
    40% {
        text-shadow: 0 0 6px rgba(292, 100, 78, 0.8);
        box-shadow: 0 0 10px rgba(292, 100, 78, 0.6);
    }
    100% {
        text-shadow: 0 0 0 rgba(292, 100, 78, 0);
        box-shadow: 0 0 0 rgba(292, 100, 78, 0);
    }
}



/* Make the admin name itself animated */
.badge-admin {
    position: relative;
    font-weight: 700;
    background: linear-gradient(120deg, #ff4f81, #ffb347, #ff4f81);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* so gradient shows through */
    animation:
        admin-gradient-move 3s ease-in-out infinite,
        admin-glow-pulse 1.6s ease-in-out infinite;
}

/* Little crown above the admin name */
.badge-admin::before {
    content: "👑";
    position: absolute;
    top: -1.1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    pointer-events: none;
    animation: admin-crown-bob 1.6s ease-in-out infinite;
}

/* Sparkles around admin name */
.badge-admin::after {
    content: "✦";
    position: absolute;
    right: -0.7rem;
    top: -0.2rem;
    font-size: 0.7rem;
    color: #ffd6de;
    pointer-events: none;
    animation: admin-sparkle 1.4s ease-in-out infinite;
}

/* Gradient slide */
@keyframes admin-gradient-move {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glow pulse around the text */
@keyframes admin-glow-pulse {
    0% {
        text-shadow: 0 0 0 rgba(255, 79, 129, 0);
    }
    40% {
        text-shadow:
            0 0 8px rgba(255, 79, 129, 0.9),
            0 0 16px rgba(255, 179, 71, 0.6);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 79, 129, 0);
    }
}

/* Crown float / bob */
@keyframes admin-crown-bob {
    0%   { transform: translate(-50%, 0); }
    50%  { transform: translate(-50%, -2px); }
    100% { transform: translate(-50%, 0); }
}

/* Sparkle flicker + tiny movement */
@keyframes admin-sparkle {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.6);
    }
    30% {
        opacity: 1;
        transform: translate(-1px, -1px) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-2px, -2px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(-3px, -3px) scale(0.7);
    }
}

/* Base style for all badges (if you don't already have something similar) */
.username-item.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #333;
}

/* STAFF badge – orange, glowing, with a soft shimmer */
.badge-staff {
    background: rgba(255, 149, 46, 0.12);
    border-color: #ff9b3c;
    color: #ffd9a0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 155, 60, 0.45);
}

/* Twinkle / shimmer effect */
.badge-staff::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 40%,
        transparent 100%
    );
    opacity: 0.6;
    transform: skewX(-20deg);
    animation: staffTwinkle 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes staffTwinkle {
    0% {
        transform: translateX(-120%) skewX(-20deg);
        opacity: 0;
    }
    35% {
        opacity: 0.7;
    }
    60% {
        transform: translateX(220%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(220%) skewX(-20deg);
        opacity: 0;
    }
}



.prefix-elite {
    border-color: #ff4f81;
    color: #ff4f81;
}
.suffix-shadow {
    border-color: #888;
    color: #888;
}

/* ---------- Themes ---------- */

.theme-dark {
    background: #050608;
    color: #e5e5e5;
}
.theme-light {
    background: #f6f6f9;
    color: #111;
}
.theme-light .card {
    background: #fff;
    border-color: #ddd;
}
.theme-light input,
.theme-light textarea,
.theme-light select {
    background: #fff;
    color: #111;
}


/* ===== Username roles (staff-controlled) ===== */

/* Base style for usernames that can be colored/animated via role */
.username-label {
    font-weight: 600;
    position: relative;
    display: inline-block;
    color: #8fb3ff; /* default link-ish blue */
    text-decoration: none;
}

/* --- Core staff-style roles (optional, if you set username_role=admin/mod/etc) --- */

.username-label.username-role-admin {
    background: linear-gradient(120deg, #ff4f81, #ffb347, #ff4f81);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        admin-gradient-move 3s ease-in-out infinite,
        admin-glow-pulse 1.6s ease-in-out infinite;
}

.username-label.username-role-moderator {
    color: #fb923c; /* orange */
    text-shadow: 0 0 4px rgba(251, 146, 60, 0.3);
}

.username-label.username-role-support {
    color: #38bdf8; /* sky-400 */
    text-shadow: 0 0 4px rgba(56, 189, 248, 0.35);
}

/* --- New “special” roles that match the badges --- */

/* Trusted Seller – green, no animation */
.username-label.username-role-trusted,
.username-label.username-role-trusted_seller {
    color: #4ade80; /* green-400 */
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.25);
}

/* Contributor – yellow, no animation */
.username-label.username-role-contributor {
    color: #facc15; /* yellow-400 */
    text-shadow: 0 0 4px rgba(250, 204, 21, 0.25);
}

/* Respected – pink sparkle effect */
.username-label.username-role-respected {
    position: relative;
    background: linear-gradient(120deg, #f9a8ff, #fb7185, #f9a8ff);
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        respected-name-gradient 3s ease-in-out infinite,
        respected-name-glow 1.6s ease-in-out infinite;
}

/* little twinkling star on the side */
.username-label.username-role-respected::after {
    content: "✦";
    position: absolute;
    right: -0.65rem;
    top: -0.15rem;
    font-size: 0.65rem;
    color: #ffe4f2;
    pointer-events: none;
    animation: respected-name-star 1.6s ease-in-out infinite;
}

/* Godlike – purple sparkle + slide effect (similar to STAFF shimmer) */
.username-label.username-role-godlike {
    position: relative;
    background: linear-gradient(120deg, #a855f7, #6366f1, #a855f7);
    background-size: 240% 240%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        godlike-name-gradient 3s ease-in-out infinite,
        godlike-name-glow 1.8s ease-in-out infinite;
}

/* shimmer sweep across the name */
.username-label.username-role-godlike::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.65) 45%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: staffTwinkle 2.4s ease-in-out infinite;
}

/* --- Keyframes reused for Respected / Godlike / Admin --- */

@keyframes respected-name-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes respected-name-glow {
    0% {
        text-shadow: 0 0 0 rgba(248, 113, 166, 0);
    }
    40% {
        text-shadow:
            0 0 6px rgba(248, 113, 166, 0.9),
            0 0 14px rgba(244, 114, 182, 0.6);
    }
    100% {
        text-shadow: 0 0 0 rgba(248, 113, 166, 0);
    }
}

@keyframes respected-name-star {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.6);
    }
    30% {
        opacity: 1;
        transform: translate(-1px, -1px) scale(1);
    }
    70% {
        opacity: 1;
        transform: translate(-2px, -2px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(-3px, -3px) scale(0.7);
    }
}

@keyframes godlike-name-gradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes godlike-name-glow {
    0% {
        text-shadow: 0 0 0 rgba(129, 140, 248, 0);
    }
    40% {
        text-shadow:
            0 0 8px rgba(129, 140, 248, 0.9),
            0 0 18px rgba(168, 85, 247, 0.7);
    }
    100% {
        text-shadow: 0 0 0 rgba(129, 140, 248, 0);
    }
}

/* already used by STAFF badge – we reuse for Godlike shimmer */
@keyframes staffTwinkle {
    0% {
        transform: translateX(-120%) skewX(-20deg);
        opacity: 0;
    }
    35% {
        opacity: 0.7;
    }
    60% {
        transform: translateX(220%) skewX(-20deg);
        opacity: 0;
    }
    100% {
        transform: translateX(220%) skewX(-20deg);
        opacity: 0;
    }
}

/* gradient + glow used by admin usernames */
@keyframes admin-gradient-move {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes admin-glow-pulse {
    0% {
        text-shadow: 0 0 0 rgba(255, 79, 129, 0);
    }
    40% {
        text-shadow:
            0 0 8px rgba(255, 79, 129, 0.9),
            0 0 16px rgba(255, 179, 71, 0.6);
    }
    100% {
        text-shadow: 0 0 0 rgba(255, 79, 129, 0);
    }
}



/* ---------- Admin ---------- */

/* --- Admin page layout --- */

.admin-page {
    margin-top: 1.2rem;
}

/* tab strip at top of card */
.admin-tabs {
    margin-bottom: 0.9rem;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #0b0d12;
    border: 1px solid #262a35;
    color: #9aa4ff;
    font-size: 0.85rem;
    text-decoration: none;
}

.admin-tabs a:hover {
    background: #151a28;
    border-color: #396cff;
    color: #ffffff;
}

.admin-tabs a.active {
    background: #396cff;
    border-color: #396cff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(57, 108, 255, 0.45);
}

/* main admin tables */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.4rem;
    font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid #181b23;
    padding: 0.35rem 0.55rem;
}

.admin-table th {
    background: #101320;
    color: #9aa4ff;
    font-weight: 600;
    text-align: left;
}

.admin-table tr:nth-child(even) td {
    background: #090b12;
}

.admin-table tr:hover td {
    background: #141828;
}

/* inline forms + buttons inside table rows */

.inline-form {
    display: inline-block;
    margin: 0;
}

.admin-table .inline-form select[name="role"] {
    font-size: 0.8rem;
    padding: 0.15rem 0.25rem;
    margin-right: 0.15rem;
    background: #05060b;
    border-radius: 4px;
    border: 1px solid #262a35;
    color: #e5e5e5;
}

.admin-table .inline-form button {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

.section-title-small {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ---------- Inventory ---------- */

.inventory-list {
    margin-top: 0.5rem;
}
.inventory-row {
    border-top: 1px solid #181b23;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.inventory-name {
    font-size: 0.9rem;
}
.inventory-type {
    font-size: 0.75rem;
    color: #888;
}
.inventory-desc {
    font-size: 0.8rem;
    color: #aaa;
}

/* ---------- User profile ---------- */

.profile-banner {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: 1px solid #181b23;
}

.profile-banner-default {
    background: radial-gradient(circle at top, #272b3d 0%, #0b0d12 60%);
}

.profile-card {
    margin-bottom: 1.5rem;
}

.profile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-main-info .user-display {
    font-size: 0.98rem;
    font-weight: 600;
}

.profile-name .user-display {
    font-size: 1.1rem;
}

.profile-location {
    font-size: 0.8rem;
    color: #969fbf;
}

.profile-bio {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #e1e4ff;
}

.profile-bio.empty {
    color: #777;
    font-style: italic;
}

.profile-links {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-links a {
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #2e3650;
    color: #c8d5ff;
    text-decoration: none;
    background: linear-gradient(120deg, #181c28, #141824);
}

.profile-links a:hover {
    border-color: #4b6fff;
    color: #ffffff;
}

.user-bio {
    margin-bottom: 1rem;
    white-space: pre-wrap;
}
.user-bio.empty {
    color: #777;
}

.user-bio a {
    color: #8fb3ff;
}
.user-bio a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(111, 159, 255, 0.65);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid #222;
    padding: 1rem 0 2rem;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

.site-footer a {
    color: #8fb3ff;
}
.site-footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(111, 159, 255, 0.65);
}

/* ---------- Icon library / picker ---------- */

.icon-upload-form {
    margin-bottom: 1rem;
}

.icon-library-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.icon-card {
    background: #05060b;
    border: 1px solid #181b23;
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-width: 200px;
}

.icon-preview img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
    background: #000;
}

.icon-meta {
    font-size: 0.8rem;
}

.icon-name {
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.icon-path {
    color: #777;
    font-family: monospace;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.icon-option {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #181b23;
    background: #05060b;
    cursor: pointer;
    font-size: 0.8rem;
}

.icon-option input[type="radio"] {
    margin: 0;
}

.icon-option-image img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    background: #000;
}

.icon-option:hover {
    border-color: #396cff;
}

/* Auth pages (login / register) */

.auth-page {
    min-height: calc(100vh - 140px); /* header + footer space */
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
}

/* ===== New Paste Composer ===== */

.new-paste-page {
    padding: 1.4rem 0 2.5rem;
}

.new-paste-hero {
    margin-bottom: 1rem;
}

.new-paste-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.new-paste-hero-subtitle {
    font-size: 0.9rem;
    color: #a5acc7;
}

.new-paste-layout {
    margin-top: 0.6rem;
}

/* main editor card gets a very soft highlight */
.new-paste-main-card {
    background:
        radial-gradient(circle at 0% 0%, rgba(111, 159, 255, 0.09) 0, transparent 55%),
        #0b0d12;
}

/* tighter labels for this page */
.new-paste-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

/* options & tips */

.new-paste-options-card {
    font-size: 0.88rem;
}

.small-muted {
    font-size: 0.78rem;
    margin-top: 0.1rem;
    margin-bottom: 0;
}

.new-paste-help-card {
    font-size: 0.85rem;
}

.new-paste-tips {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.new-paste-tips li {
    position: relative;
    padding-left: 0.95rem;
    margin-bottom: 0.35rem;
    color: #c5c9e6;
}

.new-paste-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #6f9fff;
}

/* bottom action bar */

.new-paste-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.new-paste-actions button {
    padding: 0.5rem 1.4rem;
}

.new-paste-actions-note {
    font-size: 0.8rem;
    color: #9ba1c1;
}

/* stack nicely on mobile */

@media (max-width: 800px) {
    .new-paste-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .new-paste-actions button {
        width: 100%;
        text-align: center;
    }
}

/* ==== Premium Upload card tweaks ==== */

/* ==== Premium Upload / Ads card tweaks ==== */

.upload-card,
.ad-card {
    max-width: 900px;
    margin: 1.8rem auto 2.8rem;
    border-radius: 10px;
    border: 1px solid #202332;
    background: #0b0d12;              /* no gradients */
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
}



.upload-card-header,
.ad-card-header {
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.upload-card-header .card-title,
.ad-card-header .card-title {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upload-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 159, 255, 0.6);
    background: rgba(8, 16, 40, 0.9);
    color: #c7d5ff;
}

.upload-subtitle {
    margin-bottom: 1rem !important;
    font-size: 0.86rem;
    color: #c4ccff;
}

/* nicer success box */

.upload-success {
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.9rem;
    background: rgba(26, 44, 92, 0.6);
    border: 1px solid rgba(87, 142, 255, 0.7);
}

.upload-success-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #e9f1ff;
}

.upload-success-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    align-items: flex-start; /* so tall code blocks align nicely */
}

.upload-success-row .label {
    color: #9aa7d8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

/* Make long URLs wrap inside the card instead of overflowing */
.upload-success-row code {
    display: block;                 /* put code on its own line */
    max-width: 100%;                /* never exceed card width */
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: #050914;
    border: 1px solid #262f4f;
    font-size: 0.76rem;
    white-space: pre-wrap;          /* allow wrapping */
    word-break: break-all;          /* break long URLs */
    overflow-wrap: anywhere;        /* extra safety */
}


/* form layout */

.upload-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca7d4;
}

.upload-form input[type="text"] {
    margin-bottom: 1rem;
}

/* file row + button */

.upload-file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.upload-file-row input[type="file"] {
    flex: 1 1 auto;
    font-size: 0.85rem;
    color: #cfd4ff;
}

/* make the upload button feel primary */

.upload-button {
    flex: 0 0 auto;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: #2d5fe8;              /* same flat blue as primary buttons */
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(45, 95, 232, 0.7);
    transition:
        transform 0.1s ease,
        box-shadow 0.2s ease,
        background 0.15s ease;
}

.upload-button:hover {
    background: #3a6cf0;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.85);
}

.upload-button:active {
    background: #234fd4;
    transform: translateY(0);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}



/* mobile: stack file input + button */

@media (max-width: 720px) {
    .upload-file-row {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==== Buy Ads premium styling (matches Upload) ==== */

/* pill reuses upload-pill base */
.ad-pill {
    @extend .upload-pill; /* if your CSS doesn't support @extend, ignore this – next rules override */
    border-color: rgba(111, 159, 255, 0.9);
}

/* fallback in plain CSS if @extend isn't supported: */
.ad-pill {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(111, 159, 255, 0.9);
    background: rgba(8, 16, 40, 0.95);
    color: #c7d5ff;
}

.ad-subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.86rem;
    color: #c4ccff;
}

.ad-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ad-meta-chip {
    font-size: 0.75rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #2b3250;
    background: rgba(9, 13, 28, 0.9);
    color: #c7d1ff;
}

/* success state when an order is created */
.ad-success {
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.9rem;
    background: rgba(22, 60, 96, 0.7);
    border: 1px solid rgba(87, 142, 255, 0.9);
}

.ad-success-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #e9f1ff;
}

.ad-success-body {
    font-size: 0.8rem;
    color: #d3defe;
}

.ad-success-note {
    display: inline-block;
    margin-top: 0.1rem;
    color: #9fb2ff;
}

/* labels + price line */
.ad-form label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca7d4;
}

.ad-price-line {
    margin-top: 0.3rem;
    margin-bottom: 0.9rem;
}

/* main Coinbase button */
.ad-button {
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    background: #2d5fe8;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 0 0 0 rgba(45,95,232,0.7);
    transition:
        transform 0.1s ease,
        box-shadow 0.2s ease,
        background 0.15s ease;
}

.ad-button:hover {
    background: #3a6cf0;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.85);
}

.ad-button:active {
    background: #234fd4;
    transform: translateY(0);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

/* ===== Achievements page ===== */

.achievements-page {
    padding-top: 1.4rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-card {
    background: #0b0d12;
    border: 1px solid #202332;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-preview {
    flex: 0 0 auto;
}

.achievement-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.achievement-body {
    font-size: 0.85rem;
    color: #c1c6e0;
    line-height: 1.4;
}

.achievement-meta {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: #999fbf;
}

.achievement-rarity {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid #2b3250;
    background: #080b16;
}

/* ===== Achievements page ===== */

.achievements-page .achievement-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
}

@media (min-width: 800px) {
    .achievements-page .achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.achievement-card {
    background: #0b0d12;
    border: 1px solid #181b23;
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    font-size: 0.88rem;
}

.achievement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.achievement-status {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #888fae;
}

.achievement-status.achieved {
    color: #7cff7c;
}

.achievement-body p {
    margin-bottom: 0.45rem;
}

.achievement-list {
    margin-left: 1rem;
    margin-bottom: 0.4rem;
    padding-left: 0;
}

.achievement-list li {
    margin-bottom: 0.2rem;
}

.achievement-progress {
    margin-top: 0.35rem;
}

.achievement-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #111522;
    overflow: hidden;
}

.achievement-progress-fill {
    height: 100%;
    background: #2d5fe8;
    border-radius: 999px;
}

.achievement-progress-label {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #a2aac8;
}


.ticket-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    justify-content: space-between;
}

.ticket-status-pill {
    margin-left: auto;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.ticket-status-open {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.ticket-status-closed {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.ticket-chat-window {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0,0,0,0.25);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.ticket-message {
    max-width: 80%;
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ticket-message.from-user {
    align-self: flex-start;
    background: rgba(52, 73, 94, 0.9);
}

.ticket-message.from-staff {
    align-self: flex-end;
    background: rgba(52, 152, 219, 0.9);
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.ticket-message-author {
    font-weight: 600;
}

.ticket-message-time {
    font-style: italic;
}

.ticket-message-body {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-chat-input {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ticket-chat-input textarea {
    resize: vertical;
}

.ticket-chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.streak-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #fff7ed;      /* soft warm */
    color: #b91c1c;           /* dark red text */
    border: 1px solid #fed7aa;
    vertical-align: middle;
}





/* mobile tweaks */
@media (max-width: 720px) {
    .ad-card {
        margin-top: 1.2rem;
    }

    .ad-meta-row {
        flex-direction: column;
    }

    .ad-button {
        width: 100%;
        text-align: center;
    }
}








