/* 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;
}

/* ---------- Layout wrapper ---------- */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Header & nav (slim) ---------- */

/* ---------- Header & simple nav ---------- */

.site-header {
    border-bottom: 1px solid #141722;
    background: #050608;
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.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;
}

/* simple thin nav */

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.4rem;
    margin-left: auto;
    padding: 0;
}

.nav a {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: #c4c7da;
    text-decoration: none;
}

.nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* mobile: stack nav below 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.8rem;
    }
}


/* ---------- Announcement bar ---------- */

.announce-bar {
    background: #0b0d16;
    border-bottom: 1px solid #191d2b;
    border-top: 1px solid #191d2b;
}

.announce-inner {
    padding: 0.55rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
}

.announce-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(246, 204, 88, 0.15);
    border: 1px solid rgba(246, 204, 88, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #f6cc58;
}

.announce-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.86rem;
    color: #dbe4ff;
}

.announce-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: #f6cc58;
}

.announce-body {
    line-height: 1.3;
    color: #e3e7ff;
}

.announce-body a {
    color: #ffdd7a;
    text-decoration: underline;
}
.announce-body a:hover {
    color: #fff3c2;
}

/* ---------- Ad banners ---------- */

.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 {
    max-height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* ===== 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 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 .layout-two-column {
    display: flex;
    align-items: flex-start;
    column-gap: 1.75rem;          /* space between profile + paste */
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

/* smaller, fixed-width profile card */
.paste-page .column-sidebar {
    flex: 0 0 280px;              /* was effectively ~50%, make it narrow */
    max-width: 280px;
}

/* main paste column gets the rest */
.paste-page .column-main {
    flex: 1 1 auto;
    min-width: 0;                 /* allows flexbox to shrink correctly */
}

/* keep the same scroll behavior on the paste */
.paste-page .paste-content {
    max-height: 75vh;
    overflow: auto;
}

.paste-page .paste-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

/* responsive: stack on small screens */
@media (max-width: 900px) {
    .paste-page .layout-two-column {
        flex-direction: column;
    }

    .paste-page .column-sidebar {
        max-width: 100%;
        flex: 0 0 auto;
        margin-bottom: 1rem;
    }
}



/* ---------- Text ads ---------- */

.text-ad {
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: #131623;
    border: 1px solid #262a35;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}
.text-ad a {
    color: #f5c542;
    text-decoration: none;
}
.text-ad a:hover {
    color: #ffe89c;
}

/* ---------- User display / avatars / profile stats ---------- */

.user-display .username-core.username-admin {
    color: #ff4f6e !important;
}

.user-display .username-core.username-moderator {
    color: #ffa640 !important;
}

.user-display .username-core.username-user {
    color: #8fb3ff !important;
}

.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;
}

/* ---------- 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: center;
}

.upload-success-row .label {
    color: #9aa7d8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.upload-success-row code {
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: #050914;
    border: 1px solid #262f4f;
    font-size: 0.76rem;
}

/* 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;
}




/* 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;
    }
}




