/**
 * Dresium Main Modal Styles
 *
 * Sidebar navigation modal matching screenshot design
 *
 * @package Dresium
 * @version 2.0.1
 */

/* ============================================================
   Neutralize theme box-shadow overrides on buttons
   ============================================================ */

#dresium-main-modal button,
#dresium-main-modal .button,
#dresium-main-modal input[type="button"],
#dresium-main-modal input[type="submit"],
#dresium-upload-modal button,
#dresium-upload-modal .button,
#dresium-crop-modal button,
#dresium-crop-modal .button {
    box-shadow: none !important;
}

/* ============================================================
   Main Modal Container
   ============================================================ */

.dresium-main-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
}

.dresium-main-modal[open] {
    display: flex;
}

.dresium-main-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dresium-main-modal__container {
    display: flex;
    width: 90vw;
    max-width: 640px; /* RG-WEBDEV 2025-11-24: Reduced from 1100px for compact design */
    height: 85vh;
    max-height: 640px; /* RG-WEBDEV 2025-11-24: Reduced from 700px for compact design */
    background: #ffffff;
    border-radius: 10px; /* RG-WEBDEV: BK -> 24px; */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Sidebar Navigation
   ============================================================ */

.dresium-main-modal__sidebar {
    display: flex;
    flex-direction: column;
    width: 200px; /* RG-WEBDEV 2025-11-24: Reduced from 280px for compact design */
    background: #F4F5F9; /* RG-WEBDEV: #F8F9FA; */
    border-right: 1px solid #E9ECEF;
    /* padding: 32px 0; RG-WEBDEV */
}

.dresium-main-modal__sidebar-header {
    padding: 24px 24px 24px 24px; /* 0 24px 32px; RG-WEBDEV */
}

.dresium-main-modal__logo {
    display: flex;
    align-items: center;
}

/* RG-WEBDEV 2025-01-17: Logo as image instead of styled text */
.dresium-logo {
    width: 100px;
    height: auto;
    display: block;
}

/* Navigation */
.dresium-main-modal__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0; /* RG-WEBDEV 2025-11-24: Removed 16px horizontal padding for cleaner layout */
}

/* RG-WEBDEV 2025-11-24: Add ID selector for maximum specificity to override base resets */
#dresium-main-modal .dresium-main-modal__nav-item,
#dresium-main-modal button.dresium-main-modal__nav-item,
.dresium-main-modal__nav-item,
button.dresium-main-modal__nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 24px !important; /* RG-WEBDEV 2025-11-24: Adjusted from 14px 16px for better spacing */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #495057 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: left !important;
    width: 100% !important;
    margin: 0 !important;
    text-decoration: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
}

#dresium-main-modal .dresium-main-modal__nav-item:hover,
#dresium-main-modal button.dresium-main-modal__nav-item:hover,
.dresium-main-modal__nav-item:hover,
button.dresium-main-modal__nav-item:hover {
    background: #E7E7E7 !important;
    color: #111 !important;
    box-shadow: none !important;
}

/* RG-WEBDEV 2026-02-27: Ensure link nav items match button styling */
#dresium-main-modal a.dresium-main-modal__nav-item,
a.dresium-main-modal__nav-item {
    text-decoration: none !important;
    color: #495057 !important;
}

#dresium-main-modal a.dresium-main-modal__nav-item:hover,
a.dresium-main-modal__nav-item:hover {
    text-decoration: none !important;
    color: #111 !important;
}

#dresium-main-modal a.dresium-main-modal__nav-item .dresium-main-modal__nav-icon svg,
a.dresium-main-modal__nav-item .dresium-main-modal__nav-icon svg {
    stroke: currentColor !important;
}

#dresium-main-modal .dresium-main-modal__nav-item--active,
.dresium-main-modal__nav-item--active {
    background: #E7E7E7 !important;
    color: #111 !important;
}

/* RG-WEBDEV 2026-03-07: Logout nav item styling - same as other nav items, positioned last */
#dresium-main-modal .dresium-main-modal__nav-item--logout,
.dresium-main-modal__nav-item--logout {
    margin-top: auto !important;
}

.dresium-main-modal__nav-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dresium-main-modal__nav-text {
    flex: 1;
    /* RG-WEBDEV */
    font-family: "Inter", Sans-serif;
    font-weight: 500;
    color: #000000;
    /*************/
}

