/**
 * PortPad Custom CSS
 * Professional dark theme with gold/red/purple accents
 * Designed for readability and modern UX
 */

/* ============================================================================
   CSS Variables - Theme Colors
   ============================================================================ */
:root {
    /* Primary colors - Enhanced for better readability */
    --gold: #e8c547;
    --gold-light: #f5d76e;
    --gold-dark: #b8941f;
    
    /* Accent colors */
    --red: #e63946;
    --red-light: #f77f00;
    --red-dark: #d62828;
    
    --purple: #7b4397;
    --purple-light: #a855f7;
    --purple-dark: #5b2d77;
    
    /* Background colors - Dark theme */
    --bg-dark: #0f0f0f;
    --bg-charcoal: #1c1c1c;
    --bg-card: #262626;
    --bg-hover: #333333;
    
    /* Text colors - Dark theme - Enhanced contrast */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;
    --text-on-gold: #1a1a1a;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-light));
    --gradient-red: linear-gradient(135deg, var(--red), var(--red-light));
    --gradient-purple: linear-gradient(135deg, var(--purple-dark), var(--purple));

    /* UI text contrast helpers - Enhanced */
    --ui-text-strong: #ffffff;
    --ui-text-soft: #e8e8e8;
    --ui-text-muted: #b8b8b8;
}

/* Light Theme - Enhanced for better readability */
[data-theme="light"] {
    --bg-dark: #f5f5f5;
    --bg-charcoal: #e8e8e8;
    --bg-card: #ffffff;
    --bg-hover: #eeeeee;
    
    /* Enhanced text contrast for light mode */
    --text-primary: #1a1a1a;
    --text-secondary: #3d3d3d;
    --text-muted: #666666;

    /* UI text for light mode - darker for better contrast */
    --ui-text-strong: #1a1a1a;
    --ui-text-soft: #3d3d3d;
    --ui-text-muted: #666666;
}

[data-theme="light"] .bg-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.95));
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--gold);
}

[data-theme="light"] .card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

[data-theme="light"] .table-dark {
    --bs-table-bg: var(--bg-card);
    --bs-table-color: var(--text-primary);
}

[data-theme="light"] .dropdown-menu-dark {
    --bs-dropdown-bg: var(--bg-card);
    --bs-dropdown-link-color: var(--text-primary);
    --bs-dropdown-link-hover-bg: var(--bg-hover);
}

/* Light mode - btn-close fix */
[data-theme="light"] .btn-close-white {
    filter: none;
}

/* Light mode - accordion */
[data-theme="light"] .accordion-button {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
}

[data-theme="light"] .accordion-button:not(.collapsed) {
    background-color: rgba(245, 245, 245, 0.95);
    color: var(--gold-dark);
}

[data-theme="light"] .accordion-item {
    border-color: rgba(232, 197, 71, 0.3);
    background-color: var(--bg-card);
}

[data-theme="light"] .accordion-body {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Light mode - modal fixes */
[data-theme="light"] .modal-content {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="light"] .modal-body {
    color: var(--text-primary);
}

/* Light mode - table */
[data-theme="light"] .table {
    color: var(--text-primary);
}

[data-theme="light"] .table thead th {
    background-color: var(--bg-charcoal);
    color: var(--text-primary);
}

/* Light mode - badge visibility */
[data-theme="light"] .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Light mode - footer */
[data-theme="light"] .bg-dark-custom {
    background-color: var(--bg-dark) !important;
}

/* Light mode - hardcoded dark classes on modals */
[data-theme="light"] .modal-content.bg-dark,
[data-theme="light"] .modal-content.bg-dark-custom {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .modal-content.text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .bg-card {
    background-color: var(--bg-card) !important;
}

/* Light mode - loading overlay */
[data-theme="light"] .loading-overlay {
    background: rgba(255, 255, 255, 0.85);
}

/* Light mode - canvas wrapper */
[data-theme="light"] .canvas-wrapper,
[data-theme="light"] .canvas-overlay {
    background: rgba(245, 245, 245, 0.9);
}

/* Light mode - card auth */
[data-theme="light"] .card-auth {
    background: rgba(255, 255, 255, 0.95);
}

/* Light mode - consent modal */
[data-theme="light"] .consent-modal .modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 240, 0.95));
    color: var(--text-primary);
}

/* Light mode - velvet card */
[data-theme="light"] .velvet-card {
    background: var(--bg-card);
}

/* Light mode - stat card */
[data-theme="light"] .stat-card {
    background: rgba(232, 197, 71, 0.05);
}

