/* ========================================================================
   RESET E BASE STYLES
   ======================================================================== */
* {
    box-sizing: border-box;
}

/* ========================================================================
   UTILITY CLASSES - RESPONSIVE TEXT & VISIBILITY
   ======================================================================== */
.text-desktop {
    display: none;
}

.text-mobile {
    display: block;
}

.btn-text {
    white-space: nowrap;
}

.mobile-only {
    display: flex;
}

@media (min-width: 640px) {
    .text-desktop {
        display: block;
    }

    .text-mobile {
        display: none;
    }

    .mobile-only {
        display: none;
    }

    .btn-text-desktop {
        display: inline;
    }
}

/* ========== PAGE HEADER ========== */
.page-header {
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ========================================================================
   CREDITS MODAL
   ======================================================================== */
.credits-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.credits-modal-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 600px;
    max-height: none;
    min-height: auto;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    margin: 1rem 0;
    position: relative;
}

.credits-modal-content {
    display: flex;
    flex-direction: column;
    min-height: auto;
    height: auto;
    max-height: none;
}

.credits-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 20px;
}

.credits-modal-body {
    padding: 1rem;
    overflow: visible;
    flex-shrink: 0;
}

.credits-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    gap: 1rem;
    background: #f8fafc;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-radius: 0 0 24px 24px;
    justify-content: flex-end;
}

.credits-modal-errors {
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
}

.insufficient-credits-banner {
    margin: 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 20px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    text-align: left;
}

.banner-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.25rem 0;
}

.banner-message {
    font-size: 0.9rem;
    color: #a16207;
    margin: 0;
    line-height: 1.4;
}

.banner-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.banner-btn.primary {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.banner-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.error-banner-simple {
    margin: 1rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 500;
}

.error-banner-simple i {
    font-size: 18px;
    flex-shrink: 0;
}

.plan-savings-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #047857;
    font-size: 0.95rem;
}

.plan-savings-highlight i {
    font-size: 1.5rem;
    color: #059669;
}

.features-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-item-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-icon {
    color: #3b82f6;
    font-size: 20px;
}

.feature-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.feature-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3b82f6;
    margin-right: 0.25rem;
}

.selection-section-modern {
    margin-bottom: 1.5rem;
}

.selection-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.modern-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-select:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pricing-info-modern {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    flex: 1;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
}

.price-value.current {
    color: #059669;
}

.price-value.cost {
    color: #3b82f6;
}

.original-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.discounted-price {
    color: #dc2626;
}

.price-note {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0px;
    line-height: 1.4;
}

.price-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.price-link:hover {
    text-decoration: underline;
}

/* Service Benefits Grid */
.service-benefits-grid {
    margin-bottom: 1.5rem;
}

.benefits-grid-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 1.5rem 0;
    text-align: center;
    justify-content: center;
}

.benefits-grid-title i {
    color: #3b82f6;
    font-size: 1.2rem;
}

.benefits-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

.benefit-card.premium {
    border-color: rgba(139, 92, 246, 0.2);
}

.benefit-card.premium:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.benefit-card.premium .benefit-icon {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.benefit-description {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.coming-soon-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-left: auto;
    flex-shrink: 0;
}

.feature-item-modern.coming-soon {
    position: relative;
    opacity: 0.8;
}

.bonus-template-banner {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.bonus-template-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.bonus-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    position: relative;
    z-index: 1;
}

.bonus-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.bonus-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #166534;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bonus-description {
    font-size: 0.8rem;
    color: #15803d;
    margin: 0;
    line-height: 1.3;
}

/* ========================================================================
   CREDITS MODAL - ENHANCEMENTS
   ======================================================================== */

/* Enhanced Title Styling */
.credits-modal-header h3,
.credits-modal-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.credits-modal-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    line-height: 1.4;
}

/* Close Button Enhancement */
.credits-modal-header .close-button,
.credits-modal-header button[wire\:click*="closeModal"] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.1);
    border: none;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 18px;
}

