/* --- RESET & GLOBAL THEME VARIABLES (PHASE 10 LOCKED THEME) --- */
:root {
    --bg-dark: #08090b;
    --bg-page: #08090b;
    --bg-card: #111216;
    --bg-surface: #111216;
    --bg-surface-elevated: #16181e;
    --bg-card-hover: #1b1d24;
    --bg-surface-hover: #1e2029;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 94, 26, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #9095a5;
    --text-muted: #5e6373;
    --accent-orange: #ff5e1a;
    --accent-primary: #ff5e1a;
    --accent-gold: #ff8533;
    --accent-secondary: #ff8533;
    --accent-orange-glow: rgba(255, 94, 26, 0.28);
    --grad-accent: linear-gradient(135deg, #ff6a1a 0%, #e54b09 100%);
    --grad-dark-card: linear-gradient(180deg, #16171d 0%, #101115 100%);
    --sidebar-width: 240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    caret-color: transparent; /* Hides blinking cursor globally on non-inputs */
}

/* Re-enable text selection and blinking text cursor strictly for input fields and textareas */
input, textarea {
    caret-color: var(--accent-orange);
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Legacy sidebar container compatibility */
.app-container.with-sidebar {
    flex-direction: row;
}

/* --- TOP HEADER ALIGNMENT (LEGACY & SUB-CONTAINER COMPATIBILITY) --- */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.auth-buttons-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: #0e0f12;
    border-right: 1px solid var(--border-color);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;

    scrollbar-width: thin;
    scrollbar-color: #262830 transparent;
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #262830;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* --- BRAND LOGO DISPLAY (UNIFIED, LARGE & CRISP) --- */
.logo-container {
    padding: 10px 6px 26px 6px;
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

/* ==========================================================================
   PERFORMANCE & CLS STABILIZATION: UNIVERSAL LUCIDE ICON PLACEHOLDER RULES
   Pre-reserves exact display and dimensions before lucide.createIcons() runs
   ========================================================================== */
i[data-lucide],
[data-lucide] {
    display: inline-block !important;
    width: 1em;
    height: 1em;
    box-sizing: border-box;
    vertical-align: middle;
    flex-shrink: 0;
}

.brand-logo {
    height: 56px !important;
    width: auto !important;
    max-width: 215px !important;
    display: block;
    object-fit: contain;
    object-position: left center;
    filter: none !important;
    image-rendering: auto;
    transform: translateZ(0);
}

.logo-text-fallback {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-orange {
    color: var(--accent-orange);
}

.logo-white {
    color: #ffffff;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    padding: 8px 12px 4px 12px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.nav-item.active {
    border-left: 3px solid var(--accent-orange);
}

/* HIGHLIGHTED NAV LINK */
.highlight-link {
    color: var(--accent-orange) !important;
    font-weight: 600 !important;
}

.highlight-link:hover {
    background-color: rgba(255, 153, 0, 0.1) !important;
    color: var(--accent-gold) !important;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.sidebar-legal-links {
    font-size: 0.72rem;
    color: var(--text-secondary);
    padding: 12px 10px 4px 10px;
    line-height: 1.6;
}

.sidebar-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-legal-links a:hover {
    color: var(--accent-orange);
}

/* --- MAIN CONTENT CONTAINER (FULL-WIDTH CENTERED CANVAS) --- */
.main-content {
    margin-left: 0;
    flex: 1;
    padding: 40px 32px 96px 32px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    box-sizing: border-box;
}

.app-container.with-sidebar .main-content {
    margin-left: var(--sidebar-width);
    max-width: calc(100vw - var(--sidebar-width));
}

/* --- GLOBAL BUTTONS & FORM INPUTS --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-orange-glow);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #0b0c0e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm);
    color: var(--text-primary) !important;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent-orange) !important;
}

/* --- CUSTOM FORM SELECT & DROPDOWN OVERRIDES --- */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #0b0c0e !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9900' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 42px !important;
    cursor: pointer;
    color: var(--text-primary) !important;
}

.form-select option {
    background-color: #141519 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 0.9rem;
}

.form-select option:checked,
.form-select option:hover,
.form-select option:focus {
    background-color: #262830 !important;
    background: #262830 linear-gradient(0deg, #262830 0%, #262830 100%) !important;
    color: var(--accent-orange) !important;
}

.form-select option:disabled {
    color: var(--text-secondary) !important;
}

.form-select option[value="__custom__"] {
    color: var(--accent-orange) !important;
    font-weight: 600;
}

/* --- HOME PAGE HERO & GALLERY --- */
.hero-section {
    text-align: center;
    max-width: 760px;
    margin: 20px auto 60px auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff, var(--accent-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-orange);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn svg {
    width: 16px;
    height: 16px;
    color: #000;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-orange {
    color: var(--accent-orange);
}

.filter-pills {
    display: flex;
    gap: 8px;
}

.pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover, .pill.active {
    background-color: var(--accent-orange);
    color: #000;
    border-color: var(--accent-orange);
    font-weight: 600;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* PROMPT CARD */
.prompt-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.prompt-card:hover {
    transform: translateY(-4px);
    border-color: #383a45;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background-color: #1a1b20;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(50% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    text-decoration: none;
    box-sizing: border-box;
}

.card-score-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    max-width: calc(50% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 153, 0, 0.45);
    color: var(--accent-orange);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-sizing: border-box;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.prompt-card:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    width: 140px;
    text-align: center;
}

.btn-view {
    background-color: #ffffff;
    color: #000;
}

.btn-copy {
    background-color: var(--accent-orange);
    color: #000;
}

.card-details {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stats-group {
    display: flex;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-item svg {
    width: 14px;
    height: 14px;
}

/* FLOATING MODAL OVERLAY */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background-color: #141519;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 880px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent-orange);
    color: #000;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100100;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- AD BANNERS & MONETIZATION STYLES --- */
.ad-banner-wrapper {
    background: #0e0f12;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 24px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.ad-placeholder-content {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    background: #141519;
}

/* --- MAIN PAGE FOOTER --- */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
    padding-bottom: 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand-col {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-links-grid {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent-orange);
}

/* --- CANONICAL TOP HEADER & AUTHENTICATION BASE --- */
.top-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.auth-buttons-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    color: var(--accent-orange);
}

.btn-signup {
    background-color: var(--accent-orange);
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-signup:hover {
    background-color: var(--accent-gold);
    box-shadow: 0 0 12px var(--accent-orange-glow);
}

.logged-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
    color: #ffffff;
}

.logged-user-pill:hover,
.logged-user-pill[aria-expanded="true"] {
    border-color: var(--accent-orange);
    background: rgba(255, 153, 0, 0.05);
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-orange);
}

.header-username {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-chevron {
    transition: transform 0.2s ease;
}

.logged-user-pill[aria-expanded="true"] .header-chevron {
    transform: rotate(180deg);
}

/* --- NOTIFICATION BELL & AUTHENTICATED HEADER POLISH --- */
.header-auth-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.header-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-notification-bell {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-notification-bell:hover,
.btn-notification-bell:focus-visible {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 153, 0, 0.08);
    outline: none;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4d4d;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    line-height: 1;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex !important;
}

.notif-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.btn-mark-all-read {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-orange);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.btn-mark-all-read:hover {
    background: rgba(255, 153, 0, 0.12);
}

.notif-list-container {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-loading-state,
.notif-empty-state,
.notif-error-state {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.notif-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 153, 0, 0.2);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: notifSpin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes notifSpin {
    to { transform: rotate(360deg); }
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: background 0.15s ease;
    text-decoration: none;
}

.notif-item:hover {
    background: rgba(255, 153, 0, 0.05);
}

.notif-item.unread {
    background: rgba(255, 153, 0, 0.04);
}

.notif-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-orange);
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    line-height: 1.35;
    color: var(--text-secondary);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.notif-text strong {
    color: #ffffff;
    font-weight: 600;
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 3px;
    opacity: 0.8;
}

.logged-user-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    height: 40px;
    padding: 4px 12px 4px 6px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.logged-user-pill:hover,
.logged-user-pill:focus-visible {
    border-color: var(--accent-orange);
    background: rgba(255, 153, 0, 0.06);
    outline: none;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-orange);
    flex-shrink: 0;
}

.header-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-chevron {
    transition: transform 0.2s ease;
}

.profile-wrapper.active .header-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    padding: 6px 0;
    z-index: 10000;
    display: none;
    flex-direction: column;
}

.profile-dropdown.active {
    display: flex !important;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus-visible {
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent-orange);
    outline: none;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.profile-dropdown-item.logout-item {
    color: #ff6b6b;
}

.profile-dropdown-item.logout-item:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
}

/* --- PROMPT INTELLIGENCE MODAL PARITY FIX (MATCHES INDEX.HTML EXACTLY) --- */
.version-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0c0e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 12px !important;
    margin-bottom: 12px !important;
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
}

.version-select {
    background: #141519 !important;
    color: #fff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    outline: none !important;
    cursor: pointer;
}

.verification-log-badge {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.verification-log-badge.status-untested {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--text-secondary, #9ca3af) !important;
}

.verification-log-badge.status-self-tested {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #60a5fa !important;
}

.verification-log-badge.status-community-tested {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    color: #4ade80 !important;
}

.verification-log-badge.status-pending {
    background: rgba(234, 179, 8, 0.12) !important;
    border-color: rgba(234, 179, 8, 0.35) !important;
    color: #facc15 !important;
}

.quality-breakdown-panel {
    background: #0b0c0e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 14px !important;
    margin-top: 8px !important;
    display: none !important;
}

.quality-breakdown-panel.active {
    display: block !important;
}

.quality-metric-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.78rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 6px !important;
}

.quality-metric-row:last-child {
    margin-bottom: 0 !important;
}

.quality-metric-row span:last-child {
    color: var(--accent-orange) !important;
    font-weight: 700 !important;
}

.customizer-drawer {
    background: #0b0c0e !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 16px !important;
    margin-top: 12px !important;
    display: none !important;
}

.customizer-drawer.active {
    display: block !important;
}

.customizer-title {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--accent-orange) !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.customizer-fields-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.customizer-field-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.customizer-field-group label {
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}

.customizer-field-group input {
    background: #141519 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 12px !important;
    color: #fff !important;
    font-size: 0.85rem !important;
    outline: none !important;
}

.customizer-output-box {
    background: #141519 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px !important;
    font-family: monospace !important;
    font-size: 0.85rem !important;
    color: #e0e0e0 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    margin-bottom: 10px !important;
    max-height: 120px !important;
    overflow-y: auto !important;
}

.customizer-actions {
    display: flex !important;
    gap: 8px !important;
}

/* ==========================================================================
   TOP HEADER, BREADCRUMBS & AUTH BUTTONS (GLOBAL)
   ========================================================================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drawer-trigger {
    display: none;
    background: #141519;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 7px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.drawer-trigger:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.header-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-breadcrumb a:hover {
    color: var(--accent-orange);
}

.header-breadcrumb span {
    color: rgba(255, 255, 255, 0.2);
}

.header-breadcrumb .active {
    color: #ffffff;
    font-weight: 600;
}

.header-right,
.auth-buttons-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    color: var(--accent-orange);
}

.btn-signup {
    background-color: var(--accent-orange);
    color: #000000;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-signup:hover {
    background-color: var(--accent-gold);
    box-shadow: 0 0 14px var(--accent-orange-glow);
    color: #000000;
}

.logged-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.logged-user-pill:hover {
    border-color: var(--accent-orange);
}

.header-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent-orange);
}

.header-username {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
}

.btn-logout-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.btn-logout-icon:hover {
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .drawer-trigger {
        display: inline-flex;
    }
}

/* ==========================================================================
   UNIVERSAL PROMPT COMMENTS SECTION STYLES
   ========================================================================== */
.comments-section {
    margin-top: 24px;
    background: #0d0e12;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.comments-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count-pill {
    background: rgba(255, 153, 0, 0.12);
    color: var(--accent-orange);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.comments-owner-toggle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.comments-owner-toggle:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.comments-disabled-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.comment-composer {
    margin-bottom: 20px;
    background: #141519;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    background: #090a0d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 12px;
    font-size: 0.88rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.comment-textarea:focus {
    border-color: var(--accent-orange);
}

.comment-composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.comment-char-counter {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-post-comment {
    background: var(--accent-orange);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-post-comment:hover {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-orange-glow);
}

.btn-post-comment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent-orange);
    object-fit: cover;
}

.comment-username {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.comment-username:hover {
    color: var(--accent-orange);
}

.comment-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.comment-body {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    word-break: break-word;
}

.comment-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    transition: color 0.15s ease;
}

.comment-action-btn:hover {
    color: var(--accent-orange);
}

.reply-list {
    margin-left: 20px;
    margin-top: 10px;
    border-left: 2px solid rgba(255, 153, 0, 0.3);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-composer-inline {
    margin-top: 8px;
    padding: 8px;
    background: #090a0d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* MOBILE DRAWER OVERLAY SECURITY LOCK */
.mobile-drawer-overlay {
    display: none !important;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-drawer-overlay.active {
    display: block !important;
    opacity: 1;
}

/* --- NOTIFICATION BELL & AUTHENTICATED HEADER POLISH --- */
.header-auth-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.header-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-notification-bell {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-notification-bell:hover,
.btn-notification-bell:focus-visible {
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    background: rgba(255, 153, 0, 0.08);
    outline: none;
}

.btn-header-logout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-sizing: border-box;
}

.btn-header-logout:hover {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.5);
    background: rgba(255, 77, 77, 0.08);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4d4d;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    line-height: 1;
    z-index: 3;
    pointer-events: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(340px, calc(100vw - 24px));
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notification-dropdown.active {
    display: flex !important;
}

.notif-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.btn-mark-all-read {
    background: transparent;
    border: none;
    font-size: 0.75rem;
    color: var(--accent-orange);
    cursor: pointer;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-mark-all-read:hover {
    text-decoration: underline;
}

.notif-list-container {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(255, 153, 0, 0.04);
}

.notif-item.unread:hover {
    background: rgba(255, 153, 0, 0.08);
}

.notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.notif-content {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.4;
}

.notif-message {
    color: #e2e8f0;
}

.notif-message strong {
    color: #ffffff;
}

.notif-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.notif-empty-state {
    padding: 32px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* User Profile Pill & Dropdown */
.logged-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 6px;
    border-radius: 30px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    height: 40px;
    box-sizing: border-box;
}

.logged-user-pill:hover,
.logged-user-pill:focus-visible {
    border-color: var(--accent-orange);
    outline: none;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--accent-orange);
}

.header-username {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: #0f1117;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 6px;
}

.profile-dropdown.active {
    display: flex !important;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.profile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.profile-dropdown-item.admin-dropdown-item {
    color: var(--accent-orange);
}

.profile-dropdown-item.admin-dropdown-item:hover {
    background: rgba(255, 110, 20, 0.12);
    color: #ff8c42;
}

.profile-dropdown-item.blog-dropdown-item {
    color: var(--accent-orange);
}

.profile-dropdown-item.blog-dropdown-item:hover {
    background: rgba(255, 110, 20, 0.12);
    color: #ff8c42;
}

.profile-dropdown-item.logout-item {
    color: #f87171;
}

.profile-dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ff4d4d;
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ===================================================
   PRIMARY HEADER CTA: CREATE PROMPT
   =================================================== */
.btn-header-create-prompt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #ff9900, #ff5500);
    color: #0b0c0e !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 16px;
    height: 40px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
    cursor: pointer;
}

.btn-header-create-prompt:hover {
    background: linear-gradient(135deg, #ffaa22, #ff6611);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 153, 0, 0.4);
}

.btn-header-create-prompt:active {
    transform: translateY(0);
}

/* ===================================================
   INLINE CHAT MESSAGE EDITING
   =================================================== */
.msg-inline-edit-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 240px;
    max-width: 520px;
    box-sizing: border-box;
    padding: 4px 0;
}

.msg-inline-edit-input {
    width: 100%;
    background: #0d0f14;
    border: 1px solid var(--accent-orange);
    color: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    min-height: 54px;
}

.msg-inline-edit-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.3);
}

.msg-inline-edit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.msg-inline-edit-hint {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

.btn-msg-edit-save {
    background: var(--accent-orange);
    color: #0b0c0e;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-msg-edit-save:hover {
    background: #ffaa22;
}

.btn-msg-edit-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-msg-edit-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ===================================================
   INLINE CHAT MESSAGE DELETE CONFIRMATION
   =================================================== */
.msg-inline-delete-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 77, 0.12);
    border: 1px solid rgba(255, 77, 77, 0.4);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.76rem;
    color: #ff6b6b;
    margin-top: 4px;
}

.btn-msg-del-confirm {
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-msg-del-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
}

/* ===================================================
   SIDEBAR CLEANUP: SUPPRESS REDUNDANT NAVIGATION
   =================================================== */
.sidebar .nav-item[href*="messages.html"],
.sidebar .nav-item[href*="create.html"],
.sidebar .nav-item[href*="my-prompts.html"],
.sidebar .nav-item[href*="profile.html"],
.sidebar .nav-item[href*="settings.html"],
.sidebar-footer .nav-item[href*="profile.html"],
.sidebar-footer .nav-item[href*="settings.html"],
.mobile-drawer-content .nav-item[href*="messages.html"],
.mobile-drawer-content .nav-item[href*="create.html"],
.mobile-drawer-content .nav-item[href*="my-prompts.html"],
.mobile-drawer-content .nav-item[href*="profile.html"],
.mobile-drawer-content .nav-item[href*="settings.html"] {
    display: none !important;
}

/* Hide empty CREATE section heading when children are hidden */
.sidebar .nav-section-title:has(+ .nav-group a[href*="create.html"]:only-child),
.sidebar .nav-section-title:has(+ .nav-group > a[href*="create.html"]) {
    display: none !important;
}

/* ==========================================================================
   PHASE 10 LOCKED THEME: TOP NAVIGATION BAR
   ========================================================================== */
.top-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(8, 9, 11, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.top-nav-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.top-nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.top-nav-logo-img {
    height: 38px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.top-nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.top-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-orange-glow);
    border-radius: 2px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.top-nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.top-nav-search-btn:hover {
    border-color: var(--border-hover);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.top-nav-search-btn i {
    width: 15px;
    height: 15px;
}

.top-nav-search-btn kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.top-nav-hamburger {
    display: none;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 7px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   PHASE 10 CINEMATIC GENCUEBOX FOOTER (CANONICAL STANDARDIZED SYSTEM)
   VISUAL SOURCE OF TRUTH: FIRST SCREENSHOT / APPROVED TRENDING FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
    padding: 32px 24px 0 24px;
    background-color: #050608;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 122, 0, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 6, 8, 0.85) 0%, rgba(5, 6, 8, 0.35) 45%, rgba(5, 6, 8, 0.15) 80%, rgba(5, 6, 8, 0.50) 100%),
        linear-gradient(90deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.82) 32%, rgba(5, 6, 8, 0.45) 65%, rgba(5, 6, 8, 0.20) 100%),
        url('../assets/section-08/footer-bg.png');
    background-image:
        radial-gradient(circle at 50% 0%, rgba(255, 122, 0, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5, 6, 8, 0.85) 0%, rgba(5, 6, 8, 0.35) 45%, rgba(5, 6, 8, 0.15) 80%, rgba(5, 6, 8, 0.50) 100%),
        linear-gradient(90deg, rgba(5, 6, 8, 0.94) 0%, rgba(5, 6, 8, 0.82) 32%, rgba(5, 6, 8, 0.45) 65%, rgba(5, 6, 8, 0.20) 100%),
        image-set(
            url('../assets/section-08/footer-bg.webp') type('image/webp'),
            url('../assets/section-08/footer-bg.png') type('image/png')
        );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    border-top: 1px solid rgba(255, 122, 0, 0.32);
    overflow: hidden;
}

.footer-inner {
    max-width: 1392px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.8fr 1.6fr 1.9fr 1.6fr 1.5fr;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 26px;
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-logo-link {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.footer-brand-logo-img {
    height: 26px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.footer-brand-tagline {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.footer-brand-desc {
    font-size: 0.76rem;
    line-height: 1.4;
    color: #a1abb9;
    margin: 0;
    max-width: 380px;
}

/* Social Row - Exactly Three Controls (Approved Compact 36px Circles) */
.footer-social-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 11, 14, 0.72);
    border: 1px solid rgba(255, 122, 0, 0.50);
    color: var(--accent-orange, #ff7a00);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 0 10px rgba(255, 94, 26, 0.12);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-social-btn:hover {
    border-color: rgba(255, 122, 0, 0.95);
    color: #ff9d42;
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(255, 122, 0, 0.35);
    background: rgba(22, 24, 32, 0.90);
}

.footer-social-btn:focus-visible {
    outline: 2px solid var(--accent-orange, #ff7a00);
    outline-offset: 2px;
}

.footer-social-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* Navigation Columns */
.footer-col {
    display: flex;
    flex-direction: column;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-col-title {
    margin: 0 0 10px 0;
    font-size: 0.86rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
    color: var(--accent-orange, #ff7a00);
    flex-shrink: 0;
    display: inline-block;
}

.footer-col-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-col-links li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-col-links li a,
.footer-col-links a {
    font-size: 0.80rem;
    line-height: 1.3;
    color: #9da5b3;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.footer-col-links li a:hover,
.footer-col-links a:hover {
    color: var(--accent-orange, #ff7a00);
    transform: translateX(3px);
}

.footer-col-links a:focus-visible {
    outline: 2px solid var(--accent-orange, #ff7a00);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Thin Orange Bottom Divider */
.footer-bottom-divider {
    width: 100%;
    max-width: 1392px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 122, 0, 0.08) 0%,
        rgba(255, 122, 0, 0.65) 25%,
        rgba(255, 122, 0, 0.85) 50%,
        rgba(255, 122, 0, 0.65) 75%,
        rgba(255, 122, 0, 0.08) 100%
    );
    box-shadow: 0 0 8px rgba(255, 122, 0, 0.20);
    border: none;
}

/* Structured Bottom Strip Wrapper */
.footer-bottom-strip-wrapper {
    width: 100%;
    background: rgba(4, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 122, 0, 0.20);
    padding: 14px 24px;
    box-sizing: border-box;
}

.site-footer .footer-bottom-strip,
.footer-bottom-strip {
    max-width: 1392px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    gap: 16px;
    min-height: 28px;
}

.site-footer .footer-bottom-left,
.footer-bottom-left {
    display: inline-flex;
    align-items: center;
    z-index: 1;
}

.footer-copyright-text {
    font-size: 0.78rem;
    color: #9da3af;
    display: inline-block;
}

.site-footer .footer-bottom-center,
.footer-bottom-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    z-index: 0;
}

.footer-brand-statement {
    font-size: 0.72rem;
    color: #64748b;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.footer-bottom-right,
.footer-back-to-top-wrap,
.footer-back-to-top-btn,
.footer-back-to-top-label,
.footer-back-to-top-icon {
    display: none !important;
}

/* Responsive Overrides for Canonical Footer */
@media screen and (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-col:last-child {
        grid-column: span 4;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 18px;
        margin-top: 10px;
    }
}

@media screen and (max-width: 900px) {
    .site-footer {
        padding: 28px 20px 0 20px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-bottom: 24px;
    }

    .footer-brand-col {
        grid-column: span 2;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 18px;
        padding-right: 0;
    }

    .footer-col:last-child {
        grid-column: span 2;
    }

    .site-footer .footer-bottom-strip,
    .footer-bottom-strip {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .site-footer .footer-bottom-center,
    .footer-bottom-center {
        position: static;
        transform: none;
    }

    .site-footer .footer-bottom-left,
    .footer-bottom-left,
    .site-footer .footer-bottom-center,
    .footer-bottom-center {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    .site-footer {
        padding: 28px 16px 0 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col {
        border-right: none;
        padding-right: 0;
    }

    .footer-brand-col {
        grid-column: span 1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 14px;
        padding-right: 0;
    }

    .footer-brand-statement {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        white-space: normal;
    }
}

/* ==========================================================================
   HOMEPAGE CONCEPT HERO & DISCOVERY SECTIONS (HIGH FIDELITY POLISH)
   ========================================================================== */
.concept-section {
    margin-top: 84px;
    position: relative;
}

/* ==========================================================================
   PHASE 10 SECTION 01: FULL-BLEED HERO & INTEGRATED TRUST RAIL
   ========================================================================== */
.homepage-hero-fullbleed-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
}

.home-hero-fullbleed,
.home-hero-concept {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 32vw, 620px);
    background-image: url('../assets/b02.png');
    background-image: image-set(
        url('../assets/b02.webp') type('image/webp'),
        url('../assets/b02.png') type('image/png')
    );
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* GRADUAL READABILITY OVERLAY: Strong near-black on LEFT, luminous transparent on RIGHT */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 9, 11, 0.96) 0%,
        rgba(8, 9, 11, 0.92) 40%,
        rgba(8, 9, 11, 0.65) 56%,
        rgba(8, 9, 11, 0.18) 74%,
        rgba(8, 9, 11, 0.0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* INNER HERO CONTAINER: Constrained to normal site grid (1480px) */
.home-hero-inner {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 44px 32px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* CONTENT COLUMN: Takes left ~54% on desktop, preserving artwork on right ~46% */
.hero-content-col {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-concept-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.35);
    color: var(--accent-orange);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero-concept-badge i[data-lucide],
.hero-concept-badge svg {
    width: 13px !important;
    height: 13px !important;
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
}

.hero-title-locked {
    font-size: clamp(2.3rem, 3.8vw, 3.3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.035em;
    color: #ffffff;
    margin: 0 0 14px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.hero-positioning-line {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffa133;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    text-align: left;
}

.hero-subhead-locked {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 580px;
    margin: 0 0 24px 0;
    text-align: left;
}

/* SEARCH FIELD — LEFT COMPOSITION WITH POSITION RELATIVE & ABSOLUTE CLEARED ICONS */
.concept-search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 54px;
    margin: 0 0 20px 0;
    box-sizing: border-box;
    z-index: 10;
}

.search-icon-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b91a0;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 2;
}

.concept-search-input {
    width: 100%;
    height: 54px;
    background: rgba(14, 16, 21, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--radius-full) !important;
    color: #ffffff !important;
    font-size: 0.98rem !important;
    outline: none !important;
    padding: 0 58px 0 54px !important;
    font-family: inherit;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 107, 0, 0.08);
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.concept-search-input:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(255, 107, 0, 0.25) !important;
    background: rgba(18, 20, 26, 0.96) !important;
}

.concept-search-input::placeholder {
    color: #8b91a0;
}

.concept-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9900, #ff5500);
    border: none;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 2;
}

.concept-search-btn:hover {
    background: linear-gradient(135deg, #ffaa22, #ff6611);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 14px var(--accent-orange-glow);
}

/* AUTOCOMPLETE DROPDOWN STYLES FOR HERO SEARCH */
.concept-search-bar .autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0e1015;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 107, 0, 0.08);
    z-index: 100;
    max-height: 290px;
    overflow-y: auto;
    padding: 6px 0;
}

.concept-search-bar .autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.concept-search-bar .autocomplete-item:hover,
.concept-search-bar .autocomplete-item.active {
    background: rgba(255, 107, 0, 0.15);
    color: #ffa133;
}

.concept-search-bar .autocomplete-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.concept-search-bar .autocomplete-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    background: #1a1c22;
    color: #9da3af;
    border: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

.concept-search-bar .autocomplete-badge.prompt {
    background: rgba(255, 107, 0, 0.12);
    color: #ff9900;
    border-color: rgba(255, 107, 0, 0.3);
}

.concept-search-bar .autocomplete-badge.category {
    background: rgba(255, 153, 0, 0.1);
    color: var(--accent-orange);
    border-color: rgba(255, 153, 0, 0.3);
}

.concept-search-bar .autocomplete-badge.model {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

.concept-search-bar .autocomplete-badge.creator {
    background: rgba(147, 197, 253, 0.1);
    color: #93c5fd;
    border-color: rgba(147, 197, 253, 0.3);
}

/* QUICK EXPLORATION PILLS */
.hero-quick-pills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    width: 100%;
}

.quick-pills-label {
    font-size: 0.84rem;
    color: #8b91a0;
    font-weight: 500;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.quick-pill:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: rgba(255, 107, 0, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

/* DISCOVERY CTAS */
.hero-actions-concept {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-concept-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9900, #ff5500);
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.94rem;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-concept-primary:hover {
    background: linear-gradient(135deg, #ffaa22, #ff6611);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 107, 0, 0.45);
}

.btn-concept-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-concept-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   INTEGRATED TRUST & STATS RAIL (FULL-WIDTH ATTACHED AT BOTTOM OF HERO)
   ========================================================================== */
.home-trust-rail,
.trust-platform-strip {
    width: 100%;
    background: #08090c;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 16px 0;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

.home-trust-rail-inner,
.trust-strip-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.trust-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding: 8px 14px;
    justify-content: center;
}

/* PREMIUM GLOW EMBLEM BADGE */
.trust-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 120, 20, 0.28) 0%, rgba(18, 20, 26, 0.95) 70%);
    border: 1px solid rgba(255, 120, 20, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffa133;
    flex-shrink: 0;
    box-shadow:
        0 0 18px rgba(255, 94, 26, 0.22),
        0 0 36px rgba(255, 94, 26, 0.08),
        inset 0 0 12px rgba(255, 94, 26, 0.14);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trust-stat-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.40) 0%, rgba(255, 94, 26, 0) 70%);
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
}

.trust-stat-icon svg,
.trust-stat-icon i {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 4px rgba(255, 120, 20, 0.4));
}

.trust-stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-stat-num {
    font-size: clamp(1.75rem, 2.2vw, 2.1rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.trust-stat-label {
    font-size: 0.84rem;
    color: #9da3af;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.trust-strip-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}

/* ==========================================================================
   HOMEPAGE UNIFIED CENTERED CONTENT CONTAINER (PHASE 10 WIDTH CORRECTION)
   Eliminates left-bias and right-side empty gutter on wide desktops.
   ========================================================================== */
.home-main-content,
.main-content.home-main-content,
.home-sections-container {
    width: 100% !important;
    max-width: 1480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 32px 96px 32px !important;
    box-sizing: border-box !important;
}

#homeTrendingGrid.home-trending-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   SECTION 02 — TRENDING TODAY + PREMIUM PROMPT CARDS (PHASE 10 SCOPED)
   ========================================================================== */
.home-trending-section {
    margin-top: 76px;
    margin-bottom: 72px;
    width: 100%;
    box-sizing: border-box;
}

.trending-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 16px;
}

.trending-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-title {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.025em;
}

.trending-flame-icon {
    color: var(--accent-orange);
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 10px rgba(255, 94, 26, 0.45));
}

.trending-subhead {
    font-size: 0.88rem;
    color: #9da3af;
    margin: 0;
    line-height: 1.45;
}

.trending-controls-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.trending-time-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #0d0e13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3px;
}

.trending-tab {
    background: transparent;
    border: none;
    color: #8b91a0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.trending-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.trending-tab.active {
    background: linear-gradient(135deg, #ff9900, #ff5500);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 94, 26, 0.35);
}

.trending-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.trending-view-all-link:hover {
    color: var(--accent-gold) !important;
    background: rgba(255, 107, 0, 0.08);
}

/* 5-CARD DESKTOP GRID (SECTION 02 TRENDING TODAY) */
.home-trending-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

/* 4-CARD DESKTOP GRID (SECTION 06 HIGH COMPLETENESS PROMPTS) */
.home-completeness-grid,
.gcb-prompt-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 32px;
}

@media screen and (max-width: 1200px) {
    .home-completeness-grid,
    .gcb-prompt-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media screen and (max-width: 900px) {
    .home-completeness-grid,
    .gcb-prompt-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media screen and (max-width: 600px) {
    .home-completeness-grid,
    .gcb-prompt-grid-4 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ==========================================================================
   UNIVERSAL PROMPT CARD COMPONENT (GCB-PROMPT-CARD / SECTION 02 & 06 PARITY)
   ========================================================================== */
.gcb-prompt-card,
.home-trending-card {
    background: #0f1116;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gcb-prompt-card:hover,
.home-trending-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 110, 20, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 107, 0, 0.12);
    background: #13151c;
}

.gcb-card-image-wrap,
.trending-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #14161d;
}

.gcb-card-img,
.trending-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gcb-prompt-card:hover .trending-card-img,
.gcb-prompt-card:hover .gcb-card-img,
.home-trending-card:hover .trending-card-img {
    transform: scale(1.03);
}

/* Portrait-aware card image orientation — Phase 23B / 23I / 23J */
.trending-card-img.is-portrait,
.gcb-card-img.is-portrait,
.card-image.is-portrait,
.favorites-card-img.is-portrait,
.card-media-img.is-portrait,
.card-preview-img.is-portrait {
    object-fit: contain;
    object-position: center;
    background: #0e1016;
}
.trending-card-img.is-landscape,
.gcb-card-img.is-landscape,
.card-image.is-landscape,
.favorites-card-img.is-landscape,
.card-media-img.is-landscape,
.card-preview-img.is-landscape {
    object-fit: cover;
    object-position: center;
}
.trending-card-img.is-placeholder,
.gcb-card-img.is-placeholder,
.card-image.is-placeholder,
.favorites-card-img.is-placeholder,
.card-media-img.is-placeholder,
.card-preview-img.is-placeholder {
    object-fit: cover;
    object-position: center;
}

.trending-action-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
}

.trending-action-btn:hover {
    background: var(--accent-orange);
    color: #000000;
    border-color: var(--accent-orange);
    transform: scale(1.08);
}

.trending-card-body {
    padding: 16px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.trending-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.7em;
}

.trending-model-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trending-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e5e7eb;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.18s ease;
}

.trending-model-pill:hover {
    border-color: rgba(255, 107, 0, 0.4);
    color: var(--accent-orange);
}

.trending-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.trending-status-pill.community {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.trending-status-pill.creator {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

/* BIG ORANGE PCS NUMBER DISPLAY */
.trending-pcs-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: rgba(255, 107, 0, 0.06);
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: 8px;
}

.trending-pcs-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    letter-spacing: -0.02em;
}

.trending-pcs-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.trending-pcs-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffa133;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trending-pcs-tag.muted {
    color: #8b91a0;
}

.trending-pcs-label {
    font-size: 0.72rem;
    color: #8b91a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.trending-pcs-box.unrated {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.trending-pcs-box.unrated .trending-pcs-number {
    color: #6b7280;
}

/* CREATOR ROW */
.trending-creator-row {
    margin-top: auto;
    padding-top: 4px;
}

.trending-creator-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.trending-creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 107, 0, 0.35);
    flex-shrink: 0;
}

.trending-creator-handle {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-orange);
    transition: color 0.18s ease;
}

.trending-creator-link:hover .trending-creator-handle {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ENGAGEMENT FOOTER */
.trending-card-footer {
    padding: 9px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trending-metrics-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trending-metric {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: #8b91a0;
    font-weight: 500;
}

.trending-metric svg,
.trending-metric i {
    color: #6b7280;
    width: 13px;
    height: 13px;
}

/* SECTION HEADER BAR */
.feed-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.feed-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.feed-header-bar a {
    color: var(--accent-orange) !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.feed-header-bar a:hover {
    color: var(--accent-gold) !important;
}

/* ELIMINATE BLUE VISUAL COMPETITION GLOBALLY ON DISCOVERY CARDS */
.models-concept-grid a,
.categories-concept-grid a,
.creator-spotlight-grid a,
.creator-card-spotlight,
.category-card-link,
.model-card-link {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ==========================================================================
   SECTION 03 — EXPLORE BY AI MODEL (COMPACT LOGO-FORWARD CARDS)
   ========================================================================== */
.home-models-section {
    margin-top: 56px;
    margin-bottom: 64px;
    width: 100%;
    box-sizing: border-box;
}

.models-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 14px;
}

.models-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.models-title {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.models-cpu-icon {
    color: var(--accent-orange);
    width: 22px;
    height: 22px;
}

.models-subhead {
    font-size: 0.88rem;
    color: #9da3af;
    margin: 0;
    line-height: 1.45;
}

.models-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-orange) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.models-view-all-link:hover {
    color: var(--accent-gold) !important;
    background: rgba(255, 107, 0, 0.08);
}

/* 8-COLUMN DESKTOP COMPACT GRID */
.models-compact-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* PREMIUM COMPACT TILE CARD */
.model-compact-card {
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 118px;
    position: relative;
    text-decoration: none !important;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.model-compact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.4);
    background: #14161f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.12);
}

.model-compact-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.model-compact-card:hover .model-compact-icon {
    background: rgba(255, 107, 0, 0.16);
    border-color: rgba(255, 107, 0, 0.45);
    color: #ffa133;
}

.model-compact-icon svg,
.model-compact-icon i {
    width: 18px;
    height: 18px;
}

.model-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding-right: 18px;
    box-sizing: border-box;
}

.model-compact-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-compact-count {
    font-size: 0.74rem;
    color: #8b91a0 !important;
    margin: 0;
    line-height: 1.3;
    font-weight: 500;
}

.model-compact-arrow {
    position: absolute;
    bottom: 14px;
    right: 12px;
    width: 13px;
    height: 13px;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}

.model-compact-card:hover .model-compact-arrow {
    color: var(--accent-orange);
    transform: translateX(3px);
}

/* ==========================================================================
   LEGACY MODEL CARDS (EXPLORE BY AI MODEL - COMPATIBILITY)
   ========================================================================== */
.models-concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 84px;
}

.model-card-link {
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    min-height: 108px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.model-card-link:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.4);
    background: #151820;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.12);
}

.model-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 107, 0, 0.08);
    border: 1px solid rgba(255, 107, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.model-card-icon svg,
.model-card-icon i {
    width: 24px;
    height: 24px;
}

.model-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.model-card-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.3;
}

.model-card-content p {
    font-size: 0.84rem;
    color: #9da3af !important;
    margin: 0;
    line-height: 1.45;
}

/* ==========================================================================
   PROMPT CARDS & GRID (HIGH PCS & RECENTLY ADDED & CATALOG)
   ========================================================================== */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.prompt-card {
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.prompt-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
    background-color: #14161d;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prompt-card:hover .card-image {
    transform: scale(1.03);
}

.model-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    color: #ffffff !important;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
    text-decoration: none;
}

.card-score-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 107, 0, 0.45);
    color: var(--accent-orange);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.card-details {
    padding: 20px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.45;
    margin-bottom: 12px;
}

.card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #9da3af;
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.stat-item svg,
.stat-item i {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   SECTION 03: EXPLORE BY AI MODEL (PREMIUM COMPACT CARDS SYSTEM)
   ========================================================================== */
.home-models-section {
    margin-top: 56px;
    margin-bottom: 72px;
}

.models-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 20px;
}

.models-title-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.models-title {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.models-cpu-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.models-subhead {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.models-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.models-view-all-link:hover {
    color: var(--accent-orange);
    border-color: rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.06);
    transform: translateX(2px);
}

.models-compact-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
}

.model-compact-card {
    position: relative;
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    overflow: hidden;
    cursor: pointer;
}

.model-compact-card:hover {
    background: #13151c;
    border-color: rgba(255, 107, 0, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.12);
}

.model-brand-mark,
.model-compact-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
}

/* Base CSS Mask for Brand Logos — Unified GenCueBox Orange Gradient */
.model-brand-logo-mask {
    display: inline-block;
    flex-shrink: 0;
    background: linear-gradient(
        180deg,
        #ffb347 0%,
        #ff8a00 45%,
        #ff5e1a 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: drop-shadow(0 0 5px rgba(255, 122, 0, 0.30));
    transition: filter 0.22s ease, transform 0.22s ease;
}

/* ==========================================================================
   LOBE ICONS MIGRATION — LOCAL STATIC SVG MARKS (PHASE 10 CORRECTION #4)
   ========================================================================== */

/* 1. ChatGPT — Official Lobe OpenAI Spiral Symbol */
.mask-lobe-chatgpt {
    -webkit-mask-image: url('../assets/brands/lobe/openai.svg');
    mask-image: url('../assets/brands/lobe/openai.svg');
    width: 30px;
    height: 30px;
}

/* 2. Claude — Official Lobe Claude Sunburst Symbol */
.mask-lobe-claude {
    -webkit-mask-image: url('../assets/brands/lobe/claude.svg');
    mask-image: url('../assets/brands/lobe/claude.svg');
    width: 30px;
    height: 30px;
}

/* 3. Gemini — Official Lobe Gemini Sparkle Symbol */
.mask-lobe-gemini {
    -webkit-mask-image: url('../assets/brands/lobe/gemini.svg');
    mask-image: url('../assets/brands/lobe/gemini.svg');
    width: 30px;
    height: 30px;
}

/* 4. Midjourney — Official Lobe Midjourney Sailboat Symbol */
.mask-lobe-midjourney {
    -webkit-mask-image: url('../assets/brands/lobe/midjourney.svg');
    mask-image: url('../assets/brands/lobe/midjourney.svg');
    width: 30px;
    height: 30px;
}

/* 5. FLUX — Official Lobe Compact Geometric Symbol Mark */
.mask-lobe-flux {
    -webkit-mask-image: url('../assets/brands/lobe/flux.svg');
    mask-image: url('../assets/brands/lobe/flux.svg');
    width: 30px;
    height: 30px;
}

/* 6. Stable Diffusion — Official Lobe Stability AI S-Symbol */
.mask-lobe-stablediffusion {
    -webkit-mask-image: url('../assets/brands/lobe/stability.svg');
    mask-image: url('../assets/brands/lobe/stability.svg');
    width: 30px;
    height: 30px;
}

/* 7. Sora — Official Lobe Sora Eye/Flower Symbol Mark */
.mask-lobe-sora {
    -webkit-mask-image: url('../assets/brands/lobe/sora.svg');
    mask-image: url('../assets/brands/lobe/sora.svg');
    width: 30px;
    height: 30px;
}

/* 8. DALL-E 3 — Official Lobe Stepped Palette Symbol Mark */
.mask-lobe-dalle {
    -webkit-mask-image: url('../assets/brands/lobe/dalle.svg');
    mask-image: url('../assets/brands/lobe/dalle.svg');
    width: 32px;
    height: 32px;
}

/* Legacy fallback classes for rollback safety */
.mask-chatgpt { -webkit-mask-image: url('../assets/brands/ChatGPT.svg'); mask-image: url('../assets/brands/ChatGPT.svg'); width: 30px; height: 30px; }
.mask-claude { -webkit-mask-image: url('../assets/brands/Claude_AI.svg'); mask-image: url('../assets/brands/Claude_AI.svg'); width: 30px; height: 30px; }
.mask-gemini { -webkit-mask-image: url('../assets/brands/Google_Gemini.svg'); mask-image: url('../assets/brands/Google_Gemini.svg'); width: 29px; height: 29px; }
.mask-midjourney { -webkit-mask-image: url('../assets/brands/Midjourney.svg'); mask-image: url('../assets/brands/Midjourney.svg'); width: 31px; height: 31px; }
.mask-flux { -webkit-mask-image: url('../assets/brands/flux.svg'); mask-image: url('../assets/brands/flux.svg'); width: 38px; height: 20px; }
.mask-stablediffusion { -webkit-mask-image: url('../assets/brands/stable%20diffusion.svg'); mask-image: url('../assets/brands/stable%20diffusion.svg'); width: 30px; height: 30px; }
.mask-sora { -webkit-mask-image: url('../assets/brands/Sora.svg'); mask-image: url('../assets/brands/Sora.svg'); width: 34px; height: 34px; -webkit-mask-size: 118%; mask-size: 118%; }
.mask-dalle { -webkit-mask-image: url('../assets/brands/dalle-3.svg'); mask-image: url('../assets/brands/dalle-3.svg'); width: 42px; height: 18px; }

/* Restrained warm hover glow */
.model-compact-card:hover .model-brand-logo-mask {
    filter: drop-shadow(0 0 7px rgba(255, 138, 0, 0.65));
    transform: scale(1.03);
}

/* Legacy img fallback if ever needed */
.model-brand-logo {
    height: 30px;
    max-width: 38px;
    object-fit: contain;
    object-position: left center;
    display: block;
    transition: filter 0.22s ease, transform 0.22s ease;
}

.model-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.model-compact-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.model-compact-count {
    font-size: 0.76rem;
    font-weight: 500;
    color: #9da3af;
    line-height: 1.2;
}

.model-compact-arrow {
    position: absolute;
    right: 12px;
    bottom: 14px;
    width: 14px;
    height: 14px;
    color: #4b5563;
    transition: transform 0.2s ease, color 0.2s ease;
}

.model-compact-card:hover .model-compact-arrow {
    color: var(--accent-orange);
    transform: translateX(3px);
}

/* ==========================================================================
   SECTION 05: CORE PHILOSOPHY & QUALITY FRAMEWORK (PREMIUM DARK/ORANGE PANEL)
   ========================================================================== */
.philosophy-panel-wrapper,
.quality-framework-card {
    position: relative;
    background: radial-gradient(circle at 85% 15%, rgba(255, 107, 0, 0.12) 0%, transparent 42%),
                radial-gradient(circle at 90% 85%, rgba(255, 138, 0, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 10% 85%, rgba(255, 94, 26, 0.06) 0%, transparent 35%),
                #090a0f;
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 26px;
    padding: 56px 44px 44px 44px;
    margin: 84px 0;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 40px rgba(255, 107, 0, 0.05);
}

/* Background Grids & Ambient Glows */
.philosophy-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 107, 0, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

.philosophy-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}

.glow-top-right {
    top: -80px;
    right: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, transparent 70%);
}

.glow-bottom-right {
    bottom: -90px;
    right: 40px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.16) 0%, transparent 70%);
}

.glow-bottom-left {
    bottom: -60px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 80, 0, 0.12) 0%, transparent 70%);
}