/* Light mode - status panel */
[data-theme="light"] .status-panel {
    background: var(--bg-card);
}

/* Light mode - scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--bg-card);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--gold);
}

/* ============================================================================
   Base Styles
   ============================================================================ */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 0.95rem;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ============================================================================
   Full-Screen Background
   ============================================================================ */
.bg-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(26,26,26,0.9));
    z-index: -1;
}

/* ============================================================================
   Navbar Styles
   ============================================================================ */
.navbar {
    background-color: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--gold) !important;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .navbar-brand {
    color: var(--gold-dark) !important;
    text-shadow: none;
}

.navbar-brand:hover {
    color: var(--gold-light) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold) !important;
}

[data-theme="light"] .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--gold-dark) !important;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-dark);
    background: var(--bg-charcoal);
}

.nav-avatar-lg {
    width: 48px;
    height: 48px;
    border: 2px solid var(--gold);
}

.nav-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
}

/* ============================================================================
   Card Styles - Enhanced
   ============================================================================ */
.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(232, 197, 71, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(232, 197, 71, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .card {
    border-color: rgba(232, 197, 71, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card:hover {
    border-color: rgba(232, 197, 71, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(232, 197, 71, 0.2);
    font-weight: 600;
    color: var(--ui-text-strong);
}

[data-theme="light"] .card-header {
    background-color: rgba(245, 245, 245, 0.8);
    border-bottom-color: rgba(232, 197, 71, 0.3);
}

.generate-card {
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, rgba(38, 38, 38, 0.98), rgba(28, 28, 28, 0.98));
}

[data-theme="light"] .generate-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
}

/* ============================================================================
   Image Viewer
   ============================================================================ */
.image-viewer-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-viewer-image:hover {
    opacity: 0.95;
}

.image-viewer-details {
    max-height: 70vh;
    overflow-y: auto;
}

/* Full-resolution image overlay */
.fullscreen-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

.fullscreen-image-overlay img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

.fullscreen-close-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
}

.feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.canvas-wrapper {
    position: relative;
    border: 1px dashed var(--gold-dark);
    border-radius: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    min-height: 180px;
}

.canvas-wrapper img {
    display: block;
    width: 100%;
}

.contour-canvas {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 8px;
    mix-blend-mode: screen;
    opacity: 0.7;
    cursor: crosshair;
}

.contour-disabled {
    pointer-events: none;
    opacity: 0.35;
}

.canvas-overlay {
    position: absolute;
    inset: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.45);
    text-align: center;
    padding: 12px;
}

.card-auth {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    background: rgba(36, 36, 36, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(232, 197, 71, 0.3);
}

/* ============================================================================
   Button Styles
   ============================================================================ */
.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--bg-dark);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-red {
    background: var(--gradient-red);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-red:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--text-on-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 197, 71, 0.3);
}

.btn-outline-gold:active {
    transform: translateY(0);
}