/* Sidebar Footer */
/* RG-WEBDEV 2025-01-17: Added background color and bolder text */
.dresium-main-modal__sidebar-footer {
    padding: 24px 24px 24px 24px;
    margin-top: auto;
    background: #f4f5f9;
}

.dresium-main-modal__credits {
    padding: 0; /* RG-WEBDEV 2025-11-24: Removed padding, simplified design */
    background: none; /* RG-WEBDEV 2025-11-24: Transparent background */
    border-radius: 0; /* RG-WEBDEV 2025-11-24: No border radius */
    text-align: center;
    font-family: "Inter", Sans-serif; /* RG-WEBDEV 2025-11-24: Explicit font family */
    font-size: 14px;
    font-weight: 600; /* RG-WEBDEV 2025-01-17: Slightly bolder */
    color: #000; /* RG-WEBDEV 2025-11-24: Pure black instead of #495057 */
    border: none; /* RG-WEBDEV 2025-11-24: No border */
}

/* RG-WEBDEV 2025-01-18: Mobile footer - hidden on desktop, visible on mobile */
.dresium-main-modal__mobile-footer {
    display: none;
}

/* ============================================================
   Content Area
   ============================================================ */

.dresium-main-modal__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* RG-WEBDEV 2025-01-17: Close button - black X, no background, no scale on hover */
.dresium-main-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
    z-index: 100;
}

.dresium-main-modal__close:hover {
    background: transparent;
}

/* Sections */
.dresium-main-modal__section {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 25px; /* RG-WEBDEV 2025-11-24: Reduced from 48px 64px for compact design */
    overflow-y: auto;
}

.dresium-main-modal__section--active {
    display: flex;
}

.dresium-main-modal__section-header {
    margin-bottom: 32px;
}

.dresium-main-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    letter-spacing: -0.5px;
    /* RG-WEBDEV 2025-01-18: Border-bottom as divider with 6px margin above and below */
    border-bottom: 1px solid #f4f5f9;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.dresium-main-modal__subtitle {
    font-size: 15px;
    color: #7A7A7A;
    margin: 0;
    line-height: 1.6;
}

/* RG-WEBDEV 2025-01-18: Specific spacing for subtitle after title (6px below divider) */
h2.dresium-main-modal__title + p.dresium-main-modal__subtitle {
    margin-block-start: 6px !important;
    padding-top: 6px !important; /* RG-WEBDEV */
}