/* Decorative Edge Graphics */
.philosophy-edge-decor {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

.decor-left {
    top: 52px;
    left: 40px;
    transform: rotate(-7deg);
}

.decor-right {
    top: 50px;
    right: 44px;
    transform: rotate(8deg);
}

.decor-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(32, 35, 46, 0.9) 0%, rgba(16, 18, 25, 0.95) 100%);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.2);
}

.decor-tile-sm {
    width: 38px;
    height: 38px;
}

.decor-tile-lg {
    width: 48px;
    height: 48px;
}

.decor-sparkle-icon {
    color: #ffaa33;
    width: 18px;
    height: 18px;
}

.decor-tile-lg .decor-sparkle-icon {
    width: 22px;
    height: 22px;
}

.decor-label {
    font-size: 0.78rem;
    font-style: italic;
    color: rgba(255, 185, 120, 0.85);
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Header Section */
.philosophy-header,
.quality-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto 46px auto;
}

.philosophy-pill,
.quality-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 20, 28, 0.85);
    border: 1px solid rgba(255, 107, 0, 0.4);
    border-radius: 9999px;
    padding: 6px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ff9d42;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.philosophy-pill-dot {
    width: 8px;
    height: 8px;
    background: #ff7a00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff7a00, 0 0 4px #ffa34d;
    display: inline-block;
}

