﻿html, body {
border:0px; margin:0px; padding:0px;}

.inside-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    height: 100vh;
    background: #0c0c0c;
    color: #eee;
    font-family: 'Inter', sans-serif;
}

/* -----------------------------------------
   SIDEBAR
------------------------------------------ */
.sidebar {
    background: #121212;
    border-right: 1px solid rgba(255,110,20,0.15);
    padding: 20px;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.logo {
    width: 40px;
    margin-right: 10px;
}

.brand-title {
    color: #ff6e14;
    font-weight: 700;
    font-size: 1.2rem;
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    color: #ddd;
    padding: 10px 0;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
}

    .menu-item:hover {
        color: #ff6e14;
    }

.menu-section-title {
    margin-top: 18px;
    font-size: 0.8rem;
    opacity: 0.6;
    text-transform: uppercase;
}

.logout {
    color: #ff3b3b !important;
}

/* -----------------------------------------
   TOP NAV
------------------------------------------ */
.topnav {
    background: #121212;
    border-bottom: 1px solid rgba(255,110,20,0.15);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.token-badge {
    background: rgba(255,110,20,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    color: #ff8537;
}

.username {
    font-weight: 600;
    opacity: 0.9;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* -----------------------------------------
   CONTENT AREA
------------------------------------------ */
.content {
    padding: 25px;
    overflow-y: auto;
}

.generate-page {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    padding: 20px;
    height: calc(100vh - 60px);
}

.left-panel {
    background: #151515;
    border: 1px solid rgba(255,110,20,0.2);
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
}

.panel-title {
    color: #ff6e14;
    font-weight: 800;
    margin-bottom: 15px;
}

.input-box {
    width: 100%;
    height: 100px;
    background: #1b1b1b;
    border: 1px solid rgba(255,110,20,0.2);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.small-button {
    padding: 8px 14px;
    background: rgba(255,110,20,0.2);
    border-radius: 4px;
    border: none;
    color: #ff6e14;
    cursor: pointer;
}

    .small-button:hover {
        background: rgba(255,110,20,0.35);
    }

.generate-button {
    width: 100%;
    padding: 14px;
    font-size: 1.2rem;
    background: #ff6e14;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
}

    .generate-button:hover {
        background: #ff8c3f;
    }

.error-msg {
    color: #ff6666;
    margin-top: 10px;
}

.right-panel {
    background: #111;
    border: 1px solid rgba(255,110,20,0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
}

.placeholder-box {
    text-align: center;
    padding-top: 50px;
    opacity: .6;
}

.status-box {
    text-align: center;
    padding: 40px;
}

.result-image {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255,110,20,0.2);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #eee;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,110,20,0.5);
    background: #111;
}

.profile-basic h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #ff6e14;
}

.profile-basic p {
    margin: 4px 0;
    opacity: 0.85;
}

.profile-actions {
    margin-left: auto;
}

.btn-small {
    padding: 8px 14px;
    background: #ff6e14;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

    .btn-small:hover {
        background: #ff8737;
    }

.divider {
    border-bottom: 1px solid rgba(255,110,20,0.15);
    margin: 25px 0;
}

.profile-links {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile-link {
    background: rgba(255,110,20,0.08);
    border: 1px solid rgba(255,110,20,0.35);
    color: #ff6e14;
    padding: 14px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
}

    .profile-link:hover {
        background: rgba(255,110,20,0.2);
    }

    .profile-link.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.avatar-upload {
    margin-top: 25px;
}

    .avatar-upload label {
        font-weight: 600;
    }

.upload-message {
    margin-top: 10px;
    color: #ffb381;
}
.createpost-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    color: #eee;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

    .createpost-container h2 {
        margin-bottom: 18px;
        font-size: 1.8rem;
        font-weight: 700;
        color: #ff6e14;
    }

/* Tabs / Post types */

.post-type-tabs {
    display: inline-flex;
    background: #151515;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 110, 20, 0.3);
    margin-bottom: 22px;
}

.tab-button {
    border: none;
    background: transparent;
    color: #ccc;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

    .tab-button:hover {
        background: rgba(255, 110, 20, 0.12);
        color: #fff;
    }

    .tab-button.active {
        background: #ff6e14;
        color: #000;
    }

/* Layout */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.left-column,
.right-column {
    background: #151515;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 110, 20, 0.22);
}

/* Form elements */

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        font-size: 0.9rem;
        color: #f5f5f5;
    }

.input-text,
.input-textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 110, 20, 0.3);
    background: #1c1c1c;
    color: #fefefe;
    padding: 9px 10px;
    font-size: 0.95rem;
}

.input-textarea {
    resize: vertical;
    min-height: 90px;
}

    .input-text:focus,
    .input-textarea:focus {
        outline: none;
        border-color: #ff6e14;
        box-shadow: 0 0 6px rgba(255, 110, 20, 0.5);
    }

/* Checkbox line */

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .form-group.checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

/* Notice box for models/checkpoints */

.notice-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 110, 20, 0.07);
    border: 1px solid rgba(255, 110, 20, 0.4);
    font-size: 0.85rem;
    line-height: 1.4;
    color: #ffd7b3;
}

    .notice-box code {
        font-family: "JetBrains Mono", "Fira Code", monospace;
        font-size: 0.85em;
        background: rgba(0, 0, 0, 0.35);
        padding: 1px 4px;
        border-radius: 4px;
    }

/* File selection / right column */

.file-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #cfcfcf;
    opacity: 0.85;
}

.status-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffb381;
}