.credits-modal-header .close-button:hover,
.credits-modal-header button[wire\:click*="closeModal"]:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    transform: scale(1.05);
}

/* Enhanced Body Layout */
.credits-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 240px);
}

.credits-modal-body::-webkit-scrollbar {
    width: 8px;
}

.credits-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.credits-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.credits-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Section Titles Enhancement */
.credits-modal-body h5,
.credits-modal-body .section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-modal-body h5 i,
.credits-modal-body .section-title i {
    color: #3b82f6;
    font-size: 1.1rem;
}

/* Enhanced Dividers */
.credits-modal-body hr,
.credits-modal-body .divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 1.5rem 0;
}

/* Footer Button Enhancements */
.credits-modal-footer .btn-blur-lightgray,
.credits-modal-footer button[wire\:click*="closeModal"] {
    background: rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #475569;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-modal-footer .btn-blur-lightgray:hover,
.credits-modal-footer button[wire\:click*="closeModal"]:hover {
    background: rgba(148, 163, 184, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.credits-modal-footer .btn-blue-shadow,
.credits-modal-footer button[wire\:click*="confirmPurchase"],
.credits-modal-footer button[wire\:click*="activateService"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-modal-footer .btn-blue-shadow:hover,
.credits-modal-footer button[wire\:click*="confirmPurchase"]:hover,
.credits-modal-footer button[wire\:click*="activateService"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.credits-modal-footer .btn-blue-shadow:active,
.credits-modal-footer button[wire\:click*="confirmPurchase"]:active,
.credits-modal-footer button[wire\:click*="activateService"]:active {
    transform: translateY(0);
}

/* Enhanced Pricing Display */
.pricing-info-modern {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
    border: 2px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.pricing-info-modern:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.price-row {
    padding: 0.5rem 0;
}

.price-row:not(:last-of-type) {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.price-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.2);
}

.price-label.total {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.price-value.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: #3b82f6;
}

/* Modern Select Improvements */
.modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.modern-select:hover {
    border-color: #94a3b8;
}

/* Feature List Improvements */
.feature-item-modern {
    transition: all 0.2s ease;
}

.feature-item-modern:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-item-modern.coming-soon {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.05), rgba(148, 163, 184, 0.02));
}

/* Improved Benefits Grid for Smaller Screens */
.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Language Selector Modern */
.language-selector-modern {
    margin-bottom: 1.5rem;
}

.language-status-grid {
    display: grid;
    gap: 1.5rem;
}

.active-languages-card,
.available-languages-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    border: 2px solid transparent;
}

.active-languages-card {
    border-color: rgba(34, 197, 94, 0.2);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(22, 163, 74, 0.02));
}

.available-languages-card {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

.card-header-lang {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

/* ========================================================================
   LOADING STATES
   ======================================================================== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 1000;
    display: none;
}

[wire\:loading] .loading-overlay {
    display: flex !important;
}

/* ========================================================================
   ANIMATIONS & KEYFRAMES
   ======================================================================== */
@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(-45deg);
    }
}

/* ========================================================================
   COMPONENT SPECIFIC STYLES
   ======================================================================== */

/* Welcome message */
.welcome-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.welcome-message h3 {
    color: #0369a1;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #64748b;
    font-size: 1rem;
}

/* Required star */
.required-star {
    color: #ef4444;
    font-weight: 700;
}

/* Language tabs */
.language-tabs {
    margin-bottom: 1rem;
}

.language-tabs .nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.language-tabs .nav-link {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.language-tabs .nav-link img {
    width: 20px;
    height: auto;
    border-radius: 4px;
}

.language-tabs .nav-link.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white !important;
}

.language-tabs .nav-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.add-language-btn {
    display: flex;
    align-items: center;
}

/* Current image display */
.current-image-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.image-info-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-weight: 600;
}