.philosophy-title,
.quality-title {
    font-size: clamp(34px, 3.8vw, 56px);
    font-weight: 850;
    color: #ffffff;
    line-height: 1.12;
    margin: 0 auto 20px auto;
    letter-spacing: -0.02em;
    max-width: 980px;
}

.philosophy-title-highlight {
    background: linear-gradient(90deg, #ff8c00 0%, #ff5e1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 28px rgba(255, 107, 0, 0.35);
}

.philosophy-desc,
.quality-desc {
    font-size: 1.05rem;
    color: #9da8b6;
    line-height: 1.68;
    max-width: 940px;
    margin: 0 auto;
}

/* 5 Feature Cards Rail */
.philosophy-cards-grid,
.framework-steps-rail {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 38px;
}

.philosophy-card,
.framework-step-card {
    background: linear-gradient(180deg, rgba(20, 23, 33, 0.75) 0%, rgba(12, 14, 20, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.philosophy-card:hover,
.framework-step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.12);
}

.philosophy-card.card-featured {
    background: linear-gradient(180deg, rgba(32, 28, 30, 0.85) 0%, rgba(17, 16, 22, 0.9) 100%);
    border: 1px solid rgba(255, 107, 0, 0.38);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 107, 0, 0.14), inset 0 1px 0 rgba(255, 140, 0, 0.15);
}

.philosophy-card.card-featured:hover {
    border-color: rgba(255, 128, 0, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 28px rgba(255, 128, 0, 0.22);
}

/* Card Top: Icon Tile + Number + Decorative Line */
.philosophy-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.philosophy-icon-tile {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(30, 34, 46, 0.9) 0%, rgba(18, 20, 28, 0.95) 100%);
    border: 1px solid rgba(255, 107, 0, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 107, 0, 0.15);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.philosophy-card:hover .philosophy-icon-tile {
    border-color: rgba(255, 128, 0, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.28);
}

.philosophy-icon-tile i,
.philosophy-icon-tile svg {
    width: 26px;
    height: 26px;
    color: #ff8a00;
    stroke-width: 2;
}

.philosophy-card-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #c4cdd8;
    letter-spacing: 0.02em;
}

.philosophy-card-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.35) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.philosophy-card-title,
.step-title {
    font-size: 1.35rem;
    font-weight: 750;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.philosophy-card-body,
.step-body {
    font-size: 0.88rem;
    color: #9aa5b5;
    line-height: 1.58;
    margin: 0;
}

/* Bottom Evidence Note */
.philosophy-evidence-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.evidence-line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.4) 100%);
}