.dresium-main-modal__section-body {
    position: relative; /* RG-WEBDEV: Required for crop overlay positioning */
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   Upload Info Section
   ============================================================ */

/* RG-WEBDEV 2026-03-09: Dismissible info boxes (warning and upload) */
.dresium-dismissible-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 4px;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.dresium-dismissible-box--hidden {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.dresium-dismissible-box__content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.dresium-dismissible-box__content svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.dresium-dismissible-box__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.dresium-dismissible-box__close:hover {
    opacity: 1;
}

/* Warning box specific styles */
.dresium-warning-info {
    margin: 0 0 12px 0;
    background: #fdf33c;
}

.dresium-warning-info .dresium-dismissible-box__content,
.dresium-warning-info .dresium-dismissible-box__content strong,
.dresium-warning-info .dresium-dismissible-box__content span {
    color: #000000;
}

.dresium-warning-info .dresium-dismissible-box__close svg {
    stroke: #000000;
}

/* Upload info box specific styles */
.dresium-upload-info {
    margin: 0 0 25px 0;
    background: #0969da;
}

.dresium-upload-info .dresium-dismissible-box__content,
.dresium-upload-info .dresium-dismissible-box__content strong,
.dresium-upload-info .dresium-dismissible-box__content span {
    color: #ffffff;
}

.dresium-upload-info .dresium-dismissible-box__close svg {
    stroke: #ffffff;
}

@media (max-width: 768px) {
    /* RG-WEBDEV 2026-03-09: Fix info boxes on mobile - prevent clipping/overlap */
    .dresium-dismissible-box {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .dresium-dismissible-box__content {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: break-word;
    }

    .dresium-warning-info {
        margin-bottom: 10px !important;
    }

    .dresium-upload-info {
        margin-bottom: 20px !important;
    }
}

/* ============================================================
   Photo Preview Section
   ============================================================ */

.dresium-photo-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.dresium-photo-preview__container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: #F8F9FA;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dresium-photo-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.dresium-photo-preview__image.loaded {
    display: block;
}

.dresium-photo-preview__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #ADB5BD;
}

.dresium-photo-preview__placeholder-icon {
    font-size: 64px;
}

.dresium-photo-preview__container:has(.dresium-photo-preview__image.loaded) .dresium-photo-preview__placeholder {
    display: none;
}

/* ============================================================
   Style Form Section
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Two columns layout, single column on mobile */
.dresium-style-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

/* RG-WEBDEV 2025-01-17: Buttons wrapper - full width, stacked */
.dresium-style-form__buttons {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

/* RG-WEBDEV 2025-01-17: Reset button style */
.dresium-btn--reset {
    background: #f4f5f9 !important;
    color: #000000 !important;
    font-weight: 500 !important;
    border-style: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    justify-content: center !important;
    gap: 8px !important;
}

.dresium-btn--reset svg {
    flex-shrink: 0;
}

.dresium-btn--reset:hover {
    background: #e8e9ed !important;
}

/* RG-WEBDEV 2026-03-09: Disabled button state for style form save button */
.dresium-btn--disabled,
.dresium-style-form button[type="submit"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #cccccc !important;
    color: #666666 !important;
}

.dresium-field__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.dresium-field__select {
    width: 100%;
    padding: 5px 20px 5px 14px;
    font-size: 14px;
    color: #000000;
    background-color: #f4f5f9;
    border: 1px solid #DEE2E6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.dresium-field__select:hover {
    border-color: #ADB5BD;
}

.dresium-field__select:focus {
    outline: none;
    border-color: #4C6EF5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.dresium-btn-link {
    background: none;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #4C6EF5;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dresium-btn-link--center {
    justify-content: center;
}

.dresium-btn-link:hover {
    color: #3B5BDB;
}

.dresium-btn-link__icon {
    font-size: 16px;
}

/* ============================================================
   Outfit Gallery Section
   ============================================================ */

.dresium-outfit-gallery {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dresium-outfit-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dresium-outfit-gallery__item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    background: #F8F9FA;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dresium-outfit-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dresium-outfit-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RG-WEBDEV 2025-01-18: Overlay bar at bottom - same style as photo grid delete wrapper */
.dresium-outfit-gallery__item-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
    border-radius: 0 0 13px 13px;
}

/* Desktop: hover shows overlay */
.dresium-outfit-gallery__item:hover .dresium-outfit-gallery__item-overlay {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* Mobile: active class shows overlay (two-tap system) */
.dresium-outfit-gallery__item.active .dresium-outfit-gallery__item-overlay {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* RG-WEBDEV 2025-01-18: Icon buttons - 20px icons, B/W colors */
.dresium-outfit-gallery__item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.dresium-outfit-gallery__item-btn svg {
    width: 15px;
    height: 15px;
    color: #FFFFFF;
    stroke: #FFFFFF;
}

.dresium-outfit-gallery__item-btn:hover svg {
    transform: scale(1.1);
}

/* Loading state */
.dresium-outfit-gallery__grid--loading {
    pointer-events: none;
    position: relative;
    min-height: 200px;
}

.dresium-outfit-gallery__grid--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    animation: dresium-spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes dresium-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Photo grid loading state - identical to gallery spinner */
.dresium-photo-grid--loading {
    pointer-events: none;
    position: relative;
    min-height: 300px;
}

/* Hide all children (photos) during loading */
.dresium-photo-grid--loading > * {
    opacity: 0;
    visibility: hidden;
}

.dresium-photo-grid--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B5CF6;
    border-radius: 50%;
    animation: dresium-spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dresium-outfit-gallery__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ADB5BD;
}

.dresium-outfit-gallery__empty-icon {
    font-size: 64px;
}

.dresium-outfit-gallery__empty:not(:only-child) {
    display: none;
}

.dresium-outfit-gallery__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
}

.dresium-outfit-gallery__nav-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-outfit-gallery__nav-btn:hover:not(:disabled) {
    background: #E9ECEF;
    border-color: #ADB5BD;
}

.dresium-outfit-gallery__nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* RG-WEBDEV 2025-01-17: Page info display */
.dresium-outfit-gallery__page-info {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* ============================================================
   Pricing Section
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Full width, single column layout with Stripe buttons */
.dresium-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

/* RG-WEBDEV 2025-01-18: Expandable card - click to show Stripe button */
.dresium-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-left: 4px solid #C4B5FD;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
    /* overflow: visible to allow badge to show outside */
}

.dresium-pricing-card:hover {
    background: #FAFAFF;
    border-color: #A78BFA;
    border-left-color: #A78BFA;
}

/* Expanded state - show the Stripe button */
.dresium-pricing-card--expanded {
    background: #F5F3FF;
    border-color: #8B5CF6;
    border-left-color: #8B5CF6;
}

/* Featured card (Piano Pro) */
.dresium-pricing-card--featured {
    border-left-color: #8B5CF6;
    border-left-width: 4px;
}

/* Badge for featured plan */
.dresium-pricing-card__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 1;
}

/* Content wrapper for info - horizontal row */
.dresium-pricing-card__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 16px;
}

