/**
 * Event Type Modal Styles
 * Comprehensive styling for view and edit modals
 * Follows Anthropic minimal design principles
 */

/* Event Type Modal Base Styles */
.eventtype-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--color-surface);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

/* Breadcrumb Navigation */
.modal-breadcrumb {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-subtle);
}

.breadcrumb-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.breadcrumb-back-btn:hover {
    background-color: #f3f4f6;
    border-color: #8b949e;
    color: var(--color-text-primary);
}

.breadcrumb-back-btn:active {
    background-color: #e5e7eb;
    transform: translateY(0);
}

.breadcrumb-back-btn svg {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.breadcrumb-back-btn:hover svg {
    transform: translateX(-2px);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-subtle) 100%);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.modal-title i {
    font-size: 24px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.modal-title h2 {
    margin: 0 0 0.25rem 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.modal-header-actions {
    display: flex;
    gap: 0.5rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--color-surface-subtle);
    border-radius: 0 0 12px 12px;
}

/* View Sections */
.view-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.view-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-subtle) 100%);
    border-bottom: 1px solid var(--color-border);
}

.section-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: var(--color-text-secondary);
    font-size: 13px;
}

.section-content {
    padding: 1.25rem;
}

/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 500;
    color: #8b949e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-item span {
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 500;
}

.detail-item p {
    margin: 0;
    color: var(--color-text-primary);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.active {
    background: #f0fdf4;
    color: #1a7f37;
}

.status-badge.inactive {
    background: var(--color-surface-subtle);
    color: var(--color-text-secondary);
}

.status-badge.public {
    background: #f0f9ff;
    color: #0969da;
}

.status-badge.private {
    background: #fff5e6;
    color: #bf8700;
}

/* Color Preview */
.color-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--color-border);
}

.color-preview code {
    font-family: monospace;
    background: var(--color-surface-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* URL Display */
.url-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-subtle);
    padding: 0.5rem;
    border-radius: 6px;
}