.philosophy-evidence-footer .evidence-line:last-child {
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.4) 0%, transparent 100%);
}

.evidence-sparkle-icon {
    width: 16px;
    height: 16px;
    color: #ff9d42;
    flex-shrink: 0;
}

.evidence-text {
    font-size: 0.86rem;
    font-style: italic;
    color: #8f9aa9;
    letter-spacing: 0.01em;
}

/* Responsive Rules for Section 05 */
@media (max-width: 1200px) {
    .philosophy-panel-wrapper,
    .quality-framework-card {
        padding: 48px 32px 36px 32px;
    }
    .philosophy-cards-grid,
    .framework-steps-rail {
        grid-template-columns: repeat(3, 1fr);
    }
    .philosophy-edge-decor {
        opacity: 0.6;
    }
}

@media (max-width: 900px) {
    .philosophy-panel-wrapper,
    .quality-framework-card {
        padding: 40px 24px 32px 24px;
        margin: 60px 0;
    }
    .philosophy-cards-grid,
    .framework-steps-rail {
        grid-template-columns: repeat(2, 1fr);
    }
    .philosophy-edge-decor {
        display: none;
    }
    .philosophy-title,
    .quality-title {
        font-size: clamp(28px, 5.5vw, 40px);
    }
}

@media (max-width: 640px) {
    .philosophy-panel-wrapper,
    .quality-framework-card {
        padding: 32px 18px 28px 18px;
        border-radius: 20px;
    }
    .philosophy-cards-grid,
    .framework-steps-rail {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .evidence-line {
        width: 24px;
    }
    .evidence-text {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   SECTION 07: EXPLORE BY CATEGORY (COMPACT SINGLE ROW REDESIGN)
   ========================================================================== */
.home-categories-section {
    margin-top: 48px;
    margin-bottom: 56px;
    position: relative;
}

/* Section Header Bar */
.categories-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 16px;
}

.categories-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.categories-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.015em;
    margin: 0;
    line-height: 1.2;
}

.categories-header-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.categories-subhead {
    font-size: 0.85rem;
    color: #9da3af;
    margin: 0;
    line-height: 1.4;
}

/* Right-aligned All Categories Link */
.categories-view-all-link {
    color: var(--accent-orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.categories-view-all-link:hover {
    color: var(--accent-orange);
    border-color: rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.06);
    transform: translateX(2px);
}

.categories-view-all-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.categories-view-all-link:hover .categories-view-all-arrow {
    transform: translateX(3px);
}

/* 7-Card Compact Single Row (Desktop) */
.categories-compact-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

/* Category Compact Card */
.category-compact-card {
    position: relative;
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 124px;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    overflow: hidden;
    cursor: pointer;
}

.category-compact-card:hover {
    background: #13151c;
    border-color: rgba(255, 107, 0, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 107, 0, 0.12);
}

/* Premium Glowing Orange Emblem */
.cat-emblem-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: radial-gradient(
        circle at 50% 45%,
        rgba(255, 132, 30, 0.18),
        rgba(17, 18, 22, 0.95) 70%
    );
    border: 1px solid rgba(255, 122, 0, 0.65);
    box-shadow: 0 0 12px rgba(255, 94, 26, 0.28),
                0 0 24px rgba(255, 94, 26, 0.10),
                inset 0 0 8px rgba(255, 122, 0, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.cat-emblem-icon {
    width: 22px;
    height: 22px;
    color: #ff8a00;
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(255, 122, 0, 0.40));
    transition: filter 0.22s ease, transform 0.22s ease;
}

.category-compact-card:hover .cat-emblem-wrapper {
    border-color: rgba(255, 140, 0, 0.85);
    box-shadow: 0 0 16px rgba(255, 94, 26, 0.42),
                0 0 28px rgba(255, 94, 26, 0.18),
                inset 0 0 10px rgba(255, 122, 0, 0.18);
    transform: scale(1.02);
}

.category-compact-card:hover .cat-emblem-icon {
    filter: drop-shadow(0 0 8px rgba(255, 138, 0, 0.65));
}

/* Category Text Metadata */
.cat-compact-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 18px;
}

.cat-compact-name {
    font-size: 0.96rem;
    font-weight: 750;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.cat-compact-desc {
    font-size: 0.76rem;
    font-weight: 500;
    color: #9da3af;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Arrow */
.cat-compact-arrow {
    position: absolute;
    right: 12px;
    bottom: 14px;
    width: 14px;
    height: 14px;
    color: #4b5563;
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-compact-card:hover .cat-compact-arrow {
    color: var(--accent-orange);
    transform: translateX(3px);
}

/* Responsive Rules for Section 07 */
@media (max-width: 1200px) and (min-width: 901px) {
    .categories-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 900px) and (min-width: 601px) {
    .categories-compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 600px) and (min-width: 421px) {
    .categories-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .categories-compact-grid > :nth-child(7) {
        grid-column: span 2;
    }
}

@media (max-width: 420px) {
    .categories-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .categories-compact-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .category-compact-card {
        padding: 13px 12px;
        min-height: auto;
    }
    .cat-emblem-wrapper {
        margin-bottom: 8px;
        width: 40px;
        height: 40px;
    }
    .cat-compact-name {
        font-size: 0.9rem;
    }
}

/* Backward compatibility aliases */
.categories-concept-grid,
.categories-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 84px;
}
.category-card-link,
.category-premium-card {
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.22s ease;
    color: #ffffff !important;
}
.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    flex-shrink: 0;
}
.cat-icon svg, .cat-icon i {
    width: 22px;
    height: 22px;
}
.cat-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 2px;
}
.cat-sub {
    font-size: 0.82rem;
    color: #9da3af !important;
}

/* ==========================================================================
   TOP CREATORS SPOTLIGHT (TRUTHFUL REPUTATION SIGNALS ONLY)
   ========================================================================== */
.creator-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 84px;
}