/* RG-WEBDEV 2025-01-17: Title and description */
.dresium-pricing-card__header {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.dresium-pricing-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 4px 0;
}

.dresium-pricing-card__description {
    font-size: 13px;
    color: #868E96;
    margin: 0;
    line-height: 1.4;
}

/* RG-WEBDEV 2025-01-17: Price */
.dresium-pricing-card__amount {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0;
    white-space: nowrap;
}

.dresium-pricing-card__cents {
    font-size: 16px;
    font-weight: 600;
}

.dresium-pricing-card__info {
    font-size: 13px;
    color: #868E96;
    white-space: nowrap;
}

/* Stripe button action area - hidden by default, shown on expand */
.dresium-pricing-card__action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

/* Show action area when card is expanded */
.dresium-pricing-card--expanded .dresium-pricing-card__action {
    max-height: 100px;
    opacity: 1;
    margin-top: 16px;
}

/* RG-WEBDEV 2026-02-04: Style for custom Stripe checkout button */
/* RG-WEBDEV 2026-02-17: Using ID selector for higher specificity - applies to both main modal and insufficient credits modal */
#dresium-main-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe,
#dresium-insufficient-credits-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 24px !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #635BFF 0%, #7C3AED 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    height: auto !important;
}

#dresium-main-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe:disabled,
#dresium-insufficient-credits-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#dresium-main-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe.dresium-btn--loading,
#dresium-insufficient-credits-modal.dresium-main-modal .dresium-pricing-card__action .dresium-btn.dresium-btn--stripe.dresium-btn--loading {
    opacity: 0.8;
    cursor: wait;
}

.dresium-pricing-card__footer {
    display: none;
}

/* Subtitle link styling */
.dresium-main-modal__subtitle-link {
    color: #8B5CF6;
    text-decoration: underline;
}

.dresium-main-modal__subtitle-link:hover {
    color: #7C3AED;
}

/* Pricing footer with note */
.dresium-pricing-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.dresium-pricing-footer__note {
    text-align: center;
    font-size: 14px;
    color: #868E96;
    margin: 0;
}