[data-theme="light"] .btn-outline-gold {
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

[data-theme="light"] .btn-outline-gold:hover {
    background: var(--gold);
    color: var(--text-on-gold);
}

/* Additional button variants for consistency */
.btn-outline-danger,
.btn-outline-red {
    border: 2px solid var(--red);
    color: var(--red);
    background: transparent;
    font-weight: 600;
}

.btn-outline-danger:hover,
.btn-outline-red:hover {
    background: var(--red);
    color: #ffffff;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text-on-gold);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--text-on-gold);
}

.btn-secondary {
    background-color: var(--bg-hover);
    border-color: var(--bg-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-charcoal);
    border-color: var(--bg-charcoal);
}

[data-theme="light"] .btn-secondary {
    background-color: var(--bg-charcoal);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary:hover {
    background-color: var(--bg-hover);
}

/* ============================================================================
   Form Styles - Enhanced
   ============================================================================ */
.form-control,
.form-select {
    background-color: var(--bg-charcoal);
    border: 1px solid rgba(232, 197, 71, 0.25);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-charcoal);
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(232, 197, 71, 0.25);
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #ffffff;
    border-color: rgba(232, 197, 71, 0.35);
    color: var(--text-primary);
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background-color: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(232, 197, 71, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-check-input {
    border-color: rgba(232, 197, 71, 0.4);
}

.form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.form-check-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(232, 197, 71, 0.25);
}

.accordion-button:not(.collapsed) {
    color: var(--gold);
    background-color: var(--bg-charcoal);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.form-check-label {
    color: var(--text-secondary);
}

/* ============================================================================
   Text-to-Image Module Layout
   ============================================================================ */
.t2i-output-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.t2i-output-grid .card {
    border: 1px solid var(--gold-dark);
}

/* ============================================================================
   Image-to-Image Module Layout
   ============================================================================ */
.img2img-dropzone {
    border: 1px dashed var(--gold-dark);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img2img-dropzone.dragover {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.img2img-dropzone-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
}

.img2img-dropzone-content i {
    font-size: 1.6rem;
    color: var(--gold);
}

.img2img-thumb {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
}

.img2img-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.img2img-preview-pane {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 12px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.img2img-preview-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.img2img-preview {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.img2img-single-view {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 12px;
}

/* ============================================================================
   Seduce Clothing Editor
   ============================================================================ */
.seduce-dropzone {
    border: 1px dashed var(--gold-dark);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.seduce-dropzone.dragover {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

.seduce-dropzone-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-secondary);
}

.seduce-dropzone-content i {
    font-size: 1.5rem;
    color: var(--gold);
}

.seduce-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 10px;
}

.seduce-editor-toolbar {
    display: grid;
    gap: 10px;
}

.seduce-range {
    min-width: 120px;
}

.seduce-canvas-shell {
    position: relative;
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 380px;
}

.seduce-canvas-stage {
    position: relative;
    transform-origin: top left;
}

.seduce-base-image {
    display: block;
    width: 100%;
    height: auto;
}

.seduce-mask-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.seduce-canvas-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.45);
    text-align: center;
    padding: 12px;
}

.seduce-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.seduce-preview-pane {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 10px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seduce-preview-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.seduce-preview {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.seduce-single-view {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--gold-dark);
    border-radius: 12px;
    padding: 10px;
}

@media (max-width: 991px) {
    .seduce-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .img2img-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   Image Gallery Styles
   ============================================================================ */
.image-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.image-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.image-card .card-body {
    background: var(--bg-card);
}

.nsfw-revealed {
    filter: none;
}

.nsfw-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.nsfw-overlay .btn {
    pointer-events: auto;
}

/* ============================================================================
   Status Badges
   ============================================================================ */
.badge-online {
    background-color: #28a745;
    color: white;
}

.badge-offline {
    background-color: var(--red);
    color: white;
}

.badge-gold {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.badge-purple {
    background-color: var(--purple);
    color: white;
}

/* ============================================================================
   Hero Section - Enhanced readability
   ============================================================================ */
.hero-section {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-dark), var(--purple-dark));
    border-bottom: 2px solid var(--gold);
}

.fantasy-hero {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.85), rgba(91, 45, 119, 0.85)), 
                url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?w=1920&h=600&fit=crop') center/cover !important;
    background-blend-mode: overlay;
}

[data-theme="light"] .hero-section {
    background: linear-gradient(135deg, var(--bg-card), rgba(168, 85, 247, 0.1));
}

[data-theme="light"] .fantasy-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(168, 85, 247, 0.15)), 
                url('https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?w=1920&h=600&fit=crop') center/cover !important;
}