.image-info-header i {
    color: #3b82f6;
}

.current-image-preview {
    margin-bottom: 1rem;
}

.current-image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Cropper controls */
.cropper-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.cropper-btn {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.cropper-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.4);
    color: #475569;
    transform: translateY(-1px);
}

.cropper-btn i {
    font-size: 0.75rem;
}

/* Catalogue checkboxes */
.catalogue-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.catalogue-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.catalogue-checkbox:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.catalogue-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
}

.catalogue-checkbox label {
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    flex: 1;
    margin: 0;
}

/* ========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================================================== */

/* Tablet Styles */
@media (max-width: 1024px) {

    .btn-blur-blue,
    .btn-blur-green,
    .btn-blur-red,
    .btn-blur-yellow,
    .btn-blur-lightgray,
    .btn-blue-shadow,
    .btn-green-shadow,
    .btn-red-shadow,
    .btn-yellow-shadow,
    .btn-gray-shadow {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    /* Credits Modal Tablet */
    .credits-modal-container {
        max-width: 540px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .credits-modal-footer {
        flex-wrap: wrap;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-container {
        max-height: 95vh;
        border-radius: 16px;
        margin: 1rem;
    }

    .modal-container.modal-lg {
        max-height: 95vh;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .modal-container.modal-lg .modal-body {
        max-height: calc(95vh - 140px);
        padding: 1rem;
    }

    .modal-header-gradient {
        padding: 1rem;
    }

    .modal-header-text h1,
    .modal-header-text h4 {
        font-size: 1rem;
    }

    .modal-header-text p {
        font-size: 0.85rem;
    }

    /* Credits Modal Responsive */
    .credits-modal-overlay {
        padding: 0.5rem;
    }

    .credits-modal-container {
        border-radius: 16px;
        margin: 0.5rem 0;
        max-width: 100%;
    }

    .credits-modal-header {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .credits-modal-header h3,
    .credits-modal-header h4 {
        font-size: 1rem;
    }

    .credits-modal-header p {
        font-size: 0.85rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }

    .credits-modal-body {
        padding: 1rem;
        max-height: calc(90vh - 200px);
    }

    .credits-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .credits-modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .benefit-card {
        padding: 1rem;
    }

    .benefit-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .insufficient-credits-banner {
        margin: 1rem;
        padding: 1rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-actions {
        width: 100%;
    }

    .banner-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .pricing-info-modern {
        padding: 1rem;
    }

    .price-row {
        gap: 0.5rem;
    }

    .price-label {
        font-size: 0.85rem;
    }

    .price-value {
        font-size: 0.9rem;
    }

    .price-value.total {
        font-size: 1.1rem;
    }

    .feature-item-modern {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .feature-icon {
        font-size: 18px;
    }

    .feature-text {
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        padding: 1.5rem;
        flex-direction: column;
    }

    .modal-form .modal-body {
        padding: 1rem;
    }

    .modal-form .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
    }

    .btn-blur-blue,
    .btn-blur-green,
    .btn-blur-red,
    .btn-blur-yellow,
    .btn-blur-lightgray,
    .btn-blue-shadow,
    .btn-green-shadow,
    .btn-red-shadow,
    .btn-yellow-shadow,
    .btn-gray-shadow {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.8rem;
    }

    .resource-actions {
        flex-direction: column;
    }

    .upload-area-primary {
        padding: 2rem 1rem;
    }

    .add-box-card {
        padding: 1.5rem;
        min-height: 160px;
    }

    .add-box-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .add-box-title {
        font-size: 1rem;
    }

    .add-box-subtitle {
        font-size: 0.85rem;
    }

    .card-buttons-actions {
        flex-direction: column;
    }

    /* Small buttons adjustments on mobile */
    .btn-blur-blue-sm,
    .btn-blur-green-sm,
    .btn-blur-red-sm,
    .btn-blur-yellow-sm,
    .btn-blur-lightgray-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.125rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
    }

    .btn-blur-blue,
    .btn-blur-green,
    .btn-blur-red,
    .btn-blur-yellow,
    .btn-blur-lightgray,
    .btn-blue-shadow,
    .btn-green-shadow,
    .btn-red-shadow,
    .btn-yellow-shadow,
    .btn-gray-shadow {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    /* Credits Modal Small Mobile */
    .credits-modal-container {
        border-radius: 12px;
        max-width: 100%;
    }

    .credits-modal-header {
        padding: 0.875rem;
    }

    .credits-modal-header h3,
    .credits-modal-header h4 {
        font-size: 0.95rem;
    }

    .service-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .credits-modal-body {
        padding: 0.875rem;
    }

    .credits-modal-footer {
        padding: 0.875rem;
    }

    .credits-modal-footer button {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .insufficient-credits-banner {
        margin: 0.75rem;
        padding: 0.875rem;
        border-radius: 12px;
    }

    .banner-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .banner-title {
        font-size: 0.9rem;
    }

    .banner-message {
        font-size: 0.85rem;
    }

    .benefit-card {
        padding: 0.875rem;
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .benefit-title {
        font-size: 0.9rem;
    }

    .benefit-description {
        font-size: 0.8rem;
    }

    .pricing-info-modern {
        padding: 0.875rem;
    }

    .modern-select {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .upload-area-primary,
    .upload-area-secondary {
        padding: 1.5rem 1rem;
    }

    .add-box-card {
        padding: 1.25rem;
        min-height: 140px;
    }

    .add-box-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0.75rem;
    }

    .add-box-title {
        font-size: 0.95rem;
    }

    .add-box-subtitle {
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .btn-blur-blue,
    .btn-blur-green,
    .btn-blur-red,
    .btn-blur-yellow,
    .btn-blur-lightgray {
        backdrop-filter: blur(8px);
    }
}

/* ========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ======================================================================== */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn-blur-blue:hover,
    .btn-blur-green:hover,
    .btn-blur-red:hover,
    .btn-blur-yellow:hover,
    .btn-blur-lightgray:hover,
    .btn-blue-shadow:hover,
    .btn-green-shadow:hover,
    .btn-red-shadow:hover,
    .btn-yellow-shadow:hover,
    .btn-gray-shadow:hover {
        transform: none;
    }

    .add-box-card:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {

    .btn-blur-blue,
    .btn-blur-green,
    .btn-blur-red,
    .btn-blur-yellow,
    .btn-blur-lightgray {
        backdrop-filter: none;
        background: white;
        border-width: 2px;
    }
}

/* Focus visible for keyboard navigation */
.btn-blur-blue:focus-visible,
.btn-blur-green:focus-visible,
.btn-blur-red:focus-visible,
.btn-blur-yellow:focus-visible,
.btn-blur-lightgray:focus-visible,
.btn-blue-shadow:focus-visible,
.btn-green-shadow:focus-visible,
.btn-red-shadow:focus-visible,
.btn-yellow-shadow:focus-visible,
.btn-gray-shadow:focus-visible,
.add-box-card:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.page-title {
    margin: 0;
    position: relative;
    display: inline-block;
}

.title-gradient {
    background: linear-gradient(135deg, #062096 0%, #333bcc 50%, #7a8aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.1;
    display: block;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #000ef5, transparent);
    margin: 1rem auto 0;
    width: 60px;
    border-radius: 2px;
    opacity: 0.8;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 3px 3px 0;
}

/* ========== CONTROLS SECTION ========== */
.controls-section {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

@media (min-width: 640px) {
    .controls-section {
        border-radius: 20px;
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

.controls-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .controls-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .stats-container {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        width: auto;
    }
}

.stats-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #000f55, #3659ff) !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.counter-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: #1e40af;
}

.counter-total {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ========== SEARCH CONTAINER ========== */
.search-container {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .search-container {
        max-width: 400px;
    }
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* ========== LISTINO SECTIONS ========== */
.listino-section {
    background: white;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.listino-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Senza Listino e Categorie senza Listino - sfondo antiquewhite */
.listino-section:has(.fa-question-circle),
.listino-section:has(.fa-folder-open) {
    background: antiquewhite;
}

.listino-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

@media (min-width: 640px) {
    .listino-header {
        flex-direction: row;
        padding: 1.75rem 2rem;
    }
}

.edit-text-desktop {
    display: none;
}

@media (min-width: 640px) {
    .edit-text-desktop {
        display: inline;
    }
}

.listino-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

@media (min-width: 640px) {
    .listino-header-content {
        gap: 1rem;
    }
}

.listino-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .listino-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 20px;
    }
}

.listino-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.25);
}

/* Se contiene un'immagine, no background */
.listino-icon:has(img) {
    background: transparent !important;
    box-shadow: none !important;
}

/* Se contiene immagine all'hover, shadow grigio */
.listino-icon:has(img):hover {
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.25) !important;
}

.listino-info {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

@media (min-width: 640px) {
    .listino-info {
        margin-right: 1.5rem;
    }
}

.listino-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .listino-title-row {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
}

.listino-info h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

@media (min-width: 640px) {
    .listino-info h3 {
        font-size: 1.25rem;
    }
}

.listino-info h3:hover {
    color: #3b82f6;
}

.listino-description {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .listino-description {
        font-size: 0.9rem;
    }
}

.listino-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .listino-toggle {
        width: auto;
    }
}

.toggle-arrow {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.listino-section.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* ========================================================================
   BLUR BUTTONS - NORMAL SIZE
   ======================================================================== */

/* Blue Blur Button */
.btn-blur-blue {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-blur-blue:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.btn-blur-blue:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Green Blur Button */
.btn-blur-green {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-blur-green:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.btn-blur-green:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Red Blur Button */
.btn-blur-red {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-blur-red:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.btn-blur-red:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Yellow Blur Button */
.btn-blur-yellow {
    background: rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-blur-yellow:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

.btn-blur-yellow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* Light Gray Blur Button */
.btn-blur-lightgray {
    background: rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn-blur-lightgray:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.4);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(148, 163, 184, 0.25);
}

.btn-blur-lightgray:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}

/* ========================================================================
   BLUR BUTTONS - SMALL SIZE
   ======================================================================== */

/* Blue Blur Small Button */
.btn-blur-blue-sm {
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-blur-blue-sm:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.btn-blur-blue-sm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

/* Green Blur Small Button */
.btn-blur-green-sm {
    background: rgba(16, 185, 129, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-blur-green-sm:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.btn-blur-green-sm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Red Blur Small Button */
.btn-blur-red-sm {
    background: rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-blur-red-sm:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.btn-blur-red-sm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Yellow Blur Small Button */
.btn-blur-yellow-sm {
    background: rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-blur-yellow-sm:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.btn-blur-yellow-sm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* Light Gray Blur Small Button */
.btn-blur-lightgray-sm {
    background: rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-blur-lightgray-sm:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: rgba(148, 163, 184, 0.4);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 163, 184, 0.25);
}

.btn-blur-lightgray-sm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}

/* ========================================================================
   SHADOW BUTTONS - SOLID COLORS WITH HEAVY SHADOWS
   ======================================================================== */

/* Blue Shadow Button */
.btn-blue-shadow {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-blue-shadow:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-blue-shadow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.6), 0 15px 40px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* Green Shadow Button */
.btn-green-shadow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-green-shadow:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
    color: white;
}

.btn-green-shadow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.6), 0 15px 40px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* Red Shadow Button */
.btn-red-shadow {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-red-shadow:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.5);
    color: white;
}

.btn-red-shadow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.6), 0 15px 40px rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

/* Yellow Shadow Button */
.btn-yellow-shadow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.btn-yellow-shadow:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
    color: white;
}

.btn-yellow-shadow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.6), 0 15px 40px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

/* Gray Shadow Button */
.btn-gray-shadow {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
}

.btn-gray-shadow:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 114, 128, 0.5);
    color: white;
}

.btn-gray-shadow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.6), 0 15px 40px rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}

/* ========================================================================
   ICON BUTTONS
   ======================================================================== */
.btn-icon-primary,
.btn-icon-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    min-height: 44px;
}

.btn-icon-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
}

.btn-icon-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-icon-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.btn-icon-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
}

/* Tool buttons */
.btn-tool {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tool:hover {
    border-color: #cbd5e1;
    color: #475569;
    background: #f1f5f9;
}

.btn-tool:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.4);
    border-color: #94a3b8;
}

/* Button with gradient animation */
.btn-success-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-success-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: white;
    text-decoration: none;
}