/* Gradient button for purchase (kept for other uses) */
.dresium-btn--gradient {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dresium-btn--gradient:hover:not(:disabled) {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.dresium-btn--gradient:disabled {
    background: linear-gradient(135deg, #C4B5FD 0%, #A5B4FC 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive: adjust content on small screens */
@media (max-width: 500px) {
    .dresium-pricing-card__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   Button Style Overrides for Main Modal
   RG-WEBDEV: Generic button styles moved to dresium-buttons.css
   Keep only modal-specific overrides here
   ============================================================ */

/* RG-WEBDEV: Override button base for main modal context */
.dresium-main-modal .dresium-btn {
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    font-family: inherit;
}

/* RG-WEBDEV: Override --lg size for main modal context */
.dresium-main-modal .dresium-btn--lg {
    /* padding: 14px 32px; RG-WEBDEV */
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 968px) {

    /* RG-WEBDEV 2026-02-22: Fullscreen modal on mobile for better usability
       Using 100% instead of 100vh to prevent resize on Android scroll */
    .dresium-main-modal__container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        flex-direction: column;
        border-radius: 0; /* No rounded corners fullscreen */
    }

    .dresium-main-modal__content {
        position: unset; /* RG-WEBDEV */
    }

    .dresium-main-modal__sidebar {
        width: 100%;
        flex-direction: column;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid #E9ECEF;
    }

    .dresium-main-modal__sidebar-header {
        padding: 0;
    }

    .dresium-main-modal__nav {
        flex-direction: row;
        justify-content: space-evenly; /* RG-WEBDEV 2026-03-09: Distribute items evenly */
        align-items: center; /* RG-WEBDEV */
        padding: 0;
        gap: 0; /* RG-WEBDEV 2026-03-09: No gap, space-evenly handles spacing */
        flex-wrap: nowrap; /* RG-WEBDEV 2026-03-09: Keep items in single row */
        margin: 20px 0 10px 0; /* RG-WEBDEV */
    }

    .dresium-main-modal__nav-item {
        flex-direction: column;
        flex: 1; /* RG-WEBDEV 2026-03-09: Equal width for all items */
        min-width: 0; /* RG-WEBDEV 2026-03-09: Allow shrinking below content size */
        padding: 8px 4px; /* RG-WEBDEV 2026-03-09: Compact padding */
        gap: 4px;
    }

    .dresium-main-modal__nav-text {
        display: none; /* RG-WEBDEV */
        /*font-size: 12px;
        text-align: center; RG-WEBDEV: BK */
    }

    /* RG-WEBDEV 2025-01-18: Hide sidebar footer on mobile (replaced by mobile footer) */
    .dresium-main-modal__sidebar-footer {
        display: none;
    }

    /* RG-WEBDEV 2025-01-18: Mobile footer with credits */
    .dresium-main-modal__mobile-footer {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        background: #F4F5F9;
        border-top: 1px solid #E9ECEF;
        flex-shrink: 0;
    }

    .dresium-main-modal__mobile-credits {
        font-family: "Inter", Sans-serif;
        font-size: 13px;
        font-weight: 600;
        color: #000;
        text-align: center;
    }

    /* RG-WEBDEV 2026-03-09: Logout styling on mobile - follows naturally after other items, no auto margin */
    .dresium-main-modal__nav-item--logout {
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    .dresium-main-modal__section {
        padding: 32px 24px;
    }

    .dresium-pricing-grid {
        flex-direction: column;
    }

    .dresium-outfit-gallery__grid {
        grid-template-columns: 1fr;
    }

    /* RG-WEBDEV 2026-03-09: Mobile overlay and icons sizing */
    .dresium-outfit-gallery__item-overlay {
        height: 10vw !important;
        gap: 3vw !important;
    }

    .dresium-outfit-gallery__item-btn {
        width: 6vw !important;
        height: 6vw !important;
        padding: 0 !important;
    }

    .dresium-outfit-gallery__item-btn svg {
        width: 4vw !important;
        height: 4vw !important;
    }

}

/* ============================================================
   Photo Grid Section (Voce 1 - Foto Predefinita)
   ============================================================ */

/* RG-WEBDEV 2025-01-17: Uniformed with gallery - 3 columns, aspect-ratio 3/4 */
.dresium-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dresium-photo-grid__item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid transparent;
    background: #e7e7e7;
}

/* RG-WEBDEV 2025-01-18: Same hover animation as gallery */
.dresium-photo-grid__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dresium-photo-grid__item--selected {
    border-color: #4A90E2;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.dresium-photo-grid__item--upload {
    border: 3px dashed #CED4DA;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.dresium-photo-grid__item--upload:hover {
    border-color: #4A90E2;
    background: #EBF5FF;
}

/* RG-WEBDEV 2025-01-17: Upload icon SVG - centered in x and y */
.dresium-photo-grid__upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868E96;
    transition: all 0.2s ease;
}

.dresium-photo-grid__upload-icon svg {
    display: block;
}

.dresium-photo-grid__item--upload:hover .dresium-photo-grid__upload-icon {
    color: #4A90E2;
    transform: scale(1.1);
}

.dresium-photo-grid__image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* RG-WEBDEV 2025-01-18: Delete button wrapper - hidden by default, shown on hover */
.dresium-photo-grid__delete-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.16);
    border-radius: 0 0 13px 13px;
    z-index: 2;
    cursor: default;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

/* Show delete wrapper on hover */
.dresium-photo-grid__item:hover .dresium-photo-grid__delete-wrapper {
    opacity: 1;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.24);
}

/* Delete button - transparent, cursor only on button */
.dresium-photo-grid__item .dresium-photo-grid__delete {
    background: transparent !important;
    border: none !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Trash icon - white */
.dresium-photo-grid__item .dresium-photo-grid__delete > span {
    color: #FFFFFF !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SVG icon size inside delete button - 20px, white */
.dresium-photo-grid__delete svg {
    width: 20px !important;
    height: 20px !important;
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Empty State */
/* RG-WEBDEV 2025-01-17: Reduced padding, adjusted spacing */
.dresium-photo-grid__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.dresium-photo-grid__empty--visible {
    display: flex;
}

.dresium-photo-grid__empty-icon {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.dresium-photo-grid__empty-text {
    font-size: 16px;
    color: #868E96;
    margin: 0 0 32px 0;
}

/* Footer with CTA */
.dresium-photo-grid__footer {
    margin-top: auto;
}

/* RG-WEBDEV 2025-01-17: Hide select photo button by default, shown via JS when photos exist */
#dresium-select-photo-btn {
    display: none;
}

/* Vibration animation for disabled button */
@keyframes vibrate {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.dresium-photo-grid__item--vibrate {
    animation: vibrate 0.3s ease;
}

/* RG-WEBDEV 2025-10-26: Share Modal */
.dresium-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dresium-share-modal--active {
    opacity: 1;
    visibility: visible;
}

.dresium-share-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.dresium-share-modal__content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dresium-share-modal--active .dresium-share-modal__content {
    transform: scale(1);
}

.dresium-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dresium-share-modal__header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #212529;
}

.dresium-share-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-share-modal__close:hover {
    background: #E9ECEF;
    transform: rotate(90deg);
}

.dresium-share-modal__body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.dresium-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: #F8F9FA;
    border: 2px solid #DEE2E6;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.dresium-share-btn:hover {
    border-color: #ADB5BD;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dresium-share-btn svg {
    flex-shrink: 0;
}

.dresium-share-btn--whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
}

.dresium-share-btn--facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.dresium-share-btn--instagram:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.dresium-share-btn--email:hover {
    border-color: #EA4335;
    color: #EA4335;
}

.dresium-share-btn--download:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
}

/* Responsive */
@media (max-width: 768px) {
    .dresium-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dresium-share-modal__content {
        padding: 24px;
    }

    .dresium-share-modal__body {
        grid-template-columns: 1fr;
    }

    .dresium-share-btn {
        padding: 14px 16px;
    }
}

/* RG-WEBDEV 2025-01-18: Inline Share Expansion - B/W icons, same style as overlay bar */
.dresium-share-expansion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.1s ease-out;
    pointer-events: none;
}