.url-display code {
    flex: 1;
    font-family: monospace;
    font-size: 12px;
    color: var(--color-text-primary);
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    border: none;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

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

/* Code Preview */
.code-preview {
    background: #0d1117;
    color: #f0f6fc;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
}

/* Fields List */
.fields-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-item {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem;
}

.field-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.field-number {
    background: #0d1117;
    color: #ffffff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}

.field-name {
    flex: 1;
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 13px;
}

.required-badge {
    background: #fef2f2;
    color: #cf222e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.field-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.field-type {
    background: #f0f9ff;
    color: #0969da;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.field-placeholder,
.field-options {
    color: var(--color-text-secondary);
    font-size: 11px;
}

/* Empty Text */
.empty-text {
    color: #8b949e;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Tiers List */
.tiers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tier-item {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 1rem;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tier-name {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 14px;
}

.tier-price {
    font-weight: 700;
    color: #1a7f37;
    font-size: 16px;
}

.tier-description {
    margin: 0 0 0.75rem 0;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.tier-features {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.tier-features li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 12px;
    color: var(--color-text-primary);
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: -1rem;
    color: #1a7f37;
    font-weight: 600;
}

/* Plans List */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.tier-badge {
    background: #f0f9ff;
    color: #0969da;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* Reminders List */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.reminder-item.enabled {
    background: #f0fdf4;
    border-color: #1a7f37;
}

.reminder-item.disabled {
    opacity: 0.6;
}

.reminder-item .status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Schedule List */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.schedule-item .day {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 13px;
}

.schedule-item .time {
    font-family: monospace;
    color: var(--color-text-secondary);
    font-size: 12px;
}

/* Price Display */
.price-display {
    font-weight: 700;
    color: #1a7f37;
    font-size: 16px;
}

/* Image Preview */
.image-preview {
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    max-width: 400px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-title {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Edit Placeholder Styles */
.edit-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 400px;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.placeholder-icon i {
    font-size: 32px;
    color: #0969da;
}

.edit-placeholder h3 {
    margin: 0 0 1rem 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.edit-placeholder p {
    margin: 0 0 0.75rem 0;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
}

.edit-placeholder p:last-of-type {
    margin-bottom: 2rem;
}

.edit-placeholder .btn {
    margin-top: 1rem;
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--color-surface-subtle);
}

.modal-body::-webkit-scrollbar-thumb {
    background: #8b949e;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #656d76;
}

/* ========================================
   BOOKING FIELDS BUILDER STYLES (Phase 6)
   ======================================== */

/* Booking Fields List Container */
.booking-fields-list {
    margin: 15px 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface-subtle);
    padding: 8px;
}

/* Individual Booking Field Item */
.booking-field-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.booking-field-item:last-child {
    margin-bottom: 0;
}

.booking-field-item:hover {
    background: var(--color-surface-subtle);
    border-color: #d1d5d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Drag Handle */
.field-handle {
    cursor: grab;
    color: #8b949e;
    font-size: 14px;
    padding: 4px;
    transition: color 0.15s ease;
}

.field-handle:hover {
    color: var(--color-text-secondary);
}

.field-handle:active {
    cursor: grabbing;
}

/* Field Info Section */
.field-info {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}

.field-label strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.required-badge {
    background: #ff6b6b;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.field-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.field-type-badge {
    background: #f0f9ff;
    color: #0969da;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Field Actions */
.field-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-radius: 4px;
    transition: all 0.15s ease;
    font-size: 13px;
}

.btn-icon:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text-primary);
}

.btn-icon.btn-danger:hover {
    background: #ff6b6b;
    color: white;
}

/* No Fields Message */
.no-fields-message {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
    background: var(--color-surface);
    border-radius: 6px;
}

.no-fields-message i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5d9;
}

.no-fields-message p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Field Editor Modal Specific Styles */
.field-editor-modal {
    max-width: 600px !important;
}

.field-editor-modal .modal-header {
    position: relative;
}

.field-editor-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.field-editor-modal .btn-close:hover {
    color: var(--color-text-primary);
    transform: scale(1.1);
}

/* Form Help Text */
.form-help {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Add Field Button */
#addBookingFieldBtn {
    margin-top: 12px;
}

/* Responsive Design for Booking Fields */
@media (max-width: 768px) {
    .booking-field-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .field-handle {
        display: none; /* Hide drag handle on mobile */
    }
    
    .field-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .booking-fields-list {
        max-height: 300px;
    }
}

/* Field Type Specific Badges */
.field-type-badge[data-type="email"] {
    background: #f0fdf4;
    color: #1a7f37;
}

.field-type-badge[data-type="phone"] {
    background: #fff5e6;
    color: #bf8700;
}

.field-type-badge[data-type="select"],
.field-type-badge[data-type="radio"] {
    background: #fef2f2;
    color: #cf222e;
}

/* Scrollbar for Fields List */
.booking-fields-list::-webkit-scrollbar {
    width: 6px;
}

.booking-fields-list::-webkit-scrollbar-track {
    background: var(--color-surface-subtle);
    border-radius: 3px;
}

.booking-fields-list::-webkit-scrollbar-thumb {
    background: #d1d5d9;
    border-radius: 3px;
}

.booking-fields-list::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}

/* ========================================
   FEATURE #2: AVAILABILITY SCHEDULE BUILDER STYLES
   ======================================== */

/* Weekly Schedule Container */
.weekly-schedule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Individual Day Schedule */
.day-schedule {
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.day-schedule.enabled {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.day-schedule.disabled {
    background: var(--color-surface-subtle);
    opacity: 0.7;
}

/* Day Header */
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.day-toggle input[type="checkbox"] {
    cursor: pointer;
}

.day-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-primary);
}

.unavailable-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* Time Slots Container */
.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* Individual Time Slot */
.time-slot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    color: var(--color-text-primary);
    background: var(--color-surface);
    transition: border-color 0.2s ease;
}

.time-input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.time-separator {
    color: var(--color-text-secondary);
    font-size: 13px;
    padding: 0 0.25rem;
}

/* Date Overrides List */
.date-overrides-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.no-overrides-message {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text-secondary);
}

.no-overrides-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}

.no-overrides-message p {
    margin: 0;
    font-size: 14px;
}

/* Date Override Item */
.date-override-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.date-override-item:hover {
    border-color: #b3b9bf;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.override-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.override-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-primary);
}

.override-date i {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.override-date strong {
    font-size: 14px;
    font-weight: 600;
}

.override-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
}

.time-range {
    color: var(--color-text-secondary);
    font-size: 12px;
}

.override-reason {
    color: var(--color-text-secondary);
    font-size: 12px;
    font-style: italic;
    margin-top: 0.25rem;
}

.override-actions {
    display: flex;
    gap: 0.5rem;
}

/* Add Slot Button */
.add-slot-btn {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #0969da;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-slot-btn:hover {
    background: var(--color-surface-subtle);
    border-color: #0969da;
}

/* Remove Slot Button in Availability Context */
.time-slot .btn-icon.btn-danger {
    padding: 0.25rem 0.5rem;
    font-size: 12px;
}

/* Responsive Design for Availability */
@media (max-width: 768px) {
    .time-slots {
        padding-left: 0.5rem;
    }
    
    .time-slot {
        flex-wrap: wrap;
    }
    
    .time-input {
        flex: 1;
        min-width: 100px;
    }
    
    .date-override-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .override-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ========================================
   FEATURE #3: DYNAMIC PRICING TIERS STYLES
   ======================================== */

/* Pricing Tiers List Container */
.pricing-tiers-list {
    margin: 15px 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface-subtle);
    padding: 8px;
}

/* Individual Pricing Tier Item */
.pricing-tier-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.pricing-tier-item:last-child {
    margin-bottom: 0;
}

.pricing-tier-item:hover {
    background: var(--color-surface-subtle);
    border-color: #d1d5d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Tier Drag Handle */
.tier-handle {
    cursor: grab;
    color: #8b949e;
    font-size: 14px;
    padding: 4px;
    transition: color 0.15s ease;
}

.tier-handle:hover {
    color: var(--color-text-secondary);
}

.tier-handle:active {
    cursor: grabbing;
}

/* Tier Info Section */
.tier-info {
    flex: 1;
    min-width: 0;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.tier-header strong {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 14px;
    flex: 1;
}

.tier-price {
    color: #1a7f37;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.tier-details {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tier-range {
    background: #f0f9ff;
    color: #0969da;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Tier Actions */
.tier-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* No Tiers Message */
.no-tiers-message {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
    background: var(--color-surface);
    border-radius: 6px;
}

.no-tiers-message i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5d9;
}

.no-tiers-message p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Tier Editor Modal Specific Styles */
.tier-editor-modal {
    max-width: 600px !important;
}

.tier-editor-modal .modal-header {
    position: relative;
}

.tier-editor-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.tier-editor-modal .btn-close:hover {
    color: var(--color-text-primary);
    transform: scale(1.1);
}

/* Pricing Section Specific Styles */
#pricingConfigSection {
    margin-top: 1rem;
}

#fixedPriceSection,
#tieredPricingSection,
#payWhatYouWantSection {
    margin-top: 1rem;
}

/* Scrollbar for Pricing Tiers List */
.pricing-tiers-list::-webkit-scrollbar {
    width: 6px;
}

.pricing-tiers-list::-webkit-scrollbar-track {
    background: var(--color-surface-subtle);
    border-radius: 3px;
}

.pricing-tiers-list::-webkit-scrollbar-thumb {
    background: #d1d5d9;
    border-radius: 3px;
}

.pricing-tiers-list::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}