.btn-success-gradient:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ========================================================================
   MODALS
   ======================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-container.modal-sm {
    max-width: 400px;
}

.modal-container.modal-lg {
    max-width: 900px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal header styles */
.modal-header {
    background: white;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header-gradient {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: white;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
}

.modal-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal-header-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.modal-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 20px;
}

.modal-icon-box i {
    color: white;
    font-size: 20px;
}

.modal-close-white {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #64748b;
}

.modal-close-white:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Modal body */
.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

/* Custom scrollbar for webkit browsers */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.modal-body.modal-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-body .modal-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

@media (min-width: 768px) {
    .modal-body.modal-grid {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }

    .modal-body .modal-grid {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        height: auto;
    }
}

/* Modal footer */
.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Modal form structure */
.modal-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
}

.modal-form .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-form .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Form grid layout responsive */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
}

/* Tablet and Desktop layouts */
@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/* Modal container improvements for better form handling */
.modal-container.modal-lg {
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-container.modal-lg .modal-body {
    min-height: 400px;
    max-height: calc(90vh - 140px);
}

/* Ensure modal container takes full height */
.modal-container {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

/* Modal header should be fixed at top */
.modal-header-gradient {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Modal form should fill remaining space */
.modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Modal body should be scrollable */
.modal-form .modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    min-height: 0;
}

/* Modal footer should be fixed at bottom */
.modal-form .modal-footer {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Ensure form doesn't add extra height */
.modal-form form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ========================================================================
   FORMS
   ======================================================================== */

/* Form groups */
.form-group,
.form-section {
    margin-bottom: 1.5rem;
}

.form-group-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.form-group-box:hover {
    border-color: #cbd5e1;
}

.form-group-title,
.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

/* Input fields */
.input-field,
.select-field {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem;
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-field::placeholder {
    color: #94a3b8;
}

/* Input with icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i,
.input-icon {
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    z-index: 1;
}

.input-icon i {
    color: #3b82f6;
    font-size: 18px;
}

.input-icon-wrapper input,
.input-field.with-icon {
    padding-left: 3rem;
}

/* Input label */
.input-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    display: block;
}

/* Error messages */
.error-text,
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #dc2626;
}

.error-message i {
    color: #ef4444;
}

/* Toggle switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0;
}

.toggle-switch:not(.off) {
    background: #3b82f6;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch:not(.off) .toggle-knob {
    transform: translateX(20px);
}

/* Form check input hidden for custom toggle */
.form-check-input {
    display: none !important;
}

/* Form improvements */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-text {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Form description */
.form-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

/* ========================================================================
   UPLOAD AREAS
   ======================================================================== */
.upload-area-primary,
.upload-area-secondary {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area-primary {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

.upload-area-primary:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.04));
}

.upload-area-secondary {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
}

.upload-area-secondary:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.upload-icon-lg,
.upload-icon-sm {
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-icon-lg {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
}

.upload-icon-lg i {
    font-size: 28px;
    color: #3b82f6;
}

.upload-icon-lg svg {
    color: #3b82f6;
    margin-bottom: 1rem;
}

.upload-icon-sm {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
}

.upload-icon-sm i {
    font-size: 16px;
    color: #64748b;
}

.upload-area-primary:hover .upload-icon-lg,
.upload-area-secondary:hover .upload-icon-sm {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.upload-title {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.upload-subtitle,
.upload-subtext {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.upload-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-subtext {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.upload-label {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: block;
}

/* ========================================================================
   ALERTS
   ======================================================================== */
.alert-warning {
    background: #fef3cd;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
}

.alert-warning i {
    color: #f59e0b;
    font-size: 16px;
}

/* ========================================================================
   CARDS
   ======================================================================== */

/* Card add service */
.card-add-service {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 25%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-add-service:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
}

.card-add-title {
    color: #475569;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-add-subtitle {
    color: #64748b;
    font-size: 0.85rem;
}

/* Combined card (Add service + Video Tutorial) */
.card-add-service-combined {
    background: white;
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-add-service-combined:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.combined-card-top {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.combined-card-divider {
    height: 1px;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

.card-add-service-combined:hover .combined-card-divider {
    background: #cbd5e1;
}

/* Combined Service Card (Add + Video Tutorial in single card) */
.card-combined-service {
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.card-combined-service:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-combined-top {
    display: flex;
    flex-direction: column;
}

.card-combined-top .card-add-service {
    border-radius: 20px 20px 0 0;
    margin: 0;
    box-shadow: none;
    border: 2px dashed #cbd5e1;
}

.card-combined-top .card-add-service:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.card-combined-bottom {
    background: white;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Icon plus */
.icon-plus {
    width: 48px;
    height: 48px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-add-service:hover .icon-plus {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

/* Icon sizes */
.icon-sm {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Resource cards */
.resource-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.resource-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resource-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resource-item i {
    color: #3b82f6;
    font-size: 16px;
}

.resource-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.resource-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.resource-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resource-text {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem;
    font-size: 0.8rem;
    color: #3b82f6;
    font-weight: 500;
    word-break: break-all;
}

/* ========================================================================
   ADD BOX CARD STYLES
   ======================================================================== */

/* Add Box Card */
.add-box-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.add-box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.add-box-card:hover::before {
    opacity: 1;
}

.add-box-card:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.add-box-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

/* Add Box Icon */
.add-box-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    font-size: 24px;
    font-weight: 600;
}

.add-box-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.add-box-card:hover .add-box-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.12));
    transform: scale(1.1);
    color: #059669;
}

.add-box-card:hover .add-box-icon::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Add Box Text */
.add-box-text {
    position: relative;
    z-index: 2;
}

.add-box-title {
    color: #475569;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.add-box-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.add-box-card:hover .add-box-title {
    color: #334155;
}

.add-box-card:hover .add-box-subtitle {
    color: #475569;
}

/* Animation variants */
.add-box-card.animate-pulse {
    animation: addBoxPulse 2s ease-in-out infinite;
}

@keyframes addBoxPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Success state */
.add-box-card.success {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.add-box-card.success .add-box-icon {
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.08));
}

.add-box-card.success:hover {
    border-color: #059669;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

/* Warning state */
.add-box-card.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.add-box-card.warning .add-box-icon {
    color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.08));
}

.add-box-card.warning:hover {
    border-color: #d97706;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}

/* Error state */
.add-box-card.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.add-box-card.error .add-box-icon {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
}

.add-box-card.error:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

/* Disabled state */
.add-box-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.add-box-card.disabled:hover {
    transform: none;
    box-shadow: none;
}




/* ========================================================================
PRODOTTI E CATEGORIE
   ======================================================================== */
.card-buttons-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.categories-grid {
    display: grid;
   /* grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));*/
    gap: 1.5rem;
}