.dresium-share-expansion--active {
    opacity: 1;
    pointer-events: all;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

/* RG-WEBDEV 2025-01-18: Share buttons - transparent, white icons */
.dresium-share-expansion__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    color: #FFFFFF;
}

.dresium-share-expansion__btn:hover {
    transform: scale(1.1);
}

.dresium-share-expansion__btn:active {
    transform: scale(0.95);
}

.dresium-share-expansion__btn svg {
    width: 15px;
    height: 15px;
    fill: #FFFFFF;
}

/* Active state for share button when expanded */
.dresium-outfit-gallery__item-btn--active {
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: rgba(0, 123, 255, 0.3) !important;
    transform: scale(1.05);
}

/* RG-WEBDEV 2025-10-31: Hide main buttons when share expansion is active */
.dresium-outfit-gallery__item-btn--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: opacity 0.1s ease-out,
                transform 0.1s ease-out;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* RG-WEBDEV 2026-03-09: Responsive social share icons sizing */
    .dresium-share-expansion {
        gap: 3vw !important;
    }

    .dresium-share-expansion__btn {
        width: 6vw !important;
        height: 6vw !important;
        padding: 0 !important;
    }

    .dresium-share-expansion__btn svg {
        width: 4vw !important;
        height: 4vw !important;
    }
}

/* =============================================================================
   INSUFFICIENT CREDITS MODAL - RG-WEBDEV 2026-02-03
   Refactored to use dresium-main-modal layout structure
   ============================================================================= */

/**
 * Credits-Only Modal Variant
 * Uses the same base structure as dresium-main-modal but simplified:
 * - No sidebar navigation (just header with logo)
 * - Single section (credits/pricing only)
 * - Vertical layout (header on top, content below)
 */

/* Inherit backdrop from .dresium-main-modal */
#dresium-insufficient-credits-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Credits-only variant: vertical layout instead of horizontal sidebar */
.dresium-main-modal--credits-only .dresium-main-modal__container {
    flex-direction: column;
}

/* Sidebar becomes horizontal header in credits-only variant */
.dresium-main-modal--credits-only .dresium-main-modal__sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid #E9ECEF;
    padding: 0;
    position: relative;
}

.dresium-main-modal--credits-only .dresium-main-modal__sidebar-header {
    padding: 16px 24px;
}

/* Close button in credits-only header - positioned to the right */
.dresium-main-modal--credits-only .dresium-main-modal__sidebar .dresium-main-modal__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: #515962;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/*.dresium-main-modal--credits-only .dresium-main-modal__sidebar .dresium-main-modal__close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    display: block !important;
    flex-shrink: 0;
}*/