/* Responsive Design for Pricing Tiers */
@media (max-width: 768px) {
    .pricing-tier-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tier-handle {
        display: none;
    }
    
    .tier-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tier-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .pricing-tiers-list {
        max-height: 300px;
    }
}

/* Tier Details Variations */
.tier-details .tier-discount {
    color: #1a7f37;
    font-weight: 600;
}

.tier-details .tier-description {
    color: var(--color-text-secondary);
    font-style: italic;
}

/* ========================================
   FEATURE #4: REMINDER EMAILS STYLES
   ======================================== */

/* Reminder Emails List Container */
.reminder-emails-list {
    margin: 15px 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-surface-subtle);
    padding: 8px;
}

/* Individual Reminder Email Item */
.reminder-email-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.reminder-email-item:last-child {
    margin-bottom: 0;
}

.reminder-email-item:hover {
    background: var(--color-surface-subtle);
    border-color: #d1d5d9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reminder-email-item.disabled {
    opacity: 0.6;
    background: var(--color-surface-subtle);
}

/* Toggle Switch */
.reminder-toggle {
    flex-shrink: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5d9;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0969da;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

/* Reminder Info Section */
.reminder-info {
    flex: 1;
    min-width: 0;
}

.reminder-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.reminder-header strong {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.reminder-recipient {
    background: #f0f9ff;
    color: #0969da;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.reminder-subject {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.custom-badge {
    background: #fff5e6;
    color: #bf8700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Reminder Actions */
.reminder-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* No Reminders Message */
.no-reminders-message {
    text-align: center;
    padding: 40px 20px;
    color: #8b949e;
    background: var(--color-surface);
    border-radius: 6px;
}

.no-reminders-message i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d1d5d9;
}

.no-reminders-message p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Reminder Editor Modal Specific Styles */
.reminder-editor-modal {
    max-width: 600px !important;
}

.reminder-editor-modal .modal-header {
    position: relative;
}

.reminder-editor-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-secondary);
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.reminder-editor-modal .btn-close:hover {
    color: var(--color-text-primary);
    transform: scale(1.1);
}

/* Scrollbar for Reminder Emails List */
.reminder-emails-list::-webkit-scrollbar {
    width: 6px;
}

.reminder-emails-list::-webkit-scrollbar-track {
    background: var(--color-surface-subtle);
    border-radius: 3px;
}

.reminder-emails-list::-webkit-scrollbar-thumb {
    background: #d1d5d9;
    border-radius: 3px;
}

.reminder-emails-list::-webkit-scrollbar-thumb:hover {
    background: #8b949e;
}

/* Responsive Design for Reminder Emails */
@media (max-width: 768px) {
    .reminder-email-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reminder-toggle {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .reminder-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .reminder-emails-list {
        max-height: 300px;
    }
}

/* ===================================
   FEATURE #5: SEO IMAGE UPLOAD STYLING
   =================================== */

.seo-image-upload {
    margin-top: 1rem;
}

/* Upload Area */
.seo-image-upload-area {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--color-surface-subtle);
    transition: all 0.2s ease;
}

.seo-image-upload-area:hover {
    border-color: #0969da;
    background: var(--color-surface);
}

.seo-image-upload-area.dragover {
    border-color: #0969da;
    background: #ddf4ff;
    border-style: solid;
}

.seo-image-upload-area.loading {
    pointer-events: none;
    opacity: 0.6;
}

.seo-image-upload-area.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: #0969da;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.upload-content {
    pointer-events: none;
}

.upload-content i {
    font-size: 48px;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    display: block;
}

.upload-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.upload-content p {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.upload-content small {
    font-size: 12px;
    color: #8c959f;
}

/* Image Preview */
.seo-image-preview {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface-subtle);
}

.seo-image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: contain;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.seo-image-preview:hover .image-overlay {
    opacity: 1;
}

.btn-icon-white {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--color-text-primary);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-white:hover {
    background: var(--color-surface-subtle);
    transform: translateY(-1px);
}

.btn-icon-white i {
    font-size: 14px;
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1.5rem;
    font-size: 12px;
    color: white;
}

.image-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-info i {
    opacity: 0.8;
}

/* Responsive Design for SEO Image Upload */
@media (max-width: 768px) {
    .seo-image-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-content i {
        font-size: 36px;
    }
    
    .upload-content h5 {
        font-size: 14px;
    }
    
    .seo-image-preview img {
        max-height: 300px;
    }
    
    .image-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-icon-white {
        padding: 0.375rem 0.75rem;
        font-size: 12px;
    }
}