.hero-section h1 {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

[data-theme="light"] .hero-section h1 {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    color: var(--gold-dark);
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .hero-section p {
    color: var(--text-secondary);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Generate Page Contrast - Enhanced
   ========================================================================== */
.generate-page .prompt-form {
    background: linear-gradient(135deg, rgba(28, 28, 28, 0.98), rgba(50, 30, 42, 0.95));
    border: 1px solid rgba(232, 197, 71, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .generate-page .prompt-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 235, 0.95));
    border: 1px solid rgba(232, 197, 71, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.generate-page .form-label,
.generate-page .form-check-label,
.generate-page .accordion-button,
.generate-page .accordion-body {
    color: var(--ui-text-strong);
    font-weight: 500;
}

.generate-page .text-secondary {
    color: var(--ui-text-soft) !important;
}

.generate-page .form-text,
.generate-page .text-muted {
    color: var(--ui-text-muted) !important;
}

.generate-page .accordion-body .text-muted,
.generate-page .lora-card .text-muted,
.generate-page .lora-card small {
    color: var(--ui-text-soft) !important;
}

.generate-page .card.bg-dark,
.generate-page .card.bg-dark .fw-semibold,
.generate-page .card.bg-dark .form-label,
.generate-page .card.bg-dark .form-check-label {
    color: var(--ui-text-strong);
}

.generate-page .form-control,
.generate-page .form-select,
.generate-page textarea {
    color: var(--ui-text-strong);
    background-color: rgba(22, 22, 22, 0.95);
    border-color: rgba(232, 197, 71, 0.35);
    border-width: 1px;
}

.generate-page .form-control:focus,
.generate-page .form-select:focus,
.generate-page textarea:focus {
    background-color: rgba(28, 28, 28, 1);
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(232, 197, 71, 0.25);
    color: var(--ui-text-strong);
}

[data-theme="light"] .generate-page .form-control,
[data-theme="light"] .generate-page .form-select,
[data-theme="light"] .generate-page textarea {
    background-color: #ffffff;
    color: var(--ui-text-strong);
    border-color: rgba(232, 197, 71, 0.5);
}

[data-theme="light"] .generate-page .form-control:focus,
[data-theme="light"] .generate-page .form-select:focus,
[data-theme="light"] .generate-page textarea:focus {
    background-color: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(232, 197, 71, 0.25);
}

.generate-page .form-control::placeholder,
.generate-page textarea::placeholder {
    color: var(--ui-text-muted);
    opacity: 0.8;
}

.generate-page .accordion-button {
    background-color: rgba(38, 38, 38, 0.95);
    border-color: rgba(232, 197, 71, 0.35);
    color: var(--ui-text-strong);
    font-weight: 600;
}

.generate-page .accordion-button:not(.collapsed) {
    background-color: rgba(50, 50, 50, 0.95);
    color: var(--gold);
}

[data-theme="light"] .generate-page .accordion-button {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--ui-text-strong);
}

[data-theme="light"] .generate-page .accordion-button:not(.collapsed) {
    background-color: rgba(245, 245, 245, 0.95);
    color: var(--gold-dark);
}

.generate-page .accordion-item {
    border-color: rgba(232, 197, 71, 0.3);
    background: transparent;
}

.json-preview {
    background: rgba(18, 18, 18, 0.98);
    color: var(--ui-text-strong);
    border: 1px solid rgba(232, 197, 71, 0.3);
    border-radius: 8px;
    padding: 16px;
}

[data-theme="light"] .json-preview {
    background: rgba(250, 250, 250, 0.98);
    color: var(--ui-text-strong);
    border-color: rgba(232, 197, 71, 0.4);
}

/* LoRA control styling - Enhanced and responsive */
.lora-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lora-control {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(232, 197, 71, 0.3);
    transition: all 0.3s ease;
}

.lora-control:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(232, 197, 71, 0.5);
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.2);
}

[data-theme="light"] .lora-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(232, 197, 71, 0.4);
}