/* Actions */

.actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.btn-main {
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    background: #ff6e14;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.98rem;
}

    .btn-main:hover:enabled {
        background: #ff8437;
    }

    .btn-main:disabled {
        opacity: 0.6;
        cursor: default;
    }

/* Mobile tweaks */

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .actions {
        justify-content: stretch;
    }

    .btn-main {
        width: 100%;
    }
}

/* Create post page */
.createpost-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    color: #eee;
    font-family: 'Inter', sans-serif;
}

    .createpost-container h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 18px;
        color: #ff6e14;
    }

.post-type-tabs {
    display: inline-flex;
    background: #151515;
    border: 1px solid rgba(255,110,20,0.3);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-button {
    border: none;
    background: transparent;
    color: #ccc;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

    .tab-button:hover {
        background: rgba(255,110,20,0.12);
        color: #fff;
    }

    .tab-button.active {
        background: #ff6e14;
        color: #000;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.left-column, .right-column {
    background: #151515;
    border: 1px solid rgba(255,110,20,0.25);
    border-radius: 10px;
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #eee;
    }

.input-text,
.input-textarea {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid rgba(255,110,20,0.3);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
}

.input-textarea {
    resize: vertical;
}

    .input-text:focus,
    .input-textarea:focus {
        border-color: #ff6e14;
        outline: none;
        box-shadow: 0 0 6px rgba(255,110,20,0.4);
    }

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-box {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255,110,20,0.07);
    border-left: 3px solid #ff6e14;
    color: #ffbf93;
    font-size: 0.9rem;
    border-radius: 6px;
}

.cover-preview {
    margin-top: 10px;
    width: 230px;
    border-radius: 8px;
    border: 1px solid rgba(255,110,20,0.4);
}

.file-hint {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 6px;
}

.status-message {
    margin-top: 10px;
    color: #ffb07d;
}

.actions {
    margin-top: 24px;
    text-align: right;
}

.btn-main {
    padding: 10px 22px;
    background: #ff6e14;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-main:hover:enabled {
        background: #ff8437;
    }

    .btn-main:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

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


/* post detail page */
.post-detail-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

.media-section {
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    border-radius: 8px;
}

.post-video {
    width: 100%;
    border-radius: 8px;
}

.post-header h1 {
    margin: 0 0 10px;
}

.creator-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .creator-row .avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        margin-right: 12px;
    }

.creator-name {
    font-size: 1.1rem;
    font-weight: bold;
}

.timestamp {
    font-size: .85rem;
    opacity: .6;
}

.locked-box {
    background: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid #444;
}

.post-description {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.download-box {
    margin-top: 25px;
    text-align: center;
}

.download-btn {
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: bold;
}


/* creator page*/

.creator-profile-container {
    max-width: 1100px;
    margin: auto;
    padding: 30px;
    color: #eee;
}

.creator-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.creator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 100px;
    object-fit: cover;
    border: 3px solid #ff6e14;
}

.creator-info h1 {
    margin: 0 0 4px;
}

.creator-bio {
    opacity: 0.8;
    margin-bottom: 10px;
}

.creator-stats span {
    margin-right: 20px;
    font-weight: 500;
}

.creator-actions {
    margin-top: 10px;
}