.creator-card-spotlight {
    background: #101217;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: all 0.22s ease;
    color: #ffffff !important;
}

.creator-card-spotlight:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 0, 0.35);
    background: #151820;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.creator-spotlight-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-orange);
    flex-shrink: 0;
}

.creator-spotlight-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-spotlight-username {
    font-size: 0.84rem;
    color: var(--accent-orange);
    margin-top: 2px;
}

.creator-spotlight-score {
    font-size: 0.82rem;
    color: #9da3af;
    margin-top: 6px;
    line-height: 1.4;
}

/* ==========================================================================
   CREATOR CTA BANNER (TRUTHFUL INVITATION)
   ========================================================================== */
.creator-cta-concept {
    background: linear-gradient(135deg, #171822 0%, #0d0e14 100%);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 16px;
    padding: 50px 44px;
    margin: 60px 0 84px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.creator-cta-content {
    max-width: 660px;
}

.cta-mini-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.cta-heading {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.cta-sub {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE SAFEGUARDS
   ========================================================================== */
@media screen and (max-width: 1200px) {
    .home-trending-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .models-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .models-concept-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .framework-steps-rail {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .home-trending-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    .models-compact-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .home-hero-fullbleed,
    .home-hero-concept {
        min-height: 500px;
        background-position: 78% center;
    }
    .home-hero-inner {
        padding: 38px 24px;
    }
    .hero-content-col {
        max-width: 540px;
    }
    .home-trust-rail,
    .trust-platform-strip {
        padding: 16px 0;
    }
    .home-trust-rail-inner,
    .trust-strip-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 24px;
    }
    .trust-stat-item {
        justify-content: flex-start;
    }
    .trust-strip-divider {
        display: none;
    }
    .concept-section {
        margin-top: 56px;
    }
    .models-concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quality-framework-card {
        padding: 40px 24px;
        margin: 64px 0;
    }
}

@media screen and (max-width: 768px) {
    .home-trending-section {
        margin-top: 48px;
        margin-bottom: 48px;
    }
    .home-trending-grid,
    .home-completeness-grid,
    .gcb-prompt-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .trending-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .trending-controls-cluster {
        width: 100%;
        justify-content: space-between;
    }
    .main-content {
        padding: 20px 16px 64px 16px;
    }
    .home-hero-fullbleed,
    .home-hero-concept {
        min-height: auto;
        background-position: 82% center;
        padding: 0;
    }
    .home-hero-inner {
        padding: 34px 16px;
    }
    .hero-bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 9, 11, 0.95) 0%,
            rgba(8, 9, 11, 0.88) 60%,
            rgba(8, 9, 11, 0.78) 100%
        );
    }
    .hero-content-col {
        max-width: 100%;
    }
    .hero-title-locked {
        font-size: 2.1rem;
        line-height: 1.18;
    }
    .hero-positioning-line {
        font-size: 1.05rem;
    }
    .hero-subhead-locked {
        font-size: 0.92rem;
        max-width: 100%;
        margin-bottom: 20px;
    }
    .concept-search-bar {
        position: relative;
        min-height: 48px;
        padding: 0;
        max-width: 100%;
    }
    .home-trust-rail,
    .trust-platform-strip {
        padding: 14px 0;
    }
    .home-trust-rail-inner,
    .trust-strip-inner {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 16px;
    }
    .trust-strip-divider {
        display: none;
    }
    .trust-stat-item {
        padding: 4px;
        gap: 12px;
        justify-content: flex-start;
    }
    .trust-stat-icon {
        width: 40px;
        height: 40px;
    }
    .trust-stat-icon svg,
    .trust-stat-icon i {
        width: 18px;
        height: 18px;
    }
    .trust-stat-num {
        font-size: 1.45rem;
    }
    .trust-stat-label {
        font-size: 0.78rem;
        white-space: normal;
    }
    .models-concept-grid {
        grid-template-columns: 1fr;
    }
    .home-models-section {
        margin-top: 40px;
        margin-bottom: 48px;
    }
    .models-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .models-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .framework-steps-rail {
        grid-template-columns: 1fr;
    }
    .categories-concept-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    .creator-cta-concept {
        padding: 32px 20px;
    }
}

@media screen and (max-width: 480px) {
    .home-trending-grid {
        grid-template-columns: 1fr;
    }
    .models-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .model-compact-card {
        padding: 13px 10px;
        min-height: 108px;
    }
    .model-compact-name {
        font-size: 0.88rem;
    }
    .trending-time-tabs {
        overflow-x: auto;
        max-width: 100%;
    }
    .trust-strip-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .hero-actions-concept {
        flex-direction: column;
        width: 100%;
    }
    .btn-concept-primary,
    .btn-concept-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .categories-concept-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SECTION 08 — PROMPT UNDERSTANDING + BEFORE/AFTER VISUAL STORY (COMPACT)
   ========================================================================== */

.home-understanding-section {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 18, 26, 0.95) 0%, rgba(10, 11, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 28px 32px;
    margin-top: 44px;
    margin-bottom: 48px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 94, 26, 0.05);
}

/* Ambient Glows */
.understanding-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}