[data-theme="light"] .lora-control:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(232, 197, 71, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lora-control label {
    font-weight: 600;
    color: var(--ui-text-strong);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.lora-range {
    margin-top: 8px;
    width: 100%;
}

.lora-value {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

/* LoRA card styling */
.lora-card {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(232, 197, 71, 0.3) !important;
    background: rgba(38, 38, 38, 0.95) !important;
}

[data-theme="light"] .lora-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(232, 197, 71, 0.4) !important;
}

.lora-card .card-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(232, 197, 71, 0.3);
    padding: 16px;
}

[data-theme="light"] .lora-card .card-header {
    background: rgba(245, 245, 245, 0.9);
}

.lora-card .card-body {
    padding: 16px;
}

/* LoRA button controls - ensure they stay within bounds */
.lora-card .btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lora-card .btn {
    font-size: 0.85rem;
    padding: 6px 12px;
    white-space: nowrap;
}

/* Responsive adjustments for LoRA controls */
@media (max-width: 768px) {
    .lora-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .lora-card .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .lora-card .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .lora-control {
        padding: 12px;
    }
}

.prompt-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================================================
   Loading Spinner
   ============================================================================ */
.spinner-gold {
    color: var(--gold);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ============================================================================
   Alert Styles
   ============================================================================ */
.alert-gold {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
}

/* ============================================================================
   Admin Panel Styles - Professional Layout
   ============================================================================ */
.admin-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid var(--bg-hover);
    transition: border-color 0.2s ease;
}

.admin-section:hover {
    border-color: rgba(232, 197, 71, 0.3);
}

.admin-section h4 {
    color: var(--gold);
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.admin-compact .hero-section {
    padding: 20px 0;
}

.admin-compact .admin-section {
    padding: 18px;
    margin-bottom: 16px;
}

.admin-compact .admin-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.admin-compact .form-label {
    font-size: 0.92rem;
}

.admin-compact .form-control,
.admin-compact .form-select {
    font-size: 0.95rem;
    padding: 0.375rem 0.65rem;
}

.admin-menu {
    position: sticky;
    top: 90px;
}

.admin-menu .nav-pills .nav-link {
    text-align: left;
    color: var(--text-secondary);
    border-radius: 10px;
    margin-bottom: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.admin-menu .nav-pills .nav-link:hover {
    background: rgba(232, 197, 71, 0.1);
    color: var(--gold);
}

.admin-menu .nav-pills .nav-link.active {
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-weight: 600;
}

.admin-menu .nav-pills .nav-link i {
    margin-right: 8px;
}

/* ============================================================================
   Table Styles - Enhanced Readability
   ============================================================================ */
.table {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.table thead th {
    background: var(--bg-charcoal);
    color: var(--gold);
    border-color: var(--bg-hover);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}

.table tbody td {
    border-color: var(--bg-hover);
    vertical-align: middle;
    padding: 10px 16px;
}

.table-hover tbody tr:hover {
    background-color: var(--bg-hover);
}

/* ============================================================================
   Responsive Adjustments
   ============================================================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .prompt-form {
        padding: 20px;
    }
    
    .card-auth {
        margin: 0 15px;
    }
    
    .image-card img {
        height: 200px;
    }

    /* Mobile: prevent text overflow */
    .card-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Mobile: fix button groups */
    .d-flex.flex-wrap.gap-1 {
        gap: 0.25rem !important;
    }
    
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile: fix modal image viewer */
    .image-viewer-image {
        max-height: 50vh;
    }

    /* Mobile: fix dropdown overflow */
    .dropdown-menu {
        max-width: calc(100vw - 2rem);
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    /* Prevent action buttons from overflowing */
    .d-flex.justify-content-between.align-items-center.flex-wrap {
        gap: 0.5rem;
    }
    
    .feedback-buttons .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    /* Image cards: smaller on mobile */
    .image-card img {
        height: 180px;
    }
    
    /* Session badge: position above the fixed navbar (76px navbar + spacing) */
    .session-mode-badge {
        top: auto;
        bottom: 80px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    /* Aftercare variants: 2 columns on mobile */
    .aftercare-btn {
        flex: 1 1 calc(50% - 8px);
    }
    
    /* Mood pills smaller on mobile */
    .mood-pill {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ============================================================================
   Animations
   ============================================================================ */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   Status Panel
   ========================================================================== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

/* ============================================================================
   Scrollbar Styles
   ============================================================================ */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-dark);
}

/* Chrome/Safari/Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================================================
   Utility Classes
   ============================================================================ */
.text-gold {
    color: var(--gold) !important;
}

.text-red {
    color: var(--red) !important;
}

.bg-dark-custom {
    background-color: var(--bg-dark) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.mt-navbar {
    margin-top: 76px;
}

/* ============================================================================
   Theme Enhancements & Gradients
   ============================================================================ */
.velvet-gradient {
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.8) 0%, 
        rgba(75, 0, 130, 0.6) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
}

.velvet-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(107, 45, 92, 0.3) 50%, 
        rgba(13, 13, 13, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Pulse/Heartbeat Animations */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3),
                    0 0 20px rgba(196, 30, 58, 0.2);
    }
    50% { 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6),
                    0 0 40px rgba(196, 30, 58, 0.4);
    }
}

.btn-heartbeat:hover {
    animation: heartbeat 1.2s infinite;
}

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.like-button.liked {
    animation: heartbeat 0.6s ease-in-out;
    color: var(--red-light) !important;
}

/* Custom Tooltips */
.tooltip-seductive .tooltip-inner {
    background: linear-gradient(135deg, var(--red-dark), var(--purple-dark));
    color: var(--gold-light);
    font-style: italic;
    border: 1px solid var(--gold);
    font-size: 0.95rem;
    padding: 8px 12px;
}

/* NSFW Reveal Button */
.nsfw-reveal-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--red), var(--purple));
    border: 2px solid var(--gold);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nsfw-reveal-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.nsfw-container {
    position: relative;
}

/* Consent Modal */
.consent-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.consent-modal .modal-content {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(107, 45, 92, 0.4) 50%, 
        rgba(13, 13, 13, 0.99) 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
}

/* Content Tags */
.tag-erotic {
    background: linear-gradient(135deg, var(--red-dark), var(--purple-dark));
    color: var(--gold-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 2px;
    border: 1px solid var(--gold-dark);
}

/* Shimmer Effect for Loading */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-hover) 50%,
        var(--bg-card) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Audio Toggle Button */
.audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold-dark);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* Lazy Load Placeholder */
.lazy-placeholder {
    background: linear-gradient(
        135deg,
        var(--bg-card) 0%,
        var(--bg-hover) 50%,
        var(--bg-card) 100%
    );
    animation: shimmer 2s infinite;
    min-height: 300px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Analytics Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--gold-dark);
}