/* Hide mobile footer in credits-only variant (no credits display needed) */
.dresium-main-modal--credits-only .dresium-main-modal__mobile-footer {
    display: none;
}

/* =============================================================================
   Credits-Only Variant: Typography & Layout Consistency
   Ensures same styling as main modal's "Acquista Crediti" section
   ============================================================================= */

/* Section padding - same as main modal */
.dresium-main-modal--credits-only .dresium-main-modal__section {
    padding: 25px;
}

/* Section header spacing */
.dresium-main-modal--credits-only .dresium-main-modal__section-header {
    margin-bottom: 24px;
}

/* Base reset for headings - same as #dresium-main-modal h1-h6 */
#dresium-insufficient-credits-modal h1,
#dresium-insufficient-credits-modal h2,
#dresium-insufficient-credits-modal h3,
#dresium-insufficient-credits-modal h4,
#dresium-insufficient-credits-modal h5,
#dresium-insufficient-credits-modal h6 {
    font-family: "Poppins", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    line-height: 1.5 !important;
    margin-block-end: 0 !important;
    margin-block-start: 0 !important;
}

/* Base reset for paragraphs - same as #dresium-main-modal p */
#dresium-insufficient-credits-modal p {
    font-family: "Inter", Sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-block-end: 0 !important;
    margin-block-start: 0 !important;
}

/* Title override - inherits from .dresium-main-modal__title, only non-inherited props needed */
#dresium-insufficient-credits-modal .dresium-main-modal__title {
    /* font-size: 28px !important; - inherited from .dresium-main-modal__title */
    /* font-weight: 700 !important; - inherited from .dresium-main-modal__title */
    /* color: #212529 !important; - inherited from .dresium-main-modal__title */
    /* margin: 0; - inherited from .dresium-main-modal__title */
    /* letter-spacing: -0.5px; - inherited from .dresium-main-modal__title */
    /* border-bottom: 1px solid #f4f5f9; - inherited from .dresium-main-modal__title */
    /* padding-bottom: 6px; - inherited from .dresium-main-modal__title */
    /* margin-bottom: 6px; - inherited from .dresium-main-modal__title */
}

/* Subtitle override - inherits from .dresium-main-modal__subtitle */
#dresium-insufficient-credits-modal .dresium-main-modal__subtitle {
    /* font-size: 15px !important; - inherited from .dresium-main-modal__subtitle */
    /* color: #7A7A7A !important; - inherited from .dresium-main-modal__subtitle */
    /* margin: 0; - inherited from .dresium-main-modal__subtitle */
    /* line-height: 1.6 !important; - inherited from .dresium-main-modal__subtitle */
}

/* Specific spacing for subtitle after title - inherits from h2 + p rule */
#dresium-insufficient-credits-modal h2.dresium-main-modal__title + p.dresium-main-modal__subtitle {
    /* margin-block-start: 6px !important; - inherited from h2 + p rule */
    /* padding-top: 6px !important; - inherited from h2 + p rule */
}

/* Section body - flex column for proper layout */
.dresium-main-modal--credits-only .dresium-main-modal__section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
}

/* Pricing grid - same as main modal */
.dresium-main-modal--credits-only .dresium-pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Pricing card typography - ensure consistency */
.dresium-main-modal--credits-only .dresium-pricing-card__title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #212529;
}

.dresium-main-modal--credits-only .dresium-pricing-card__description {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
}

.dresium-main-modal--credits-only .dresium-pricing-card__amount {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.dresium-main-modal--credits-only .dresium-pricing-card__info {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
}

/* Pricing footer - same as main modal */
.dresium-main-modal--credits-only .dresium-pricing-footer {
    margin-top: auto;
    padding-top: 16px;
}

.dresium-main-modal--credits-only .dresium-pricing-footer__note {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    color: #868E96;
    text-align: center;
    margin: 0;
}

/* RG-WEBDEV 2026-02-16: Always show buy buttons in credits-only modal (no expand needed) */
.dresium-main-modal--credits-only .dresium-pricing-card__action {
    max-height: 100px;
    opacity: 1;
    margin-top: 16px;
}

/* RG-WEBDEV 2026-02-17: Always show buy buttons in credits section of settings modal */
.dresium-main-modal__section[data-section="credits"] .dresium-pricing-card__action {
    max-height: 100px;
    opacity: 1;
    margin-top: 16px;
}

/* ============================================================
   DRESIUM ANIMATION (Video) - RG-WEBDEV 2026-03-05
   Video generation and playback within outfit gallery items
   ============================================================ */

/* Video element - hidden by default, covers full item when visible */
.dresium-outfit-gallery__item-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

.dresium-outfit-gallery__item-video.dresium-video-visible {
    display: block;
}

/* Processing state for gallery item during video generation */
.dresium-outfit-gallery__item--processing {
    pointer-events: none;
    position: relative;
}

.dresium-outfit-gallery__item--processing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
    border-radius: 16px;
}