.understanding-bg-glow.glow-top-left {
    top: -40px;
    left: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 94, 26, 0.10) 0%, transparent 70%);
}

.understanding-bg-glow.glow-bottom-right {
    bottom: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.08) 0%, transparent 70%);
}

/* ==========================================================================
   PART A — COMPACT HORIZONTAL BAND (LEFT 42% / CENTER 38% / RIGHT 20%)
   ========================================================================== */

.understanding-part-a {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 42fr 38fr 20fr;
    gap: 22px;
    align-items: stretch;
}

/* Left Column */
.understanding-col-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.understanding-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 94, 26, 0.09);
    border: 1px solid rgba(255, 107, 0, 0.28);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--accent-orange);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.understanding-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 6px var(--accent-orange);
}

.understanding-title {
    font-size: clamp(26px, 2.3vw, 36px);
    font-weight: 800;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.025em;
    margin: 0 0 10px 0;
}

.understanding-title-highlight {
    background: linear-gradient(135deg, #ff9431 0%, #ff5e1a 50%, #ff3b00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.understanding-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #9da3af;
    margin: 0 0 16px 0;
    max-width: 480px;
}

.understanding-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.understanding-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff4500 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(255, 94, 26, 0.32);
    transition: all 0.2s ease;
}

.understanding-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(255, 94, 26, 0.45);
    filter: brightness(1.05);
}

.understanding-btn-primary .btn-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.understanding-btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.understanding-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e5e7eb !important;
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.understanding-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 0, 0.30);
    color: #ffffff !important;
}

.understanding-btn-secondary .btn-icon-left {
    width: 15px;
    height: 15px;
    color: var(--accent-orange);
}

/* Center Column: Compact PCS Card */
.understanding-col-center {
    display: flex;
}

.pcs-compact-card {
    width: 100%;
    background: linear-gradient(145deg, rgba(20, 24, 34, 0.88) 0%, rgba(12, 14, 20, 0.94) 100%);
    border: 1px solid rgba(255, 107, 0, 0.20);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.pcs-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pcs-compact-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcs-compact-icon-tile {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 94, 26, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcs-compact-icon {
    width: 15px;
    height: 15px;
    color: var(--accent-orange);
}

.pcs-compact-heading {
    font-size: 0.92rem;
    font-weight: 750;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.pcs-compact-subheading {
    font-size: 0.70rem;
    color: #8f9aa9;
}

.pcs-compact-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ff9431;
    background: rgba(255, 107, 0, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.22);
    padding: 2px 8px;
    border-radius: 999px;
}

.pcs-compact-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

/* Compact Ring */
.pcs-ring-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pcs-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pcs-ring-track {
    stroke: rgba(255, 255, 255, 0.07);
}

.pcs-ring-bar {
    stroke: #ff7a00;
    filter: drop-shadow(0 0 6px rgba(255, 122, 0, 0.6));
}

.pcs-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    pointer-events: none;
    width: 82px;
}

.pcs-ring-score-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.pcs-ring-score {
    font-size: 2.25rem;
    font-weight: 900;
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.55), 0 0 18px rgba(34, 197, 94, 0.30);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pcs-ring-scale {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1;
}

.pcs-ring-pcs-score {
    font-size: 0.70rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-top: 2px;
}

/* Compact Dimensions List */
.pcs-dimensions-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pcs-dim-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pcs-dim-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
}

.pcs-dim-name {
    color: #d1d5db;
    font-weight: 600;
}

.pcs-dim-score {
    color: #ff9431;
    font-size: 0.75rem;
    font-weight: 750;
}

.pcs-dim-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.pcs-dim-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5e1a 0%, #ffa133 100%);
}

/* Right Column: Separate Small Evidence Status Panel */
.understanding-col-right {
    display: flex;
}