/* Monetization Tiers */
.tier-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(107, 45, 92, 0.3) 100%);
    border: 2px solid var(--gold-dark);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    text-align: center;
}

.tier-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.tier-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.tier-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin: 20px 0;
}

/* Emoji Picker Styling */
.emoji-picker {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.emoji-btn:hover {
    transform: scale(1.3);
}

/* ============================================================================
   v5.7 - Image Playground & UX Enhancements
   ============================================================================ */

/* Afterglow Viewer - Cinematic Zoom Effect */
.afterglow-viewer {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.afterglow-image-container {
    position: relative;
    display: inline-block;
}

.afterglow-zoom {
    animation: cinematicZoom 3s ease-in-out;
    transition: filter 0.3s ease;
}

@keyframes cinematicZoom {
    0% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Heartbeat Animation for Icons */
.heartbeat-animation {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
}

/* Reveal Overlay for NSFW Content */
.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reveal-overlay:hover {
    opacity: 0;
}

.reveal-text {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* NSFW Blur Effect */
.nsfw-blur {
    filter: blur(20px);
    transition: filter 0.5s ease;
}

.nsfw-blur:hover {
    filter: blur(0);
}

/* Loading Messages Animation */
.loading-message {
    font-style: italic;
    color: var(--secondary);
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Playground Action Buttons */
#playgroundActions .btn {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#playgroundActions .btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

#playgroundActions .btn i {
    font-size: 2rem;
}

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

/* Smart Nude Presets Card */
.card.bg-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(139, 0, 0, 0.1) 100%);
}

.card-header.bg-danger {
    background: linear-gradient(90deg, 
        var(--danger) 0%, 
        rgba(139, 0, 0, 0.8) 100%) !important;
}

.card-header.bg-gold {
    background: linear-gradient(90deg, 
        var(--gold) 0%, 
        var(--gold-dark) 100%) !important;
}

/* Remix Style Buttons */
[data-style] {
    transition: all 0.3s ease;
}

[data-style].active {
    background: var(--gold) !important;
    color: var(--dark) !important;
    border-color: var(--gold) !important;
    transform: scale(1.05);
}

[data-style]:hover:not(.active) {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Velvet Red UI Theme Enhancement */
.prompt-form {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.98) 0%, 
        rgba(139, 0, 0, 0.15) 50%,
        rgba(75, 0, 130, 0.1) 100%);
    border: 1px solid var(--gold-dark);
    border-radius: 16px;
    padding: 30px;
}

/* Custom Tooltips */
[data-bs-toggle="tooltip"] {
    position: relative;
}

.tooltip-inner {
    background: linear-gradient(135deg, var(--danger) 0%, rgba(139, 0, 0, 0.9) 100%);
    color: var(--gold);
    font-style: italic;
    border: 1px solid var(--gold-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: var(--danger);
}

/* Rotating Loading Messages */
.erotic-loading-message {
    color: var(--gold);
    font-style: italic;
    font-size: 1.1rem;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.8; 
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

/* Enhanced Nav Pills for Tabs */
.nav-pills .nav-link {
    background: rgba(28, 28, 28, 0.7);
    border: 1px solid rgba(232, 197, 71, 0.3);
    margin: 0 5px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 600;
}

[data-theme="light"] .nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(232, 197, 71, 0.4);
    color: var(--text-secondary);
}

.nav-pills .nav-link:hover {
    background: rgba(232, 197, 71, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
    color: var(--gold);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(232, 197, 71, 0.3);
    color: var(--text-on-gold);
}

[data-theme="light"] .nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--text-on-gold);
}

/* Intensity and Denoise Sliders Enhancement */
.form-range {
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(232, 197, 71, 0.3) 0%, 
        var(--gold) 50%, 
        var(--gold-light) 100%);
    border-radius: 4px;
    border: none;
}

[data-theme="light"] .form-range {
    background: linear-gradient(90deg, 
        rgba(232, 197, 71, 0.4) 0%, 
        var(--gold-dark) 50%, 
        var(--gold) 100%);
}

.form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 2px solid var(--gold-dark);
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.4);
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    background: var(--gold-light);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 197, 71, 0.6);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--gold);
    border: 2px solid var(--gold-dark);
    box-shadow: 0 2px 8px rgba(232, 197, 71, 0.4);
    transition: all 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    background: var(--gold-light);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 197, 71, 0.6);
}