.dresium-outfit-gallery__item--processing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    z-index: 4;
    animation: dresium-video-spin 0.8s linear infinite;
}

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

/* Animation button icon - play/film style */
.dresium-outfit-gallery__item-btn--animation svg {
    width: 20px;
    height: 20px;
}

/* Animation button active state when video is playing */
.dresium-outfit-gallery__item-btn--animation.dresium-video-active {
    background: rgba(139, 92, 246, 0.2) !important;
}

.dresium-outfit-gallery__item-btn--animation.dresium-video-active svg {
    color: #A78BFA !important;
    stroke: #A78BFA !important;
}

/* Video badge - always visible (top-right corner)
   RG-WEBDEV 2026-03-05: Clickable badge for video generation/playback
   20x20px circle with Dresium purple background and white icon
   Uses !important to override generic button reset */
.dresium-outfit-gallery__item-video-badge {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    background: #8B5CF6 !important;
    border: none !important;
    border-radius: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5 !important;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

/* RG-WEBDEV 2026-03-07: Button styling for video badge - high specificity to avoid override */
#dresium-main-modal .dresium-outfit-gallery__item button.dresium-outfit-gallery__item-video-badge,
.dresium-outfit-gallery__item button.dresium-outfit-gallery__item-video-badge {
    background-color: rgba(0, 0, 0, 0.24) !important;
    border-radius: 4px !important;
}

.dresium-outfit-gallery__item-video-badge:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.6) !important;
}

.dresium-outfit-gallery__item-video-badge:active {
    transform: scale(0.95) !important;
}

.dresium-outfit-gallery__item-video-badge:disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.dresium-outfit-gallery__item-video-badge:disabled:hover {
    transform: none !important;
}

/* Hidden badge (for refunded images) */
.dresium-outfit-gallery__item-video-badge--hidden {
    display: none !important;
}

/* Badge SVG icons - white on transparent background */
.dresium-outfit-gallery__item-video-badge svg {
    color: #fff !important;
    width: 15px !important;
    height: 15px !important;
    background-color: transparent;
    padding: 2px;
    box-sizing: content-box !important;
}

/* Hide video badge when video is visible/playing */
.dresium-outfit-gallery__item .dresium-video-visible ~ .dresium-outfit-gallery__item-video-badge,
.dresium-outfit-gallery__item:has(.dresium-video-visible) .dresium-outfit-gallery__item-video-badge {
    opacity: 0.5;
    pointer-events: none;
}

/* Spinner animation for processing button icon */
.dresium-spin {
    animation: dresium-video-spin 1s linear infinite;
}

/* Processing state - disable hover effects */
.dresium-outfit-gallery__item--processing:hover {
    transform: none;
    box-shadow: none;
}

/* Hide overlay during processing */
.dresium-outfit-gallery__item--processing .dresium-outfit-gallery__item-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* RG-WEBDEV 2026-03-07: Fullscreen button - positioned top-left of image */
.dresium-outfit-gallery__fullscreen-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
}

.dresium-outfit-gallery__item:hover .dresium-outfit-gallery__fullscreen-btn,
.dresium-outfit-gallery__item.active .dresium-outfit-gallery__fullscreen-btn,
.dresium-outfit-gallery__item--showing-video .dresium-outfit-gallery__fullscreen-btn {
    opacity: 1;
    pointer-events: auto;
}

.dresium-outfit-gallery__fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.dresium-outfit-gallery__fullscreen-btn svg {
    width: 15px;
    height: 15px;
    stroke: #FFFFFF;
}

/* RG-WEBDEV 2026-03-09: Button styling for fullscreen button - match dashboard style */
#dresium-main-modal div.dresium-main-modal__content .dresium-outfit-gallery__item button.dresium-outfit-gallery__fullscreen-btn {
    background-color: rgba(0, 0, 0, 0.24) !important;
    padding: 2px !important;
    border-radius: 4px !important;
    color: #ffffff !important;
}