.evidence-compact-card {
    width: 100%;
    background: linear-gradient(145deg, rgba(20, 24, 34, 0.92) 0%, rgba(12, 14, 20, 0.96) 100%);
    border: 1px solid rgba(255, 107, 0, 0.24);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 0 16px rgba(255, 94, 26, 0.05);
}

.evidence-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.evidence-compact-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    color: #ff9431;
    background: rgba(255, 94, 26, 0.10);
    border: 1px solid rgba(255, 107, 0, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.evidence-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 6px var(--accent-orange);
}

.evidence-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.evidence-emblem-tile {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: radial-gradient(circle at 50% 40%, rgba(74, 222, 128, 0.16), rgba(15, 20, 20, 0.96) 75%);
    border: 1px solid rgba(74, 222, 128, 0.55);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.22), 0 0 24px rgba(34, 197, 94, 0.10), inset 0 0 8px rgba(34, 197, 94, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.evidence-emblem-icon {
    width: 22px;
    height: 22px;
    color: #4ade80;
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.45));
}

.evidence-status-text {
    display: flex;
    flex-direction: column;
}

.evidence-compact-title {
    font-size: 0.95rem;
    font-weight: 750;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.evidence-compact-state {
    font-size: 0.68rem;
    font-weight: 600;
    color: #ff9431;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.evidence-compact-desc {
    font-size: 0.74rem;
    line-height: 1.42;
    color: #9da3af;
    margin: 0 0 10px 0;
}

.evidence-compact-footer {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.evidence-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.evidence-tag-icon {
    width: 12px;
    height: 12px;
    color: var(--accent-orange);
}

/* ==========================================================================
   PART A / PART B DIVIDER (COMPACT 18px/16px SPACING)
   ========================================================================== */

.understanding-divider {
    position: relative;
    z-index: 2;
    height: 1px;
    width: 100%;
    margin: 20px 0 18px 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 0, 0.30) 30%, rgba(255, 255, 255, 0.10) 70%, transparent 100%);
}

/* ==========================================================================
   PART B — BEFORE / AFTER VISUAL COMPARISON (COMPACT SINGLE ROW)
   ========================================================================== */

.understanding-part-b {
    position: relative;
    z-index: 2;
}

.understanding-part-b-header {
    text-align: left;
    margin-bottom: 16px;
}

.part-b-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    margin: 0;
}

.part-b-subtitle {
    font-size: 0.82rem;
    color: #9da3af;
    margin-top: 3px;
}

/* Comparison Grid: Single-row 4 elements */
.understanding-comparison-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1.25fr) minmax(240px, 1fr);
    gap: 14px;
    align-items: stretch;
}

/* Comparison Cards */
.comparison-card {
    background: #111319;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comparison-card.card-after {
    border-color: rgba(255, 107, 0, 0.30);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 94, 26, 0.06);
}

.comparison-card:hover {
    border-color: rgba(255, 107, 0, 0.45);
}

.comparison-card-header {
    padding: 12px 14px 10px 14px;
}

.comparison-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.comparison-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.badge-basic {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-specified {
    background: rgba(255, 94, 26, 0.14);
    color: #ff8a00;
    border: 1px solid rgba(255, 107, 0, 0.32);
}

.comparison-pcs-pill {
    font-size: 0.68rem;
    font-weight: 750;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.pill-basic {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pill-specified {
    background: rgba(255, 94, 26, 0.16);
    color: #ff8a00;
    border: 1px solid rgba(255, 107, 0, 0.35);
}

.comparison-prompt-text {
    font-size: 0.78rem;
    color: #e5e7eb;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Image Container */
.comparison-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    max-height: 148px;
    overflow: hidden;
    background: #0d0e12;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.comparison-card-footer {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.015);
}

.comparison-footer-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #9da3af;
    display: block;
}

.card-after .comparison-footer-title {
    color: #d1d5db;
}

.comparison-footer-desc {
    font-size: 0.70rem;
    color: #8f9aa9;
    margin: 2px 0 0 0;
    line-height: 1.32;
}

/* Center Arrow Disc */
.comparison-arrow-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-arrow-disc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #141722;
    border: 2px solid #ff7a00;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(255, 122, 0, 0.32), inset 0 0 8px rgba(255, 94, 26, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comparison-arrow-wrap:hover .comparison-arrow-disc {
    transform: scale(1.06);
    box-shadow: 0 0 22px rgba(255, 122, 0, 0.50);
}

.comparison-arrow-icon {
    width: 18px;
    height: 18px;
    color: #ff8a00;
}

/* Summary Panel: What Changed */
.comparison-summary-panel {
    background: linear-gradient(180deg, #141722 0%, #0d0f15 100%);
    border: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.summary-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.summary-icon-tile {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 94, 26, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-header-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-orange);
}

.summary-heading {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin: 0;
}

/* Score Comparison (42 -> 94) */
.summary-score-comparison {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 107, 0, 0.18);
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 8px;
}

.summary-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.summary-score-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.summary-score-box .score-val {
    font-size: 1.30rem;
    font-weight: 850;
    line-height: 1;
}

.summary-score-box .score-before {
    color: #9ca3af;
}

.summary-score-box .score-after {
    color: #ff8a00;
}

.summary-score-box .score-lbl {
    font-size: 0.62rem;
    font-weight: 750;
    color: #8f9aa9;
    text-transform: uppercase;
}

.summary-score-arrow {
    display: flex;
    align-items: center;
    color: #ff7a00;
}

.summary-score-arrow .score-arrow-icon {
    width: 13px;
    height: 13px;
}

.summary-diff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-diff-badge {
    font-size: 0.68rem;
    font-weight: 750;
    color: #ff9431;
}

.summary-diff-note {
    font-size: 0.60rem;
    color: #8f9aa9;
    font-style: italic;
}

.summary-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #e5e7eb;
}

.summary-check-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.summary-panel-footer {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.summary-cta-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ff8a00 !important;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.summary-cta-link:hover {
    color: #ffa133 !important;
}

.summary-cta-arrow {
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.summary-cta-link:hover .summary-cta-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   SECTION 08 RESPONSIVE RULES
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .home-understanding-section {
        padding: 24px 24px;
    }
    .understanding-part-a {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .understanding-col-right {
        grid-column: 1 / -1;
    }
    .understanding-comparison-grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }
    .comparison-summary-panel {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
}

@media screen and (max-width: 900px) {
    .home-understanding-section {
        padding: 22px 18px;
        margin-top: 36px;
        margin-bottom: 40px;
    }
    .understanding-part-a {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .understanding-comparison-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .comparison-arrow-wrap {
        padding: 2px 0;
    }
    .comparison-arrow-icon {
        transform: rotate(90deg);
    }
}

@media screen and (max-width: 600px) {
    .home-understanding-section {
        padding: 20px 14px;
        border-radius: 14px;
    }
    .understanding-title {
        font-size: 1.55rem;
    }
    .understanding-description {
        font-size: 0.84rem;
    }
    .understanding-cta-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .understanding-btn-primary,
    .understanding-btn-secondary {
        width: 100%;
        justify-content: center;
        height: 38px;
    }
    .pcs-compact-body {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }
}

/* ==========================================================================
   SECTION 09 — TOP CREATORS SPOTLIGHT & UNIVERSAL CREATOR CARD SYSTEM
   ========================================================================== */

.home-creators-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.home-creators-grid,
#homeCreatorsGrid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-top: 18px;
}

/* Reusable Universal Creator Card Component */
.gcb-creator-card {
    background: #111216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
    min-width: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.gcb-creator-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 0, 0.40);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.50), 0 0 18px rgba(255, 94, 26, 0.10);
}

/* Featured Creator Subtle Visual Warmth (No fake ranking claims) */
.gcb-creator-card--featured {
    border-color: rgba(255, 122, 0, 0.28);
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 0, 0.045) 0%, #111216 75%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40), 0 0 12px rgba(255, 94, 26, 0.06);
}

.gcb-creator-card--featured:hover {
    border-color: rgba(255, 122, 0, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 94, 26, 0.16);
}

/* Creator Card Top Header: Avatar + Identity + Verified */
.gcb-creator-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.gcb-creator-card__avatar-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.gcb-creator-card__avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 122, 0, 0.45);
    overflow: hidden;
    flex-shrink: 0;
    background: #16181e;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.18);
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcb-creator-card:hover .gcb-creator-card__avatar-wrap {
    border-color: #ff7a00;
    transform: scale(1.03);
}

.gcb-creator-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcb-creator-card__identity {
    flex: 1;
    min-width: 0;
}

.gcb-creator-card__name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.gcb-creator-card__name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    line-height: 1.25;
}

.gcb-creator-card__name:hover {
    color: var(--accent-primary, #ff5e1a);
}

.gcb-creator-card__verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gcb-creator-card__verified-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-primary, #ff5e1a);
    filter: drop-shadow(0 0 4px rgba(255, 94, 26, 0.40));
}

.gcb-creator-card__handle {
    display: block;
    font-size: 0.76rem;
    color: var(--accent-primary, #ff5e1a);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
    transition: color 0.2s ease;
    line-height: 1.2;
}

.gcb-creator-card__handle:hover {
    color: #ff8a00;
    text-decoration: none;
}

.gcb-creator-card__sub-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 1px;
}

.gcb-creator-card__bio {
    font-size: 0.70rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

/* ==========================================================================
   CREATOR PERFORMANCE / ACHIEVEMENT BADGE SYSTEM
   Reusable across Universal Creator Cards and Universal Prompt Cards
   ========================================================================== */
.gcb-creator-achievement {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(26, 22, 18, 0.88);
    border: 1px solid rgba(255, 140, 0, 0.35);
    box-shadow: 0 0 8px rgba(255, 94, 26, 0.12);
    font-size: 0.66rem;
    font-weight: 600;
    color: #ffb070;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gcb-creator-achievement:hover {
    border-color: rgba(255, 140, 0, 0.65);
    box-shadow: 0 0 12px rgba(255, 94, 26, 0.25);
}

.gcb-creator-achievement__icon {
    width: 10px;
    height: 10px;
    color: var(--accent-primary, #ff5e1a);
    flex-shrink: 0;
}

.gcb-creator-achievement__label {
    letter-spacing: 0.02em;
}

/* Tier Variations (Orange / Amber / Warm Gold Palette) */
.gcb-creator-achievement--gold,
.gcb-creator-achievement--diamond {
    background: rgba(36, 26, 12, 0.90);
    border-color: rgba(255, 185, 45, 0.45);
    box-shadow: 0 0 10px rgba(255, 185, 45, 0.18);
    color: #ffd060;
}

.gcb-creator-achievement--gold .gcb-creator-achievement__icon,
.gcb-creator-achievement--diamond .gcb-creator-achievement__icon {
    color: #ffbb20;
}

.gcb-creator-achievement--silver,
.gcb-creator-achievement--bronze,
.gcb-creator-achievement--standard {
    background: rgba(26, 22, 20, 0.88);
    border-color: rgba(255, 120, 50, 0.35);
    color: #ffb888;
}

/* Compact adjustments inside prompt card creator row */
.trending-creator-link .gcb-creator-achievement {
    height: 18px;
    padding: 0 6px;
    font-size: 0.62rem;
    margin-left: 2px;
}

.trending-creator-link .gcb-creator-achievement__icon {
    width: 9px;
    height: 9px;
}

/* 3-Column Real Creator Metrics */
.gcb-creator-card__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.022);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 7px 10px;
    margin-top: 12px;
}