/* Gradient Button Enhancements */
.btn-outline-gold:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Card Hover Effects for Gallery */
.card.bg-dark.border-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
    border-width: 2px;
}

/* Playground Image Preview */
#playgroundImagePreview img,
#seduceImagePreview img {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

#playgroundImagePreview img:hover,
#seduceImagePreview img:hover {
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.7);
    transform: scale(1.02);
}

/* VIP Badge Styling */
[data-vip="true"] {
    position: relative;
}

[data-vip="true"]::after {
    content: "⭐ VIP";
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Modal Enhancements */
.modal-content {
    box-shadow: 0 0 50px rgba(232, 197, 71, 0.3);
    border: 2px solid var(--gold);
    background-color: var(--bg-card);
    border-radius: 16px;
}

[data-theme="light"] .modal-content {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.modal-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(232, 197, 71, 0.3);
    color: var(--ui-text-strong);
}

[data-theme="light"] .modal-header {
    background-color: rgba(245, 245, 245, 0.8);
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(232, 197, 71, 0.3);
}

[data-theme="light"] .modal-footer {
    background-color: rgba(245, 245, 245, 0.5);
}

.modal-header.border-gold,
.modal-footer.border-gold {
    border-color: var(--gold) !important;
}

/* Dropdown menus - Enhanced */
.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid rgba(232, 197, 71, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .dropdown-menu {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--gold);
}

.dropdown-divider {
    border-color: rgba(232, 197, 71, 0.2);
}

/* Smooth Transitions for All Interactive Elements */
button, .btn, .card, .form-control, .form-select, .form-range {
    transition: all 0.3s ease;
}

/* ============================================================================
   v5.8 - Progressive Reveal & Content Layer
   ============================================================================ */

/* Progressive Reveal - Blurred → Tease → Sharp */
.progressive-reveal {
    position: relative;
    overflow: hidden;
}

.progressive-reveal.blur-full {
    filter: blur(30px);
    transition: filter 2s ease-out;
}

.progressive-reveal.blur-tease {
    filter: blur(15px);
    transition: filter 1.5s ease-out;
}

.progressive-reveal.blur-partial {
    filter: blur(5px);
    transition: filter 1s ease-out;
}

.progressive-reveal.blur-none {
    filter: blur(0);
    transition: filter 0.5s ease-out;
}

/* Heartbeat Pulse Animation for NSFW Results */
@keyframes heartbeat-pulse {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.05); }
    40% { transform: scale(1); }
}

.heartbeat-reveal {
    animation: heartbeat-pulse 2s ease-in-out;
}

/* Hover Unblur with Patience Message */
.hover-reveal-wrapper {
    position: relative;
    display: inline-block;
}

.hover-reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.hover-reveal-wrapper:hover .hover-reveal-overlay {
    opacity: 0;
}