.btn-follow {
    background: #222;
    border: 1px solid #ff6e14;
    color: #ff6e14;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

    .btn-follow:hover {
        background: #ff6e14;
        color: black;
    }

.tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.tab {
    background: #222;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

    .tab.active {
        background: #ff6e14;
        color: #000;
    }

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.post-card, .model-card, .checkpoint-card {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.post-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 4px;
    color: white;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff6e14;
    font-weight: bold;
    font-size: 1rem;
}

/* Tokens */
.buytokens-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    color: #eee;
}

.page-title {
    text-align: center;
    color: #ff6e14;
    font-size: 2rem;
    margin-bottom: 20px;
}

.token-packages {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.token-package {
    background: rgba(255, 110, 20, 0.1);
    border: 1px solid rgba(255, 110, 20, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .token-package:hover {
        background: rgba(255, 110, 20, 0.25);
        transform: translateY(-3px);
    }

.invoice-card {
    background: #111;
    border: 1px solid rgba(255, 110, 20, 0.3);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    max-width: 550px;
    margin: 20px auto;
}

.xmr-address {
    display: block;
    word-break: break-all;
    background: #222;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    color: #ffb67a;
}

.paid-box {
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid #0f0;
    border-radius: 8px;
}

.status-box {
    margin-top: 20px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 6px;
}

.refresh-area {
    text-align: center;
    margin-top: 10px;
}

.btn-main {
    background: #ff6e14;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    color: black;
    font-weight: bold;
    cursor: pointer;
}

.btn-small {
    background: transparent;
    border: 1px solid #ff6e14;
    color: #ff6e14;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* -------------------------------------------------- */
/* UNIFIED Civitai-style Post Card Layout */
/* -------------------------------------------------- */

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    width: 100%;
}

/* Outer card container */
.post-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Thumbnail container for fixed sizing */
.post-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* PERFECT vertical card size */
    background: #000;
    overflow: hidden;
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* NSFW states */
.post-thumb.blurred {
    filter: blur(18px) brightness(0.6);
}

.nsfw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 5;
    cursor: pointer;
}

/* Buttons inside thumb */
.hide-btn,
.follow-btn {
    position: absolute;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    z-index: 6;
}

.hide-btn {
    right: 8px;
    background: #000000aa;
    color: white;
    border: none;
}

.follow-btn {
    left: 8px;
    background: #ff2b70;
    border: none;
    color: white;
}

/* Public/followers/sub/paid pills */
.tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 7;
}

.tag-private { background: #333; color: #fff; }
.tag-followers { background: #444; color: #fff; }
.tag-subs { background: #d69bf0; color: #000; }
.tag-paid { background: #ffd54f; color: #000; }

/* -------------------------------------------------- */
/* Creator + Title Section */
/* -------------------------------------------------- */

.post-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.creator-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.creator-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.creator-handle {
    font-size: 0.75rem;
    color: #aaa;
}

.post-title-line {
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.25rem;
    height: 2.5rem; /* 2 lines */
    overflow: hidden;
}

.gen-card {
    width: 250px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}

.gen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blurred {
    filter: blur(18px) brightness(0.6);
}

/* NSFW overlay */
.nsfw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.nsfw-text {
    font-size: 1rem;
    color: white;
    font-weight: bold;
}

.hide-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #000000bb;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 6;
}

/* META */
.gen-meta {
    padding: 10px;
}

.gen-title {
    font-size: .85rem;
    color: #ddd;
    min-height: 36px;
}

.gen-time {
    font-size: .75rem;
    color: #777;
}

/* PENDING CARD */
.pending-card {
    padding-top: 8px;
}

.pending-status {
    padding: 4px 8px;
    font-size: .8rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.pending-status.queued { background: #555; }
.pending-status.processing { background: #008cff; }
.pending-status.failed { background: #cc0033; }

.tag {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.tag-priority {
    background: #ff2b70;
}

.tag-private {
    background: #ffa600;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-img {
    max-height: 85vh;
    max-width: 85vw;
    object-fit: contain;
}

.modal-caption {
    color: #ccc;
    margin-top: 10px;
    text-align: center;
    max-width: 80%;
}
.gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 250px);
    gap: 20px;
}
.gen-card {
    background: #111;
    border-radius: 10px;
    border: 1px solid #222;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.gen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-processing { background: #1e88e5; color: #fff; }
.status-queued { background: #5e35b1; color: #fff; }
.status-failed { background: #e53935; color: #fff; }
.status-other { background: #424242; color: #fff; }

.meta-time {
    color: #aaa;
    font-size: 0.75rem;
}

.gen-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-pill {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: #222;
    color: #ccc;
}

.meta-pill.priority { background: #ff9800; color: #111; }
.meta-pill.private { background: #f06292; color: #111; }
.meta-pill.queue-pos { background: #26a69a; color: #111; }

.prompt-preview {
    color: #ddd;
    max-height: 3.2em;
    overflow: hidden;
}

.progress-wrapper {
    margin-top: 4px;
}

.progress-track {
    width: 100%;
    height: 5px;
    background: #222;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 5px;
    background: #ffa726;
    border-radius: 999px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 2px;
}
.result-card .thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blurred {
    filter: blur(18px) brightness(0.6);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 0 0 8px #000;
}

.nsfw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.nsfw-text {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.hide-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #000000aa;
    color: #fff;
    border: none;
}

.nsfw-pill {
    background: #e91e63;
    color: #fff;
}

.action-row {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
}

.btn-mini {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #555;
    background: #1c1c1c;
    color: #eee;
    font-size: 0.75rem;
    cursor: pointer;
}
 /* Simple layout for right panel cards */
    .gen-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 16px;
    }

    .gen-card {
        background: #111;
        border-radius: 10px;
        border: 1px solid #222;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .gen-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.85rem;
    }

    .queue-status {
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 0.75rem;
    }

    .queue-status-queued {
        background: #263238;
        color: #ffb74d;
    }

    .queue-status-processing {
        background: #1b5e20;
        color: #c8e6c9;
    }

    .queue-status-failed {
        background: #b71c1c;
        color: #ffcdd2;
    }

    .queue-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.8rem;
        color: #aaa;
    }

    .queue-tag {
        border-radius: 999px;
        padding: 2px 8px;
        border: 1px solid #333;
    }

    .queue-prompt {
        font-size: 0.8rem;
        color: #ddd;
        max-height: 4.5rem;
        overflow: hidden;
    }

    .progress-shell {
        width: 100%;
        height: 4px;
        background: #222;
        border-radius: 999px;
        overflow: hidden;
        margin-top: 4px;
    }

    .progress-bar-inner {
        height: 100%;
        background: #ff9800;
        transition: width 0.2s linear;
    }

    .elapsed-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        color: #aaa;
        margin-top: 2px;
    }

    .results-card-thumb-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        border-radius: 8px;
        background: #000;
        cursor: pointer;
    }

    .results-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .results-thumb.blurred {
        filter: blur(18px) brightness(0.6);
    }

    .nsfw-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 5;
        cursor: pointer;
    }

    .nsfw-text {
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .results-card-body {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .results-prompt {
        font-size: 0.8rem;
        color: #ddd;
        max-height: 3.2rem;
        overflow: hidden;
    }

    .results-meta-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
        color: #999;
    }

    .results-actions {
        margin-top: 6px;
        display: flex;
        gap: 6px;
    }

    .btn-mini {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 6px;
        border: 1px solid #444;
        background: #1a1a1a;
        color: #eee;
        cursor: pointer;
    }

    .btn-mini:hover {
        background: #222;
    }

    /* Modal */
    .modal-backdrop-gen {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .modal-content-gen {
        background: #111;
        border-radius: 12px;
        max-width: 90vw;
        max-height: 90vh;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .modal-media-shell {
        max-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-media-shell img,
    .modal-media-shell video {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }

    .modal-footer-gen {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 0.8rem;
    }

    .modal-footer-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .modal-prompt-text {
        max-height: 4.5rem;
        overflow: auto;
        color: #ddd;
    }

    .modal-footer-buttons {
        display: flex;
        gap: 6px;
        justify-content: flex-end;
    }
    .paid-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffb300;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 5;
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: none;
}

.paid-price {
    background: #ff9800;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.thumb-wrapper {
    position: relative;
}

/* Hover action bar (bottom, above stats) */
.card-action-bar-bottom {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.post-card-outer:hover .card-action-bar-bottom {
    opacity: 1;
    pointer-events: auto;
}

.icon-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 999px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .icon-btn:hover {
        background: rgba(255,255,255,0.15);
    }

/* Stats row */
.card-stats-row {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 12px;
    background: rgba(0,0,0,0.6);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 8;
}