.gcb-creator-card__stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.gcb-creator-card__stat-value {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.gcb-creator-card__stat-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #8f9aa9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    white-space: nowrap;
}

.gcb-creator-card__stat-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

/* 5 Newest Prompt Thumbnails Gallery Strip */
.gcb-creator-card__gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 12px;
    min-width: 0;
}

.gcb-creator-card__thumb-item {
    position: relative;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d0e12;
    display: block;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.gcb-creator-card__thumb-item:hover {
    border-color: rgba(255, 122, 0, 0.60);
    transform: scale(1.05);
    filter: brightness(1.12);
    z-index: 2;
}

.gcb-creator-card__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gcb-creator-card__thumb-slot {
    height: 48px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

/* Dual Actions: Follow + View Profile */
.gcb-creator-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 13px;
    align-items: center;
}

.gcb-creator-card__btn-follow {
    flex: 1;
    height: 33px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0 10px;
    font-family: inherit;
}

.gcb-creator-card__btn-follow:hover {
    background: rgba(255, 122, 0, 0.12);
    border-color: rgba(255, 122, 0, 0.45);
    color: #ffffff;
}

.gcb-creator-card__btn-follow.is-following {
    background: rgba(74, 222, 128, 0.10);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.gcb-creator-card__btn-follow.is-following:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.40);
    color: #f87171;
}

.gcb-creator-card__btn-profile {
    flex: 1.15;
    height: 33px;
    background: rgba(255, 94, 26, 0.12);
    border: 1px solid rgba(255, 94, 26, 0.35);
    color: #ff8a00;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0 10px;
    box-sizing: border-box;
}

.gcb-creator-card__btn-profile:hover {
    background: var(--accent-primary, #ff5e1a);
    border-color: var(--accent-primary, #ff5e1a);
    color: #000000;
    box-shadow: 0 0 12px rgba(255, 94, 26, 0.35);
}

.gcb-creator-card__action-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* Header link styling */
.creator-spotlight-more-link {
    color: var(--accent-primary, #ff5e1a);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.creator-spotlight-more-link:hover {
    color: #ff8a00;
    text-decoration: underline;
}

/* Responsive Rules for Section 09 Grid */
@media screen and (max-width: 1100px) {
    .home-creators-grid,
    #homeCreatorsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

@media screen and (max-width: 640px) {
    .home-creators-grid,
    #homeCreatorsGrid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* ==========================================================================
   SECTION 10 — EXPLORE ALL PROMPTS (PARITY WITH SECTION 02 TRENDING)
   ========================================================================== */
.home-explore-section {
    margin-top: 56px;
    margin-bottom: 72px;
    width: 100%;
    box-sizing: border-box;
}

#homePromptGrid.home-trending-grid,
.home-explore-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 24px;
}

/* Symmetrical Model + Period Filter Toolbar (Section 10) */
.section10-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section10-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section10-filter-label,
.explore-filter-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8b91a0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    user-select: none;
}

.section10-right-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.section10-view-all-link {
    white-space: nowrap;
    margin-left: 2px;
}

@media screen and (max-width: 960px) {
    .section10-filter-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .section10-right-cluster {
        width: 100%;
        justify-content: space-between;
        gap: 14px;
    }
}

@media screen and (max-width: 600px) {
    .section10-filter-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .section10-filter-group .trending-time-tabs {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 4px;
        gap: 4px;
        width: 100%;
    }

    .section10-right-cluster {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }
}

/* Responsive 5-card Grid Parity for Section 02 & Section 10 */
@media screen and (max-width: 1200px) {
    #homeTrendingGrid.home-trending-grid,
    #homePromptGrid.home-trending-grid,
    .home-trending-grid,
    .home-explore-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 900px) {
    #homeTrendingGrid.home-trending-grid,
    #homePromptGrid.home-trending-grid,
    .home-trending-grid,
    .home-explore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media screen and (max-width: 600px) {
    #homeTrendingGrid.home-trending-grid,
    #homePromptGrid.home-trending-grid,
    .home-trending-grid,
    .home-explore-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* Polished Show More Button */
.show-more-container {
    display: flex;
    justify-content: center;
    margin: 36px 0 20px 0;
    width: 100%;
}

.btn-show-more {
    background: #101217;
    border: 1px solid rgba(255, 94, 26, 0.45);
    color: var(--accent-primary, #ff5e1a);
    padding: 11px 28px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 94, 26, 0.12);
    font-family: inherit;
}

.btn-show-more:hover {
    background: linear-gradient(135deg, #ff9900, #ff5500);
    border-color: #ff5500;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 94, 26, 0.35);
    transform: translateY(-2px);
}

.btn-show-more:active {
    transform: translateY(0);
}

/* ==========================================================================
   SECTION 11 — CINEMATIC COMMUNITY CTA (GOLDEN MOUNTAIN SUNRISE PANORAMA)
   ========================================================================== */
.community-cta-section {
    margin-top: 64px;
    margin-bottom: 64px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.community-cta-banner {
    position: relative;
    width: 100%;
    min-height: 200px;
    background-color: #07080a;
    background-image: url('../assets/section-08/GoldenMountainSunrisePanorama.png');
    background-image: image-set(
        url('../assets/section-08/GoldenMountainSunrisePanorama.webp') type('image/webp'),
        url('../assets/section-08/GoldenMountainSunrisePanorama.png') type('image/png')
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center right;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 122, 0, 0.40);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 28px rgba(255, 122, 0, 0.10);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.community-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 8, 10, 0.96) 0%,
        rgba(7, 8, 10, 0.90) 32%,
        rgba(7, 8, 10, 0.58) 55%,
        rgba(7, 8, 10, 0.16) 78%,
        rgba(7, 8, 10, 0.05) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.community-cta-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 34px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
}

.community-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ff8a00;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cta-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff8a00;
    box-shadow: 0 0 8px #ff8a00;
    flex-shrink: 0;
}

.community-cta-title {
    font-size: clamp(22px, 2.1vw, 32px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.community-cta-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd3e0;
    max-width: 560px;
    margin: 0 0 20px 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.community-cta-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
}

.community-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 26px;
    border-radius: 9px;
    background: linear-gradient(180deg, #ffad22 0%, #ff8a00 100%);
    color: #0b0c0e !important;
    font-weight: 750;
    font-size: 0.88rem;
    text-decoration: none !important;
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.26);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.community-btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 22px rgba(255, 122, 0, 0.40);
}

.community-btn-primary .cta-btn-icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
    transition: transform 0.2s ease;
}

.community-btn-primary:hover .cta-btn-icon {
    transform: translateX(2px);
}

.community-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 9px;
    background: rgba(14, 16, 21, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.community-btn-secondary:hover {
    background: rgba(22, 25, 33, 0.92);
    border-color: rgba(255, 122, 0, 0.50);
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(255, 122, 0, 0.18);
    transform: translateY(-1px);
}

@media screen and (max-width: 960px) {
    .community-cta-content {
        max-width: 560px;
        padding: 30px 28px;
    }

    .community-cta-overlay {
        background: linear-gradient(
            90deg,
            rgba(7, 8, 10, 0.97) 0%,
            rgba(7, 8, 10, 0.92) 50%,
            rgba(7, 8, 10, 0.68) 75%,
            rgba(7, 8, 10, 0.30) 100%
        );
    }
}

@media screen and (max-width: 640px) {
    .community-cta-section {
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .community-cta-banner {
        border-radius: 16px;
        min-height: auto;
    }

    .community-cta-content {
        max-width: 100%;
        padding: 26px 20px;
    }

    .community-cta-overlay {
        background: linear-gradient(
            180deg,
            rgba(7, 8, 10, 0.94) 0%,
            rgba(7, 8, 10, 0.88) 100%
        );
    }

    .community-cta-title {
        font-size: 1.35rem;
    }

    .community-cta-desc {
        font-size: 0.84rem;
        margin-bottom: 18px;
    }

    .community-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .community-btn-primary,
    .community-btn-secondary {
        width: 100%;
    }
}

/* ==========================================================================
   GLOBAL FLOATING BACK TO TOP CONTROL
   ========================================================================== */
.global-back-to-top-btn,
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-orange, #ff7a00);
    color: #08090c;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.global-back-to-top-btn.is-visible,
.global-back-to-top-btn.visible,
.back-to-top-btn.is-visible,
.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.global-back-to-top-btn:hover,
.back-to-top-btn:hover {
    background: #ff9433;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.60);
}

.global-back-to-top-btn:active,
.back-to-top-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 122, 0, 0.45);
}

.global-back-to-top-btn:focus-visible,
.back-to-top-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.global-back-to-top-btn svg,
.back-to-top-btn svg,
.global-back-to-top-btn i,
.back-to-top-btn i {
    width: 20px;
    height: 20px;
    stroke-width: 2.8;
    color: #08090c;
    pointer-events: none;
}

@media (max-width: 768px) {
    .global-back-to-top-btn,
    .back-to-top-btn {
        width: 44px;
        height: 44px;
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-back-to-top-btn,
    .back-to-top-btn {
        transition: none !important;
    }
}

@media print {
    .global-back-to-top-btn,
    .back-to-top-btn {
        display: none !important;
    }
}

/* ==========================================================================
   PHASE 23H: INTERACTIVE NOTIFICATIONS & ACTIVITY DEEP LINKING
   ========================================================================== */
.notif-item:focus-visible {
    outline: 2px solid var(--accent-orange, #ff5e1a);
    outline-offset: -2px;
}

.notif-item-static {
    cursor: default;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-orange, #ff5e1a);
    box-shadow: 0 0 6px rgba(255, 94, 26, 0.6);
    flex-shrink: 0;
    align-self: center;
}

@keyframes commentPulseGlow {
    0% { background: rgba(255, 94, 26, 0.28); box-shadow: 0 0 0 2px var(--accent-orange, #ff5e1a); }
    50% { background: rgba(255, 94, 26, 0.14); box-shadow: 0 0 0 4px rgba(255, 94, 26, 0.4); }
    100% { background: transparent; box-shadow: none; }
}

.comment-highlight-pulse {
    animation: commentPulseGlow 3.2s ease-out forwards;
    border-radius: 8px;
}