.patience-message {
    color: var(--gold);
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    padding: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Mood Pills Styling */
.mood-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.mood-pill {
    flex: 0 1 auto;
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.mood-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.mood-pill:hover::before {
    width: 300px;
    height: 300px;
}

.mood-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.mood-pill.active {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: var(--gold-light);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.mood-pill.mood-yearning { border-color: #ff69b4; }
.mood-pill.mood-dominant { border-color: #8b0000; }
.mood-pill.mood-worship { border-color: #ffd700; }
.mood-pill.mood-depraved { border-color: #4b0082; }
.mood-pill.mood-tender { border-color: #ffb6c1; }
.mood-pill.mood-filthy { border-color: #2f4f4f; }
.mood-pill.mood-obsessive { border-color: #dc143c; }
.mood-pill.mood-playful { border-color: #ff1493; }

/* Aftercare Variants Buttons */
.aftercare-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid var(--gold-dark);
}

.aftercare-btn {
    flex: 1 1 calc(25% - 8px);
    min-width: 100px;
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.aftercare-btn:hover {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.aftercare-btn i {
    margin-right: 5px;
}

/* Memory Tags */
.memory-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.memory-tag {
    padding: 6px 15px;
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.memory-tag:hover {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.memory-tag.active {
    background: var(--gradient-red);
    border-color: var(--red);
    color: white;
}

.memory-tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
}

.memory-tag .remove-tag:hover {
    opacity: 1;
    color: var(--red-light);
}

/* Session Mode Indicator */
.session-mode-badge {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    padding: 15px 25px;
    background: var(--gradient-red);
    border: 2px solid var(--red-light);
    border-radius: 30px;
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 25px rgba(196, 30, 58, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.session-timer {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Session Recap Modal */
.session-recap {
    padding: 20px;
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Collage Grid */
.session-collage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.collage-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--gold-dark);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collage-item:hover img {
    transform: scale(1.1);
}

/* Micro-upsell Badges */
.priority-upsell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    border: 2px solid var(--purple-light);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.priority-upsell::before {
    content: '⚡';
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    right: -10px;
    top: -10px;
    animation: rotate-slow 4s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.priority-upsell:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(107, 45, 92, 0.6);
}

.priority-badge {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Quick Action Button */
.instant-climax-btn {
    background: linear-gradient(135deg, #ff0080, #8b0000);
    border: 2px solid #ff1493;
    color: white;
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instant-climax-btn::after {
    content: '💥';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: pulse-glow 1s ease-in-out infinite;
}

.instant-climax-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.6);
}

/* Loading Enhancement */
.sensual-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-message-romantic {
    color: var(--gold-light);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Deeper Velvet/Red Theme Enhancement */
.velvet-deep-bg {
    background: linear-gradient(135deg, 
        rgba(107, 45, 92, 0.3) 0%, 
        rgba(139, 0, 0, 0.3) 50%, 
        rgba(26, 26, 26, 0.95) 100%);
}

.crimson-glow {
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
}

.gold-shimmer {
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold) 50%, 
        var(--gold-light) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Custom Tooltips */
.flirty-tooltip {
    position: relative;
}

.flirty-tooltip::after {
    content: attr(data-flirt);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-red);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-style: italic;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.flirty-tooltip:hover::after {
    opacity: 1;
}

/* Long-press indicator */
.long-press-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 2s linear;
    border-radius: 2px;
}

.long-press-active .long-press-progress {
    width: 100%;
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   Professional Control Panel (2026)
   ============================================================================ */

.control-panel {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-charcoal) 100%);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.btn-group .btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-group .btn-outline-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-group .btn-outline-gold:hover::before,
.btn-group .btn-check:checked + .btn-outline-gold::before {
    left: 0;
}

.btn-group .btn-outline-gold:hover,
.btn-group .btn-check:checked + .btn-outline-gold {
    color: var(--bg-dark);
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.btn-group .btn-outline-gold i {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

.btn-group .btn-outline-gold small {
    font-size: 0.75em;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .control-panel {
        padding: 1rem;
        margin: 0 -0.5rem;
    }
    
    .btn-group .btn-outline-gold {
        padding: 0.5rem 0.75rem;
        margin: 0 0.125rem;
        font-size: 0.9em;
    }
}

/* ============================================================================
   Professional Hero Section (2026)
   ============================================================================ */

.professional-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-charcoal) 50%, var(--bg-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.professional-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content h1 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    margin-top: 1rem;
}

.stat-card {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.status-panel {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
}

/* Status panel inside modals */
.modal .status-panel {
    padding: 1rem;
    margin: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

.status-header h5 {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.status-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
}

/* ============================================================================
   Enhanced Control Panel Animations
   ============================================================================ */

.control-panel {
    animation: fadeInUp 0.6s ease-out;
}

.btn-group .btn-outline-gold {
    animation: fadeInUp 0.6s ease-out;
}

.btn-group .btn-outline-gold:nth-child(1) { animation-delay: 0.1s; }
.btn-group .btn-outline-gold:nth-child(2) { animation-delay: 0.2s; }
.btn-group .btn-outline-gold:nth-child(3) { animation-delay: 0.3s; }
.btn-group .btn-outline-gold:nth-child(4) { animation-delay: 0.4s; }

/* ============================================================================
   Professional Content Card
   ============================================================================ */

.content-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold);
    margin-top: 1rem;
}

/* ============================================================================
   End Professional Enhancements
   ============================================================================ */

/* ============================================================================
   Model/LoRA Info Popup & Library Modal
   ============================================================================ */

#modelInfoModal .modal-content,
#modelLibraryModal .modal-content {
    backdrop-filter: blur(12px);
    background: rgba(30, 30, 30, 0.97);
}

#modelInfoModal .modal-body img {
    transition: transform 0.2s ease;
}

#modelInfoModal .modal-body img:hover {
    transform: scale(1.02);
}

#modelLibraryGrid .card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#modelLibraryGrid .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.15);
}

/* Inline model/lora action buttons */
[data-lora-info],
[data-lora-library] {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

[data-lora-info]:hover,
[data-lora-library]:hover {
    opacity: 1;
}

/* Admin preview upload button styling */
[data-preview-upload] {
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

[data-preview-upload]:hover {
    opacity: 1;
}
